Gaussian Elimination
Order: 13
Subtopic: Systems
Topic: Linear Algebra
Gaussian elimination systematically transforms a linear system into triangular form, making solutions easy to find through back-substitution. It's the fundamental algorithm for solving linear systems, finding inverses, and computing rank—the computational backbone of linear algebra.
Introduction
Solving a system of linear equations by hand means eliminating variables one at a time until the answer becomes obvious. Gaussian elimination is the systematic version: use row operations to create zeros below each pivot, resulting in an upper triangular system.
Once triangular, solve from the bottom up—each equation has only one unknown.
Row Operations
Three operations that don't change the solution set:
Swap two rows:
(R_i)↔(R_j) Multiply a row by a nonzero constant:
(R_i)→c*(R_i) Add a multiple of one row to another:
(R_i)→(R_i)+c*(R_j)
These are the tools for elimination. Operation
The Algorithm
Given augmented matrix
Find the leftmost column with a nonzero entry (pivot column)
If needed, swap rows to get nonzero pivot at top of this column
Use row operations to create zeros below the pivot
Move to the next row and repeat for remaining columns
Result: row echelon form (REF)
For reduced row echelon form (RREF): also create zeros above pivots and scale pivots to
Worked Example
Solve the system:
Form augmented matrix:
Back-Substitution
From row
From row
From row
Solution:
Row Echelon Form (REF)
A matrix is in REF if:
• All zero rows are at the bottom
• Each leading entry (pivot) is to the right of the pivot above it
• All entries below a pivot are zero
Reduced Row Echelon Form (RREF)
RREF adds:
• Each pivot is
• Each pivot is the only nonzero entry in its column
RREF is unique for any matrix—it's the canonical form.
Pivots and Rank
The number of pivots equals the rank of the matrix.
Columns without pivots correspond to free variables (infinitely many solutions).
If a pivot appears in the augmented column, the system is inconsistent (no solution).
Computational Cost
For an
This is efficient — doubling the size increases the work by
Pivoting Strategies
Partial pivoting: Before eliminating, swap to put the largest magnitude entry in the pivot position. This improves numerical stability.
Without pivoting, small pivots can amplify rounding errors catastrophically.
Applications
Beyond solving systems: computing matrix inverse, finding rank, determining linear independence, and computing determinants (product of pivots, adjusted for swaps).
Summary
Gaussian elimination uses row operations to transform a system into triangular form. Solve by back-substitution. REF has zeros below pivots; RREF also has zeros above and pivots equal to