Learn
Lesson · Systems and Matrices · Systems

Solving by Substitution

Solve one equation for one unknown, put that expression into the other equation, and a system in two variables becomes an equation in one. The method always works; the choice of what to isolate decides whether it is pleasant.

x − y = 1 → x = y + 1 isolate 2x + 3y = 12 → 2(y + 1) + 3y = 12 substitute into the OTHER one 5y = 10 → y = 2 solve x = 2 + 1 = 3 back-substitute: (3, 2)
Isolate, substitute, solve, back-substitute

Core ideas

What this lesson establishes

One equation of the system is turned into a name for a variable, and that name is then used everywhere else. The reason this is allowed is worth stating once, plainly.

1

Substitution is legal because the two expressions name one number

If x = y + 1 holds, then x and y + 1 are two names for the same number, and either may be written where the other stands. That is the entire justification, and it is why the expression must go into the equation you have not used.

2

The target is one equation in one unknown

Everything else is bookkeeping. Linear Equations and Inequalities already solves any linear equation in one variable; this lesson is about manufacturing one.

3

What you isolate is a free choice with consequences

A variable whose coefficient is 1 or −1 isolates with no division. Any other choice produces a fraction, which is survivable — multiply through and it clears — but it is extra work chosen, not imposed.

The material

The method, and why it is allowed

Four moves, the theorem that licenses them, and the two ways the variable can vanish.

The method has four moves. Solve one of the equations for one of its variables. Substitute the resulting expression into the other equation, which then contains one variable. Solve it. Put that value back into the isolated equation to get the partner, and check the pair in both originals.

Theorem · Substitution preserves the solution set

Let a system consist of x = E, where E is an expression in y, together with a second equation. Replacing every x in the second equation by E produces a system with exactly the same solutions, provided x = E is kept.

Take a pair (x, y) satisfying both original equations. It satisfies x = E, so x and E are the same number, and putting one in place of the other in a true equation leaves a true equation. So the pair satisfies the substituted equation as well.

Now take a pair satisfying x = E and the substituted equation. The same argument, run with E replaced by x, returns the original second equation. Neither direction loses a pair, so the two systems have the same solution set.

□

The proviso is not decoration. The isolated equation stays part of the system, and it is what produces the value of x at the end. Dropping it once the substitution is made leaves a single equation in one variable, which has a different solution set from the system you started with.

Choosing what to isolate

Look for a coefficient of 1 or −1. In 5x − 2y = 4 and 3x + y = 9, the y in the second equation has coefficient 1, so y = 9 − 3x arrives without a division. If no coefficient is 1 or −1, pick whichever looks smallest and accept the fraction.

3x + 2y = 4 no coefficient is 1 or −1; isolate x below 2x − 5y = 9 → x = (9 + 5y)/2 3(9 + 5y)/2 + 2y = 4 substitute into the FIRST equation 3(9 + 5y) + 4y = 8 × 2, clearing the denominator 27 + 15y + 4y = 8 19y = −19 → y = −1 x = (9 + 5(−1))/2 = 4/2 = 2 check 3(2) + 2(−1) = 6 − 2 = 4 ✓ 2(2) − 5(−1) = 4 + 5 = 9 ✓

Substituting into the first equation is not a preference. Putting x = (9 + 5y)/2 back into 2x − 5y = 9 gives 9 = 9: true, and completely uninformative, because that equation was used to build the expression in the first place. Information comes from the equation that has not yet been spent.

When the variable disappears

Sometimes the substitution removes both variables and leaves a statement about numbers. Linear Equations and Inequalities met these as contradictions and identities, and they mean here exactly what they meant there: a false statement means no pair works, a true one means the equation placed no new restriction and the whole line survives.

x − 2y = 3 → x = 2y + 3 2x − 4y = 1 2(2y + 3) − 4y = 1 → 4y + 6 − 4y = 1 → 6 = 1 FALSE → no solution; the lines are parallel x − 2y = 3 → x = 2y + 3 2x − 4y = 6 2(2y + 3) − 4y = 6 → 6 = 6 TRUE for every y → infinitely many solution set {(2t + 3, t) : t real}
Example · Reading a parameter form

{(2t + 3, t)} is a recipe: choose t, get a pair. t = 0 gives (3, 0), t = 1 gives (5, 1), t = 5 gives (13, 5). Each satisfies x − 2y = 3 and 2x − 4y = 6.

The letter is arbitrary and the description is not unique: {(s, (s − 3)/2)} describes the same line. Any correct description of the set is a correct answer.

The check at the end is a check of both original equations. This is the same discipline as “Systems of Two Linear Equations” and for the same reason: an arithmetic slip in the substitution produces a pair that fits the equation it came out of.

Interactive

Solving by substitution

Isolate one unknown, put it in the other equation, and check the answer

System
exact fractions throughoutevery step shown

Method

Substituting without losing a solution

Four moves. The third is where the sign errors are.

1

Pick the variable with coefficient 1 or minus 1

It isolates without division and keeps the next line clean. If no coefficient qualifies, choose any variable and expect one fraction, which will clear when you multiply through.

2

Isolate it, and keep that equation

Write y = 9 − 3x down on its own line. It is still one of the two equations of the system, and it is the one that supplies the second coordinate at the end.

3

Substitute into the other equation, in brackets

The whole expression replaces the variable. In 5x − 2y = 4 the y becomes (9 − 3x) inside brackets, so the −2 multiplies both terms: −2(9 − 3x) = −18 + 6x.

4

Back-substitute, then check in both originals

Put the number into the isolated equation to get the partner. Then test the pair in the two equations you were given, not in anything you have derived.

Substitution

Score 0 / 0

5x − 2y = 4 and 3x + y = 9

The second equation has a y with coefficient 1, so that is what to isolate. Everything after that is one-variable algebra from Linear Equations and Inequalities.

5x − 2y = 4 3x + y = 9 → y = 9 − 3x 5x − 2(9 − 3x) = 4 substitute into the first equation 5x − 18 + 6x = 4 −2 multiplies BOTH terms in the bracket 11x = 22 x = 2 y = 9 − 3(2) = 3 check 5(2) − 2(3) = 10 − 6 = 4 ✓ 3(2) + 3 = 6 + 3 = 9 ✓ solution (2, 3)

The second line of the substitution is the one that goes wrong. −2 times −3x is +6x; writing 5x − 18 − 6x = 4 instead gives −x = 22 and x = −22, which fails the very first check. The bracket is what prevents it, and the bracket costs nothing.

Isolating x from the first equation instead is legitimate and gives x = (4 + 2y)/5. The same pair comes out. The fifths are the price of ignoring the coefficient of 1 sitting in the other equation.

Faded rehearsal: solve 4x − y = 11 and 2x + 3y = 9. The cheap first move is supplied: isolate y from the first equation. Put the whole expression into the second in brackets, finish the pair, and use both original equations — not a derived one — for the check.

Common mistakes

1
Substituting back into the equation you isolated fromy = 9 − 3x returned to 3x + y = 9 gives 9 = 9. That is true and it is not evidence of anything — in particular it does not mean the system is dependent. The substitution goes into the equation that has not been used.
2
Dropping the brackets−2y with y = 9 − 3x is −2(9 − 3x). Written without brackets the −2 reaches only the 9, the x term keeps the wrong sign, and the answer that follows is confidently wrong.
3
Stopping at one numberx = 2 is not a solution of a two-variable system. Back-substitution is a step of the method, not a flourish, and the pair is the answer.

Check your understanding

✓
Finish when the fractions do not stop you.

Isolating a variable whose coefficient is 2 or −5 produces an expression such as (9 + 5y)/2, and the method carries on unchanged: multiply through and the denominator goes. The standard is a system in which no coefficient is 1, solved in exact fractions, with the pair checked in both original equations.

Note: Substitution is the method that generalises furthest. It is how “Systems in Three Variables” finishes a three-variable system once elimination has done the reduction, and it is what "back-substitution" means in “Gaussian Elimination”. Elimination is usually quicker when both equations are already in standard form — and slower when one variable is sitting there with a coefficient of 1.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.