Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Solve a System of Equations by Substitution

Solve one equation for one variable, put that expression into the other equation, and you have a single equation in a single unknown. Solve it, then substitute back for the other variable.

Recognize the task

Two equations in two unknowns where one variable is already isolated or has coefficient ±1\pm 1: y=2x−1y = 2x - 1 and 3x+y=93x + y = 9; x+2y=7x + 2y = 7 and 3x−y=73x - y = 7; or a line and a curve, y=x2y = x^2 and y=x+2y = x + 2. Test: can you write one variable alone in one step?
Systems are treated in the linear algebra section: linear systems, with the three possible outcomes.

Steps

StepOn x+2y=7x + 2y = 7 and 3x−y=73x - y = 7
1Solve one equation for one variable. Choose the variable with coefficient 11 or −1-1 to avoid fractions.Addition property of equality ↗x=7−2yx = 7 - 2y
2Substitute into the other equation. Replace the variable everywhere, in brackets.3(7−2y)−y=73(7 - 2y) - y = 7
3Solve the one-variable equation. A linear equation. If the variable cancels: false statement = no solution, true statement = infinitely many.21−7y=7  ⇒  y=221 - 7y = 7 \;\Rightarrow\; y = 2
4Back-substitute and check in both equations. Use the isolated form from step 1.x=7−4=3x = 7 - 4 = 3; check: 3+4=73 + 4 = 7, 9−2=79 - 2 = 7 ✓

Worked examples

Example 1 · a line and a parabola

nonlinear
y=x2y = x^2, y=x+2y = x + 2: x2=x+2x^2 = x + 2
substitute
(x−2)(x+1)=0(x - 2)(x + 1) = 0: (2,4)(2, 4) and (−1,1)(-1, 1)

Example 2 · parallel lines

no solution
y=2x+1y = 2x + 1, 4x−2y=64x - 2y = 6: 4x−2(2x+1)=6⇒−2=64x - 2(2x + 1) = 6 \Rightarrow -2 = 6
no solution
a false statement

Example 3 · the same line twice

infinitely many
y=3x−2y = 3x - 2, 6x−2y=46x - 2y = 4: 6x−6x+4=4⇒0=06x - 6x + 4 = 4 \Rightarrow 0 = 0
infinitely many: every point of y=3x−2y = 3x - 2

See it happen

Each linear equation is a line, and the solution is where the lines cross. Substitution walks along one line, describing its points with one variable, and asks which of those points also lies on the other line.

Common mistakes

Substituting back into the same equation

✗ putting x=7−2yx = 7 - 2y into x+2y=7x + 2y = 7
✓ substitute into the other equation, or you get 7=77 = 7

Dropping the bracket

✗ 3⋅7−2y−y=73 \cdot 7 - 2y - y = 7
✓ 3(7−2y)=21−6y3(7 - 2y) = 21 - 6y

Reporting only one coordinate

✗ "y=2y = 2"
✓ a solution is a pair: (3,2)(3, 2)