How to solve systems of equations
A system of equations asks for values that satisfy several equations at once. This guide solves the same example three ways - substitution, elimination and Cramer's rule - and shows how to recognise a system with no solution or infinitely many.
The short version
- Write each equation in standard form. ax + by = c, with the variables on the left.
- Choose a method. Substitution, elimination or determinants.
- Solve for one variable, then the other. Back-substitute to find the rest.
- Check in both equations. The pair must satisfy every equation.
Skip the arithmetic. The free System of Equations Solver does this for you, shows the formula and the working with your own numbers, and runs in your browser - nothing you type is uploaded. Also useful: Quadratic Formula Calculator, Slope Calculator.
The example
Solve 2x + 3y = 13 and x − y = −1.
Method 1: substitution
Method 2: elimination
Method 3: Cramer's rule
Cramer's rule replaces one variable's column with the right-hand sides and divides determinants. It is easy to show as a list of steps and works the same for three equations, but is slower by hand for large systems.
Using it on a word problem
Tickets cost 12 for adults and 8 for children. 10 tickets were sold for a total of 104. How many of each?
Always define your variables in words first (here a = adult tickets, c = child tickets), turn each sentence of the problem into an equation, and check the answer against the original wording.
No solution and infinitely many solutions
Each equation in two variables is a line, and the solution is where they cross.
- One solution: the lines cross once. The determinant D is not zero.
- No solution: the lines are parallel. x + y = 2 and 2x + 2y = 5 contradict each other.
- Infinitely many: the equations are the same line. x + y = 2 and 2x + 2y = 4 describe it twice.
When D = 0 you cannot divide by it, which is how you know a system is one of the two special cases. With three variables the equations are planes and the same three outcomes apply.