4.5.9 · D4Linear Algebra (Full)

Exercises — Gaussian elimination — forward elimination, back substitution

2,008 words9 min readBack to topic

Quick reminder of the vocabulary we lean on (all from the parent):

  • Augmented matrix — coefficients and right-hand side packed side by side, separated by a bar.
  • Pivot — the nonzero entry we use in each column to clear the entries below it.
  • Multiplier — the exact amount of the pivot row we subtract to zero out entry .
  • Upper-triangular — all zeros below the diagonal; the "staircase" that lets us solve bottom-up.

L1 — Recognition

Exercise 1.1

Which of these matrices is in upper-triangular form (ready for back substitution)?

Recall Solution

WHAT we check: upper-triangular means every entry strictly below the diagonal is zero. Look only below the diagonal line.

  • : below-diagonal entry is the in position . ✓ Upper-triangular.
  • : position is . ✗ Not upper-triangular.
  • : below the diagonal we have positions , all . ✓ Upper-triangular.

Answer: and are upper-triangular; is not.

Exercise 1.2

In the augmented matrix below, name the pivot for column 1 and the entry we must eliminate underneath it.

Recall Solution

Pivot = the diagonal entry in column 1 = . Entry to eliminate = the one below it in column 1 = . The multiplier will be , and we do . (You are not asked to run it here — just to identify the players.)


L2 — Application

Exercise 2.1

Solve by forward elimination + back substitution:

Recall Solution

Augmented matrix: Forward elimination. Pivot . Multiplier , so . WHY: subtracting copies of row 1 turns the in position into . Row 2 becomes: . Back substitution.

  • Row 2: .
  • Row 1: .

Answer: . Check original row 2: ✓.

Exercise 2.2

Solve the system:

Recall Solution

Augmented matrix: Column 1, pivot .

  • : .
  • : . Column 2, pivot .
  • : . Back substitution.
  • Row 3: .
  • Row 2: .
  • Row 1: .

Answer: . Check original row 3: ✓.


L3 — Analysis

Exercise 3.1

Perform elimination and classify the system (unique / none / infinite):

Recall Solution

Augmented matrix: Column 1, pivot .

  • : .
  • : . Row 2 is all zeros — no pivot available in column 2. Swap to bring a nonzero entry up (this reorders rows without changing the solution set): Read the structure:
  • Row 3 is — always true, gives no information → a free variable exists.
  • Pivots sit in columns 1 and 3. Column 2 has no pivot, so is free.

Classification: infinitely many solutions. Let .

  • Row 2: .
  • Row 1: .

Answer: for any real infinitely many solutions.

Exercise 3.2

Determine, without fully solving, whether this system is consistent:

Recall Solution

Column 1, pivot . : . Row 2: . Row 2 reads impossible. Answer: the system is inconsistent (no solution). WHY elimination revealed it: the two equations describe parallel-but-shifted planes; subtracting one from twice-the-other cancels all variables and leaves a false numeric statement.


L4 — Synthesis

Exercise 4.1

The system below has a zero in the first pivot position. Use partial pivoting (swap in the row with the largest first-column entry in absolute value), then solve.

Recall Solution

Pivot problem. Position is — we cannot divide by it. Look at column-1 entries: . The largest is in row 2. Swap : Column 1, pivot .

  • : row 2 already clear, nothing to do.
  • : . Column 2, pivot .
  • : . Back substitution.
  • Row 3: .
  • Row 2: .
  • Row 1: .

Answer: . Check original row 1 (): ✓.

Exercise 4.2

Find the value(s) of for which the system has no solution:

Recall Solution

Augmented matrix: Eliminate. : . Row 2: . Analyse the last row .

  • If (i.e. ): we can solve unique solution.
  • If (i.e. ): the row reads contradictionno solution.

Answer: the system has no solution exactly when .


L5 — Mastery

Exercise 5.1

During elimination you record the multipliers you used. For the matrix run forward elimination to get , collect the multiplier into the matrix , and verify (the LU Decomposition idea).

Recall Solution

Forward elimination. Column 1, pivot . : . Row 2: . Build . is lower-triangular with s on the diagonal and the multiplier placed in position (the exact spot we cleared): Verify . WHY this works: each elimination step "" is undone by "", which is exactly what multiplying by does. Storing the multiplier is recording the recipe to rebuild from .

Exercise 5.2

Use forward elimination to compute the Determinant of (Fact you may use: for an upper-triangular matrix the determinant is the product of the diagonal, and the replacement operation does not change the determinant.)

Recall Solution

Column 1, pivot .

  • : .
  • : . Column 2, pivot .
  • : . Determinant. No row swaps were used (each step was a replacement, which leaves unchanged), so Answer: . Note on sign: if we HAD swapped rows, each swap flips the sign of the determinant — so the rule is .

Exercise 5.3

A student claims: "Forward elimination on any system always needs exactly 3 multipliers." Give a system where it needs fewer, and explain why.

Recall Solution

Counterexample. Take a matrix that already has zeros where we would eliminate: It is already upper-triangular. The entries below each pivot are already , so every multiplier would be — meaning no actual elimination is performed. Zero multipliers are needed. General principle: the number of nonzero eliminations depends on how many below-pivot entries are already zero. The count "3" is the maximum for a full (positions ), not a guarantee. Any pre-existing zero below a pivot saves a step. Answer: the diagonal/triangular system above needs 0 multipliers; the claim of "always 3" is false.



Connections