Toolstia / System of equations solver

System of equations solver

Enter the coefficients of a system of linear equations and get the values of x, y, z and w. The solver tells you when the equations have no solution or infinitely many, and shows the determinant.

x +y =
x +y =

Enter the coefficients of each equation, for example 2x + y = 5 as 2, 1 and 5. Leave no box empty, and put 0 where a variable is missing. It solves by Gaussian elimination with row swapping and reports when a system has no solution or many.

How it works

  1. Choose how many equations you have.
  2. Type the coefficients and the right-hand side of each equation.
  3. Read the solution.

How to enter equations

For 2x + y = 5, type 2, 1 and 5. For a missing variable, type 0.

Method

Gaussian elimination with row swapping, which is accurate and handles awkward systems.

No solution or many

Parallel lines never meet, so a system like x + y = 1 and x + y = 2 has no solution. Two equations describing the same line have infinitely many.

Determinant

If the determinant of the coefficients is not zero, the system has exactly one solution.

Questions

Why does it ask for every box?

A blank would be ambiguous, so the tool waits until each box has a number.

Can it do non-linear systems?

No. Only linear equations are supported. Everything happens in your browser, and nothing you enter is sent anywhere.

Are the answers exact?

They are shown to six decimals, computed in floating point.