Solving Systems by Substitution With Worked Examples
Follow the substitution method through worked examples, from tidy pairs to fractions, special cases, word problems and curves.
Key takeaways
- Isolate a variable that is easy to free, ideally one with coefficient 1 or -1.
- Substitute into the other equation, never back into the one you just rearranged.
- Wrap the substituted expression in parentheses so signs and coefficients apply to all of it.
- A false statement such as -2 = 6 means no solution, and a true one such as 9 = 9 means infinitely many.
- Check the final pair in both original equations.
To solve a system by substitution, solve one equation for one variable, replace that variable in the other equation with the expression you found, and solve the resulting equation, which now has a single unknown. Then put the value back to get the second variable.
The idea behind it is simple. If y equals 2x - 1, then y and 2x - 1 are two names for the same number, so you may write either one wherever y appears.
The method in five moves
The reason this is legitimate is that any solution of the system must make the isolated equation true. For such pairs, the variable and the expression are equal, so replacing one with the other changes nothing. If the general idea of a solution pair is new, start with what it means to solve a system.
Example 1: a variable already isolated
y = 2x - 1
3x + y = 14 The first equation already gives y. Substitute it into the second.
3x + (2x - 1) = 14
5x - 1 = 14
5x = 15
x = 3
y = 2(3) - 1 = 5 The solution is (3, 5). Check: 5 = 2(3) - 1, and 3(3) + 5 = 14. Both hold.
Example 2: isolating first
x + 3y = 5
2x - y = 3 Look for a variable with coefficient 1 or -1. Here x in the first equation is a good choice.
x = 5 - 3y from the first equation
2(5 - 3y) - y = 3 substitute into the second
10 - 6y - y = 3
10 - 7y = 3
y = 1
x = 5 - 3(1) = 2 The solution is (2, 1). Check: 2 + 3 = 5, and 4 - 1 = 3.
The parentheses in the second line carry the whole method. The coefficient 2 multiplies both 5 and -3y. Writing 2 · 5 - 3y would give a different, wrong equation.
You could also have isolated y in the second equation, as y = 2x - 3. Either route ends at the same pair.
Example 3: when fractions are unavoidable
3x + 2y = 7
4x - 5y = -6 No coefficient is 1 or -1, so a fraction will appear. Solve the first equation for y.
y = (7 - 3x) / 2
4x - 5(7 - 3x)/2 = -6 substitute
8x - 5(7 - 3x) = -12 multiply every term by 2
8x - 35 + 15x = -12
23x = 23
x = 1
y = (7 - 3)/2 = 2 The solution is (1, 2). Check: 3 + 4 = 7, and 4 - 10 = -6.
Multiplying through by the denominator early keeps the arithmetic in whole numbers. Systems like this one are often quicker by elimination, and the comparison is drawn out in choosing between substitution and elimination.
Example 4: no solution and infinitely many
Sometimes the variable disappears completely. First case:
y = 2x + 1
4x - 2y = 6
4x - 2(2x + 1) = 6
4x - 4x - 2 = 6
-2 = 6 false No value of x can repair a false statement, so the system has no solution. The two lines are parallel.
Second case:
x = 2y + 3
3x - 6y = 9
3(2y + 3) - 6y = 9
6y + 9 - 6y = 9
9 = 9 true for every y Every value of y works, with x = 2y + 3. The solutions are all pairs of the form (2y + 3, y), such as (3, 0), (5, 1) and (1, -1). "9 = 9" is not itself the answer, and neither is "all real numbers": the pair (0, 0) does not satisfy either equation.
A true statement can also appear by mistake if you substitute an expression back into the equation it came from. That always produces something like 0 = 0 and tells you nothing, so check which equation you used before you conclude anything.
Example 5: a word problem
A rectangle has a perimeter of 54 centimeters. Its length is 3 centimeters more than twice its width. Find both dimensions.
Let L be the length and W the width, in centimeters.
L = 2W + 3
2L + 2W = 54
2(2W + 3) + 2W = 54
4W + 6 + 2W = 54
6W = 48
W = 8
L = 2(8) + 3 = 19 The rectangle is 19 cm by 8 cm. Check the story, not only the equations: the perimeter is 38 + 16 = 54, and 19 is 3 more than twice 8.
Word problems often hand you one relationship already solved for a variable, as in "length is ... than width." That is a natural signal to use substitution.
Example 6: a line meeting a circle
Substitution works when one equation is not linear, which elimination often cannot handle so directly.
y = x + 2
x² + y² = 20
x² + (x + 2)² = 20
x² + x² + 4x + 4 = 20
2x² + 4x - 16 = 0
x² + 2x - 8 = 0
(x + 4)(x - 2) = 0
x = -4 or x = 2 Find each partner using the line: y = -2 when x = -4, and y = 4 when x = 2. The solutions are (-4, -2) and (2, 4). Check: 16 + 4 = 20 and 4 + 16 = 20.
Use the linear equation for back-substitution. If you used the circle instead, x = 2 would give y = 4 or y = -4, and only one of those lies on the line. More cases appear in solving a line and a parabola together.
Substituting a whole expression
You do not have to isolate a bare variable. Suppose a system reads 2y = x + 4 and 3x + 2y = 20. The block 2y appears in both, so replace it directly.
3x + (x + 4) = 20
4x = 16
x = 4
2y = 4 + 4 = 8, so y = 4 The solution is (4, 4). Spotting a repeated block saves a division and often avoids fractions entirely.
Choosing what to isolate
The first decision affects how much arithmetic you do, though it never changes the answer. Scan both equations in this order.
- Is a variable already alone on one side? Use it as it stands.
- Does some variable have coefficient 1 or -1? Isolate it, since no division is needed.
- Can one whole equation be divided evenly? In 3x + 6y = 12, dividing by 3 gives x = 4 - 2y with no fractions.
- If none of these apply, expect fractions, or switch methods.
Watch the signs when the coefficient is -1. From 5x - y = 8 you get -y = 8 - 5x, and multiplying by -1 gives y = 5x - 8. Writing y = 8 - 5x is a very common slip.
It also helps to think about what you will do next. If the other equation contains 2y, isolating y with a halves-only denominator costs little, because the 2 cancels at once.
Example 7: letters as coefficients
Substitution handles letters well, as long as you track what you divide by. Solve for x and y, where k is a constant.
x + y = k
x - ky = 1
x = k - y from the first
(k - y) - ky = 1 substitute
k - 1 = y + ky
k - 1 = y(1 + k) If k ≠ -1, divide: y = (k - 1)/(k + 1). Then x = k - y = (k² + 1)/(k + 1).
Try k = 3. The formulas give y = 0.5 and x = 2.5. Check: 2.5 + 0.5 = 3, and 2.5 - 3(0.5) = 1.
If k = -1, the equation reads -2 = y · 0, which is false. So for that one value the system has no solution. Dividing by 1 + k without comment would have hidden this case.
Checking efficiently
A check should use the original equations, exactly as they were given, because a mistake made while rearranging will otherwise travel into the test. Substitute each value in parentheses and evaluate the left and right sides separately.
If one equation works and the other fails, the error is usually in the step where you substituted or distributed. If both fail, look at the rearrangement or the back-substitution. For a no-solution result there is no pair to test, so reread your signs, and compare the slopes of the two lines as an independent confirmation.
Example 8: setting two expressions equal
When both equations already give the same variable, substitution takes one line. Say one gym plan costs 40 dollars to join plus 25 dollars a month, and another costs 100 dollars to join plus 15 dollars a month. These are made-up prices for illustration. Let m be the number of months and C the total cost.
C = 25m + 40
C = 15m + 100
25m + 40 = 15m + 100 both equal C
10m = 60
m = 6
C = 25(6) + 40 = 190 After 6 months both plans have cost 190 dollars. Check with the second plan: 15 · 6 + 100 = 190.
The solution marks the point where the cheaper choice changes. Before month 6, say at m = 2, the first plan costs 90 and the second 130. After it, say at m = 10, they cost 290 and 250. A single test on each side tells you which plan wins where.
Three unknowns, one step at a time
Substitution extends to larger systems. Consider x + y + z = 9, y = 2x and z = x + 1. Replace both y and z in the first equation at once.
x + 2x + (x + 1) = 9
4x = 8
x = 2
y = 4
z = 3 The solution is (2, 4, 3), and 2 + 4 + 3 = 9. When the equations are not this convenient, each substitution removes one unknown and one equation, until a single equation in one unknown remains. After that you work backward through your isolated expressions.
Mistakes to avoid
- Dropping parentheses. In 7 - (x - 2), the result is 9 - x, not 5 - x.
- Stopping after one variable. The answer to a two-variable system needs both values.
- Swapping the coordinates. If you solved for y first, still write the pair as (x, y).
- Rounding a fraction midway. Keep 7/3 as a fraction until the end.
- Checking only one equation. A pair built from one equation will satisfy it even when you erred elsewhere, so the other equation is the real test.