Intuition The ONE core idea
Gaussian elimination takes a tangled system of equations where every unknown is mixed into every equation, and reshuffles it into a staircase where each equation reveals one more unknown than the last. Once you can read a matrix as a stack of equations and know the three legal ways to rewrite them, the whole method is just "clear out the clutter below each pivot, then read the answers off the bottom up."
Before you can do elimination you must be fluent in a small alphabet. This page builds every letter of it from nothing. Read top to bottom — each idea is used by the next.
A matrix is just a rectangle of numbers arranged in rows and columns. We write it with big square brackets. A matrix with m rows and n columns is called an "m × n matrix" (say "m by n ").
The picture: think of a spreadsheet. Each number lives at a fixed street address given by (which row, which column).
Worked example Reading Figure 1
The figure shows a 3 × 3 grid of numbers wrapped in square brackets — that whole object is one matrix A . Notice the row 1 / row 2 / row 3 labels down the left and the col 1 / col 2 / col 3 labels across the top: these are the two coordinates you need to name any single number. The red-boxed number is the one living at row 2, column 3 — the red arrow spells out that address, which is exactly the idea Section 2 turns into notation.
Intuition Why the topic needs this
Every equation in a system has the same slots — a coefficient for x , one for y , one for z , and so on. Stacking those slot-numbers into a grid lets us manipulate all the equations at once, by moving whole rows, instead of copying "x ", "y ", "z " over and over.
Definition Entry with subscripts
a ik means "the number sitting in row i , column k " of the matrix A . The first subscript is always the row; the second is always the column.
So a 23 is row 2, column 3 (the red-boxed entry in Figure 1). Read it as "a sub two three", never "twenty-three".
Definition What the letters
i , j , k range over
Throughout this topic the index letters have fixed jobs:
i counts rows , so i = 1 , 2 , … , m .
j counts columns , so j = 1 , 2 , … , n .
k marks which pivot column we are working on as elimination marches left to right; it too runs k = 1 , 2 , … over the columns that carry a pivot.
A subscript like a ik always reads (row, column) = (i , k ).
Common mistake The order trap
a ik is (row, column) , in that order — same as "you go downstairs then along the hall ". a 31 (row 3, col 1) is a completely different spot from a 13 (row 1, col 3).
Intuition Why the topic needs this
Once every number has a precise (row, column) name, we can write a single formula that says "take the number here and turn it into zero" — no ambiguity about which number. Those names are the raw material for the multiplier we build in Section 8.
The main diagonal of a matrix is the entries where the row number equals the column number: a 11 , a 22 , a 33 , … — the top-left-to-bottom-right line.
Everything to the lower-left of that line is "below the diagonal". Forward elimination's whole job is to make all of those below-diagonal entries into zero.
Worked example Reading Figure 2
Each cell of this 3 × 3 grid is stamped with its fate. The red line running top-left to bottom-right is the main diagonal ; the cells it passes through are labelled "pivot" — these are the numbers we keep and use . Cells above the line say "keep" (they stay as they are), while the cells below the line say "make 0". That single picture is the entire goal of forward elimination: sweep every below-diagonal cell down to zero, leaving the triangle on and above the red line untouched.
Definition Upper-triangular matrix
A matrix is upper-triangular when every entry below the main diagonal is zero. Its nonzero numbers form a filled-in triangle sitting on and above the diagonal — like a staircase.
Intuition Why the topic needs this
"Turn A into upper-triangular form U " is the goal of forward elimination. Upper-triangular is the shape where the bottom equation has one unknown, the next up has two, and so on — exactly the staircase that lets us read answers off one at a time.
A column vector is a matrix with just one column — a single stack of numbers. We write it in bold : x holds the unknowns, b holds the right-hand-side numbers.
x = x y z , b = 8 − 11 − 3
The bold font is a promise: "this is a whole stack, not one number." A plain x is one number; bold x is the list of all unknowns.
Intuition Why lengths must match
If A is m × n then it has n columns — one per unknown — so x must be a stack of exactly n numbers, and b a stack of exactly m numbers (one per equation/row). Writing the system as A x = b compresses "several separate equations" into one tidy statement, and separates roles cleanly: A and b are known; x is what we hunt for.
Definition Matrix–vector product
A x builds a new stack. To get its i -th number , walk along row i of A , multiply each entry by the matching entry of x , and add them up.
For row i : a i 1 x 1 + a i 2 x 2 + ⋯ + a in x n . That sum is exactly the left-hand side of equation i . (This is why the number of columns n must equal the length of x : each column entry needs a partner in x .)
Worked example One row unpacked
Row 1 of [ 2 1 − 1 ] times x y z gives
2 x + 1 y + ( − 1 ) z = 2 x + y − z .
Set that equal to b 1 = 8 and you have recovered the first original equation 2 x + y − z = 8 .
Intuition Why the topic needs this
This product is the bridge: it proves that the compact A x = b is your familiar system of equations, no information lost. Every row operation we do is secretly rewriting those equations.
Definition Augmented matrix
The augmented matrix [ A ∣ b ] glues the right-hand side b onto A as one extra column, drawn after a vertical bar. The bar is just a reminder — "coefficients on the left, answers on the right."
2 − 3 − 2 1 − 1 1 − 1 2 2 8 − 11 − 3
Intuition Why the topic needs this
When we rewrite an equation, the number on its right side must ride along. Keeping b inside the same grid means every row operation automatically updates both sides at once — you can never forget the right-hand side (a classic mistake) because it is part of the row .
Definition Elementary row operations
Three — and only three — moves are allowed, because each keeps the solution unchanged:
Swap two rows: R i ↔ R j .
Scale a row by a nonzero number c : R i → c R i .
Replace a row with itself plus a multiple of another: R i → R i − m R j .
The arrow → means "becomes". R i names "row i as a whole line". The two-headed arrow ↔ means "trade places".
Intuition Why these are safe
Two equations that are both true stay true if you add a multiple of one to the other — you're combining truths. And every move can be undone (swap back, divide by c , add m R j back), so no solutions are lost or invented. That reversibility is why the reshaped system has the same answer as the original.
A pivot is the nonzero entry a k k on the diagonal that we use, in its column, to wipe out everything below it. "Nonzero" matters: we are about to divide by it.
The multiplier m ik = a k k a ik is the exact amount of the pivot row you subtract from row i so that the entry a ik becomes zero. Here a k k is the pivot (diagonal entry of column k ) and a ik is the below-pivot entry, in some row i > k , that we want to kill.
The fraction bar here is ordinary division. We divide the entry we want to kill by the pivot, because that ratio tells us "how many pivot-rows' worth of this column sits in row i ."
Worked example Reading Figure 3
The figure stacks two rows. The red 2 in the pivot row and the red -3 just below it are joined by a red arrow: we form the ratio m = − 3/2 = (entry to kill) / (pivot). The operation line R 2 → R 2 − ( − 3/2 ) R 1 then drives that − 3 down to a red 0 on the right — one below-diagonal entry cleared. That is the whole mechanic of forward elimination, done once.
Common mistake Sign of the multiplier
The template is R i → R i − m ik R k with a minus . We subtract because we are removing the unwanted part. Writing "+ " cancels the wrong way and corrupts the whole column.
Intuition What if the pivot
a k k = 0 ?
The multiplier divides by a k k , so a zero pivot is illegal — you cannot divide by zero. The fix is a legal move you already own from Section 7: swap the pivot row with a lower row (in the same column) that has a nonzero entry, then continue. If every entry on and below that diagonal spot is zero, no swap can help — that column simply has no pivot, and you move on to the next column (this produces a free variable ). So "pivot must be nonzero" is not a dead end; it is a signal to swap or to skip the column.
Once forward elimination finishes, A has become the upper-triangular matrix U , and b has become a new right-hand column we rename c (because every row operation changed it too). We name the pieces of these:
Definition Names for the staircase's entries
u ij = the entry of U in row i , column j (same (row, column) rule as a ik , just for the finished matrix U ).
u ii = a diagonal entry of U — that is a pivot.
c i = the i -th number of the transformed right-hand column c .
Definition Sigma / summation
j = i + 1 ∑ n u ij x j means: "let j run from i + 1 up to n , and add up all the terms u ij x j ." The ∑ is a capital Greek S — S for S um.
So ∑ j = 2 3 u 1 j x j = u 12 x 2 + u 13 x 3 : just a compact way to write a long "+ + + " chain when we don't know in advance how many terms there are.
Intuition Why the topic needs this
The back-substitution formula x i = u ii 1 ( c i − ∑ j > i u ij x j ) has to work for a system of any size. ∑ is the only honest way to say "subtract off all the already-known terms, however many there are."
Using the names from Section 9, once A is the staircase U with new right side c , the bottom row has a single unknown, so you solve it directly; then climb, each row up handing you one new unknown.
x n = u nn c n , x i = u ii 1 ( c i − ∑ j = i + 1 n u ij x j ) .
Here u ii is the diagonal (pivot) entry in row i of U , u ij are the other entries along that row, and c i is the transformed right-hand number. Dividing by u ii is the final "solve for the lone unknown" step — which is exactly why u ii must not be zero.
Recall Symbol speed-check
What does a 31 point to? ::: Row 3, column 1.
What does the bar in [ A ∣ b ] separate? ::: Coefficients (left) from right-hand-side values (right).
Why must a pivot be nonzero? ::: We divide by it in the multiplier a ik / a k k .
What do you do if the pivot a k k = 0 ? ::: Swap in a lower row with a nonzero entry in that column; if none exists, skip the column (free variable).
What is c ? ::: The right-hand column b after forward elimination has transformed it.
What does ∑ j = i + 1 n tell j to do? ::: Run from i + 1 up to n , adding each term.
Entry a sub i k - row i col k
Cover the right side; you are ready for the parent note only if you can answer each.
I can locate entry a ik in a grid ::: row i , column k — down first, then across.
I know what the index letters mean ::: i = row (1 … m ), j = column (1 … n ), k = current pivot column.
I know why x has length n ::: A has n columns, one per unknown, so x needs n entries; b has m entries, one per row.
I know what "upper-triangular" looks like ::: all zeros below the main diagonal; nonzeros form a triangle on and above it.
I can turn A x = b back into ordinary equations ::: multiply each row of A against x and set equal to the matching entry of b .
I know why we use the augmented matrix ::: so the right-hand side changes together with the coefficients under every row operation.
I can state the three legal row operations ::: swap, scale by nonzero c , and replace R i → R i − m R j .
I can derive the multiplier without memorising ::: set a ik − m ik a k k = 0 , solve to get m ik = a ik / a k k .
I know what to do with a zero pivot ::: swap in a lower row with a nonzero entry; if none, skip the column.
I know the names u ij and c i ::: entries of the finished upper-triangular U and of the transformed right-hand column c .
I can expand a ∑ ::: write out each term for j from the start value to the end value and add them.