Row Echelon Form and Gaussian Elimination
Gaussian elimination is the fundamental algorithm of computational linear algebra. It reduces any matrix to row echelon form, from which rank, null space, and solutions to linear systems can be read off directly.
Definitions
The three elementary row operations on a matrix are:
- Row swap: Interchange two rows ().
- Row scaling: Multiply a row by a nonzero scalar (, ).
- Row addition: Add a scalar multiple of one row to another ().
Each operation is invertible and corresponds to left-multiplication by an elementary matrix.
A matrix is in row echelon form if:
- All zero rows are at the bottom.
- The leading (leftmost nonzero) entry of each nonzero row is strictly to the right of the leading entry of the row above.
The leading entries are called pivots.
A matrix is in reduced row echelon form if it is in REF and additionally:
- Each pivot is .
- Each pivot is the only nonzero entry in its column.
The RREF of a matrix is unique (though the sequence of row operations to reach it is not).
Examples
is in REF with pivots at positions , , . Rank .
is in RREF. Pivot columns: 1, 2, 3. Free column: 4.
Reduce :
: .
: .
REF reached. Rank , one free variable ().
Continue to RREF: , then : .
Solve: , , .
Augmented matrix: .
, (free), . Solution: .
.
The second row says , which is impossible. The system has no solution. A row of the form with signals inconsistency.
.
, . Unique solution because rank number of variables.
The rank of a matrix equals the number of pivots in any REF. The nullity equals the number of non-pivot (free) columns.
For : rank , nullity (column 3 is free).
For the RREF :
Free variables: , . Pivot variables: , .
Null space , dimension .
The row space of equals the row space of any REF of (elementary row operations preserve the row space). The nonzero rows of the REF form a basis for the row space.
Row rank column rank rank of the matrix.
For :
- Column space : (rank)
- Null space :
- Row space :
- Left null space :
These satisfy: and .
Different sequences of row operations on the same matrix always produce the same RREF. This means the RREF is a canonical form for the equivalence relation "same row space." The pivot positions (and hence the rank) are invariants of the matrix.
If Gaussian elimination uses no row swaps, where is lower triangular (recording the multipliers) and is upper triangular (the REF). This LU factorization is the basis of efficient numerical linear algebra.
Computational complexity
Gaussian elimination on an matrix requires arithmetic operations. This is polynomial in and much faster than naive approaches (e.g., computing the determinant by cofactor expansion takes operations).
Row reduction is the universal tool for: computing rank, finding null spaces, solving , computing inverses, and checking invertibility. The conditions for invertibility are systematized in the Invertible Matrix Theorem.