4.5.24 · D3Linear Algebra (Full)

Worked examples — Cramer's rule

3,090 words14 min readBack to topic

This page is the "throw everything at it" companion to Cramer's rule. The parent note built the formula and why it works. Here we stress-test it against every kind of input you can meet: nice numbers, negative and zero coefficients, a system where (so the rule refuses to run), a limiting near-singular case, a geometry problem, a word problem, and an exam twist with a letter parameter.


The scenario matrix

Every cell here is covered by at least one worked example below. If a case can bite you, it appears.

Cell What makes it special Covered by
A. Clean 2×2, positive all entries positive, Example 1
B. Mixed signs 2×2 negative coefficients, negative Example 2
C. Zero entries / basis-like a coefficient is (a column axis-aligned) Example 3
D. Degenerate: (no solution) rule cannot run — inconsistent Example 4
D'. Degenerate: (infinitely many) rule cannot run — Example 4b
E. Limiting / near-singular , watch blow up Example 5
F. 3×3 full three unknowns, three column swaps Example 6
G. Geometry intersection of two lines = a 2×2 system Example 7
H. Word problem (units) real quantities, sanity-check units Example 8
I. Exam twist (parameter) a letter in ; when does it break? Example 9

Prerequisites you may want open: Determinants, Cofactor Expansion, and for the degenerate cell, Gaussian Elimination and the Invertible Matrix Theorem.


Example 1 — Cell A: clean positive 2×2


Example 2 — Cell B: mixed signs


Example 3 — Cell C: a zero entry (axis-aligned column)


Example 4 — Cell D: degenerate, (no solution)


Example 4b — Cell D': degenerate, (infinitely many)


Example 5 — Cell E: near-singular limit


Example 6 — Cell F: full 3×3


Example 7 — Cell G: geometry (two lines meeting)


Example 8 — Cell H: word problem with units


Example 9 — Cell I: exam twist with a parameter

Recall Quick self-check

Which cell does a system of two identical equations fall into, and what does Cramer say? ::: Cell D' — and every numerator is also , so it's the / infinitely-many-solutions branch (contrast Example 4's nonzero-over-zero contradiction).


Recap of the scenario coverage


Connections

  • Cramer's rule — the parent formula and its proof.
  • Determinants — the volume engine behind every denominator.
  • Cofactor Expansion — used to compute the 3×3 in Example 6.
  • Gaussian Elimination — the tool to reach for in Cells D and D'.
  • Invertible Matrix Theorem unique solution (Cells D, D', I).
  • Matrix Inverse — Cramer is the inverse via adjugate applied to .
  • Multilinear and Alternating Maps — why swapping a column behaves as it does.