MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Upper Secondary
MathematicsUpper Secondary

Simultaneous equations — substitution method

U2 — Algebra Advancing › U2.3 — Simultaneous EquationsLecture 1 of 4~2450 words

One clue is not enough

Amara thinks of two numbers. She gives you one clue: "The second number is one more than double the first."

Call the first number and the second number . The clue says . Can you find her numbers?

You cannot. Try : then . Try : then . Try : then . Every choice of gives a that fits. The clue is true for infinitely many pairs, so it cannot tell you which pair Amara chose.

So Amara gives a second clue: "Three times the first number, plus the second number, makes 16." That is . On its own, this clue also has infinitely many pairs: , , , and so on.

Now put the two lists side by side.

from clue 1: from clue 2:
0116
1313
2510
377
494
5111

Only one row agrees. When , both clues give . Each clue alone allows endless answers. Together they allow exactly one. Two equations that must be true at the same time are called simultaneous equations, and solving them means finding the values that make both true.

But the table only worked because the answer was a small whole number in the first few rows. If the answer were , you could search a table forever. We need a method that finds the answer directly. This lecture builds the first one: substitution.

The picture behind the table

Each equation is a straight line. Every point on the line is a pair that fits clue 1. Every point on the line is a pair that fits clue 2. A pair that fits both clues must lie on both lines. That can only be the point where the lines cross.

1 2 3 4 5 6 −2 2 4 6 8 10 12 14 16 18 x y O (3, 7) y = 2x + 1 3x + y = 16
Each line holds every pair that fits one clue. The only pair that fits both is the crossing point, (3, 7).

So solving simultaneous equations is finding where two lines meet. A graph shows the idea well, but it is not exact. If the crossing point were at , you could not read it from a sketch. Algebra gives the exact answer.

The key move: equal things can replace each other

Look at clue 1 again: . This equation does more than describe . It says that and are the same number, written in two different ways.

Now look at clue 2: . This is the same , because we want a pair that fits both clues. So wherever we see in clue 2, we can write instead. That changes nothing about the value. It only changes how the value is written.

Look at what just happened. The new equation has only one letter, . You already know how to solve an equation with one unknown. Collect the terms:

Subtract 1 from both sides to get , then divide by 5 to get .

Now that you know , clue 1 gives at once: . That is it. That is the whole idea. Use one equation to write one letter in terms of the other, then put that expression into the second equation. Two unknowns become one.

This is the same thing you did with formulae in earlier years. To use with , you replace by 5. Here you replace by . The only difference is that the replacement is an expression, not a number.

Stop and think

Why did we write with a bracket, when the bracket does not seem to change anything here?

Show the answer

Because is one number, and must be treated as one number when it takes 's place. Here the bracket makes no difference, because the is only added. But if the equation had or , the whole of would be multiplied. For example, becomes , not . Writing the bracket every time is a habit that protects you when it matters.

The substitution method

1. Choose one equation and write one letter on its own, in terms of the other letter (for example ).

2. Substitute that expression, in a bracket, into the other equation.

3. Solve the new equation, which has one unknown.

4. Put that value back into your rearranged equation to find the second unknown.

5. Check the pair in both original equations.

Worked examples

Worked Example 1 — One letter is already on its own

Solve and .

The first equation already gives . Substitute it into the second: , so , so , so .

Then . The solution is , .

Check in both: ✓ and ✓.

Worked Example 2 — Rearrange first, and the answer is a fraction

Solve and .

Neither letter is on its own. In the first equation, has no number in front of it, so it is easy to isolate: .

Substitute into the second equation, with a bracket: .

This is the hard step. Spend time here. The multiplies both terms in the bracket: , and . So .

Collect: , so , so .

Then .

A fraction is not a sign that something went wrong. Most pairs of lines do not cross at whole numbers. Leave the answer exact: and (3 s.f., three significant figures).

Check in both: ✓ and ✓.

In Example 2, the sign inside the bracket is where most mistakes happen. Find the mistake in this student's work.

Spot the error — a sign lost in the bracket

A student solves and by substitution. Exactly one line contains a mistake. Tap it.

A student's solution of 3x + y = 8 and 5x − 2y = 6. Line 3 is wrong.

  • Line 1. From the first equation: y = 8 − 3x. Correct.
  • Line 2. Substitute: 5x − 2(8 − 3x) = 6. Correct, with the bracket.
  • Line 3. Expand: 5x − 16 − 6x = 6. Wrong: −2 × (−3x) = +6x, so it should be 5x − 16 + 6x = 6.
  • Line 4. Collect: −x − 16 = 6, so x = −22. This follows from line 3, so it carries the mistake.
  • Line 5. Then y = 8 − 3(−22) = 74. Also carries the mistake.
  • Line 6. Check: 5(−22) − 2(74) = −258, not 6. The check is correct, and it shows that something went wrong earlier. The right answer is x = 2, y = 2.

Notice the last line. The check did its job: it showed that the answer was wrong before anyone else had to. This is why step 5 is part of the method, not an extra.

Choosing what to isolate

With two equations and two letters, there are four ways to start. You could isolate or , from either equation. They all lead to the same answer, but some are much easier than others.

Worked Example 3 — Look at all four options first

Solve and .

The four options:

  • from the first: . A fraction at once.
  • from the first: . Also a fraction.
  • from the second: . A small fraction.
  • from the second: . No fraction at all.

Choose . The rule for choosing: look for a letter with no number in front of it (a coefficient of 1 or −1). Isolating that letter needs no division, so no fractions appear.

Substitute into the first equation: , so , so . Then .

Check in both: ✓ and ✓.

Worked Example 4 — A fraction in the equation

Solve and .

The second equation gives . Substitute: .

Multiply every term by 2 to clear the fraction: , so , so . Then .

Check in both: ✓ and ✓.

When the lines never meet

Two straight lines usually cross at one point. But there are two other possibilities. The lines can be parallel, so they never meet. Or the two equations can describe the same line, so they meet everywhere. Substitution tells you which case you are in, if you read the result carefully.

Try it on the graph below. The dark line is , the first equation from the start of this lecture. The second equation, , is the same as . Change its gradient and its intercept, and watch what the substitution gives.

Graph builder — where do the lines meet?

Move the gradient m and the intercept c of the teal line y = mx + c. Watch the crossing point and the substitution steps. Then make the gradient 2, the same as the dark line, and see what the algebra says.

The line y = 2x + 1 with four different second lines y = mx + c. Substituting y = 2x + 1 into y = mx + c gives 2x + 1 = mx + c, so (2 − m)x = c − 1.

Second lineAfter substitutingResult
y = −3x + 165x = 15one point: (3, 7)
y = 0.5x + 71.5x = 6one point: (4, 9)
y = 2x + 50x = 4, so 0 = 4impossible: no solution, parallel lines
y = 2x + 10x = 0, so 0 = 0always true: infinitely many solutions, the same line
1 2 3 4 5 6 −2 2 4 6 8 10 12 14 16 18 x y O y = 2x + 1 y = 2x + 5
The lines y = 2x + 1 and y = 2x + 5 have the same gradient, 2, so they never meet. Substitution gives 0 = 4.

What did you see? While the gradients are different, the lines always cross at exactly one point, and the substitution gives one value of . When the gradient is 2, the terms cancel completely. Then one of two things is left. If what is left is false, such as , there is no pair that fits both equations, and the lines are parallel. If what is left is true, such as , every pair on the line fits both, because the two equations describe the same line.

Worked Example 5 — The letters disappear

Solve and .

Substitute: , so , so .

This is false, whatever is. So no pair fits both equations: there is no solution. Check with the picture: the second equation rearranges to . Both lines have gradient 3, so they are parallel, half a unit apart.

If the second equation had been , the same steps would give . That is always true, and rearranges to , the same line. Every point on it is a solution.

Stop and think

You solve two equations and reach . Your friend says, "You must have made a mistake." Is your friend right?

Show the answer

Not necessarily. A false statement such as can be the correct result: it means the equations have no common solution, because the lines are parallel. Before you decide, check two things. First, go back over the algebra for a slip. Second, look at the gradients: write both equations as . If the gradients are equal and the intercepts are different, is the right conclusion, and the answer is "no solution".

Three classic mistakes

Trap 1 — Substituting without a bracket

With , the term becomes . Without the bracket, students write or lose the sign on . Always put the whole expression in a bracket, then expand with care.

Trap 2 — Putting the expression back where it came from

From you get . If you substitute this back into , you get , so . That is true, but it tells you nothing, because you used the same information twice. The expression must go into the other equation.

Trap 3 — Stopping halfway, or checking only one equation

Finding is half an answer: the question asks for a pair. And checking only the equation you rearranged proves little, because that equation was used to make fit . The pair must be checked in both original equations. The check takes a minute and catches most slips.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Solve and .

    Hint 1

    The first equation already gives . Put in place of in the second.

    Hint 2

    , so .

    Full answer

    , so . Then . Check: ✓ and ✓.

  2. Solve and .

    Hint 1

    Look for a letter with no number in front of it. There are two: in the first equation and in the second. Either works.

    Hint 2

    Using : substitute to get .

    Full answer

    , so , so . Then . Check: ✓ and ✓. (Starting from gives , so , the same answer.)

  3. Solve and .

    Hint 1

    In the second equation, has coefficient −1. Isolate it: .

    Hint 2

    . The 5 multiplies both terms.

    Full answer

    , so , so . Then . Check: ✓ and ✓. A negative answer is as good as a positive one.

  4. The equations and contain a number . For which value of are there infinitely many solutions? What happens for every other value of ? Can there ever be exactly one solution?

    Hint 1

    Substitute anyway, keeping as a letter. See what happens to the terms.

    Hint 2

    gives . The terms cancel, so you are left with .

    Full answer

    After substituting, the terms always cancel, leaving . If , this is true, so every point fits: infinitely many solutions. For any other , it is false, so there is no solution. There is never exactly one solution. The picture explains why: rearranges to , with gradient 2. The first line also has gradient 2. Lines with equal gradients are either the same line () or parallel (every other ). Check with : the point fits both, since and .

The bigger idea

Substitution rests on one simple rule: if two expressions are equal, either one can stand in the other's place. That rule is used across mathematics and science. In Economics, the equilibrium of a market is where buyers' plans meet sellers' plans. With demand and supply , substituting gives , so , so and . That is a pair of simultaneous equations, and the equilibrium is where the two lines cross. In Physics, you can remove time from two equations of motion in the same way, by writing in terms of the other quantities and substituting.

Substitution works best when one letter is easy to isolate. When neither letter is easy, as in and , there is a better tool. The next lecture builds it: instead of replacing a letter, you add or subtract whole equations to make a letter disappear. And because substitution only needs one letter to be isolated, it also works when the second equation is a curve. That comes two lectures from now, when a straight line meets a parabola.

Key concepts in this lesson