Systems of Linear Equations
Solve systems of two linear equations by graphing, substitution and elimination, recognize no-solution cases, and set up systems from word problems.
Welcome back!
Step 1 of 12Learn
Two unknowns need two clues
A school theater sold 150 tickets to its spring play and took in $1,520. Adult tickets cost $12 and child tickets cost $8. How many of each were sold?
There are two unknowns: adult tickets a and child tickets c. One equation can't pin down two unknowns, because a + c = 150 is true for 100 and 50, for 75 and 75, and many other pairs. But the story gives a second clue, the money:
- a + c = 150 (tickets)
- 12a + 8c = 1520 (dollars)
Two equations with the same variables form a system of equations. A solution is a pair of values that makes both equations true at the same time.
Graphically, each linear equation is a line, and every point on a line satisfies that equation. A point satisfying both must lie on both lines, so the solution is where the lines cross.
In this lesson you'll learn three methods: graphing, substitution and elimination. All three give the same answer; they just suit different situations. By the end you'll solve the theater problem (and checking will take one line).
Step 2 of 12Learn
Graphing, and the three possible outcomes
To solve by graphing, put both equations in slope-intercept form, graph them, and read the crossing point.
Example. y = x + 1 and y = −2x + 7. The first starts at (0, 1) and rises 1; the second starts at (0, 7) and falls 2. They cross at (2, 3). Check: 3 = 2 + 1 and 3 = −4 + 7. Both true.
Two lines can relate in only three ways, so a linear system has one of three outcomes:
- One solution. The lines have different slopes, so they cross exactly once.
- No solution. The lines are parallel: same slope, different intercepts. They never meet. Example: y = 2x + 1 and y = 2x − 3.
- Infinitely many solutions. Both equations describe the same line, like y = 2x + 1 and 4x − 2y = −2. Every point on it works.
Graphing is great for seeing what's happening, but it's only as accurate as your drawing. A crossing at (2.4, 3.7) is hard to read off graph paper. That's why algebra methods matter: they give exact answers every time.
Step 3 of 12Practice · Choose one
How many solutions does the system y = 3x + 2 and y = 3x − 5 have?
Step 4 of 12Practice · Diagram
Two lines, three possible outcomes
y = −x + 4 and 2y = −2x + 8. Which branch is this system?
Tap the shape that answers the question, then press Check.
- Compare slopes and intercepts
- Different slopes
The lines cross once: exactly one solution.
- Same slope, different b
Parallel lines never meet: no solution.
- Same slope, same b
The same line twice: infinitely many solutions.
Step 5 of 12Learn
The substitution method
Substitution works best when one equation already has a variable alone, like y = … or x = ….
Solve: y = 2x − 1 and 3x + y = 9.
- The first equation says y is 2x − 1. So replace y in the second equation with (2x − 1): 3x + (2x − 1) = 9
- Solve the one-variable equation: 5x − 1 = 9, so 5x = 10 and x = 2.
- Substitute back to find y: y = 2(2) − 1 = 3.
- Check in both original equations: 3 = 4 − 1 is true; 3(2) + 3 = 9 is true.
The solution is the ordered pair (2, 3).
If no variable is alone, solve one equation for whichever variable has a coefficient of 1 or −1. In x + 4y = 10, solve for x: x = 10 − 4y. Then substitute into the other equation.
Two mistakes to avoid: substituting the expression back into the same equation it came from (you'll get something like 0 = 0 and learn nothing), and stopping after finding x. A system's solution needs both values.
Step 6 of 12Practice · Work it out
Solve the system y = x + 4 and 2x + y = 19. What is y?
Step 7 of 12Learn
The elimination method
Elimination works best when both equations are in standard form, Ax + By = C. The idea: add or subtract the equations so one variable cancels.
Solve: 2x + 3y = 12 and 4x − 3y = 6.
The y-terms, +3y and −3y, are opposites. Add the equations, left side to left side and right to right:
(2x + 4x) + (3y − 3y) = 12 + 6, so 6x = 18 and x = 3.
Substitute into either equation: 2(3) + 3y = 12, so 3y = 6 and y = 2. Solution: (3, 2).
When nothing cancels yet, multiply one equation (or both) first. Solve x + 2y = 7 and 3x − y = 7.
- Multiply the second equation by 2: 6x − 2y = 14
- Add it to the first: 7x = 21, so x = 3
- Then 3 + 2y = 7, so y = 2.
The key rule: when you multiply an equation, multiply every term, including the number on the right side. Writing 6x − 2y = 7 (forgetting to double the 7) is the most common elimination error.
Step 8 of 12Practice · Put in order
Put the steps for solving 3x + 2y = 16 and x − 2y = 0 by elimination in order.
Drag the items, or use the arrow buttons, to put them in order.
- Check (4, 2) in both original equations
- Substitute x = 4 into x − 2y = 0 to get y = 2
- Divide to find x = 4
- Add the equations to get 4x = 16
- Notice the y-terms, +2y and −2y, are opposites
Step 9 of 12Compare
Three ways to solve a system
| Aspect | Graphing | Substitution | Elimination |
|---|---|---|---|
| Best when | You want a picture or a quick estimate | A variable is already alone (y = …) | Both equations are in Ax + By = C form |
| First move | Put both in y = mx + b | Replace that variable in the other equation | Add or subtract to cancel a variable |
| Watch out for | Non-integer answers are hard to read | Forgetting parentheses when substituting | Multiplying only one side of an equation |
Step 10 of 12Learn
Solving the theater problem
Back to the play: a + c = 150 and 12a + 8c = 1520.
By substitution. Solve the first for c: c = 150 − a. Substitute:
12a + 8(150 − a) = 1520 12a + 1200 − 8a = 1520 4a = 320, so a = 80, and c = 150 − 80 = 70.
Check: 80 + 70 = 150 tickets, and 12(80) + 8(70) = 960 + 560 = $1,520. Both clues are satisfied: 80 adult tickets and 70 child tickets.
By elimination. Multiply the first equation by 8: 8a + 8c = 1200. Subtract it from the second: 4a = 320. Same result, a = 80.
Which method should you choose?
- Graphing: when you want a picture or an estimate, or a graphing tool does the work.
- Substitution: when a variable is already alone, or has a coefficient of 1.
- Elimination: when equations are in standard form, especially if coefficients already match or are opposites.
Word problems with "total number" and "total value" (tickets, coins, mixtures) nearly always produce one count equation and one value equation, exactly like this one.
Step 11 of 12Practice · Work it out
Three notebooks and two pens cost $13. One notebook and two pens cost $7. How many dollars does one pen cost?
Step 12 of 12Practice · Choose one
Which ordered pair is the solution of x + y = 5 and x − y = 1?
Lesson complete!