Euler Hall — free maths guides

Solve a 2-by-2 linear system by substitution

Replace one variable with an expression in the other throughout an equation. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

Put one inside the other

Substitution uses one equation to describe a variable, then puts that description into the other equation.

Given y=3x−1y = 3x - 1 and 1, replacing yy` in the second gives

2x+(3x−1)=9,2x + (3x - 1) = 9,

which is one equation in one unknown: 5x=105x = 10, so 1. Then y=3(2)−1=5y = 3(2) - 1 = 5, and the solution is 3.

The method shines when an equation already isolates a variable, because then no rearrangement is needed at all.

Why substitution is exact

The first equation says yy and 1 are the same number. Replacing one by the other inside the second equation therefore changes nothing about which pairs satisfy it — it only rewrites the equation in terms of one variable.

That is why the method never introduces spurious solutions: at every step the new equation is equivalent to the old one, given the first equation holds.

Worked example

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

Step 1. Substitute. Put 2x−32x - 3 in place of 1: 4x+(2x−3)=154x + (2x - 3) = 15`.

Step 2. Collect. 6x−3=156x - 3 = 15, so 1 and x=3x = 3`.

Step 3. Back-substitute. y=2(3)−3=3y = 2(3) - 3 = 3, so the solution is 1.

Step 4. Check both originals. y=2x−3y = 2x - 3 gives 1, true. 4x+y=154x + y = 15 gives 3, true.

By the end you can
  • Replace one variable with an expression in the other throughout an equation
  • Solve the resulting one-variable equation
  • Back-substitute to recover the second variable
  • Recognise when substitution is the better choice than elimination
Check yourself

(a) Solve y=5−xy = 5 - x and 1.

(b) Why is substitution awkward when neither equation isolates a variable?

Answers

(a) Substituting gives x+2(5−x)=8x + 2(5 - x) = 8, so 1 and x=2x = 2. Then 3, and the solution is (2,3)(2, 3)`.

(b) Because one equation has to be rearranged first, which is extra work and one more place to lose a sign. Elimination often needs no rearrangement.

Work out where to start — free, no accountAnswer six real questions — free, no account