LA 101
M03 · L02
Module 3: Systems

Gaussian Elimination

The workhorse algorithm for solving linear systems. Start with [A|b], apply three simple row operations, and read off the answer.

01 / 11
LA 101
M03 · L02
The Three Operations

Elementary Row Operations

Only three moves are allowed — and they never change the solution set:

  • Swap two rows (Rᵢ ↔ Rᵽ)
  • Scale a row by c ≠ 0 (cRᵢ → Rᵢ)
  • Add a multiple of one row to another (Rᵢ + cRᵽ → Rᵢ)
02 / 11
LA 101
M03 · L02
Target Form

Row Echelon Form

Row Echelon Form
\left[\begin{array}{ccc|c}2&1&-1&8\\0&3&2&7\\0&0&5&-5\end{array}\right]

Upper-triangular staircase. Each pivot sits to the right of the one above. Zeros fill the lower-left.

03 / 11
LA 101
M03 · L02
The Gold Standard

Reduced Row Echelon Form

Reduced Row Echelon Form
\left[\begin{array}{ccc|c}1&0&0&2\\0&1&0&3\\0&0&1&-1\end{array}\right]

Pivots equal 1. Zeros above AND below each pivot. The solution reads off directly: x₁ = 2, x₂ = 3, x₃ = −1.

04 / 11
LA 101
M03 · L02
The Algorithm

Step by Step

  • 1. Write the augmented matrix [A|b]
  • 2. Find the leftmost non-zero column (pivot column)
  • 3. Swap rows to put a non-zero entry at the top
  • 4. Eliminate entries below the pivot using row additions
  • 5. Repeat for the submatrix below and to the right
  • 6. Back-substitute (or continue to RREF)
05 / 11
LA 101
M03 · L02
Worked Example

Elimination in Action

System: 2x₁ + x₂ − x₃ = 8, −3x₁ − x₂ + 2x₃ = −11, −2x₁ + x₂ + 2x₃ = −3

First pivot
Eliminate x₁ from rows 2 and 3 using R₂ + (3/2)R₁ and R₃ + R₁
06 / 11
LA 101
M03 · L02
Reading the Answer

Back Substitution

After reaching REF, work upward from the last equation:

  • Last row gives x₃ directly
  • Substitute x₃ into the second row to find x₂
  • Substitute both into the first row to find x₁
07 / 11
LA 101
M03 · L02
Numerical Stability

Partial Pivoting

When the pivot entry is zero (or very small), swap rows to bring the largest-magnitude entry to the pivot position.

Why it matters
Dividing by near-zero amplifies rounding errors. Partial pivoting keeps numbers well-behaved in floating-point arithmetic.
08 / 11
LA 101
Knowledge Check

Check what stuck

Four questions from this lesson. Answer to see why — the explanation appears whether you were right or wrong. Nothing is scored or saved.

Question 1 of 0
Score 0/0

09 / 11
LA 101
M03 · L02
Summary

Key Takeaways

  • Three row operations preserve the solution set
  • REF: upper-triangular staircase with pivots
  • RREF: pivots = 1, zeros everywhere else
  • Back substitution reads the solution from REF
  • Partial pivoting ensures numerical stability
10 / 11
LA 101
Up Next
Coming Up

M3-L3: Solution Types

Gaussian elimination reveals not just the answer — but also when NO answer exists, or when INFINITELY MANY do. Next: free variables, parametric solutions, and the connection to rank.

11 / 11