Overview
Gaussian elimination is a systematic method for solving systems of linear equations by reducing the augmented matrix to row echelon form through elementary row operations.
Elementary Row Operations
| Operation | Notation | Description |
|---|---|---|
| Swap | Interchange rows and | |
| Scale | Multiply row by non-zero scalar | |
| Replace | Add times row to row |
Algorithm
Forward Elimination
- Find the leftmost non-zero column (pivot column)
- If necessary, swap rows to get a non-zero entry at the top
- Use row replacement to create zeros below the pivot
- Repeat for the remaining submatrix
Back Substitution
After reaching echelon form:
- Solve for the last variable
- Substitute back to find remaining variables
Example
Solve:
Step 1: Augmented Matrix
Step 2: Eliminate Below First Pivot
:
:
Step 3: Eliminate Below Second Pivot
:
Step 4: Back Substitution
From row 3:
From row 2:
From row 1:
Solution: , ,
Pivot Positions
A pivot is the leading non-zero entry in a row of echelon form.
Pivot Column
Column containing a pivot.
Pivot Strategy
For numerical stability, choose the largest absolute value in the column as pivot (partial pivoting).
Detecting Solution Types
After forward elimination:
| Row Pattern | Meaning |
|---|---|
| with | No solution |
| More variables than pivots | Infinitely many solutions |
| # pivots = # variables | Unique solution |
Gaussian Elimination vs Gauss-Jordan
| Method | Target Form | When to Stop |
|---|---|---|
| Gaussian | Row echelon form | Forward elimination only |
| Gauss-Jordan | Reduced row echelon form | Continue to get leading 1s and zeros above pivots |
Computational Considerations
Operation Count
For an system, Gaussian elimination requires:
- Approximately multiplications
- Approximately additions
Numerical Stability
- Use partial pivoting to avoid small pivots
- Scaled partial pivoting for better accuracy
- Full pivoting for maximum stability (rarely needed)
Special Cases
No Solution
is a contradiction → no solution
Infinitely Many Solutions
, (free variable)