Solve linear equations with 2, 3, or 4 unknowns from their coefficients and constants.
Solution
—
Inputs and checks
Choose Matrix Size for 2, 3, or 4 variables. Each row represents one equation.
A coefficient is the number multiplying an unknown, and a constant is the known number to the right of the equals sign. Enter each equation across one row, putting its coefficients from left to right and its constant last. For x1 + x2 = 3, enter 1, 1, 3. Decimals and negatives are allowed.
The calculation updates as you edit the matrix; there is no Calculate or Reset button. An entirely blank matrix shows a dash.
An individual blank or nonnumeric cell is treated as zero, so fill every needed coefficient and constant carefully.
Reading the result
When there is a unique solution, Solution lists x1, x2, and any remaining variables to four decimal places.
No solution is also shown for some systems with infinitely many solutions; the tool does not distinguish those cases.
The tool shows the answers only, not the intermediate steps or a final transformed matrix.