Systems of linear equations · Lesson 1

Substitution and elimination

A system is two equations that share the same unknowns. A solution (x,y)(x, y) has to work in both equations. There are two standard ways to find it, and both turn two equations with two unknowns into one equation with one unknown.

Substitution works best when one equation already gives a variable by itself, such as y=x−2y = x - 2. Replace that variable in the other equation with its expression, in parentheses: 3x+(x−2)=183x + (x - 2) = 18. Solve for xx, then put xx back into the simpler equation to get yy.

Elimination works best when both equations look like ax+by=cax + by = c. Line them up and make one variable's coefficients match. If the coefficients are opposites, such as 4y4y and −4y-4y, add the equations and that variable cancels. If they are the same, such as 2x2x and 2x2x, subtract one equation from the other. When they don't match yet, multiply one equation first, and multiply every term, including the number on the right side.

Subtracting is where most sign errors happen. Subtract every term: 3y−(−y)3y - (-y) is 3y+y=4y3y + y = 4y, not 2y2y.

Some questions ask for x+yx + y or x−yx - y instead of xx or yy. Look at the coefficients first. In 5x+2y=245x + 2y = 24 and 2x+5y=182x + 5y = 18, adding gives 7x+7y=427x + 7y = 42, so x+y=6x + y = 6 without finding either variable. Subtracting the second from the first gives 3x−3y=63x - 3y = 6, so x−y=2x - y = 2.

Finish by checking: substitute your pair into both original equations, then reread the question to make sure you are giving the value it asks for.

Worked example Easy

y=x−2y = x - 2

3x+y=183x + y = 18

If (x,y)(x, y) is the solution to the given system of equations, what is the value of yy?

  1. 22
  2. 33Answer
  3. 55
  4. 88

How to solve it

  1. The first equation gives yy by itself, so substitute x−2x - 2 for yy in the second equation: 3x+(x−2)=183x + (x - 2) = 18.
  2. Combine like terms: 4x−2=184x - 2 = 18. Add 2 to both sides: 4x=204x = 20, so x=5x = 5.
  3. Put x=5x = 5 into the first equation: y=5−2=3y = 5 - 2 = 3.
  4. Check both equations: 3=5−23 = 5 - 2 and 3(5)+3=183(5) + 3 = 18. The question asks for yy, which is 3.

Why each choice is right or wrong

  • A. Incorrect. This comes from subtracting 2 from 18 instead of adding it: 4x=164x = 16, so x=4x = 4 and y=4−2=2y = 4 - 2 = 2. To undo −2-2, add 2 to both sides.
  • B. Correct. Substituting gives 4x−2=184x - 2 = 18, so x=5x = 5 and y=5−2=3y = 5 - 2 = 3. The pair (5,3)(5, 3) works in both equations.
  • C. Incorrect. 5 is the value of xx. The question asks for yy, which is 5−2=35 - 2 = 3.
  • D. Incorrect. 8 is the value of x+yx + y. The question asks for yy alone.

Worked example Medium

3x+2y=73x + 2y = 7

x−4y=21x - 4y = 21

If (x,y)(x, y) is the solution to the given system of equations, what is the value of yy?

  1. −4-4Answer
  2. −52-\frac{5}{2}
  3. 11
  4. 55

How to solve it

  1. The yy-coefficients are 22 and −4-4. Multiply every term of the first equation by 2 so they become opposites: 6x+4y=146x + 4y = 14.
  2. Add this to the second equation: (6x+x)+(4y−4y)=14+21(6x + x) + (4y - 4y) = 14 + 21, so 7x=357x = 35 and x=5x = 5.
  3. Put x=5x = 5 into the first original equation: 15+2y=715 + 2y = 7, so 2y=−82y = -8 and y=−4y = -4.
  4. Check the second equation: 5−4(−4)=5+16=215 - 4(-4) = 5 + 16 = 21. The question asks for yy, which is −4-4.

Why each choice is right or wrong

  • A. Correct. Doubling the first equation gives 6x+4y=146x + 4y = 14. Adding the second equation gives 7x=357x = 35, so x=5x = 5, and then 15+2y=715 + 2y = 7 gives y=−4y = -4.
  • B. Incorrect. This comes from multiplying only the left side of the first equation by 2, which gives 6x+4y=76x + 4y = 7. Adding the second equation then gives 7x=287x = 28, so x=4x = 4, and 12+2y=712 + 2y = 7 gives y=−52y = -\frac{5}{2}. The 7 on the right must be doubled too.
  • C. Incorrect. 1 is the value of x+yx + y, which is 5+(−4)5 + (-4). The question asks for yy alone.
  • D. Incorrect. 5 is the value of xx. The question asks for yy, which is −4-4.

Trap Sign errors when you subtract equations

When you subtract one equation from another, the minus sign applies to every term of the second equation. In x+3y=13x + 3y = 13 minus x−y=1x - y = 1, the yy-terms give 3y−(−y)=4y3y - (-y) = 4y. Writing 2y2y instead is a common elimination slip, and the value it produces is often among the choices. If subtracting feels risky, multiply one equation by −1-1 and add instead.

Trap Answering for the wrong quantity

A system has two answers, xx and yy, and the question wants one of them or a combination. The value of the other variable is often a choice, and so is x+yx + y when the question asks for x−yx - y. Before you pick, reread the last line of the question. For x−yx - y, subtract in that order: y−xy - x has the same size and the opposite sign.

Desmos When Desmos is faster

Type each equation on its own line exactly as given, such as 3x+2y=73x + 2y = 7 and x−4y=21x - 4y = 21. Desmos graphs equations in this form without your solving for yy first.

Click the point where the two lines cross. Desmos shows its coordinates, here (5,−4)(5, -4). That pair is the solution. Read the coordinate the question asks for, and for x+yx + y or x−yx - y do that arithmetic yourself.

If the point is not on the screen, zoom out until you see where the lines cross. If a coordinate is a long decimal, Desmos shows it rounded, so compare it with the choices as decimals or finish by hand for the exact fraction.

When one equation is already y=…y = \dots and the numbers are small, substitution by hand takes about as long as typing. Desmos pays off most when both equations need multiplying before they can be combined.