Gaussian
Elimination
Master the systematic method for solving systems of linear equations by transforming matrices into row echelon form.
What Is a System of Linear Equations?
A system of linear equations is a collection of two or more equations that share the same set of unknowns. For example:
The Augmented Matrix
Instead of writing equations repeatedly, we encode the system as an augmented matrix: coefficients on the left, constants on the right, separated by a vertical bar.
Why Does This Matter?
The Three Row Operations
These are the only moves you need. Each one transforms the matrix without changing the solution set:
Row Echelon Form (REF)
The goal of forward elimination is to reach Row Echelon Form: a staircase of pivots descending left-to-right, with all zeros below each pivot.
REF vs RREF: Key Distinction
| Row Echelon Form (REF) | Reduced REF (RREF) | |
|---|---|---|
| Zeros below pivot | ✓ Yes | ✓ Yes |
| Zeros above pivot | ✕ Not required | ✓ Yes |
| Pivots equal 1 | ✕ Not required | ✓ Yes |
| Solution method | Back substitution | Read directly |
| Named method | Gaussian elimination | Gauss-Jordan elimination |
The Algorithm: Step by Step
The Process at a Glance
Example 1: A \(2 \times 2\) System
Solve the system: \(\begin{cases} x + 2y = 5 \\ 3x + 5y = 14 \end{cases}\)
Example 2: A \(3 \times 3\) System
Solve: \(\begin{cases} 2x + y - z = 8 \\ -3x - y + 2z = -11 \\ -2x + y + 2z = -3 \end{cases}\)
Example 2: Forward Elimination
Special Case: No Solution
Sometimes elimination reveals a contradiction: a row like \( [0 \;\; 0 \;\; 0 \;|\; 5] \), which says \( 0 = 5 \). This means the system is inconsistent.
Special Case: Infinitely Many Solutions
If elimination produces a row of all zeros \( [0 \;\; 0 \;\; 0 \;|\; 0] \) (a dependent equation), there are free variables and infinitely many solutions.
Common Mistakes
Methods Compared
| Gaussian Elim. | Gauss-Jordan | Cramer's Rule | |
|---|---|---|---|
| Target form | REF | RREF | Determinants |
| Back substitution? | Yes | No | No |
| Handles \( n \) equations | Any size | Any size | Small only |
| Detects no solution | ✓ | ✓ | Limited |
| Efficiency | \( O(n^3) \) | \( O(n^3) \) | \( O(n! \cdot n) \) |
Question 1 of 5
Which of the following is not a valid elementary row operation?
Question 2 of 5
After applying \( R_2 \to R_2 - 2R_1 \) to the matrix \(\left[\begin{array}{cc|c} 1 & 3 & 7 \\ 2 & 8 & 18 \end{array}\right]\), what is row 2?
Question 3 of 5
A matrix in REF contains the row \( [\; 0 \;\; 0 \;\; 0 \;|\; 7 \;] \). What does this tell you about the system?
Question 4 of 5
Solve using Gaussian elimination: \(\begin{cases} x + y = 4 \\ 2x - y = 5 \end{cases}\). What is \( x \)?
Question 5 of 5
In the matrix below, the pivot in column 1 is zero. What should you do first? $$ \left[\begin{array}{ccc|c} 0 & 2 & 1 & 5 \\ 3 & -1 & 4 & 7 \\ 1 & 0 & -2 & 3 \end{array}\right] $$