Solving simultaneous equations
This short guide explains what the system of equations calculator does, how to get the best result and when another tool is a better fit.
What a system of equations is
A system of two linear equations, also called simultaneous equations, describes two straight lines. The solution is the point where they cross, which gives one value of x and one value of y that satisfy both equations at once. Most real problems with two unknown quantities can be written this way.
This calculator uses Cramer’s rule, which works out x and y directly from the six coefficients using determinants.
Getting the equations into shape
Each equation must be in the form a·x + b·y = c. If you have y = 2x + 1, rearrange it to −2x + y = 1, so a = −2, b = 1 and c = 1. If an equation has no y term, its b is 0; if it has no x term, its a is 0. Careful signs make all the difference.
Fractions can be entered as decimals, or multiply the whole equation through to clear them first.
A worked example
Five tickets cost 45 in total. Adult tickets cost 12 and child tickets cost 7. How many of each? Let x be adults and y children. The equations are x + y = 5 and 12x + 7y = 45. Enter 1, 1, 5 and 12, 7, 45. The calculator gives x = 2 and y = 3: two adults and three children. Check: 2 × 12 + 3 × 7 = 24 + 21 = 45.
Mixtures, prices and speeds are other classic uses.
When there is no single answer
If the determinant is zero, the two lines are parallel or identical. Parallel lines never meet, so there is no solution, as with x + y = 2 and x + y = 5. Identical lines meet everywhere, so there are infinitely many solutions, as with x + y = 2 and 2x + 2y = 4. In both cases the calculator explains that there is no unique solution.
In a word problem, this usually means a piece of information is missing or repeated.
Other ways to solve
By hand, you can use substitution, where you rearrange one equation for x and put it into the other, or elimination, where you add or subtract the equations to remove one variable. Both give the same answer as this calculator. For three or more unknowns, you need matrix methods or a spreadsheet.
- Write each equation as ax + by = c
- Use 0 for missing terms
- Determinant 0 means no unique solution
Further reading: How Cramer’s rule works. It explains the format behind this system of equations calculator in more detail.
