4.5.11 · D3Linear Algebra (Full)

Worked examples — Pivot positions, free variables

2,852 words13 min readBack to topic

Before starting, some reminders in plain words:

  • is a grid of numbers ( rows, columns). Each column stands for one unknown .
  • is the right-hand side: the column of numbers the equations must equal. So means "each row of , dotted with the unknowns, gives the matching entry of ."
  • The augmented matrix glues on as one extra column, separated by a vertical bar. Its last column (right of the bar) is what we call the "-column." It's just bookkeeping: the bar reminds us that column carries the answers, not an unknown.
  • Row-reduce = apply those moves until each row's first nonzero number sits to the right of the row above (staircase shape). That staircase form is called echelon form.
  • A pivot = the leading (first nonzero) entry of a nonzero row after reduction. The number of pivots is the rank (see Rank and the Rank-Nullity Theorem).

This whole page is a companion to Pivot positions, free variables.


The scenario matrix

Every linear system falls into exactly one of these cells. Two independent switches decide the outcome: (A) Is the system consistent (does any solution exist)? (B) How many free variables ?

# Consistency Free vars Shape of solution set Special feature Example
C1 Consistent single point (unique) square, full rank Ex 1
C2 Consistent a line one free column Ex 2
C3 Consistent a plane two free columns Ex 3
C4 Inconsistent (irrelevant) empty (no solution) -column is a pivot Ex 4
C5 Consistent (all free) all of space , degenerate Ex 5
C6 Consistent (here ) a line more rows than cols, zero rows appear Ex 6
C7 Consistent unique point more rows than cols, still full column rank Ex 7
C8 Consistent a line word problem (real units) Ex 8
C9 either or contradiction point or empty exam twist: parameter flips the case Ex 9

Ex 1 — C1: unique solution (zero free variables)

Forecast: columns; the rows and are not proportional, so both columns will earn a pivot → , a single point.

  1. Swap to get a leading up top: Why this step? A leading makes the elimination arithmetic clean.
  2. : Why? Kill the entry below the first pivot to expose the staircase.
  3. : gives . Why? Scale the pivot to (one step toward RREF) so can be read off directly.
  4. Back-substitute . Why? Row 1 solves its pivot variable using the now-known value.

Result: pivots in columns 1 and 2 ⇒ no free columns, . Unique solution .

Verify: ✓ and ✓. Both equations satisfied.


Ex 2 — C2: one free variable (a line)

Forecast: unknowns but only rows, so and . Why? Each pivot lives in its own row, so pivots can't exceed the number of rows; with at least one non-pivot column, expect a line.

  1. : Why? Zero out below the first pivot.
  2. : Why? Make the second pivot a leading .
  3. Pivots sit in columns 1 and 3; column 2 has no pivot is free. Set . Why? Every non-pivot column is, by definition, a free parameter.
  4. Row 2: . Row 1: . Why? Solve each pivot variable in terms of the free one.

Result: free variable ⇒ a line:

The figure below draws this line in the plane (the pivot value is fixed all along it). The coral dot is the particular solution ; the mint arrow is the direction that the free variable sweeps — this direction is exactly the null-space vector. The butter dots are sample solutions at and ; every point on the lavender line solves the system.

Figure — Pivot positions, free variables
Figure Ex 2: one free variable traces a line — coral = particular solution, mint arrow = free-variable direction, butter dots = sample solutions.

Verify at : ✓; ✓. At : : ✓, ✓.


Ex 3 — C3: two free variables (a plane)

Forecast: unknowns and clearly staircase pivots, so . Why? Two rows give at most two pivots and both are visibly present, leaving two non-pivot columns → a plane.

  1. Read pivots: leading entries in column 1 (row 1) and column 3 (row 2). Why? They are the first nonzero entries of each row.
  2. Non-pivot columns are 2 and 4, free. Why? No leading entry lives there.
  3. Row 2: . Row 1: . Why? Solve each pivot variable against the two free ones.

Result: ⇒ a plane:

Verify at : eq1 ✓, eq2 ✓. At : → eq1 ✓, eq2 ✓.


Ex 4 — C4: inconsistent (no solution, free count irrelevant)

Forecast: row 2 of is exactly row 1, but 's entries are not in that same ratio. Why suspect trouble? Proportional rows in demand proportional right-hand sides; a mismatch forces a contradiction ( nonzero).

  1. : Why? Eliminate below the first pivot.
  2. Row 2 reads , i.e. . Why does this end everything? The augmented column now holds a leading entry — the -column is itself a pivot column, the flag for inconsistency.

Result: no solution. Note column 2 has no pivot in , so naively "there's a free variable" — but with zero solutions, that freedom describes nothing. Consistency is checked first.

Verify: forces . Contradiction confirmed — no works.


Ex 5 — C5: the all-zero matrix (every variable free)

Forecast: the matrix imposes no constraint at all, so no column can hold a pivot → . Why? With rank , every column is non-pivot, so every variable is free — the whole plane.

  1. RREF of the zero matrix is the zero matrix: no nonzero rows ⇒ no pivots, so . Why? A pivot is the first nonzero entry of a row; there are none.
  2. Both columns are non-pivot ⇒ , both free. Why? Every column lacks a leading entry.

Result: ⇒ solution set is all of : This is the extreme of : rank zero gives maximum freedom.

Verify: any gives in both rows ✓. Degenerate limiting case handled.


Ex 6 — C6: more rows than columns, with a redundant (zero) row

Forecast: all three rows of are multiples of , so only pivot survives → , a line. Why? Proportional rows collapse to a single independent equation; the extras become zero rows, leaving one free column.

  1. , : Why? Eliminate below the first pivot; the two lower rows collapse.
  2. One pivot (column 1); column 2 is free, . There are two zero rows but only one free variable. Why the myth fails: free variables count non-pivot columns , not zero rows.
  3. Row 1: . Why? Solve the single pivot variable against the free one.

Result: a line . Two zero rows ≠ two free variables.

Verify at : all three original equations give matching ✓. At : , , ✓.


Ex 7 — C7: more rows than columns, full column rank (unique)

Forecast: the first two rows are independent, so , a unique point — even though there are more rows than columns. Why? Full column rank pins every variable; the third row must then be a redundant combination (and it had better be consistent).

  1. : Why? Cancel row 3 against the two pivots above.
  2. Pivots in columns 1 and 2 ⇒ full column rank, no free variables (). The extra row became zero and, crucially, its -side is also consistent. Why check the -side? A nonzero there (like Ex 4) would kill it.

Result: unique solution , .

Verify: ✓; ✓; ✓. All three rows agree.


Ex 8 — C8: word problem (real units, one free variable)

Forecast: unknowns but only constraints, so and → a line of recipes. Why? Two equations can pin at most two variables; the third stays free (then real-world limits clip the line to a segment).

  1. Model it: Matrix Why? Each unknown is a column; each rule is a row.
  2. : Why? Eliminate below the first pivot.
  3. Pivots in columns 1, 2; column 3 (grape) is free, . Why? No leading entry in column 3.
  4. Row 2: . Row 1: . Why? Solve pivots against the free variable.

Result: , ⇒ a line of recipes. Physically we also need : ; ; so L of grape. Maths gives a line; units clip it to a segment.

Verify at : → volume ✓, sugar ✓, all ✓.


Ex 9 — C9: exam twist (a parameter flips the case)

Forecast: eliminating puts in the second pivot slot, so is the one dangerous value. Why? When the pivot entry hits the rank drops; whether that gives "no solution" or "infinitely many" then hinges on the -column.

  1. : Why? Eliminate below the pivot; the entry becomes .
  2. Case : entry → pivot in column 2 too. Both columns pivoted ⇒ (i) unique solution. Why? Full column rank, consistent.
  3. Case : row 2 becomes , i.e. → the -column is a pivot ⇒ (ii) no solution. Why? Contradiction, like Ex 4.
  4. Is (iii) ever reachable? Infinitely many needs a free column and consistency. Here is the only rank-drop value, but it makes inconsistent, so (iii) never happens for this . Why note this? The exam bait is assuming "rank drop ⇒ infinitely many" — false unless the -side cooperates.

Result: unique for all ; no solution at ; never infinitely many.

Verify solve the unique case: eliminate gives , . At : , → check ✓, ✓. At : contradiction ✓.


Recall Which cell am I in? (two questions)

First: is the -column a pivot column? ::: If yes → inconsistent (C4/Ex 9 case ii), stop. If no → consistent, continue. Then: how many non-pivot columns? ::: That count is : →point, →line, →plane, →all of space.

Recall The trap all three mistakes share

Why do "zero rows = free vars", "free var ⇒ infinite solutions", and "rank drop ⇒ infinite" all fail? ::: Each ignores a separate switch — free variables count non-pivot columns (not zero rows), and any solution count needs consistency checked first via the -column.


Connections

Case Map (read this first, diagram second)

In plain words: to classify any system, run two checks in order.

  1. Reduce the augmented matrix to echelon form.
  2. Consistency check — if the -column holds a pivot (a row with ), stop: no solution (cell C4).
  3. If consistent, count non-pivot columns : free → a single point (C1/C7); free → a line (C2/C6/C8); free → a plane (C3); all free → the whole space (C5).

The diagram below is the same logic drawn as arrows.

reduce

yes pivot

no

equals 0

equals 1

equals 2

equals n

System Ax = b

Is b-column a pivot

No solution C4

Count non-pivot columns n minus r

Zero free unique point C1 C7

One free a line C2 C6 C8

Two free a plane C3

All free whole space C5