Chapter 8 ยท Systems of linear equations

Solving Systems by Elimination

Solve a system of two equations by adding or subtracting them so one variable drops out. Multiply an equation first when the coefficients do not match.

16 min read

You already know how to solve a system of equations by substitution. A system of equations is a set of equations that use the same variables. A solution of the system is a pair of values (x,y)(x, y) that makes every equation true. Substitution gets messy when neither equation is easy to solve for one variable, so this lesson gives you a second method. It rests on one simple fact: when you add equal amounts to equal amounts, the totals are equal.

Try it with numbers. Both 3+4=73 + 4 = 7 and 5โˆ’4=15 - 4 = 1 are true. Add the left sides together and add the right sides together: (3+4)+(5โˆ’4)=7+1(3 + 4) + (5 - 4) = 7 + 1. Each side equals 88, so the new statement is true too. Notice that +4+4 and โˆ’4-4 add to 00. The 44 drops out and leaves 3+5=83 + 5 = 8.

The same idea works when the equations contain variables. Take the system 2x+y=112x + y = 11 and 3xโˆ’y=43x - y = 4. In every system in this lesson, xx and yy stand for real numbers.

Suppose a pair (x,y)(x, y) makes both equations true. Then 3xโˆ’y3x - y and 44 are the same number, because the second equation says so. So you can add 3xโˆ’y3x - y to the left side of the first equation and 44 to its right side. You are adding the same amount to both sides, so the new equation is still true for that pair.

Now look at the yy-terms. A coefficient is the number that multiplies a variable. Since yy means 1y1y and โˆ’y-y means โˆ’1y-1y, the coefficients of yy are 11 and โˆ’1-1. These are opposites: two numbers that add to 00. So the yy-terms add to 0y0y, which equals 00, and yy drops out. Stack the equations so matching terms line up, then add each column.

2x+y=11+3xโˆ’y=45x+0y=15\begin{array}{rrcr} & 2x + y & = & 11 \\ + & 3x - y & = & 4 \\ \hline & 5x + 0y & = & 15 \end{array}

Only xx is left, in the equation 5x=155x = 15. Divide both sides by 55, which is allowed because 55 is not 00, to get x=3x = 3. To find yy, substitute 33 for xx in either original equation. Using the first one: 2(3)+y=112(3) + y = 11, so 6+y=116 + y = 11. Subtract 66 from both sides to get y=5y = 5.

Now check the pair (3,5)(3, 5) in both original equations: 2(3)+5=6+5=112(3) + 5 = 6 + 5 = 11 and 3(3)โˆ’5=9โˆ’5=43(3) - 5 = 9 - 5 = 4. Both are true, so the solution is (3,5)(3, 5). Use the original equations for the check, because an equation you created could carry a mistake.

This method is called elimination. You combine the equations to eliminate, or remove, one variable. Here that left an equation with just one variable, which you already know how to solve.

Key concept

Elimination: combine equations so one variable drops out

If a pair (x,y)(x, y) solves a system, the two sides of each equation are equal amounts for that pair. Adding or subtracting equal amounts on both sides keeps an equation true, so the pair also makes the sum and the difference of the two equations true.

  • One variable has opposite coefficients: add the equations.
  • One variable has equal coefficients: subtract one equation from the other.
  • Neither: first multiply both sides of one or both equations by a nonzero number, as you will see later in this lesson.

Every system in this lesson has exactly one solution, so one variable is left. Solve for it, substitute to find the other variable, and check the pair in both original equations.

Ifย A=Bย andย C=D,ย thenย A+C=B+Dย andย Aโˆ’C=Bโˆ’D\text{If } A = B \text{ and } C = D, \text{ then } A + C = B + D \text{ and } A - C = B - D

Worked example

Equal coefficients: subtract the equations

Solve the system 2x+3y=162x + 3y = 16 and 2xโˆ’y=82x - y = 8 by elimination.

  1. Compare the coefficients. Both x-coefficients are 2. They are equal, not opposites, so adding would give 4x and nothing would drop out. Subtracting works instead, because 2x minus 2x is 0.

    2xโˆ’2x=02x - 2x = 0
  2. Subtract the second equation from the first. For a pair that solves the system, the two sides of the second equation are the same number, so you are subtracting equal amounts from both sides. Put each left side in parentheses so the subtraction reaches every term.

    (2x+3y)โˆ’(2xโˆ’y)=16โˆ’8(2x + 3y) - (2x - y) = 16 - 8
  3. Simplify both sides. Subtracting the second set of parentheses changes the sign of each term inside it: subtracting 2x gives minus 2x, and subtracting negative y gives plus y. The x-terms add to 0, the y-terms add to 4y, and 16 minus 8 is 8.

    2x+3yโˆ’2x+y=8,ย soย 4y=82x + 3y - 2x + y = 8 \text{, so } 4y = 8
  4. Divide both sides by 4. This is a valid step because 4 is not 0.

    4y4=84,ย soย y=2\frac{4y}{4} = \frac{8}{4} \text{, so } y = 2
  5. Substitute 2 for y in the first original equation to find x. Multiply 3 by 2, subtract 6 from both sides, then divide both sides by 2, which is not 0.

    2x+3(2)=16,ย soย 2x+6=16,ย soย 2x=10,ย soย x=52x + 3(2) = 16 \text{, so } 2x + 6 = 16 \text{, so } 2x = 10 \text{, so } x = 5
  6. Check the pair (5, 2) in both original equations. Both statements are true.

    2(5)+3(2)=10+6=16and2(5)โˆ’2=10โˆ’2=82(5) + 3(2) = 10 + 6 = 16 \quad\text{and}\quad 2(5) - 2 = 10 - 2 = 8

Answer

The solution of the system is (5,2)(5, 2), so x=5x = 5 and y=2y = 2.

Many systems have no variable with opposite or equal coefficients. In that case, you can create matching coefficients yourself. Multiplying both sides of an equation by the same nonzero number (any number except 00) gives an equivalent equation, which is an equation with exactly the same solutions. Equal amounts multiplied by the same number stay equal. And because the number is not 00, you could divide by it to undo the step, so no solutions are gained or lost. (Multiplying both sides by 00 would give 0=00 = 0 for every pair, which tells you nothing.)

For example, multiply both sides of x+2y=7x + 2y = 7 by 33. The left side becomes 3(x+2y)3(x + 2y). The distributive property says to multiply each term inside the parentheses by 33, so this equals 3x+6y3x + 6y for all real numbers xx and yy. The right side becomes 3โ‹…7=213 \cdot 7 = 21. The new equation is 3x+6y=213x + 6y = 21.

The table tests four pairs in both equations. The value of 3x+6y3x + 6y is always 33 times the value of x+2yx + 2y, so each equation is true exactly when the other is.

Testing four pairs in x + 2y = 7 and in 3x + 6y = 21
Pair (x, y)Value of x + 2yIs x + 2y = 7 true?Value of 3x + 6yIs 3x + 6y = 21 true?
(1,3)(1, 3)
1+2(3)=71 + 2(3) = 7
Yes
3(1)+6(3)=213(1) + 6(3) = 21
Yes
(5,1)(5, 1)
5+2(1)=75 + 2(1) = 7
Yes
3(5)+6(1)=213(5) + 6(1) = 21
Yes
(โˆ’1,4)(-1, 4)
โˆ’1+2(4)=7-1 + 2(4) = 7
Yes
3(โˆ’1)+6(4)=213(-1) + 6(4) = 21
Yes
(2,2)(2, 2)
2+2(2)=62 + 2(2) = 6
No
3(2)+6(2)=183(2) + 6(2) = 18
No

Worked example

Multiply one equation, then add

Solve the system 3x+2y=103x + 2y = 10 and 5xโˆ’4y=245x - 4y = 24 by elimination.

  1. Compare the coefficients. No variable has opposite or equal coefficients yet. The y-coefficients are 2 and -4. Doubling the first equation turns 2y into 4y, which is the opposite of -4y, so only one equation needs to change.

    2โ‹…2y=4yand4y+(โˆ’4y)=02 \cdot 2y = 4y \quad\text{and}\quad 4y + (-4y) = 0
  2. Multiply both sides of the first equation by 2. Because 2 is not 0, the new equation has the same solutions as the first one. Multiply every term, including the 10 on the right side.

    2(3x+2y)=2(10),ย soย 6x+4y=202(3x + 2y) = 2(10) \text{, so } 6x + 4y = 20
  3. Add the new equation and the second original equation. For a pair that solves the system, this adds equal amounts to both sides. The y-terms are opposites, so they add to 0. Then 6x plus 5x is 11x, and 20 plus 24 is 44.

    (6x+4y)+(5xโˆ’4y)=20+24,ย soย 11x=44(6x + 4y) + (5x - 4y) = 20 + 24 \text{, so } 11x = 44
  4. Divide both sides by 11, which is not 0.

    11x11=4411,ย soย x=4\frac{11x}{11} = \frac{44}{11} \text{, so } x = 4
  5. Substitute 4 for x in the first original equation. Multiply 3 by 4, subtract 12 from both sides, then divide both sides by 2, which is not 0.

    3(4)+2y=10,ย soย 12+2y=10,ย soย 2y=โˆ’2,ย soย y=โˆ’13(4) + 2y = 10 \text{, so } 12 + 2y = 10 \text{, so } 2y = -2 \text{, so } y = -1
  6. Check the pair (4, -1) in both original equations. Both statements are true.

    3(4)+2(โˆ’1)=12โˆ’2=10and5(4)โˆ’4(โˆ’1)=20+4=243(4) + 2(-1) = 12 - 2 = 10 \quad\text{and}\quad 5(4) - 4(-1) = 20 + 4 = 24

Answer

The solution of the system is (4,โˆ’1)(4, -1), so x=4x = 4 and y=โˆ’1y = -1.

Worked example

Multiply both equations, then subtract

Solve the system 2x+3y=52x + 3y = 5 and 3x+5y=93x + 5y = 9 by elimination.

  1. Choose a variable to eliminate. Either one works. Choose x, because its coefficients, 2 and 3, are smaller than the y-coefficients, 3 and 5. Neither 2 nor 3 is a multiple of the other, so multiply both equations. The smallest positive number that is a multiple of both 2 and 3 is 6, so aim for 6x in each equation.

    3โ‹…2x=6xand2โ‹…3x=6x3 \cdot 2x = 6x \quad\text{and}\quad 2 \cdot 3x = 6x
  2. Multiply both sides of the first equation by 3 and both sides of the second equation by 2. Neither multiplier is 0, so each new equation has the same solutions as the equation it came from.

    3(2x+3y)=3(5)ย givesย 6x+9y=15,2(3x+5y)=2(9)ย givesย 6x+10y=183(2x + 3y) = 3(5) \text{ gives } 6x + 9y = 15, \quad 2(3x + 5y) = 2(9) \text{ gives } 6x + 10y = 18
  3. The x-coefficients are now equal, so subtract. Take the first new equation away from the second new equation, subtracting every term. Then 6x minus 6x is 0, 10y minus 9y is y, and 18 minus 15 is 3.

    (6x+10y)โˆ’(6x+9y)=18โˆ’15,ย soย y=3(6x + 10y) - (6x + 9y) = 18 - 15 \text{, so } y = 3
  4. Substitute 3 for y in the first original equation. Multiply 3 by 3, subtract 9 from both sides, then divide both sides by 2, which is not 0.

    2x+3(3)=5,ย soย 2x+9=5,ย soย 2x=โˆ’4,ย soย x=โˆ’22x + 3(3) = 5 \text{, so } 2x + 9 = 5 \text{, so } 2x = -4 \text{, so } x = -2
  5. Check the pair (-2, 3) in both original equations. Both statements are true.

    2(โˆ’2)+3(3)=โˆ’4+9=5and3(โˆ’2)+5(3)=โˆ’6+15=92(-2) + 3(3) = -4 + 9 = 5 \quad\text{and}\quad 3(-2) + 5(3) = -6 + 15 = 9

Answer

The solution of the system is (โˆ’2,3)(-2, 3), so x=โˆ’2x = -2 and y=3y = 3.

Takeaway: Elimination works because doing the same valid operation to both sides of an equation keeps its solutions. You add or subtract equal amounts, or you multiply or divide by the same nonzero number. When you need opposite or equal coefficients, multiply first. Then add or subtract the equations so one variable drops out, solve for the variable that is left, and substitute to find the other. Always check your pair in both original equations.

Next, you will choose between substitution and elimination for a system, find how many solutions a system has, and find and correct errors in a solution.