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.
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 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 and are true. Add the left sides together and add the right sides together: . Each side equals , so the new statement is true too. Notice that and add to . The drops out and leaves .
The same idea works when the equations contain variables. Take the system and . In every system in this lesson, and stand for real numbers.
Suppose a pair makes both equations true. Then and are the same number, because the second equation says so. So you can add to the left side of the first equation and 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 -terms. A coefficient is the number that multiplies a variable. Since means and means , the coefficients of are and . These are opposites: two numbers that add to . So the -terms add to , which equals , and drops out. Stack the equations so matching terms line up, then add each column.
Only is left, in the equation . Divide both sides by , which is allowed because is not , to get . To find , substitute for in either original equation. Using the first one: , so . Subtract from both sides to get .
Now check the pair in both original equations: and . Both are true, so the solution is . 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 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.
Worked example
Equal coefficients: subtract the equations
Solve the system and by elimination.
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.
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.
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.
Divide both sides by 4. This is a valid step because 4 is not 0.
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.
Check the pair (5, 2) in both original equations. Both statements are true.
Answer
The solution of the system is , so and .
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 ) 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 , you could divide by it to undo the step, so no solutions are gained or lost. (Multiplying both sides by would give for every pair, which tells you nothing.)
For example, multiply both sides of by . The left side becomes . The distributive property says to multiply each term inside the parentheses by , so this equals for all real numbers and . The right side becomes . The new equation is .
The table tests four pairs in both equations. The value of is always times the value of , so each equation is true exactly when the other is.
| Pair (x, y) | Value of x + 2y | Is x + 2y = 7 true? | Value of 3x + 6y | Is 3x + 6y = 21 true? |
|---|---|---|---|---|
Yes | Yes | |||
Yes | Yes | |||
Yes | Yes | |||
No | No |
Worked example
Multiply one equation, then add
Solve the system and by elimination.
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.
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.
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.
Divide both sides by 11, which is not 0.
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.
Check the pair (4, -1) in both original equations. Both statements are true.
Answer
The solution of the system is , so and .
Worked example
Multiply both equations, then subtract
Solve the system and by elimination.
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.
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.
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.
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.
Check the pair (-2, 3) in both original equations. Both statements are true.
Answer
The solution of the system is , so and .
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.