Step-by-step math solver
Systems of linear equations
Solve systems of two linear equations by elimination, substitution and determinants (Cramer’s rule); systems of three equations work too, and every solution is checked in each equation.
Free, no sign-in. The solver runs in your browser and does not send your problem to the server.
Part of the course: Linear algebra
Method
- Elimination: multiply the equations so that one variable has opposite coefficients, then add the equations to eliminate it.
- Substitution: solve one equation for one variable and substitute the expression into the other equation.
- Cramer’s rule: if the determinant D of the coefficients is not 0, then x = Dx/D and y = Dy/D. If D = 0, the system has no solution or infinitely many.
- When typing, separate the equations with a semicolon (;).
Worked examples
2x + 3y = 7; 4x − y = 7
Write the system in standard form (unknowns on the left, numbers on the right)
(1): 2x + 3y = 7
(2): 4x − y = 7
Multiply both sides of equation (2) by 3
(2): 12x − 3y = 21
Add the equations to eliminate y
14x = 28
x = 2
Substitute x = 2 into equation (2)
4 · 2 − y = 7
y = 1
Open in the solver · has 3 methods
x + y = 10; 2x − y = 2
Write the system in standard form (unknowns on the left, numbers on the right)
(1): x + y = 10
(2): 2x − y = 2
Add the equations to eliminate y
3x = 12
x = 4
Substitute x = 4 into equation (1)
4 + y = 10
y = 6
Open in the solver · has 3 methods
x + y + z = 6; 2x − y + z = 3; x + 2y − z = 2
Write the system in standard form (unknowns on the left, numbers on the right)
(1): x + y + z = 6
(2): 2x − y + z = 3
(3): x + 2y − z = 2
Gaussian elimination
Subtract 2 times equation (1) from equation (2)
(2): −3y − z = −9
Subtract equation (1) from equation (3)
(3): y − 2z = −4
Add 1/3 times equation (2) to equation (3)
(3): −(7/3)z = −7
Solve from the bottom up
z = 3
y = 2
x = 1
Result
(x; y; z) = (1; 2; 3)
Open in the solver
Practice problems
Work it out on paper first, then tap to see the step-by-step solution.
Not supported yet
- Systems that contain a quadratic equation are not solved yet, for example x² + y² = 25; x + y = 7.
For these, open Chat with the Tutor skill from the solver (sign-in required, uses credit like a normal chat).