Algebra 1 · Grades 8, 9
Solving Systems of Linear Equations
Quick answer
A system of equations is two equations that must both be true at once, and its solution is the point where the graphs cross. Solve it by graphing, by substitution, or by elimination. Parallel lines never cross so the system has no solution, and identical lines cross everywhere so it has infinitely many.
What you'll learn
- Solve a system of two linear equations by graphing, substitution or elimination
- Explain why the solution is the point where the graphs intersect
- Recognise systems with no solution or infinitely many solutions
What a system is
A system of equations is two or more equations that must hold at the same time:
Solving it means finding the values of and that satisfy both. One equation alone has infinitely many solutions; demanding both narrows it, usually to a single pair.
Why the answer is where the graphs cross
This follows from something established in graphing linear equations: a graph is the picture of every solution of its equation.
So a point on the first line satisfies the first equation. A point on the second line satisfies the second. A point on both lines satisfies both equations at once — which is the definition of solving the system.
Two different straight lines can share at most one point, so a system of two lines has at most one solution. There is nowhere else to look.
- y = 2x + 1
- y = -x + 7
Three methods
| Method | Best when | Gives |
|---|---|---|
| Graphing | you want to see what is happening | exact answers only if the crossing lands on grid lines |
| Substitution | one equation has a variable alone | exact answers |
| Elimination | coefficients match or are opposites | exact answers |
Graphing is the one that explains; the other two are the ones you rely on.
Worked examples
Common mistakes
Practice problems
-
Solve by substitution: and .
Hint
Both give , so set the two expressions equal.
Answer
Full solution
, so .
Then . Check: ✓
-
Solve by elimination: and .
Answer
Full solution
The -coefficients are opposites, so add: , giving .
Then , so . Check: ✓
-
Solve: and .
Answer
Full solution
, so and . Then .
Check: ✓
-
Solve: and .
Hint
The -coefficients are already opposites.
Answer
Full solution
Add the equations: , so .
Then , giving . Check: ✓
-
How many solutions does this system have: and ?
Answer
None.
Full solution
Setting them equal gives , which is false.
Both lines have slope , so they are parallel and never meet.
-
How many solutions does this system have: and ?
Answer
Infinitely many.
Full solution
Dividing the second by gives , the same equation.
The two describe one line, so every point on it is a solution.
-
Solve: and .
Hint
The -coefficients match, so subtract rather than add.
Answer
Full solution
Subtract the second from the first: , so .
Then , giving and .
Check: ✓
-
A shop sells pens at $2 and notebooks at $5. A customer buys 12 items for $39. How many of each?
Hint
One equation counts items, the other counts money.
Answer
7 pens and 5 notebooks.
Full solution
Let be pens and notebooks: and .
From the first, . Substituting: .
So , giving and . Then .
Check: ✓ and ✓
Frequently asked questions
Which method should I use?
Substitution is easiest when one equation already has a variable alone, like y = 2x + 1. Elimination is easiest when the same variable has matching or opposite coefficients. Graphing shows what is happening but only gives exact answers when the crossing point lands on grid lines.
Why does the solution have to be the intersection?
A point on a line is a solution of that line's equation. A point on both lines satisfies both equations at once, which is exactly what solving a system asks for. So the crossing point is the only candidate.
What if the variables all cancel out?
Then the lines are parallel or identical. If what remains is false, like 0 = 5, the lines never meet and there is no solution. If it is true, like 0 = 0, they are the same line and every point on it is a solution.
Formulas on this page
Key terms in this lesson
- System of equations
- A system of equations is two or more equations that must all be true at once. For two lines, the solution is the point where their graphs cross.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.REI.C.6Reasoning with Equations and InequalitiesSolve systems of linear equations exactly and approximately (e.g., with graphs), focusing on pairs of linear equations in two variables.
- CCSS.MATH.CONTENT.8.EE.C.8aExpressions and EquationsUnderstand that solutions to a system of two linear equations in two variables correspond to points of intersection of their graphs, because points of intersection satisfy both equations simultaneously.