Skip to the page
Home Campus
Start free

Solving Simultaneous Equations by Substitution

Solve a pair of linear equations exactly by making one variable the subject of one equation and substituting it into the other, and check the answer in both equations.

Before you start

  • A graph gives the solution of simultaneous equations only as an estimate when the lines meet between grid lines (lesson 2.5). Algebra gives it exactly.
  • Expanding with a negative number in front: −2(2x−3)=−4x+6.-2(2x - 3) = -4x + 6\text{.} Every term in the bracket is multiplied by −2-2.
  • Solving a linear equation: 3x−2(2x−3)=13x - 2(2x - 3) = 1 gives 3x−4x+6=13x - 4x + 6 = 1, so −x=−5-x = -5 and x=5x = 5.

The Substitution Method

Two equations in xx and yy are hard to solve at once. If one equation tells you what yy is in terms of xx, you can put that expression in place of yy in the other equation. What is left has only xx in it, and you know how to solve that.

Number the equations (1) and (2) so that each step can say which equation it uses.

Solving by substitution

(1) Make one variable the subject of one equation. Choose a variable whose coefficient is 11 or −1-1 if there is one.

(2) Substitute that expression, in brackets, into the other equation.

(3) Solve the equation in one unknown.

(4) Substitute the value back to find the other unknown.

(5) Check both values in both original equations.

Example 1: One equation already gives y

Solve the simultaneous equations y=2x+1y = 2x + 1 and 3x+y=113x + y = 11.

Solution

y=2x+1y = 2x + 1 \quad (1)

3x+y=113x + y = 11 \quad (2)

Equation (1) already has yy as the subject. Substitute 2x+12x + 1 for yy in (2):

3x+(2x+1)=113x + (2x + 1) = 11

5x+1=115x + 1 = 11

5x=105x = 10, so x=2x = 2.

Substitute x=2x = 2 into (1): y=2(2)+1=5y = 2(2) + 1 = 5.

Check in (1): 2(2)+1=52(2) + 1 = 5, true. Check in (2): 3(2)+5=113(2) + 5 = 11, true.

On a graph, the lines y=2x+1y = 2x + 1 and 3x+y=113x + y = 11 meet at (2,5)(2, 5), the same answer:

The lines y = 2x + 1, from (0, 1) to (4, 9), and 3x + y = 11, from (0, 11) to (4, −1), meeting at (2, 5)xy−112345−2−11234567891011Oy = 2x + 13x + y = 11(2, 5)

x=2x = 2, y=5y = 5

Making a Variable the Subject First

Usually neither equation gives xx or yy on its own. Look for a variable whose coefficient is 11 or −1-1: making it the subject needs no fractions.

Example 2: A coefficient of 1

Solve x+2y=7x + 2y = 7 and 3x−y=73x - y = 7.

Solution

x+2y=7x + 2y = 7 \quad (1)

3x−y=73x - y = 7 \quad (2)

In (1), xx has coefficient 11. Subtract 2y2y from both sides: x=7−2yx = 7 - 2y \quad (3)

Substitute (3) into (2): 3(7−2y)−y=73(7 - 2y) - y = 7

21−6y−y=721 - 6y - y = 7

21−7y=721 - 7y = 7

−7y=−14-7y = -14, so y=2y = 2.

Substitute y=2y = 2 into (3): x=7−2(2)=3x = 7 - 2(2) = 3.

Check in (1): 3+2(2)=73 + 2(2) = 7, true. Check in (2): 3(3)−2=73(3) - 2 = 7, true.

You could instead make yy the subject of (2): y=3x−7y = 3x - 7. Then x+2(3x−7)=7x + 2(3x - 7) = 7, 7x−14=77x - 14 = 7, x=3x = 3, y=2y = 2: the same answer.

x=3x = 3, y=2y = 2

Example 3: A coefficient of −1, and a minus sign in front of the bracket

Solve 2x−y=32x - y = 3 and 3x−2y=13x - 2y = 1.

Solution

2x−y=32x - y = 3 \quad (1)

3x−2y=13x - 2y = 1 \quad (2)

In (1), yy has coefficient −1-1. Add yy to both sides and subtract 33: y=2x−3y = 2x - 3 \quad (3)

Substitute (3) into (2), keeping the brackets: 3x−2(2x−3)=13x - 2(2x - 3) = 1

The −2-2 multiplies both terms in the bracket: −2×2x=−4x-2 \times 2x = -4x and −2×(−3)=+6-2 \times (-3) = +6.

3x−4x+6=13x - 4x + 6 = 1

−x+6=1-x + 6 = 1

−x=−5-x = -5, so x=5x = 5.

Substitute x=5x = 5 into (3): y=2(5)−3=7y = 2(5) - 3 = 7.

Check in (1): 2(5)−7=32(5) - 7 = 3, true. Check in (2): 3(5)−2(7)=15−14=1,3(5) - 2(7) = 15 - 14 = 1\text{,} true.

x=5x = 5, y=7y = 7

When Both Equations Give y

If both equations have yy as the subject, the two expressions for yy must be equal at the solution. Set them equal: this is the same as the meeting point of two graphs in lesson 2.5.

Example 4: Setting the two expressions equal

Solve y=3x−4y = 3x - 4 and y=6−2xy = 6 - 2x.

Solution

y=3x−4y = 3x - 4 \quad (1)

y=6−2xy = 6 - 2x \quad (2)

Both equal yy, so 3x−4=6−2x3x - 4 = 6 - 2x.

Add 2x2x to both sides: 5x−4=65x - 4 = 6. Add 44: 5x=105x = 10, so x=2x = 2.

Substitute into (1): y=3(2)−4=2y = 3(2) - 4 = 2.

Check in (1): 3(2)−4=23(2) - 4 = 2, true. Check in (2): 6−2(2)=26 - 2(2) = 2, true.

x=2x = 2, y=2y = 2

Negative and Fractional Answers

The method does not change when the answers are negative or fractions. A graph can only estimate a value that falls between grid lines, such as 13\frac{1}{3}; algebra gives every value exactly.

Example 5: x = −1 and y = ½

Solve 2x+4y=02x + 4y = 0 and 3x−2y=−43x - 2y = -4.

Solution

2x+4y=02x + 4y = 0 \quad (1)

3x−2y=−43x - 2y = -4 \quad (2)

From (1): 2x=−4y2x = -4y, so x=−2yx = -2y \quad (3)

Substitute (3) into (2): 3(−2y)−2y=−43(-2y) - 2y = -4

−6y−2y=−4-6y - 2y = -4

−8y=−4-8y = -4, so y=−4−8=12.y = \frac{-4}{-8} = \frac{1}{2}\text{.}

Substitute into (3): x=−2×12=−1.x = -2 \times \frac{1}{2} = -1\text{.}

Check in (1): 2(−1)+4(12)=−2+2=0,2(-1) + 4(\frac{1}{2}) = -2 + 2 = 0\text{,} true. Check in (2): 3(−1)−2(12)=−3−1=−4,3(-1) - 2(\frac{1}{2}) = -3 - 1 = -4\text{,} true.

x=−1x = -1, y=12y = \frac{1}{2}

Why Check in Both Original Equations?

A check must use the original equations

The value found in step (3) always fits the equation you substituted into, and step (4) always fits the rearranged equation, even if the rearranging was wrong. Only the equation you rearranged, in the form it was first given, can catch a mistake made while rearranging. So check in both equations as they were given.

Example 6: A check that catches a mistake

Solve x+3y=10x + 3y = 10 and 2x−y=62x - y = 6. Then see what happens if yy is made the subject of the second equation wrongly, as y=6−2xy = 6 - 2x.

Solution

x+3y=10x + 3y = 10 \quad (1)

2x−y=62x - y = 6 \quad (2)

Correct working. From (2), add yy and subtract 66: y=2x−6y = 2x - 6. Substitute into (1): x+3(2x−6)=10x + 3(2x - 6) = 10, so 7x−18=107x - 18 = 10, 7x=287x = 28, x=4x = 4. Then y=2(4)−6=2y = 2(4) - 6 = 2.

Check in (1): 4+3(2)=104 + 3(2) = 10, true. Check in (2): 2(4)−2=62(4) - 2 = 6, true.

With the mistake. y=6−2xy = 6 - 2x into (1): x+3(6−2x)=10x + 3(6 - 2x) = 10, so x+18−6x=10x + 18 - 6x = 10, −5x=−8-5x = -8, x=1.6x = 1.6. Then y=6−2(1.6)=2.8.y = 6 - 2(1.6) = 2.8\text{.}

This pair fits the wrong equation y=6−2xy = 6 - 2x (since 6−3.2=2.86 - 3.2 = 2.8), and it fits (1) (since 1.6+8.4=101.6 + 8.4 = 10). But in (2), 2(1.6)−2.8=0.42(1.6) - 2.8 = 0.4, not 66. Only the check in (2) shows that something is wrong.

x=4x = 4, y=2y = 2. The wrong pair (1.6,2.8)(1.6, 2.8) is caught only by checking it in the original equation (2).

When to Use Substitution

Substitution is a good choice when one equation already gives xx or yy, or when a variable has coefficient 11 or −1-1, or becomes so after dividing every term by the same number.

When every coefficient is 22 or more and no division helps, substitution leads to fractions. It still works, but the elimination method of the next lesson is usually easier.

Example 7: Choosing well

(a) Solve 5x+3y=75x + 3y = 7 and 4x−2y=104x - 2y = 10. (b) Solve 5x+3y=75x + 3y = 7 and 3x+2y=53x + 2y = 5 by substitution, and say why it is awkward.

Solution

(a) 5x+3y=75x + 3y = 7 \quad (1), \quad 4x−2y=104x - 2y = 10 \quad (2)

Divide every term of (2) by 22: 2x−y=52x - y = 5, so y=2x−5y = 2x - 5 \quad (3)

Substitute into (1): 5x+3(2x−5)=75x + 3(2x - 5) = 7, so 11x−15=711x - 15 = 7, 11x=2211x = 22, x=2x = 2. Then y=2(2)−5=−1y = 2(2) - 5 = -1.

Check in (1): 10−3=710 - 3 = 7, true. Check in (2): 8−2(−1)=8+2=10,8 - 2(-1) = 8 + 2 = 10\text{,} true.

(b) 5x+3y=75x + 3y = 7 \quad (1), \quad 3x+2y=53x + 2y = 5 \quad (2)

No coefficient is 11 or −1-1, and no division helps. From (1): y=7−5x3y = \frac{7 - 5x}{3}. Substitute into (2): 3x+2(7−5x)3=5.3x + \frac{2(7 - 5x)}{3} = 5\text{.}

Multiply every term by 33: 9x+2(7−5x)=159x + 2(7 - 5x) = 15, so 9x+14−10x=159x + 14 - 10x = 15, −x=1-x = 1, x=−1x = -1. Then y=7−5(−1)3=123=4.y = \frac{7 - 5(-1)}{3} = \frac{12}{3} = 4\text{.}

Check in (1): −5+12=7-5 + 12 = 7, true. Check in (2): −3+8=5-3 + 8 = 5, true.

It works, but it needed a fraction and an extra step to clear it. Lesson 2.7 solves pairs like this more easily.

(a) x=2x = 2, y=−1y = -1 (b) x=−1x = -1, y=4y = 4; substitution was awkward because no variable had coefficient 11 or −1-1.

Common Mistakes

  • Leaving out the brackets. 3x−2(2x−3)3x - 2(2x - 3), not 3x−2×2x−33x - 2 \times 2x - 3. Without brackets the −2-2 never reaches the −3-3.
  • Losing a sign when making the subject. From 2x−y=62x - y = 6, y=2x−6y = 2x - 6, not 6−2x6 - 2x.
  • Substituting into the same equation you rearranged. That only gives a statement that is always true, such as 7=77 = 7, and no value. Substitute into the other equation. (In lesson 2.9, a statement like 0=00 = 0 that comes from the two different equations means something else.)
  • Stopping after one value. The solution is a pair: find yy as well as xx.
  • Checking only in the rearranged equation, which always fits (Example 6).

Practice Questions

Solve each pair by substitution on paper before you open its solution, and check in both equations. The questions get harder as you go.

Question 1

Solve (a) y=x+4y = x + 4 and 2x+y=132x + y = 13, (b) y=3xy = 3x and 2x+y=102x + y = 10.

ShowHide solution

(a) 2x+(x+4)=132x + (x + 4) = 13, so 3x+4=133x + 4 = 13, 3x=93x = 9, x=3x = 3. Then y=3+4=7y = 3 + 4 = 7. Check: 7=3+47 = 3 + 4; 6+7=136 + 7 = 13.

(b) 2x+3x=102x + 3x = 10, so 5x=105x = 10, x=2x = 2. Then y=3(2)=6y = 3(2) = 6. Check: 6=3×26 = 3 \times 2; 4+6=104 + 6 = 10.

(a) x=3x = 3, y=7y = 7 (b) x=2x = 2, y=6y = 6

Question 2

Solve x=y+3x = y + 3 and 2x+3y=162x + 3y = 16.

ShowHide solution

Substitute y+3y + 3 for xx: 2(y+3)+3y=162(y + 3) + 3y = 16, so 2y+6+3y=162y + 6 + 3y = 16, 5y=105y = 10, y=2y = 2.

Then x=2+3=5x = 2 + 3 = 5.

Check: 5=2+35 = 2 + 3; 2(5)+3(2)=10+6=16.2(5) + 3(2) = 10 + 6 = 16\text{.}

x=5x = 5, y=2y = 2

Question 3

Solve x+y=7x + y = 7 and 3x+2y=183x + 2y = 18.

ShowHide solution

From the first: x=7−yx = 7 - y. Substitute: 3(7−y)+2y=183(7 - y) + 2y = 18, so 21−3y+2y=1821 - 3y + 2y = 18, 21−y=1821 - y = 18, y=3y = 3.

Then x=7−3=4x = 7 - 3 = 4.

Check: 4+3=74 + 3 = 7; 12+6=1812 + 6 = 18.

x=4x = 4, y=3y = 3

Question 4

Solve 4x−y=144x - y = 14 and 3x+2y=53x + 2y = 5.

ShowHide solution

From the first: y=4x−14y = 4x - 14. Substitute: 3x+2(4x−14)=53x + 2(4x - 14) = 5, so 11x−28=511x - 28 = 5, 11x=3311x = 33, x=3x = 3.

Then y=12−14=−2y = 12 - 14 = -2.

Check: 12−(−2)=1412 - (-2) = 14; 9+2(−2)=59 + 2(-2) = 5.

x=3x = 3, y=−2y = -2

Question 5

Solve 3x−y=53x - y = 5 and 5x−3y=35x - 3y = 3.

ShowHide solution

From the first: y=3x−5y = 3x - 5. Substitute: 5x−3(3x−5)=35x - 3(3x - 5) = 3.

The −3-3 multiplies both terms: 5x−9x+15=35x - 9x + 15 = 3, so −4x=−12-4x = -12, x=3x = 3.

Then y=9−5=4y = 9 - 5 = 4.

Check: 9−4=59 - 4 = 5; 15−12=315 - 12 = 3.

x=3x = 3, y=4y = 4

Question 6

Solve y=4x−3y = 4x - 3 and y=x+6y = x + 6.

ShowHide solution

Set the two expressions for yy equal: 4x−3=x+64x - 3 = x + 6, so 3x=93x = 9, x=3x = 3.

Then y=3+6=9y = 3 + 6 = 9.

Check: 4(3)−3=94(3) - 3 = 9; 3+6=93 + 6 = 9.

x=3x = 3, y=9y = 9

Question 7

Solve x+2y=1x + 2y = 1 and 4x−2y=−114x - 2y = -11.

ShowHide solution

From the first: x=1−2yx = 1 - 2y. Substitute: 4(1−2y)−2y=−11,4(1 - 2y) - 2y = -11\text{,} so 4−8y−2y=−114 - 8y - 2y = -11, −10y=−15-10y = -15, y=1.5y = 1.5.

Then x=1−2(1.5)=−2.x = 1 - 2(1.5) = -2\text{.}

Check: −2+3=1-2 + 3 = 1; 4(−2)−2(1.5)=−8−3=−11.4(-2) - 2(1.5) = -8 - 3 = -11\text{.}

x=−2x = -2, y=112y = 1\frac{1}{2}

Question 8

Solve x−2y=−6x - 2y = -6 and 3x+y=33x + y = 3.

ShowHide solution

From the first: x=2y−6x = 2y - 6. Substitute: 3(2y−6)+y=33(2y - 6) + y = 3, so 7y−18=37y - 18 = 3, 7y=217y = 21, y=3y = 3.

Then x=2(3)−6=0x = 2(3) - 6 = 0.

Check: 0−6=−60 - 6 = -6; 0+3=30 + 3 = 3.

x=0x = 0, y=3y = 3

Question 9

Wei Jie solved x+2y=8x + 2y = 8 and 3x−y=33x - y = 3. He wrote y=3−3xy = 3 - 3x from the second equation and got x=−0.4x = -0.4, y=4.2y = 4.2. He checked in x+2y=8x + 2y = 8 and it worked. Find his mistake and solve the equations correctly.

ShowHide solution

His check: −0.4+2(4.2)=−0.4+8.4=8.-0.4 + 2(4.2) = -0.4 + 8.4 = 8\text{.} It fits, because he substituted into that equation. In 3x−y=33x - y = 3: 3(−0.4)−4.2=−1.2−4.2=−5.4,3(-0.4) - 4.2 = -1.2 - 4.2 = -5.4\text{,} not 33.

His mistake: from 3x−y=33x - y = 3, adding yy and subtracting 33 gives y=3x−3y = 3x - 3, not 3−3x3 - 3x.

Correctly: x+2(3x−3)=8x + 2(3x - 3) = 8, so 7x−6=87x - 6 = 8, 7x=147x = 14, x=2x = 2. Then y=6−3=3y = 6 - 3 = 3.

Check: 2+6=82 + 6 = 8; 6−3=36 - 3 = 3.

He should have written y=3x−3y = 3x - 3. The solution is x=2x = 2, y=3y = 3.

Question 10

Solve 6x+2y=86x + 2y = 8 and 2x−3y=102x - 3y = 10.

ShowHide solution

Divide every term of the first by 22: 3x+y=43x + y = 4, so y=4−3xy = 4 - 3x.

Substitute into the second: 2x−3(4−3x)=102x - 3(4 - 3x) = 10, so 2x−12+9x=102x - 12 + 9x = 10, 11x=2211x = 22, x=2x = 2.

Then y=4−6=−2y = 4 - 6 = -2.

Check: 12+2(−2)=812 + 2(-2) = 8; 4−3(−2)=4+6=10.4 - 3(-2) = 4 + 6 = 10\text{.}

x=2x = 2, y=−2y = -2

Question 11

The difference between two numbers is 1414. Three times the smaller number is 22 more than the larger. Find the two numbers.

ShowHide solution

Let the larger number be xx and the smaller yy.

x−y=14x - y = 14 \quad (1), \quad 3y=x+23y = x + 2 \quad (2)

From (1), x=y+14x = y + 14 \quad (3).

Substitute (3) into (2): 3y=y+14+23y = y + 14 + 2, so 3y=y+163y = y + 16, 2y=162y = 16, y=8y = 8. Then from (3), x=8+14=22x = 8 + 14 = 22.

Check: 22−8=1422 - 8 = 14; three times 88 is 2424, and 22+2=2422 + 2 = 24.

The numbers are 2222 and 88.

Question 12

A pen costs $1.201.20 more than a pencil. Three pens and two pencils cost $8.608.60. Find the cost of each.

ShowHide solution

Let a pen cost $xx and a pencil $yy.

x=y+1.2x = y + 1.2 \quad (1), \quad 3x+2y=8.63x + 2y = 8.6 \quad (2)

Substitute (1) into (2): 3(y+1.2)+2y=8.6,3(y + 1.2) + 2y = 8.6\text{,} so 3y+3.6+2y=8.63y + 3.6 + 2y = 8.6, 5y=55y = 5, y=1y = 1. Then x=2.2x = 2.2.

Check: 2.202.20 is 1.201.20 more than 11; 3(2.2)+2(1)=6.6+2=8.6.3(2.2) + 2(1) = 6.6 + 2 = 8.6\text{.}

A pen costs $2.202.20 and a pencil costs $11.

Key Points

  • Substitution: make one variable the subject of one equation, substitute it in brackets into the other, solve, then find the other value.
  • Choose a variable with coefficient 11 or −1-1 (after dividing, if that helps) to avoid fractions.
  • Keep the brackets: a minus sign in front multiplies every term inside.
  • If both equations give yy, set the two expressions equal.
  • Answers may be negative, zero or fractions; algebra gives them exactly.
  • Check in both original equations: the rearranged one always fits, so it cannot catch a mistake.
  • When no coefficient is 11 or −1-1, substitution brings fractions; elimination (lesson 2.7) is usually easier.

‹ 2.5 Solving Simultaneous Equations by Graphs 2.7 Solving Simultaneous Equations by Elimination ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.