There are three standard ways of solving a pair of linear equations by algebra: substitution, elimination and cross multiplication. They always give the same answer, so you can use whichever suits the pair in front of you, and use a second method to check. This lesson teaches the first, the substitution method. Its idea is simple: use one equation to say what x is in terms of y, then put that into the other equation, which leaves an equation in y alone.
The method
- Number the equations (1) and (2).
- From one equation, write one variable in terms of the other, for example x=… in terms of y.
- Substitute that expression in the other equation. It now has only one variable. Solve it.
- Put the value you found back into the expression from step 2 to get the other variable.
- Write the answer as an ordered pair and check it in both original equations.
Before you start, it is worth checking the ratios a2a1 and b2b1, as in the last lesson, to make sure there is a unique solution to find.
Example 1
Solve 3x+2y=5 and 2x−3y=7.
3x+2y2x−3y=5(1)=7(2)
Here a2a1=23 and b2b1=−32. Since a2a1=b2b1, there is a unique solution.
From (1), write x in terms of y:
3xx=5−2y=35−2y
Substitute this x in (2):
2(35−2y)−3y32(5−2y)−9y10−4y−9y10−13y10−21−11y=7=7=21=21=13y=13y=−1311
In the second line the 3y was written as 39y so that both terms share the denominator 3. In the third line both sides were multiplied by 3.
Now put y=−1311 back into 3x=5−2y:
3x3x3xx=5−2(−1311)=1365+22=1387=1329
In the last step, dividing by 3 cancels 87 down to 29.
∴(x,y)=(1329,−1311)
Check in (2): 2×1329−3×(−1311)=1358+33=1391=7.
Choosing which variable to make the subject
In Example 1 every coefficient was 2 or more, so fractions could not be avoided. Look for a variable whose coefficient is 1 (or −1). Making that variable the subject avoids fractions altogether and keeps the working short.
Example 2
Solve 7x−5y=2 and x+2y=3.
7x−5yx+2y=2(1)=3(2)
In (2) the coefficient of x is 1, so take x from (2):
x=3−2y
Substitute in (1):
7(3−2y)−5y21−14y−5y21−19y21−219y=2=2=2=19y=19y=1
Put y=1 into x=3−2y:
x=3−2(1)=3−2=1
∴(x,y)=(1,1)
Check: 7−5=2 and 1+2=3.
Example 3
Solve 4x+y=11 and 3x−2y=0.
4x+y3x−2y=11(1)=0(2)
The coefficient of y in (1) is 1, so take y from (1): y=11−4x.
Substitute in (2):
3x−2(11−4x)3x−22+8x11xx=0=0=22=2
Then y=11−4×2=3.
∴(x,y)=(2,3)
Check: 8+3=11 and 6−6=0.
Example 4: a word problem
A pen and a pencil together cost ₹15. The pen costs ₹9 more than the pencil. Find the price of each.
Let the pen cost x rupees and the pencil y rupees.
x+yx−y=15(1)=9(2)
From (2), x=9+y. Substitute in (1):
9+y+y2yy=15=6=3
Then x=9+3=12. The pen costs ₹12 and the pencil ₹3. Check: 12+3=15 and 12−3=9.
Common mistakes
- Substituting back into the same equation you used to make the subject. That only gives 0=0 or a true statement like 3=3. Always substitute into the other equation.
- Forgetting the bracket when substituting. In Example 2, 7(3−2y) needs the bracket so that both 3 and −2y are multiplied by 7.
- Stopping after finding one variable. A pair has two unknowns, so the answer is an ordered pair.
Practice
Solve each pair by the substitution method.
- x+y=9 and x−y=3
- y=2x+1 and 3x+y=16
- x+3y=10 and 2x−y=6
- 3x+2y=12 and x−y=−1
- 5x−y=13 and 2x+3y=12
- 4x−3y=−2 and x+2y=5
- 2x+3y=4 and 3x−y=17
- 2x+5y=1 and x−2y=3
- Two numbers add up to 40 and differ by 12. Find them.
Answers
Show answers
- x=9−y, so 9−2y=3 and y=3, x=6. Answer (6,3).
- 3x+2x+1=16, so x=3 and y=7. Answer (3,7).
- x=10−3y, so 20−6y−y=6, y=2 and x=4. Answer (4,2).
- x=y−1, so 3y−3+2y=12, y=3 and x=2. Answer (2,3).
- y=5x−13, so 2x+15x−39=12, 17x=51, x=3 and y=2. Answer (3,2).
- x=5−2y, so 20−8y−3y=−2, 11y=22, y=2 and x=1. Answer (1,2).
- y=3x−17, so 2x+9x−51=4, 11x=55, x=5 and y=−2. Answer (5,−2).
- x=3+2y, so 6+4y+5y=1, 9y=−5, y=−95 and x=3−910=917. Answer (917,−95).
- x+y=40 and x−y=12. From the second, x=12+y, so 12+2y=40, y=14 and x=26. The numbers are 26 and 14.