Skip to content
Family Table Math
Auto

Solving Linear Systems by Substitution

Graphing shows where two lines cross, but it can only estimate an answer like (87,117)\left(\tfrac{8}{7}, \tfrac{11}{7}\right). Substitution finds the exact solution with algebra. The idea is to use one equation to write one variable in terms of the other, so that the second equation has only one variable left, which you already know how to solve.

  1. Isolate one variable in one of the equations (for example, get y=…y = \ldots or x=…x = \ldots).
  2. Substitute that expression into the other equation. Use brackets!
  3. Solve the new equation, which has only one variable.
  4. Back-substitute that value into the isolated equation from step 1 to find the other variable.
  5. Check the ordered pair in both original equations, and state the solution.

Why does this work? At the solution, xx and yy have the same values in both equations. So if the first equation says yy equals 2x−72x - 7, you can replace yy with 2x−72x - 7 in the second equation too.

You already used a special case in Grade 9: when both equations are solved for yy, setting the right sides equal is substitution.

Look for a variable with a coefficient of 11 or −1-1. Isolating it doesn’t create any fractions.

SystemBest choice
y=2x−7y = 2x - 7 and 3x+4y=53x + 4y = 5yy is already isolated
x−3y=−1x - 3y = -1 and 2x+5y=202x + 5y = 20isolate xx in the first: x=3y−1x = 3y - 1
4x−y=34x - y = 3 and 2x+3y=72x + 3y = 7isolate yy in the first: y=4x−3y = 4x - 3

If no coefficient is 11 or −1-1, substitution still works but creates fractions. In that case elimination is usually easier.

Clear them first. Multiply every term of an equation by the lowest common denominator (or by 1010 or 100100 for decimals). The new equation has the same solutions, and integer coefficients are much easier to work with.

If the variable disappears and you’re left with a false statement such as 8=58 = 5, the system has no solution (the lines are parallel). If you’re left with a true statement such as 0=00 = 0, it has infinitely many solutions (the lines are the same). The elimination page looks at these cases in more detail.

Solve the system.

y=2x−73x+4y=5\begin{aligned} y &= 2x - 7 \\ 3x + 4y &= 5 \end{aligned}

Solution. The first equation already gives yy. Substitute 2x−72x - 7 for yy in the second equation:

3x+4(2x−7)=53x+8x−28=511x=33x=3\begin{aligned} 3x + 4(2x - 7) &= 5 \\ 3x + 8x - 28 &= 5 \\ 11x &= 33 \\ x &= 3 \end{aligned}

Back-substitute into y=2x−7y = 2x - 7: y=2(3)−7=−1y = 2(3) - 7 = -1.

Check in the second equation: 3(3)+4(−1)=9−4=53(3) + 4(-1) = 9 - 4 = 5 ✓. (The first equation is true by construction: 2(3)−7=−12(3) - 7 = -1 ✓.)

The solution is (3,−1)(3, -1).

Solve the system.

x−3y=−12x+5y=20\begin{aligned} x - 3y &= -1 \\ 2x + 5y &= 20 \end{aligned}

Solution. In the first equation, xx has a coefficient of 11, so isolate xx:

x=3y−1x = 3y - 1

Substitute into the second equation:

2(3y−1)+5y=206y−2+5y=2011y=22y=2\begin{aligned} 2(3y - 1) + 5y &= 20 \\ 6y - 2 + 5y &= 20 \\ 11y &= 22 \\ y &= 2 \end{aligned}

Back-substitute: x=3(2)−1=5x = 3(2) - 1 = 5.

Check: 5−3(2)=−15 - 3(2) = -1 ✓ and 2(5)+5(2)=202(5) + 5(2) = 20 ✓. The solution is (5,2)(5, 2).

Solve the system.

x2+y3=4x4−y=−5\begin{aligned} \frac{x}{2} + \frac{y}{3} &= 4 \\ \frac{x}{4} - y &= -5 \end{aligned}

Solution. Clear the fractions first. Multiply every term of the first equation by 66, and every term of the second by 44:

3x+2y=24x−4y=−20\begin{aligned} 3x + 2y &= 24 \\ x - 4y &= -20 \end{aligned}

Now isolate xx in the second equation: x=4y−20x = 4y - 20. Substitute into the first:

3(4y−20)+2y=2412y−60+2y=2414y=84y=6\begin{aligned} 3(4y - 20) + 2y &= 24 \\ 12y - 60 + 2y &= 24 \\ 14y &= 84 \\ y &= 6 \end{aligned}

Back-substitute: x=4(6)−20=4x = 4(6) - 20 = 4.

Check in the original equations: 42+63=2+2=4\dfrac{4}{2} + \dfrac{6}{3} = 2 + 2 = 4 ✓ and 44−6=1−6=−5\dfrac{4}{4} - 6 = 1 - 6 = -5 ✓. The solution is (4,6)(4, 6).

Example 4: An answer graphing couldn’t find

Section titled “Example 4: An answer graphing couldn’t find”

Solve the system.

2x+3y=74x−y=3\begin{aligned} 2x + 3y &= 7 \\ 4x - y &= 3 \end{aligned}

Solution. In the second equation yy has a coefficient of −1-1. Isolate it:

4x−y=3⇒−y=3−4x⇒y=4x−34x - y = 3 \quad\Rightarrow\quad -y = 3 - 4x \quad\Rightarrow\quad y = 4x - 3

Substitute into the first equation:

2x+3(4x−3)=72x+12x−9=714x=16x=87\begin{aligned} 2x + 3(4x - 3) &= 7 \\ 2x + 12x - 9 &= 7 \\ 14x &= 16 \\ x &= \frac{8}{7} \end{aligned}

Back-substitute:

y=4(87)−3=327−217=117y = 4\left(\frac{8}{7}\right) - 3 = \frac{32}{7} - \frac{21}{7} = \frac{11}{7}

Check in the first equation: 2(87)+3(117)=167+337=497=72\left(\dfrac{8}{7}\right) + 3\left(\dfrac{11}{7}\right) = \dfrac{16}{7} + \dfrac{33}{7} = \dfrac{49}{7} = 7 ✓.

The solution is (87,117)\left(\dfrac{8}{7}, \dfrac{11}{7}\right). On a graph this would look like “about (1.1,1.6)(1.1, 1.6)”, but substitution gives the exact answer.

Forgetting the brackets. Substituting y=2x−7y = 2x - 7 into 3x+4y=53x + 4y = 5 gives 3x+4(2x−7)=53x + 4(2x - 7) = 5. Without brackets you’d write 3x+4⋅2x−73x + 4 \cdot 2x - 7 and multiply only the first term by 44.

Substituting back into the same equation. If you isolate xx from the first equation, substitute it into the second. Putting it back into the first gives something like 0=00 = 0 and tells you nothing.

Stopping after one variable. Finding x=3x = 3 is only half the answer. A solution is an ordered pair: back-substitute to find yy too.

Sign errors when isolating. From 4x−y=34x - y = 3, the result is y=4x−3y = 4x - 3, not y=3−4xy = 3 - 4x. Check by substituting a value: with x=1x = 1, both 4(1)−y=34(1) - y = 3 and y=4(1)−3y = 4(1) - 3 give y=1y = 1.

Clearing fractions from only some terms. When you multiply an equation by 66, every term gets multiplied, including the one on the right side.

Checking in only one equation. The equation you used to back-substitute will always check. The real test is the other one, so check both.

1. (Warm-up) Solve: y=x+1y = x + 1 and 2x+y=102x + y = 10.

Solution

Substitute x+1x + 1 for yy:

2x+(x+1)=10⇒3x+1=10⇒x=32x + (x + 1) = 10 \quad\Rightarrow\quad 3x + 1 = 10 \quad\Rightarrow\quad x = 3

Then y=3+1=4y = 3 + 1 = 4. Check: 2(3)+4=102(3) + 4 = 10 ✓. The solution is (3,4)(3, 4).

2. (Warm-up) Solve: x=2yx = 2y and 3x−4y=63x - 4y = 6.

Solution

Substitute 2y2y for xx:

3(2y)−4y=6⇒2y=6⇒y=33(2y) - 4y = 6 \quad\Rightarrow\quad 2y = 6 \quad\Rightarrow\quad y = 3

Then x=2(3)=6x = 2(3) = 6. Check: 3(6)−4(3)=18−12=63(6) - 4(3) = 18 - 12 = 6 ✓. The solution is (6,3)(6, 3).

3. (Core) Solve: 3x+y=53x + y = 5 and 2x−3y=182x - 3y = 18.

Solution

Isolate yy in the first equation: y=5−3xy = 5 - 3x. Substitute into the second:

2x−3(5−3x)=182x−15+9x=1811x=33x=3\begin{aligned} 2x - 3(5 - 3x) &= 18 \\ 2x - 15 + 9x &= 18 \\ 11x &= 33 \\ x &= 3 \end{aligned}

Then y=5−3(3)=−4y = 5 - 3(3) = -4.

Check: 3(3)+(−4)=53(3) + (-4) = 5 ✓ and 2(3)−3(−4)=6+12=182(3) - 3(-4) = 6 + 12 = 18 ✓. The solution is (3,−4)(3, -4).

4. (Core) Solve: 2x+5y=−12x + 5y = -1 and x+3y=0x + 3y = 0.

Solution

Isolate xx in the second equation: x=−3yx = -3y. Substitute into the first:

2(−3y)+5y=−1⇒−y=−1⇒y=12(-3y) + 5y = -1 \quad\Rightarrow\quad -y = -1 \quad\Rightarrow\quad y = 1

Then x=−3(1)=−3x = -3(1) = -3.

Check: 2(−3)+5(1)=−12(-3) + 5(1) = -1 ✓ and −3+3(1)=0-3 + 3(1) = 0 ✓. The solution is (−3,1)(-3, 1).

5. (Core) Solve: y=23x+1y = \dfrac{2}{3}x + 1 and x−3y=−9x - 3y = -9.

Solution

Substitute for yy in the second equation:

x−3(23x+1)=−9x−2x−3=−9−x=−6x=6\begin{aligned} x - 3\left(\frac{2}{3}x + 1\right) &= -9 \\ x - 2x - 3 &= -9 \\ -x &= -6 \\ x &= 6 \end{aligned}

Then y=23(6)+1=5y = \dfrac{2}{3}(6) + 1 = 5.

Check: 6−3(5)=−96 - 3(5) = -9 ✓. The solution is (6,5)(6, 5).

6. (Core) Solve: x+12+y4=3\dfrac{x + 1}{2} + \dfrac{y}{4} = 3 and x−y=2x - y = 2.

Solution

Multiply every term of the first equation by 44:

2(x+1)+y=12⇒2x+2+y=12⇒2x+y=102(x + 1) + y = 12 \quad\Rightarrow\quad 2x + 2 + y = 12 \quad\Rightarrow\quad 2x + y = 10

From the second equation, y=x−2y = x - 2. Substitute:

2x+(x−2)=10⇒3x=12⇒x=42x + (x - 2) = 10 \quad\Rightarrow\quad 3x = 12 \quad\Rightarrow\quad x = 4

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

Check in the original first equation: 4+12+24=52+12=3\dfrac{4 + 1}{2} + \dfrac{2}{4} = \dfrac{5}{2} + \dfrac{1}{2} = 3 ✓. The solution is (4,2)(4, 2).

7. (Core) A rectangular garden has a perimeter of 4646 m. Its length is 55 m more than its width. Write a system of equations and solve it by substitution to find the dimensions.

Solution

Let ll be the length and ww the width, in metres.

l=w+52l+2w=46\begin{aligned} l &= w + 5 \\ 2l + 2w &= 46 \end{aligned}

Substitute w+5w + 5 for ll:

2(w+5)+2w=46⇒4w+10=46⇒w=92(w + 5) + 2w = 46 \quad\Rightarrow\quad 4w + 10 = 46 \quad\Rightarrow\quad w = 9

Then l=9+5=14l = 9 + 5 = 14. The garden is 1414 m by 99 m.

Check: 2(14)+2(9)=28+18=462(14) + 2(9) = 28 + 18 = 46 ✓.

8. (Challenge) Try to solve y=3x−4y = 3x - 4 and 6x−2y=56x - 2y = 5 by substitution. What happens, and what does it tell you about the graphs?

Solution

Substitute 3x−43x - 4 for yy:

6x−2(3x−4)=56x−6x+8=58=5\begin{aligned} 6x - 2(3x - 4) &= 5 \\ 6x - 6x + 8 &= 5 \\ 8 &= 5 \end{aligned}

The xx disappears and the result is false. No values of xx and yy can make both equations true, so the system has no solution.

On a graph, the second equation is y=3x−52y = 3x - \dfrac{5}{2}. Both lines have slope 33 but different yy-intercepts (−4-4 and −52-\dfrac{5}{2}), so they are parallel and never meet.

9. (Challenge) Solve: 0.4x+0.3y=2.50.4x + 0.3y = 2.5 and 0.2x−y=−2.20.2x - y = -2.2.

Solution

Multiply both equations by 1010 to clear the decimals:

4x+3y=252x−10y=−22\begin{aligned} 4x + 3y &= 25 \\ 2x - 10y &= -22 \end{aligned}

Divide the second equation by 22: x−5y=−11x - 5y = -11, so x=5y−11x = 5y - 11. Substitute into the first:

4(5y−11)+3y=2520y−44+3y=2523y=69y=3\begin{aligned} 4(5y - 11) + 3y &= 25 \\ 20y - 44 + 3y &= 25 \\ 23y &= 69 \\ y &= 3 \end{aligned}

Then x=5(3)−11=4x = 5(3) - 11 = 4.

Check in the original equations: 0.4(4)+0.3(3)=1.6+0.9=2.50.4(4) + 0.3(3) = 1.6 + 0.9 = 2.5 ✓ and 0.2(4)−3=0.8−3=−2.20.2(4) - 3 = 0.8 - 3 = -2.2 ✓. The solution is (4,3)(4, 3).