Skip to content
Study Hall
Lesson 2 of 4Linear Systems
Unit 1 · Lesson 2 of 4

Solving by Substitution

Substitution turns two equations in two variables into one equation in one variable: isolate a variable in one equation, replace it in the other, solve, then back-substitute. It gives exact answers, even fractions, and shows when a system has no solution or infinitely many.

4 min read11 practice questionsAsk AI about this →

Key things to remember

  1. 1Substitution: isolate a variable in one equation, substitute into the other equation, solve, back-substitute, check.
  2. 2Isolate a variable with coefficient or to avoid fractions.
  3. 3Put the substituted expression in brackets: with becomes .
  4. 4If the variables cancel and leave a true statement (such as ), there are infinitely many solutions; a false statement (such as ) means no solution.
  5. 5The solution is an ordered pair : finding one variable is only halfway.

A smoothie stand sold 60 smoothies on Saturday, and it sold twice as many small smoothies as large ones. How many of each? Let be the number of small smoothies and the number of large ones. The facts give two equations: and . You could graph both lines, but look at the second equation: it tells you that is . So in the first equation you can cross out and write in its place. That leaves , an equation with only one variable, which you already know how to solve. This move, replacing a variable with an expression that is equal to it, is called substitution, and it is one of the two main algebra methods for solving linear systems.

So the stand sold 40 small and 20 large smoothies. Check both facts: , and is twice . Why is it allowed? The two equations must be true at the same time, so at the solution really does equal . Replacing one by the other cannot change whether the first equation is true. The payoff is that the second variable disappears, and a two-variable problem becomes a one-variable equation.

The steps

  1. Isolate one variable in one of the equations, so it reads or . Choose a variable whose coefficient is or if you can.
  2. Substitute that expression into the other equation, inside brackets.
  3. Solve the new equation, which has only one variable.
  4. Back-substitute: put the value you found into the isolated equation from step 1 to find the other variable.
  5. Check the ordered pair in both original equations, then state the solution as .
Solve:(1) 3x + y = 14(2) 2x − 3y = −91Isolate y in equation (1)3x + y = 14 → y = 14 − 3xy has coefficient 1, so subtract 3x from both sides: no fractions.2Substitute into equation (2)2x − 3y = −9 → 2x − 3(14 − 3x) = −9Replace y with the whole expression, in brackets. The −3 multiplies both terms.3Solve the one-variable equation2x − 42 + 9x = −9 → 11x = 33 → x = 3−3 × 14 = −42 and −3 × (−3x) = +9x. Then add 42 to both sides and divide by 11.4Back-substitute to find yy = 14 − 3(3) = 14 − 9 → y = 5Use the isolated equation from step 1: it already says what y equals.5Check in both original equations(1) 3(3) + 5 = 14 ✓ (2) 2(3) − 3(5) = 6 − 15 = −9 ✓The pair must make both equations true, not just one.Solution: (3, 5)
Fig 1Solving 3x + y = 14 and 2x − 3y = −9 by substitution: y = 14 − 3x is placed in brackets in the second equation, giving x = 3, then y = 5, and the check in both equations.
Which variable should you isolate
Look for a coefficient of or . In the has coefficient , so subtracting from both sides gives with no fractions. In , isolate : , then multiply every term by to get . If no coefficient is or , substitution still works but often creates fractions, and elimination (next lesson) is usually easier.
VideoAn Ontario Grade 10 lesson on isolating a variable, substituting it in brackets into the other equation, and checking the answer.Watch on YouTube

Why the brackets matter

In the figure, in is replaced by . The in front of multiplies the whole expression, so you must write . Distributing gives and , so the equation becomes . Without brackets, it is easy to write , and that one sign error makes every later step wrong. Brackets also keep a product clear when you back-substitute: , not .

When the variable disappears

Sometimes, after you substitute and simplify, both variables cancel and you are left with a statement containing only numbers. That is not an error: it is the algebra telling you which special case you have. Try and . Substituting gives , so , which is . That is always true, whatever is, so every point on the line is a solution: the two equations describe the same line and there are infinitely many solutions. Now try and . Isolating gives , and substituting gives , so , which is . That is never true, so no point works: the lines are parallel and there is no solution.

AVariables cancel, true statement
  • Example: or
  • Every point on the line works
  • The equations describe the same line
  • Infinitely many solutions
BVariables cancel, false statement
  • Example: or
  • No point works
  • The lines are parallel and never meet
  • No solution
Substitute into the other equation
If you isolate from and then substitute it back into , you get , so . That true statement only says the equation agrees with itself; it does not mean infinitely many solutions. The expression must go into the other equation.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Solve by substitution: and .
Example 2
Solve by substitution: and .
Example 3
Solve and algebraically, then verify the solution algebraically and graphically.
Example 4
Solve by substitution: and . Explain the result.

Where marks get lost

  • Substituting the isolated expression back into the same equation it came from. You get something like and wrongly conclude there are infinitely many solutions. It must go into the other equation.
  • Dropping the brackets: replacing in by and writing instead of .
  • Isolating with a sign error: from , writing . Subtracting gives , and multiplying every term by gives .
  • Stopping after one variable. "" is not the solution of a system; back-substitute to find and give the ordered pair .
  • Reading as "the solution is ". A true statement with no variables left means infinitely many solutions.

Flashcards 7

Substitution method
Back-substitution
Best variable to isolate
Why use brackets when substituting?
+ 3 more

Practice

1
In which equation is it easiest to isolate a variable without creating fractions?
2
Solve the system and . What is the value of ?
3
Solve the system and . What is the value of ?
4
You substitute into . Which equation is correct after you distribute?
5
You correctly substitute an expression from the first equation into the second equation, and all the variables cancel, leaving . What does this tell you?
6
Solving and by substitution leaves . Which describes the graphs?
7
Isolate in the equation . Write your answer starting with "y =".
8
Put the steps for solving 2x + y = 11 and 3x − 2y = 6 by substitution in order.
  1. 1Check (4, 3) in both original equations
  2. 2Back-substitute: y = 11 − 2(4) = 3
  3. 3Simplify and solve: 7x − 22 = 6, so x = 4
  4. 4Isolate y in the first equation: y = 11 − 2x
  5. 5Substitute into the second equation: 3x − 2(11 − 2x) = 6
9
A pizzeria sold 84 pizzas on Friday. It sold 3 times as many large pizzas as small ones. How many large pizzas did it sell?
pizzas
10
Solve and . What is the value of ?
11
After substituting correctly and simplifying, match each result to what it means for the system.
x = 2
5 = 5
0 = −3

Spot a mistake on this page? Let us know