How to solve systems of equations (substitution and elimination)
Solve two equations with two unknowns by substitution or elimination, check the answer, and know when there is no solution or infinitely many.
A system is two equations that must both be true at once. The solution is the point where their lines cross.
Method 1: substitution
Best when one equation already says "y = …" or "x = …".
Solve y = 2x − 1 and x + y = 8.
- Replace y in the second equation: x + (2x − 1) = 8
- 3x − 1 = 8, so 3x = 9 and x = 3
- y = 2(3) − 1 = 5
Solution: (3, 5). Check in both: 5 = 2(3) − 1 ✓ and 3 + 5 = 8 ✓.
Method 2: elimination
Best when the equations line up, like ax + by = c.
Solve 3x + 2y = 16 and 5x − 2y = 16.
- Add the equations: the y-terms cancel. 8x = 32, so x = 4.
- Put x = 4 into the first: 12 + 2y = 16, so y = 2.
Solution: (4, 2). Check the second: 20 − 4 = 16 ✓.
If nothing cancels straight away, multiply one or both equations first so a pair of terms becomes opposites.
Why elimination is allowed
Both equations are true statements, so adding equal things to equal things gives another true statement. You're adding balanced scales together.
No solution or infinitely many
- If you get something false like 0 = 5: the lines are parallel and there's no solution.
- If you get something always true like 0 = 0: it's the same line twice, with infinitely many solutions.
Practice it free
Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.