Systems of Equations
A system of equations is a set of equations that must all be true at once. Learn to solve systems of two linear equations by graphing, substitution and elimination, recognize systems with no solution or infinitely many, and set up word problems.
A system of equations is a set of two or more equations with the same variables, and its solution is the set of values that makes every equation true at the same time. For the system x + y = 5 and x − y = 1, the solution is x = 3, y = 2, written as the ordered pair (3, 2), because 3 + 2 = 5 and 3 − 2 = 1. There are three standard ways to solve a system of linear equations: graphing, substitution and elimination.
This page explains all three methods step by step, shows how to tell when a system has one solution, no solution or infinitely many, and turns typical word problems (tickets, coins, mixtures, phone plans) into systems. Practice problems with answers are at the end.
What is a system of equations?
A single equation with two variables, such as x + y = 5, has infinitely many solutions: (0, 5), (1, 4), (2.5, 2.5) and so on. A second equation narrows them down. Usually only one pair fits both, and that pair is the solution of the system. Systems are often written with a brace or simply one below the other:
x + y = 5
x − y = 1
Solving systems by graphing
Every linear equation in two variables is a straight line. The solution of the system is the point that lies on both lines, their intersection.
- Write each equation in slope-intercept form y = mx + b.
- Graph both lines on the same coordinate plane.
- Read off the point where they cross.
- Check the point in both equations.
Graphing shows clearly what is going on, but reading the exact point is hard when the solution is not a whole number, like (2.4, −1.7). For exact answers, use algebra.
Solving systems by substitution
The substitution method works best when one equation is already solved for a variable, or when a variable has the coefficient 1 or −1.
- Solve one equation for one variable.
- Substitute that expression into the other equation. You get an equation with one variable.
- Solve it.
- Put the value back into the expression from step 1 to find the other variable.
- Check both values in both original equations.
Solving systems by elimination
The elimination method (also called the addition method) adds or subtracts the two equations so that one variable disappears. It is usually the fastest method when both equations are in standard form Ax + By = C.
- Line up the equations so the x-terms, y-terms and constants are in columns.
- If needed, multiply one or both equations so that one variable has opposite coefficients (like 3y and −3y).
- Add the equations. That variable cancels.
- Solve for the remaining variable, then substitute back to find the other.
- Check in both original equations.
Which method should you use?
- Graphing: to see the situation or estimate; not for exact non-integer answers.
- Substitution: when a variable is already isolated or has coefficient 1 or −1.
- Elimination: when both equations are in standard form, especially if a variable already has equal or opposite coefficients.
All three methods give the same answer. With larger systems (three or more variables), elimination is applied step by step, and matrices organize that work.
One solution, no solution or infinitely many
Two lines in a plane can cross once, never (parallel lines) or everywhere (the same line). So a system of two linear equations has exactly one solution, no solution or infinitely many solutions.
| Lines | Slopes and intercepts | Solutions | What algebra shows |
|---|---|---|---|
| intersecting | different slopes | exactly one | a single pair like (3, 2) |
| parallel | same slope, different y-intercepts | none | a false statement like 0 = 2 |
| the same line | same slope, same y-intercept | infinitely many | a true statement like 0 = 0 |
A quick test with the coefficients, and the same question for single equations and quadratics, is on the page number of solutions.
Systems of equations word problems
When a problem has two unknown quantities and gives two facts about them, write one equation for each fact.
- Name the two unknowns with letters.
- Write one equation for the total count and one for the total value (or for the two conditions given).
- Solve with substitution or elimination.
- Answer in words and check against the story.
Common mistakes
- Stopping after one variable: a solution of a system needs both x and y.
- Multiplying only one side: when you multiply an equation, multiply every term, including the constant.
- Sign errors when subtracting equations: subtracting −3y means adding 3y. Adding after multiplying by −1 is often safer.
- Substituting into the same equation you rearranged: that only gives 0 = 0. Use the other equation.
- Checking in only one equation: the pair must satisfy both.
Practice problems
Frequently asked questions
How do you solve a system of equations?
Use substitution (solve one equation for a variable and plug it into the other), elimination (add or subtract the equations to cancel a variable) or graphing (find where the lines cross). Then check the pair in both equations.
When should I use substitution and when elimination?
Substitution is easiest when a variable is already alone or has coefficient 1. Elimination is easiest when both equations are in the form Ax + By = C, especially when a variable has equal or opposite coefficients.
How do you know if a system has no solution?
If solving leads to a false statement like 0 = 2, there is no solution. On a graph the lines are parallel: same slope, different y-intercepts.
What does infinitely many solutions mean for a system?
Both equations describe the same line, so every point on it solves the system. Algebra shows this as a true statement like 0 = 0.
Can a system of linear equations have exactly two solutions?
No. Two different straight lines cross at most once, so there is one solution, none or infinitely many. Two solutions are possible only when a curve is involved, for example a line and a parabola.
Keep learning
- Previous topic: linear equations.
- Next topic: slope.
- One, none or infinitely many: number of solutions.
- Calculator: system of equations calculator.
- In German: Lineare Gleichungssysteme.
Spotted a mistake or have a request? Send us a short message and we will take care of it.