Allday Education

Solving Two-Variable Systems

Graphing shows a system's solution but rarely gives exact values. Substitution and elimination find the solution algebraically, no graph required.

Substitution shines when one variable is already isolated; elimination shines when adding the equations cancels a variable. Both reach the same answer.

Substitution

Solve one equation for a variable, then substitute that expression into the other. Now you have a single equation in one variable to solve.

Back-substitute the value you found to get the other variable. This works best when a coefficient is already 11.

Whichever method you use, the answer is the single point that lies on both lines — the crossing point shown below for a sample system. Substitution and elimination just find its coordinates exactly, without drawing.

-4-3-2-11234-4-3-2-11234xy
(1,3)(1, 3)

Elimination

Line the equations up and add or subtract so one variable cancels. You may need to multiply an equation first to make coefficients match.

After one variable is eliminated, solve for the other and back-substitute. If both variables vanish and you get a true statement, there are infinitely many solutions; a false statement means none.

Worked examples

Example 1: elimination

Solve x+y=6x + y = 6 and xy=2x - y = 2.

Add the equations to cancel y2x=82x = 8
Solve for xx=4x = 4
Back-substitute4+y=6y=24 + y = 6 \Rightarrow y = 2

Answer: (4,2)(4, 2)

Example 2: substitution

Solve y=2xy = 2x and x+y=9x + y = 9.

Substitute 2x for yx+2x=9x + 2x = 9
Solve for x3x=9x=33x = 9 \Rightarrow x = 3
Find yy=6y = 6

Answer: (3,6)(3, 6)

Example 3: elimination after multiplying

Solve 2x+3y=122x + 3y = 12 and xy=1x - y = 1.

Nothing cancels yet, so multiply the second equation by 33x3y=33x - 3y = 3
Add the equations to cancel y5x=155x = 15
Solve for xx=3x = 3
Back-substitute3y=1y=23 - y = 1 \Rightarrow y = 2

Answer: (3,2)(3, 2)

Try one yourself

Common questions

Substitution or elimination — which should I use?

Use substitution when a variable is already isolated (or has coefficient 1). Use elimination when adding or subtracting the equations neatly cancels a variable.

What if both variables cancel?

A true statement (like 0=00 = 0) means infinitely many solutions; a false one (like 0=50 = 5) means no solution.

Do the two methods ever give different answers?

No. A consistent system has one solution set, and both methods find it — pick whichever is less work.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1