The key idea
One equation with two variables has endless solutions: every point on its line. A second equation adds a second line. The point where both lines cross is the only pair that works for both, so that is the solution of the system.
| Method | Use it when | What you do |
|---|---|---|
| Substitution | one variable is already alone, like | plug that expression into the other equation |
| Elimination | both equations look like | add or subtract so x or y cancels, multiplying first if needed |
| Graphing | you want to see the answer or check it | graph both lines and read the crossing point |
| The lines are | Slopes | Solutions | What the algebra shows |
|---|---|---|---|
| crossing | different | exactly one | a single value for x and for y |
| parallel | same, different intercepts | none | a false statement like |
| the same line | same, same intercept | infinitely many | a true statement like |
Worked examples
Example 1: substitution
Problem Solve the system and .
- The first equation says y is the same as . Replace y in the second equation with , in parentheses.
- Distribute and combine like terms.
- Add 2, then divide by 7.
- Put into the equation that is already solved for y.
- Check in the other equation: . It works.
Answer
Example 2: elimination by adding
Problem Solve the system and .
- The y terms are and . Adding the equations makes them cancel.
- Simplify.
- Divide by 6.
- Put into either original equation. The first one gives:
- Subtract 12, then divide by 3.
Answer
Example 3: elimination after multiplying both equations
Problem Solve the system and .
- Nothing cancels yet. The y coefficients are 4 and , and both go into 12. Multiply the first equation by 3 and the second by 2, every term.
- The second equation times 2:
- Add the two new equations. The y terms cancel.
- Divide by 19.
- Put into .
- Solve for y, then check in the second equation: .
Answer
Example 4 (test-hard): a mixture word problem
Problem A coffee shop mixes a $9 per pound coffee with a $14 per pound coffee to make 20 pounds of a blend worth $11 per pound. How many pounds of each does it use?
- Let be pounds of the $9 coffee and be pounds of the $14 coffee. The weights add to 20, and the values add to dollars. Write both equations: and .
- Multiply the first equation by 9 so the c terms match: . Subtract it from the second equation.
- Simplify.
- Divide by 5.
- Then . Check the value: .
Answer 12 pounds of the $9 coffee and 8 pounds of the $14 coffee.
Common mistakes
- Plugging back into the equation you just used. In substitution, putting x back into the rearranged equation you substituted from only gives . Fix: use the other equation, or the one already solved for y.
- Scaling only part of an equation. When you multiply by 3, the 10 becomes 30 too.
- Sign slips when subtracting equations. Subtracting means subtracting both terms. Fix: put the whole equation in parentheses, or multiply it by and add instead.
- Stopping after one variable. The solution of a system is an ordered pair. Find both values and write .
- Mixing up 0 = 0 and 0 = 6. A true statement means the same line (infinitely many solutions). A false one means parallel lines (no solution).
Quick methods
Practice
5 practice questions
Solve the system and .
Show answer
Answer:
Substitute: , so and . Then . The pair has the right numbers in the wrong order. fits the first equation but not the second.
Solve the system and .
Show answer
Answer:
Add the equations: , so . Then , so and . The choice with loses the sign when subtracting 10.
How many solutions does the system and have?
- None
- Exactly one
- Exactly two
- Infinitely many
Show answer
Answer: None
Solve the second for y: . Both lines have slope 3 but different intercepts (2 and ), so they are parallel and never cross. Two lines can never cross exactly twice.
For what value of does the system and have infinitely many solutions?
Show answer
Answer:
Infinitely many solutions means the second equation is the first one multiplied by a number. and 14 are both 2 times and 7, so must be 2 times : . With the lines just cross once.
A farm has chickens and goats. Together they have 30 heads and 84 legs. How many goats are there?
- 12
- 18
- 21
- 24
Show answer
Answer: 12
Let be chickens and be goats: and . Double the first: . Subtract: , so . 18 is the number of chickens, and 24 forgets to divide by 2.
Frequently asked questions
Which method should I use to solve a system?
Use substitution when one equation already has x or y alone. Use elimination when both equations are in form, especially if a variable already has matching or opposite coefficients. Graphing is best for checking, or when the question asks what the system looks like.
What does the solution of a system mean on a graph?
Each equation is a line. The solution is the point where the two lines cross, because that point is on both lines, so its x and y make both equations true. Parallel lines never cross, so they have no solution.
How can I tell if a system has no solution or infinitely many?
Solve it and look at the end. If the variables cancel and you get something false, like , there is no solution. If you get something true, like , the equations are the same line and there are infinitely many solutions.
Do I always have to find both x and y?
For a full solution, yes, because the answer is a point . In a word problem, read the question: if it only asks for the number of goats, you can stop once you have that, but finding the other value is a good way to check.