4.5.10 · D3Linear Algebra (Full)

Worked examples — Row echelon form and reduced row echelon form

2,734 words12 min readBack to topic

Before anything else, one promise about vocabulary. A matrix is just a grid of numbers. When we write a system of equations as a grid, we drop the letters and keep only their coefficients, plus the constants after the sign in a final column separated by a bar. That grid is the augmented matrix. A pivot is the first non-zero number in a row, reading left to right. A pivot column is a column that contains a pivot. Everything below flows from those three words.


The scenario matrix

Any linear system, once you push it to RREF, lands in exactly one of these outcome classes. The number of pivots versus the number of unknowns decides everything.

Cell Situation What the RREF looks like Solution set
C1 pivots = unknowns, no pivot in last column full identity block on the left exactly one point
C2 pivots < unknowns, no pivot in last column some column has no pivot infinitely many (free variables)
C3 pivot in the last column a row reads no solution (inconsistent)
C4 a zero row appears at the bottom rank drops — links to C1/C2
C5 need a row swap (a zero blocks the pivot slot) must reorder before eliminating any of the above
C6 more equations than unknowns (tall) often forces C3 or C1 over-determined
C7 more unknowns than equations (wide) always at least one free variable forced C2
C8 word problem → build the matrix yourself your choice real answer
C9 exam twist: a parameter splits cases pivot depends on branch by
C10 degenerate: the whole matrix is zero all zero rows every vector solves it

The examples below hit every cell. Watch the label.


Example 1 — Cell C1: one clean point (the square, easy case)

Forecast: three equations, three unknowns, nothing looks degenerate — guess one unique point. Jot a guess for before reading on.

Augmented matrix:

  1. , . Why this step? The top-left is our first pivot. To isolate in equation 1 only, we kill every below it.

  2. Swap . Why this step? The second pivot column is column 2. A pivot of (from old ) is friendlier than ; swapping avoids fractions early. (This is a mini-preview of Cell C5.)

  3. . Why this step? Kill the below the second pivot so leaves equation 3.

  4. , giving the leading in row 3. Then clean upward: , , then . Why this step? This is Gauss–Jordan: make each pivot , then zero the entries above each pivot so the answer is read off.

Read off: .

Verify: ✓; ✓; ✓. Three pivots, three unknowns, no pivot in the last column → C1 confirmed.


Example 2 — Cell C2 & C7: a free variable, a whole line of answers

Forecast: 3 unknowns but only 2 equations — wide (Cell C7). There aren't enough equations to pin all three. Guess: infinitely many solutions.

  1. . Why this step? Kill below the first pivot.

  2. . Why this step? The second pivot sits in column 3 (column 2 got skipped — its entry is ). Clear above it for RREF.

Pivots are in columns and . Column has no pivot is a free variable. Set :

Verify: pick : . Check eq 1: ✓; eq 2: ✓. Pick : : ✓; ✓. Two different points both work → a line → C2/C7 confirmed. See the picture below.

Figure — Row echelon form and reduced row echelon form

Example 3 — Cell C3 & C6: inconsistent, no solution

Forecast: three equations, two unknowns — tall (Cell C6). Two equations already fix a point; the third might disagree. Guess: watch for a contradiction.

  1. , . Why this step? Kill below the first pivot.

  2. , then . Why this step? Make the second pivot a clean , then kill below it.

  3. Look at row 3: it reads , i.e. . Why this matters? A pivot in the last (constants) column is the algebra shouting "impossible!". No numbers make equal .

Verify: From rows 1–2 alone: , . Test in equation 3: . The third line misses the point where the first two meet → no solution, C3/C6 confirmed.

Figure — Row echelon form and reduced row echelon form

Example 4 — Cell C5: the row swap you cannot skip

Forecast: the very first coefficient is . You cannot use a zero as a pivot (you'd divide by it later). Guess: we must swap rows first, then it's a normal one-point solve.

  1. Swap . Why this step? The pivot slot (row 1, column 1) holds a . Swap up a row with a non-zero entry there so we have a real pivot.

  2. . Why this step? Kill the below the new pivot.

  3. , then . Why this step? Turn the second pivot into , then clear below it.

  4. (), then clean upward: , , then . Why this step? Gauss–Jordan finish to read off the answer.

Read off: .

Verify: eq 1: ✓; eq 2: ✓; eq 3: ✓. C5 confirmed — without the swap we'd have been stuck.


Example 5 — Cell C4 & C2: a genuine zero row appears

Forecast: equation 2 looks suspiciously like equation 1. If a row is a copy of another, elimination will annihilate it into all zeros. Guess: a zero row and a free variable.

  1. , . Why this step? Kill below the first pivot.

Row 2 became — a zero row (Cell C4). It carries no information (it's , always true). Move it to the bottom.

  1. Swap , then . Why this step? Zero rows belong at the bottom; scale the surviving pivot to .

  2. . Why this step? Clear above the second pivot (column 2) for RREF.

Pivots in columns ; column has none ⇒ is free. Set :

Verify: : : eq 1 ✓, eq 3 ✓. : : eq 1 ✓, eq 3 ✓. Rank (two pivots, one zero row) unknowns → free variable → C4/C2 confirmed.


Example 6 — Cell C10: the degenerate all-zero right side (homogeneous)

Forecast: everything on the right is . Then always works (the trivial solution). The only question is whether there are others. Guess: yes, because equation 2 is equation 1 — not enough real equations.

  1. . Why this step? Kill below the pivot.

The second row vanished entirely. One pivot (column 1), so and are both free. With :

Verify: gives — the trivial solution, guaranteed for any homogeneous system. : : ✓. : : ✓. Infinitely many → a whole plane through the origin → C10 confirmed. Note: a homogeneous system can never be inconsistent, because the all-zero vector is always a solution.


Example 7 — Cell C8: a word problem you must translate

Forecast: three baskets, three unknown prices — smells like Cell C1, one clean answer. Guess a price for the apple first.

Translate each basket into an equation, then a matrix row:

  1. , . Why this step? Standard: clear below the first pivot ().

  2. , then . Why this step? Make pivot positive , then clear below.

  3. (), then clean upward: , , then . Why this step? Gauss–Jordan to read prices directly.

Read off: a = \5,\ b = $2,\ c = $3$.

Verify (with units): Basket A = 5+2+3 = \10= 2(5)+2 = $12= 5 + 3(3) = $14$ ✓. All prices positive and sensible → C8 confirmed.


Example 8 — Cell C9: the exam twist with a parameter

Forecast: the coefficient hides in the matrix. Somewhere a pivot will depend on ; when that pivot collapses to , the behaviour flips. Guess: one special "bad" value of .

  1. . Why this step? Clear below the pivot.

  2. Inspect the entry in the pivot-2 slot. Why this step? Whether row 2 gives a real second pivot depends on being non-zero. This is the branch point.

  • Case (a): . Then is a genuine pivot. Two pivots, two unknowns, no pivot in the last column ⇒ unique solution. Solving: , and .

  • Case (b/c): . Row 2 becomes , i.e. ⇒ pivot in the last column ⇒ no solution (Cell C3). (There is no "" here that gives infinitely many, because when the constant makes the two lines parallel but distinct.)

Verify: take : formula gives , . Check: ✓; ✓. Take : , . Check: ✓; ✓. And : equations , can't both hold → no solution ✓. C9 confirmed.


Recall Which cell is which — self-test

"3 equations, 3 unknowns, RREF is the identity block" is which cell? ::: C1 — unique solution. A column with no pivot means what? ::: A free variable → infinitely many solutions (C2/C7/C10). A pivot in the augmented last column means what? ::: Inconsistent, no solution (C3). Why must you sometimes swap rows before eliminating? ::: A in the pivot slot can't be a pivot (you'd divide by zero) — swap a non-zero row up (C5). Can a homogeneous system (all zeros on the right) ever be inconsistent? ::: No — the all-zero vector always solves it (C10). At a parameter value where a pivot becomes , what do you do? ::: Analyse that value as a separate case; don't trust the general formula (C9).


Connections

  • Every example here ran Gaussian Elimination to REF, then Gauss-Jordan Elimination to RREF.
  • Counting pivots = Rank of a Matrix (Examples 5, 6 have rank unknowns).
  • The outcome classes are the heart of Solving Systems of Linear Equations.
  • Free variables (Examples 2, 5, 6) are formalised in Free and Basic Variables.
  • A homogeneous system with only the trivial solution ties to Linear Independence of the columns.
  • Row swaps and scalings (Examples 1, 4) are each an elementary matrix acting on the left.
  • Augmenting with the identity instead of constants gives Matrix Inverse via RREF.
  • Back to the parent topic.