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
- Recognize 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.
Why elimination cannot change the answer
Elimination replaces one equation with the sum of the two. That produces a different system, and it is fair to ask why the new system has the same solutions as the old one. The answer takes two short arguments.
Call the equations and , and replace with for some number , keeping :
No solution is lost. Suppose makes both and true. Then the two sides of are equal numbers, and so are the two sides of . Multiplying equal numbers by keeps them equal, and adding equal numbers to equal numbers keeps them equal. So makes true as well.
No solution is gained. Suppose makes both and true. Subtract copies of from , by the same reasoning, and what is left is . So makes true too.
The two systems are satisfied by exactly the same pairs. Every elimination step swaps a system for an equivalent one, which is why the answer at the end is the answer to the system at the start.
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 store 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 ✓
-
The system and has the single solution . Kai replaces both equations with their sum. What happens to the solutions, and why?
Hint
Write out the system Kai ends up with.
Answer
Kai’s system has infinitely many solutions: every pair .
Full solution
The sum of the two equations is . Kai’s system is that equation written twice, which says only that .
Any at all now works, so , and are all solutions. The original system allowed only .
Replacing one equation keeps the other one on the books, and that retained equation is what rules out the extra pairs. Kai threw it away, so solutions were gained.
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.5Reasoning with Equations and InequalitiesProve that, given a system of two equations in two variables, replacing one equation by the sum of that equation and a multiple of the other produces a system with the same solutions.
- 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.8Expressions and EquationsAnalyze and solve pairs of simultaneous linear equations.
- 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.
- CCSS.MATH.CONTENT.8.EE.C.8bExpressions and EquationsSolve systems of two linear equations in two variables algebraically, and estimate solutions by graphing the equations. Solve simple cases by inspection.
- CCSS.MATH.CONTENT.8.EE.C.8cExpressions and EquationsSolve real-world and mathematical problems leading to two linear equations in two variables.