Systems of Linear Equations
Solve two linear equations together by graphing, substitution and elimination, and recognize systems with one solution, no solution or infinitely many.
Welcome back!
Step 1 of 13Learn
Where two lines meet
Gym A charges $50 to join plus $10 a month. Gym B charges $20 to join plus $15 a month. Which is cheaper?
Write each cost as a line, with x months:
- Gym A: y = 10x + 50
- Gym B: y = 15x + 20
Together these are a system of linear equations. A solution of the system is a point that is on both lines: the place where they cross.
Graph them and they meet at (6, 110). After 6 months, both gyms have cost exactly $110. Before that, Gym B is cheaper because of its low sign-up fee. After that, Gym A is cheaper because of its lower monthly rate.
Graphing shows the big picture, but reading an exact intersection from a sketch is hard, especially when it lands between grid lines, such as (2.4, 7.8). So we also solve systems with algebra. Set the two expressions for y equal: 10x + 50 = 15x + 20. Then 30 = 5x, and x = 6. Substitute back: y = 10(6) + 50 = 110.
Step 2 of 13Practice · Chart
Gym A vs Gym B
Gym B starts cheaper but rises faster. The lines cross at the solution of the system.
Tap the month when both gyms have cost the same.
Tap the point that answers the question, then press Check.
| Months | Gym A: 10x + 50 | Gym B: 15x + 20 |
|---|---|---|
| 0 | $50 | $20 |
| 2 | $70 | $50 |
| 4 | $90 | $80 |
| 6 | $110 | $110 |
| 8 | $130 | $140 |
| 10 | $150 | $170 |
Step 3 of 13Practice · Work it out
Streaming plan A costs $8 per month plus a $40 device. Plan B costs $12 per month with no device fee. After how many months have the two plans cost the same total?
Step 4 of 13Learn
The substitution method
Substitution works best when one equation already has a variable alone.
Solve: y = 2x − 1 and 3x + y = 9.
- The first equation says y equals 2x − 1, so substitute 2x − 1 for y in the second: 3x + (2x − 1) = 9.
- Solve: 5x − 1 = 9, so 5x = 10 and x = 2.
- Substitute back into either equation: y = 2(2) − 1 = 3.
- Check in both equations: 3 = 2(2) − 1, and 3(2) + 3 = 9. Both true.
The solution is the ordered pair (2, 3).
If no variable is alone, solve one equation for one variable first, choosing one with a coefficient of 1 to avoid fractions. For x + 4y = 14 and 2x − y = 1, solve the first for x = 14 − 4y and substitute.
Use parentheses when you substitute an expression. Writing 3x + 2x − 1 without them is fine here, but substituting into 3x − y without parentheses gives 3x − 2x − 1 instead of the correct 3x − 2x + 1.
Step 5 of 13Practice · Work it out
Solve the system y = x + 4 and 2x + y = 19. What is the value of y?
Step 6 of 13Learn
The elimination method
Elimination works best when both equations are in standard form. The idea is to add or subtract the equations so one variable cancels.
Solve: 2x + 3y = 12 and 4x − 3y = 6.
The y terms are +3y and −3y, so add the equations: 6x = 18, and x = 3. Substitute into the first: 6 + 3y = 12, so y = 2. The solution is (3, 2).
If nothing cancels right away, multiply one or both equations first. For x + 2y = 7 and 3x − y = 7, multiply the second equation by 2 to get 6x − 2y = 14. Now add it to the first: 7x = 21, so x = 3, and then y = 2.
Why is adding equations allowed? Each equation says two quantities are equal. Adding equal amounts to both sides of another equation keeps it balanced, the same idea you used to solve one-variable equations.
Step 7 of 13Compare
Three ways to solve a system
| Aspect | Graphing | Substitution | Elimination |
|---|---|---|---|
| First move | Draw both lines | Replace one variable with an expression | Add or subtract the equations |
| Best when | You want a picture or an estimate | A variable is already alone (y = …) | Both are in standard form |
| Strength | Shows the situation at a glance | Direct, few steps | Fast with opposite coefficients |
| Weak spot | Imprecise with fractions | Messy if nothing is alone | May need to multiply first |
Step 8 of 13Practice · Put in order
Put the steps for solving x + y = 10 and x − y = 4 by elimination in order.
Drag the items, or use the arrow buttons, to put them in order.
- Divide by 2: x = 7
- Substitute into x + y = 10: 7 + y = 10
- Add the equations to eliminate y: 2x = 14
- Check in x − y = 4: 7 − 3 = 4
- Solve: y = 3
Step 9 of 13Learn
One solution, none, or infinitely many
Two lines in a plane can relate in only three ways, so a linear system has three possible outcomes:
- One solution: the lines have different slopes, so they cross at exactly one point.
- No solution: the lines are parallel, with the same slope and different intercepts. They never meet. Algebra ends with a false statement like 0 = 5.
- Infinitely many solutions: the equations describe the same line. Every point on it is a solution. Algebra ends with a true statement like 0 = 0.
Example with no solution: y = 2x + 1 and y = 2x − 3. Setting them equal gives 2x + 1 = 2x − 3, so 1 = −3. False. In a story, this might be two phone plans with the same monthly rate but different fees: one is always cheaper, and they never cost the same.
Example with infinitely many: 2x + 4y = 8 and x + 2y = 4. The first is just the second multiplied by 2.
You can predict the outcome before solving by writing both equations in slope-intercept form and comparing slopes and intercepts.
Step 10 of 13Practice · Diagram
How many solutions?
Write both lines as y = mx + b, then follow the branches.
y = 3x + 1 and y = 3x − 5: which outcome?
Tap the shape that answers the question, then press Check.
- Compare m and b
- Different slopes: one solution
The lines cross exactly once.
- Same slope
- Different b: no solution
Parallel lines never meet. Algebra ends in something false, like 0 = 6.
- Same b: infinitely many
The same line twice. Algebra ends in something always true, like 0 = 0.
Step 11 of 13Practice · Match the pairs
Match each system with its number of solutions.
Tap an answer, then tap the place where it belongs (or drag it there).
- y = 3x + 1 and y = −x + 5
- y = 3x + 1 and y = 3x − 2
- y = 3x + 1 and 6x − 2y = −2
- x = 2 and y = 7
Step 12 of 13Note
Step 13 of 13Practice · Work it out
A school play sells adult tickets for $8 and child tickets for $5. One evening it sells 30 tickets for a total of $195. How many adult tickets were sold?
Lesson complete!