How to Solve Systems of Equations
Written by Awn · Published · 7 min read
Quick Answer
Here is how to solve systems of equations. For substitution, solve one equation for a letter and put that into the other. For elimination, add or subtract the equations so one letter cancels. For graphing, find where the lines cross. Then put your answer into both equations to check it.
What Is a System of Equations?
A system is two or more equations with the same letters. Its solution makes all of them true together. For two linear equations, the solution is the point where two lines meet.
For example, "two tickets and one drink cost 11, and a drink costs 4 less than three tickets" gives and .
How to Solve Systems of Equations Step by Step
- Line up the same letters in each equation.
- Choose a method from the table below.
- Get down to one equation with one letter, and solve it.
- Put that value back to find the other letter.
- Check both values in every original equation.
Which Method Should You Use?
| What you see | Method |
|---|---|
| A letter alone, like | Substitution |
| Opposite terms, like and | Elimination |
| Numbers in front of every letter | Elimination |
| You want a picture or an estimate | Graphing |
| Three or more letters | Elimination, again and again |
The system of equations calculator can switch methods so you can compare them.
Method 1: Graphing
Solve and .
- Draw both lines.
- They cross where , at .
- Then . The solution is .
Method 2: The Substitution Method
Solve and .
- The first equation already gives . Put in place of : .
- Solve: , so .
- Put it back: .
The solution is , .
Method 3: The Elimination Method
Solve and .
- The terms are opposites, so add the equations: .
- Solve: .
- Put it back: , so .
The solution is , .
If nothing cancels, multiply one or both equations first. Multiply every term, including the right side.
What If There Is No Solution?
| Result | Meaning | Lines |
|---|---|---|
| One value for each letter | One solution | Cross once |
| A false line, like | No solution | Parallel |
| A true line, like | Infinitely many | The same line |
When You Must Multiply Before Adding
Elimination needs matching terms with opposite signs. If they don't match, multiply first.
Solve and .
- Choose a letter to remove, say . The numbers in front are 2 and 3, so aim for 6.
- Multiply the first equation by 3: .
- Multiply the second by 2: .
- Subtract: , so .
- Put it back: , so .
Check in the second equation: .
Remember to multiply every term, including the number on the right.
Solving With a Matrix
For three or more equations, writing the letters again and again gets slow. An augmented matrix keeps only the numbers.
Take and . Write each equation as a row:
- Replace row 2 with row 2 minus 2 times row 1: .
- That row says , so .
- Row 1 says , so .
This is elimination in a shorter form. You may swap rows, multiply a row by a number that is not zero, or add a multiple of one row to another. None of these changes the solution.
Worked Examples
Example 1: Terms That Already Cancel
Solve and . Here the terms already cancel.
- Add: , so .
- Put it back: , so .
Example 2: Three Equations
Solve , and .
- Add the first and third: .
- Add the second and third: , so .
- Substitute: , so and .
- Then and .
Example 3: A Dependent System
Solve and .
- Double the first equation: . It is the same as the second.
- Subtract: . Every point on the line works.
Example 4: A Word Problem
A movie theater sells adult tickets for 12 dollars and child tickets for 8 dollars. It sells 50 tickets for 480 dollars. How many of each?
- Let be adult tickets and be child tickets. Then and .
- From the first, .
- Substitute: , so .
- Then , so and .
Check the money: .
Example 5: Fractions in the Equations
Solve and .
- Clear the fractions. Multiply the first by 2: . Multiply the second by 3: .
- From the second, .
- Substitute: , so and .
- Then .
Example 6: A Line and a Curve
Solve and .
- Both are equal to , so set them equal: .
- Move everything left and factor: .
- So or .
- Find each : the points are and .
A line and a curve can meet at two points, so always look for a second one. Straight-line systems never have exactly two.
Example 7: Two Speeds
A boat goes 24 miles downstream in 2 hours. The same trip back upstream takes 3 hours. How fast is the boat in still water, and how fast is the current?
- Let be the speed of the boat and the speed of the current.
- Downstream, the current helps: , so .
- Upstream, the current slows the boat: , so .
- Add the two equations: , so and .
Check: downstream at 12 miles per hour for 2 hours is 24 miles. The boat goes 10 miles per hour and the current goes 2.
How to Write a System From a Word Problem
- Name the two things you don't know with letters.
- Look for two facts that involve both of them. Often one is about how many, and the other is about money, weight or distance.
- Write one equation for each fact.
- Solve with any method.
- Answer the question in words, and check both facts.
You need as many separate facts as you have letters. With two letters and one fact, there are many possible answers. This is also why a dependent system has no single answer: its second equation repeats the first.
What the Lines Tell You
Write both equations as , where is the slope and is where the line crosses the -axis.
| Slopes | Where they cross the -axis | Solutions |
|---|---|---|
| Different | Anywhere | One |
| Same | Different places | None, the lines are parallel |
| Same | Same place | Infinitely many, it is one line |
So you can tell how many solutions there are before you solve. For and , both slopes are , but the lines cross the -axis in different places. There is no solution.
When you are solving systems of equations on paper, a rough sketch of both lines is a good way to catch a sign mistake.
Common Mistakes
Forgetting Parentheses When You Substitute
To put into , write . Without parentheses, the second sign is lost.
Adding When You Should Subtract
If the terms are the same sign, such as and , subtract. If they are opposite, add.
Stopping After One Letter
Finding is only half of the answer. Put it back to find , and write both.
Substituting Into the Same Equation
If you solved the first equation for , substitute into the second one. Using the first again only gives something like .
Practice Problems
- Solve and .
- Solve and .
- Solve and .
- Solve and .
- Solve and .
Show the answers
- ,
- ,
- ,
- Infinitely many solutions: every point on
- No solution
Check Your Answer With the Systems Solver
Put your values into both original equations, then compare steps in the simultaneous equations calculator. You can also solve a system with determinants, using Cramer's rule. For more examples, see Systems of Linear Equations in OpenStax.
FAQ
What Are the 3 Methods for Solving Systems?
Graphing, substitution and elimination. Matrices give a fourth way, based on elimination.
Which Method Is Easiest?
Substitution, if a letter is already alone. Otherwise elimination usually needs fewer steps.
How Do You Solve a System With 3 Variables?
Eliminate the same letter from two different pairs of equations. That leaves a system with two letters, which you already know how to solve.
How Do You Check a System Solution?
Put the values into every original equation. One failure means there is a mistake.
Can a System Have Exactly Two Solutions?
Not if all the equations are linear. Two different lines can't cross twice. A line and a curve can.
Can You Add Two Equations Together?
Yes. Each side of an equation is equal to the other, so adding one equation to another adds the same amount to both sides. The balance is kept.
Next step: solve one system by substitution and again by elimination. When both agree, you can trust that you know how to solve systems of equations.
Try the Calculator
Related Pages
- How to Solve EquationsLearn how to solve equations of any common type: linear, fraction, absolute value, root and exponential. Solving equations with clear steps and practice.
- How to Find the Determinant of a MatrixLearn how to find the determinant of a matrix: 2×2, 3×3 and 4×4, by cofactors, diagonals or row operations, with diagrams, examples and practice.