Solving Systems of (Linear) Equations

To solve a system of simultaneous linear equations, there must be as many equations as there are variables:

12x+4y=366x3y=3

There are two methods we can use to solve this system:

Substitution

First, we take one equation and solve for one of the variables. Here, we take the first, and solve for x:

12x+4y=3612x=364yx=313y

Now we take this value and plug it into the other equation:

6x3y=36(313y)3y=3182y3y=3185y=35y=15y=3

Now that we know the value of one variable, plug it into either of the original equations to solve for the value of the other variable:

12x+4y=3612x+4(3)=3612x+12=3612x=24x=2

We should verify that our variables are correct, so plug x and y into each equation and make sure it is true. Let’s start with the first equation:

12x+4y=3612(2)+4(3)=3624+12=36

We can do the same with the other equation:

6x3y=36(2)3(3)=3129=3

Elimination

We will multiply the equations by constants to make the coefficients of one variable equal. Here, let us try to make the coefficients in front of each equation’s x equal.

[12x+4y=36]6[6x3y=3]12

To do so, we will multiply the first equation by 6, and the second equation by 12. (We multiply each equation by the coefficient in front of the other equation’s x variable):

72x+24y=21672x36y=36

Now we subtract the second equation from the first, which should get rid of x:

72x+24y=216[72x36y=36]

Be careful to distribute the minus sign carefully:

[72x72x]+[24y(36y)]=[21636]60y=180y=3

Now that we have the value of one variable, plug it in to either equation.

12x+4y=3612x+4(3)=3612x+12=3612x=24x=2

Now that we have both variables, we can plug them in to each equation to double check them, same as before.