Gaussian elimination transforms a matrix into row echelon form (REF) using elementary row operations to solve linear systems .
Elementary row operations:
- Swap two rows
- Multiply a row by a nonzero scalar
- Add a scalar multiple of one row to another
Process:
- Forward elimination — create zeros below each pivot (leading nonzero entry) column by column → REF
- Back substitution — solve from bottom row upward
- Gauss-Jordan — continue to create zeros above pivots → reduced REF (RREF), giving solution directly
Reveals:
- Rank and Null Space — number of pivots = rank
- Whether the system has 0, 1, or infinitely many solutions
- The determinant (product of pivots, with sign from row swaps)
LU decomposition: Gaussian elimination implicitly factors where is lower triangular (stores the multipliers) and is upper triangular (the REF). More efficient than re-eliminating for multiple right-hand sides.
Complexity: for an system.
See also: Matrix Multiplication, Rank and Null Space