Initial augmented matrix
- Input
- [1 1 1 | 6] [0 2 5 | -4] [2 5 -1 | 27]
- Expected output
- [1 0 0 | 5] [0 1 0 | 3] [0 0 1 | -2]
After full row reduction, the solution (x=5, y=3, z=-2) shows up directly in the last column.
matrix row reduction
Row-reducing a matrix means applying a sequence of elementary row operations (swapping two rows, multiplying a row by a nonzero number, or adding a multiple of one row to another) until you reach a simpler form to solve, the reduced row echelon form (RREF). This page opens a sample 3x3 system, large enough to show a row swap from partial pivoting.
After full row reduction, the solution (x=5, y=3, z=-2) shows up directly in the last column.
The third row has the largest absolute value in the first column (2), so it becomes the new first row before eliminating the rest, avoiding a small pivot.
One equation per line, with an equals sign separating the two sides, for example "2x + 3y = 8" or "x - y = -1". The calculator accepts an implicit coefficient ("x" means the same as "1x"), a negative sign, unknowns with any name, a variable appearing on both sides of the equals sign ("2x + 1 = x + 4"), and a variable that simply doesn't appear in one of the equations, it is treated as a zero coefficient automatically.
In row echelon form, each pivot just needs to be nonzero and the rows below it are zeroed out beneath it. In reduced row echelon form (RREF), on top of that, each pivot is exactly 1 and is the only nonzero value in its entire column, including the rows above it. This calculator always produces the reduced form, because it lets you read the solution off directly.
Because of partial pivoting: the row with the largest absolute value in that column is moved into the pivot position, which avoids halting the algorithm when the natural value in that spot is zero.
calculadoraSistemaEquacoes.classificationDesc.determined
Matrix representation
[ 1 1 1 ] [ 0 2 5 ] [ 2 5 -1 ]
[ x ] [ y ] [ z ]
[ 6 ] [ -4 ] [ 27 ]
[ 1 1 1 | 6 ] [ 0 2 5 | -4 ] [ 2 5 -1 | 27 ]
[ 1 0 0 | 5 ] [ 0 1 0 | 3 ] [ 0 0 1 | -2 ]
[ 2 5 -1 | 27 ] [ 0 2 5 | -4 ] [ 1 1 1 | 6 ]
[ 1 5/2 -1/2 | 27/2 ] [ 0 2 5 | -4 ] [ 1 1 1 | 6 ]
[ 1 5/2 -1/2 | 27/2 ] [ 0 2 5 | -4 ] [ 0 -3/2 3/2 | -15/2 ]
[ 1 5/2 -1/2 | 27/2 ] [ 0 1 5/2 | -2 ] [ 0 -3/2 3/2 | -15/2 ]
[ 1 0 -27/4 | 37/2 ] [ 0 1 5/2 | -2 ] [ 0 -3/2 3/2 | -15/2 ]
[ 1 0 -27/4 | 37/2 ] [ 0 1 5/2 | -2 ] [ 0 0 21/4 | -21/2 ]
[ 1 0 -27/4 | 37/2 ] [ 0 1 5/2 | -2 ] [ 0 0 1 | -2 ]
[ 1 0 0 | 5 ] [ 0 1 5/2 | -2 ] [ 0 0 1 | -2 ]
[ 1 0 0 | 5 ] [ 0 1 0 | 3 ] [ 0 0 1 | -2 ]
Substitution check
Just need to invert, multiply or transpose a matrix, without solving a system? Use the matrix calculator
Everything runs in your browser: the equations you type and the system's calculation never touch a server.