Gaussian elimination is the method every linear algebra course opens with: use row operations to drive the entries below each pivot to zero, then read the solution back. Enter your augmented matrix above, press Row echelon(A), and open the steps — each one is labelled with the operation that produced it.
How the method works
Three operations are allowed, and all three leave the solution set untouched: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another. The strategy is to pick the first column, use its top entry as a pivot, and subtract multiples of that row from the ones below until the column is zero beneath the pivot. Then move one column right, one row down, and repeat.
What comes out is row echelon form: a staircase of leading entries, zeros below. From there the last equation has one unknown, the one above it has two, and substituting backwards unwinds the whole system. Carrying on until the pivots are 1 and the entries above them are zero too gives reduced row echelon form, and the solution can be read directly — that is the RREF calculator.
Worked example
The system x + 2y − z = −4, 2x + 3y − z = −11, −2x − 3z = 22, written as an augmented matrix:
| 1 | 2 | −1 | −4 |
| 2 | 3 | −1 | −11 |
| −2 | 0 | −3 | 22 |
| 1 | 2 | −1 | −4 |
| 0 | −1 | 1 | −3 |
| 0 | 0 | −1 | 2 |
The last row says −z = 2, so z = −2. Substituting upward gives y = 1 and then x = −8. The calculator uses partial pivoting — at each step it moves the largest available entry into the pivot position — which costs nothing in exact arithmetic and avoids catastrophic rounding in floating point.
Common mistakes
- Multiplying a row by zero. It is not a legal row operation: it destroys an equation rather than rewriting it.
- Working column by column instead of pivot by pivot. Once a column is cleared, later operations must not disturb it. Always work down and to the right.
- Stopping at a zero row and calling the system unsolvable. A row of all zeros means a redundant equation, so there are infinitely many solutions. Only
0 = cwith c non-zero means no solution. - Forgetting the constants column. Every operation applies to the full augmented row, right-hand side included.