Gaussian elimination — forward elimination, back substitution
What are we actually solving?
Forward elimination — building the staircase
HOW (the multiplier formula). To clear the entry that sits below pivot , choose multiplier then do .

Back substitution — climbing back up
Worked Example 1 — a clean
Solve
Augmented matrix:
Step A. Pivot . Clear column 1.
- , so . Why? This makes the become .
- , so . Why? Kills the .
Step B. Pivot . Clear below it.
- , so . Why? Makes the in column 2 become .
Now it's upper-triangular — forward elimination is done.
Back substitution.
- Row 3: . Why this step? Last row has one unknown.
- Row 2: . Why? now known, only left.
- Row 1: . Why? Only remains.
Answer: . (Check row 2 original: ✓.)
Worked Example 2 — pivoting needed
Solve Step. Pivot position is — division by zero! Why is a swap forced? A pivot must be nonzero. Swap : Already triangular. Back-sub: ; .
Worked Example 3 — no/infinite solutions
Row 2 says — impossible, so the system is inconsistent (no solution). Why does elimination reveal this? It produces nonzero only when equations contradict. If instead the last entry were (row ), we'd have a free variable and infinitely many solutions.
Common mistake Steel-manned common errors
1. Forgetting to apply the operation to the RHS column. Why it feels right: you focus on "triangularising ." Fix: always operate on the augmented matrix; the entry rides along with each row.
2. Wrong sign in the multiplier. People write with and get the wrong result. Why it feels right: "add to combine." Fix: the safe template is — minus, because we're subtracting away the unwanted part.
3. Dividing by a zero pivot. Why it feels right: the algorithm "just marches down columns." Fix: if a pivot is , swap in a lower row; if none exists in that column, move to the next column (free variable).
4. Doing back-substitution top-down. Why it feels right: we read top to bottom. Fix: triangular structure only isolates one variable at the bottom — start there and climb.
Recall Feynman: explain to a 12-year-old
Imagine three friends who together know your secret number through riddles, but each riddle mixes all clues. You rewrite the first riddle and subtract it from the others so the second riddle no longer mentions the first clue, and so on — until the last riddle mentions only one clue and you can read it straight off. Then you go back up: "Now I know the last number, I plug it in and the previous riddle reveals the next number." Keep climbing until you know them all. That's it.
Recall checkpoint
What shape does forward elimination produce?
Multiplier to eliminate entry below pivot ?
Why is a legal operation?
What forces a row swap during elimination?
Back-substitution formula for ?
Which variable is solved first in back substitution?
After elimination a row reads with . What does it mean?
After elimination a row is entirely zero (). What does it mean?
Why operate on the augmented matrix ?
Connections
- LU Decomposition — storing the multipliers gives .
- Row Echelon Form / Reduced Row Echelon Form — the goal shapes of elimination.
- Pivoting and Numerical Stability — why we swap rows in practice.
- Rank of a Matrix — number of pivots = rank.
- Determinant — product of pivots (with sign from swaps) gives .
- Solving Linear Systems — Consistency — interpreting no/one/infinite solutions.
Concept Map
Hinglish (regional understanding)
Intuition Hinglish mein samjho
Dekho, Gaussian elimination ka core idea bahut simple hai. Jab tumhare paas teen equations hain aur har equation mein x, y, z teeno mix ho rahe hain, tab solve karna mushkil hota hai. Toh hum ek trick lagate hain: ek equation ko use karke baaki equations se ek variable ko "kill" kar dete hai. Isko bolte hain forward elimination. Column by column chalte hain — pehle column ke pivot se neeche sab zero banao, phir doosre column ka, aur aise hi. End mein matrix upper-triangular ban jaata hai, yaani diagonal ke neeche sab zero.
Multiplier ka formula yaad rakhne ki zaroorat hi nahi — wo khud derive ho jaata hai. Agar pivot hai aur uske neeche wala entry ko zero karna hai, toh multiplier lo aur karo. Bas, "jitna chahiye utna subtract karo taaki cancel ho jaaye." Yahi logic hai.
Phir aata hai back substitution — neeche se upar. Last row mein sirf ek variable bachta hai (jaise , toh ). Use ko upar plug karo, ab next variable nikal aata hai. Aise climb karte raho top tak. Important: hamesha augmented matrix pe kaam karo, RHS ko bhi saath mein change karo, warna answer galat aayega.
Ek aur baat — agar pivot zero aa jaaye toh row swap maaro (partial pivoting), kyunki zero se divide nahi kar sakte. Aur agar elimination ke baad koi row jaisi aaye, matlab system ka koi solution nahi (inconsistent). Ye sab concepts LU decomposition aur rank mein bhi kaam aate hain, isliye yeh foundation pakka karna zaroori hai.