System of Equations Solver
Enter the numbers from two equations. Get x and y by elimination.
How it works
Each equation goes in as ax + by = c. The calculator multiplies the equations so the x terms match, subtracts to get y, then puts y back in to get x. Parallel lines give no solution, and two copies of one line give infinitely many.
Example
Solve 2x + 3y = 12 and x − y = 1.
x = 3, y = 2
Steps
- The equations: 2x + 3y = 12 and x − y = 1.
- Multiply the first equation by 1 and the second by 2, so both x terms match: 2x + 3y = 12 and 2x − 2y = 2.
- Subtract to remove x: −5y = −10, so y = 2.
- Put y into the first equation: 2x + 6 = 12, so x = 3.
- Check the second equation: 1 = 1.
More examples
Solve 3x − 2y = 4 and 5x + 4y = 14.
x = 2, y = 1
Steps
- The equations: 3x − 2y = 4 and 5x + 4y = 14.
- Multiply the first equation by 5 and the second by 3, so both x terms match: 15x − 10y = 20 and 15x + 12y = 42.
- Subtract to remove x: 22y = 22, so y = 1.
- Put y into the first equation: 3x − 2 = 4, so x = 2.
- Check the second equation: 14 = 14.
Solve x + y = 4 and 2x + 2y = 10.
No solution
Steps
- The equations: x + y = 4 and 2x + 2y = 10.
- The x and y coefficients are in the same ratio, so the lines are parallel.
- The constants don’t match that ratio: the lines never meet.
Common mistake
Line up the terms first. For y = 2x + 1, rewrite it as −2x + y = 1, so a = −2, b = 1 and c = 1.
Questions
Elimination or substitution?
Substitution is quicker when a variable already stands alone, like y = 2x + 1. Elimination is quicker when the coefficients match or are easy to match. Both give the same answer.
How do I check the answer?
Put x and y back into both original equations. Both have to come out true.
What does it look like on a graph?
Each equation is a line, and the solution is where they cross. Parallel lines never cross, so there is no solution.