Unit 2, lesson 16

Systems of Equations by Elimination

How to add multiples of two equations so that one variable cancels, why this keeps the solution set the same, and how a single combination can give an expression like x + y directly.

  • Theory part 31
  • Practice part 32
  • Linear Systems

Theory, part 31

Practice, part 32

Two shopping receipts. On the first, 3 pens and 2 notebooks cost 12 dollars. On the second, 3 pens and 4 notebooks cost 18 dollars. Lay one receipt under the other. The pens are the same, so the second receipt is 2 notebooks and 6 dollars more, and a notebook costs 3 dollars. Back on the first receipt, 2 notebooks cost 6 dollars, which leaves 6 dollars for 3 pens, so a pen costs 2 dollars. Nobody had to solve for anything first. Elimination is that move made systematic, combining whole equations so that one variable drops out.

See also Linear Systems in Two and Three Variables in Precalculus.

Key terms

Linear combination of equations

Definition Given two equations L1=R1L_1 = R_1 and L2=R2L_2 = R_2 and real numbers pp and qq, their linear combination is the equation

pL1+qL2=pR1+qR2.pL_1 + qL_2 = pR_1 + qR_2.

Each equation is multiplied through, left side and right side, and then the results are added. If a pair (x,y)(x, y) satisfies both original equations, it also satisfies every linear combination of them. Taking q=−1q = -1 subtracts the second equation.

In plain words Scale each equation by a number, then add them side by side. Equal things added to equal things stay equal.

Example Take x+2y=5x + 2y = 5 and 3x−y=13x - y = 1 with p=1p = 1 and q=2q = 2. The second equation times 22 is 6x−2y=26x - 2y = 2, with the right side doubled too. Adding gives

7x+0y=7,that isx=1.7x + 0y = 7, \quad \text{that is} \quad x = 1.

Forgetting to double the right side would give 6x−2y=16x - 2y = 1 and then the wrong value x=67x = \frac{6}{7}.

Equivalent system

Definition Two systems are equivalent when they have the same solution set. A system stays equivalent when you

  1. multiply one equation by a nonzero number, or
  2. replace one equation by its sum with a multiple of the other equation.

Both steps can be undone. For step 2, if the new second equation is E2+cE1E_2 + cE_1 and E1E_1 is kept, then subtracting cc times E1E_1 gives back E2E_2. So every solution of the new system solves the old one and the other way around. Keep one equation as it is while you replace the other. Replacing both equations by multiples of the same single equation would lose information.

In plain words Elimination never changes the answer, because each step can be reversed. You just trade the system for an easier one with the same solutions.

Example The systems

x+2y=53x−y=1andx+2y=57x=7\begin{aligned} x + 2y &= 5 \\[0.4em] 3x - y &= 1 \end{aligned} \qquad \text{and} \qquad \begin{aligned} x + 2y &= 5 \\[0.4em] 7x &= 7 \end{aligned}

are equivalent, since the second equation on the right is the first equation plus 22 times the second one on the left. The right system is easy. From 7x=77x = 7 comes x=1x = 1, and then 1+2y=51 + 2y = 5 gives y=2y = 2. Both systems have the single solution (1,2)(1, 2).

Elimination

Definition The elimination method solves a system of two linear equations by forming a linear combination in which the coefficient of one variable is 00. Solve the resulting one-variable equation, then substitute that value into an original equation to find the other variable, and check the pair in both original equations. When the coefficients of one variable are already opposites, simply add the equations. When they are equal, subtract.

In plain words Line up the xx terms, the yy terms and the constants in columns. If one column already cancels, add and you are left with a single unknown.

Example Solve x+y=10x + y = 10 and x−y=4x - y = 4. The yy terms are opposites, so add.

2x=14x=7\begin{aligned} 2x &= 14 \\[0.4em] x &= 7 \end{aligned}

Substituting into x+y=10x + y = 10 gives y=3y = 3. The pair (7,3)(7, 3) checks in both, since 7+3=107 + 3 = 10 and 7−3=47 - 3 = 4.

Multipliers on both equations

Definition If the coefficients of a variable are a1a_1 and a2a_2, both nonzero, multiplying the first equation by a2a_2 and the second by −a1-a_1 makes that variable cancel when you add. Any other pair of multipliers that makes the two coefficients opposites works as well. With integer coefficients a smaller choice is often possible, using the least common multiple of their absolute values.

In plain words Make the two coefficients of one variable equal in size and opposite in sign. Usually that means multiplying each equation by the other one’s coefficient.

Example Solve 3x+2y=103x + 2y = 10 and 5x−3y=235x - 3y = 23. The yy coefficients are 22 and −3-3, so multiply the first equation by 33 and the second by 22.

9x+6y=3010x−6y=46\begin{aligned} 9x + 6y &= 30 \\[0.4em] 10x - 6y &= 46 \end{aligned}

Adding gives 19x=7619x = 76, so x=4x = 4. Then 12+2y=1012 + 2y = 10 gives y=−1y = -1. In the second original equation, 20+3=2320 + 3 = 23, so the solution is (4,−1)(4, -1).

Substitution or elimination

Definition Substitution solves one equation for a variable and replaces that variable in the other equation. Both methods produce equivalent systems, so they always reach the same solution set. Substitution is usually faster when a variable is already isolated or has coefficient 11 or −1-1. Elimination is usually faster when both equations are in the form ax+by=cax + by = c with no coefficient of ±1\pm 1, since isolating a variable there would create fractions.

In plain words Use the method that keeps the numbers whole. An equation that starts with y=y = is asking for substitution.

Example For y=4x−3y = 4x - 3 and 2x+3y=192x + 3y = 19, substitution is natural. The second equation becomes 2x+12x−9=192x + 12x - 9 = 19, so 14x=2814x = 28 and x=2x = 2, which gives y=5y = 5. For 2x+3y=72x + 3y = 7 and 3x+4y=103x + 4y = 10, elimination is easier. Multiplying by 33 and 22 gives 6x+9y=216x + 9y = 21 and 6x+8y=206x + 8y = 20, and subtracting leaves y=1y = 1, so x=2x = 2.

Solution check

Definition A pair (x,y)(x, y) is a solution of the system exactly when it makes each original equation true. To check, substitute the pair into both original equations, not into the scaled versions. A scaled equation copied with a mistake can agree with a wrong answer, while the originals cannot.

In plain words Plug your answer back into both equations you were given. If either one fails, something went wrong.

Example Suppose an arithmetic slip while solving 3x+2y=103x + 2y = 10 and 5x−3y=235x - 3y = 23 leads to the candidate (2,2)(2, 2). The first equation passes, since 6+4=106 + 4 = 10. The second fails, since 10−6=4≠2310 - 6 = 4 \ne 23. Checking both is what exposes the error.

Target linear combination

Definition Some questions ask for the value of an expression such as x+yx + y or 4x+6y4x + 6y rather than for xx and yy. If numbers pp and qq make the left side of pE1+qE2pE_1 + qE_2 equal to the target expression, then the right side of that combination is its value. You can find pp and qq by matching coefficients, though often adding or subtracting the equations is enough.

In plain words Look at what the question wants before solving. Adding or subtracting the equations often produces it in one step.

Example If 3x+5y=223x + 5y = 22 and x+3y=10x + 3y = 10, what is x+yx + y? Subtracting the second equation from the first gives

2x+2y=12,2x + 2y = 12,

so x+y=6x + y = 6. Solving fully confirms it, since the solution is (4,2)(4, 2).

Check yourself

  1. Which ordered pair (x,y)(x, y) is the solution of the system 4x+3y=54x + 3y = 5 and 6x−2y=276x - 2y = 27? (A) (72,−3)\left(\frac{7}{2}, -3\right) (B) (−3,72)\left(-3, \frac{7}{2}\right) (C) (2,−1)(2, -1) (D) (4,−32)\left(4, -\frac{3}{2}\right)
Show the answer

The answer is (A). Multiply the first equation by 22 and the second by 33.

8x+6y=1018x−6y=81\begin{aligned} 8x + 6y &= 10 \\[0.4em] 18x - 6y &= 81 \end{aligned}

Adding gives 26x=9126x = 91, so x=72x = \frac{7}{2}, and then 14+3y=514 + 3y = 5 gives y=−3y = -3. Choice (B) swaps the coordinates. Choice (C) satisfies only the first equation, and choice (D) satisfies only the second.

  1. If 5x+2y=315x + 2y = 31 and 3x+4y=273x + 4y = 27, what is the value of x−yx - y?
Show the answer

The answer is 22. Subtracting the second equation from the first gives 2x−2y=42x - 2y = 4, so x−y=2x - y = 2. The full solution (5,3)(5, 3) confirms it.

  1. Which system has the same solution set as the system x+2y=5x + 2y = 5 and 3x−y=13x - y = 1? (A) x+2y=5x + 2y = 5 and 7x=77x = 7 (B) x+2y=5x + 2y = 5 and 6x−2y=16x - 2y = 1 (C) x+2y=5x + 2y = 5 and 7x=117x = 11 (D) 3x−y=13x - y = 1 and 7x=67x = 6
Show the answer

The answer is (A). Adding 22 times the second equation to the first gives 7x=77x = 7, and keeping x+2y=5x + 2y = 5 makes the new system equivalent. Both systems have the solution (1,2)(1, 2). Choice (B) multiplies only the left side of 3x−y=13x - y = 1 by 22. Choices (C) and (D) come from adding with a wrong right side. Choice (C) doubles the 55 instead of the 11, since 10+1=1110 + 1 = 11, and choice (D) doubles neither, since 5+1=65 + 1 = 6. They give x=117x = \frac{11}{7} and x=67x = \frac{6}{7} instead of x=1x = 1.

How this lesson connects