2.6.8 · D2Matrices & Determinants — Introduction

Visual walkthrough — Determinant of 3×3 matrix — cofactor expansion

1,684 words8 min readBack to topic

We only assume you can read a table of numbers. Everything else — even what "determinant" means — we rebuild here.


Step 1 — What is a matrix, and what does its determinant measure?

WHAT. A matrix is just a grid of numbers arranged in rows (going across) and columns (going down). A 3×3 matrix has 3 rows and 3 columns — nine numbers total. We name each number : the letter is the row it sits in, and is the column.

Here (read "a-one-one") lives in row 1, column 1 — top-left. lives in row 2, column 3.

WHY. We read the three rows as three arrows pointing into 3D space. The first row is one arrow, the second row another, the third row a third. The determinant is a single number that measures the volume of the slanted box (a parallelepiped — a squished shoe-box) that these three arrows span. Big box → big number. Flat box → zero.

PICTURE. Three arrows leaving the origin; the box they cage in is the thing whose volume we want.

Figure — Determinant of 3×3 matrix — cofactor expansion

Step 2 — The tool we already own: the 2×2 area

WHAT. Before 3D volume, recall 2D area. Two arrows in a flat plane cage a parallelogram (a leaning rectangle). For a 2×2 matrix its area is one clean formula, from the 2×2 determinant:

Term by term: is the main-diagonal product (top-left times bottom-right). is the anti-diagonal product (top-right times bottom-left). We subtract because measures the "wrong-way" overlap that must be cancelled.

WHY this tool. The whole strategy of the 3×3 is to not invent anything new. If we can chop the 3D box into pieces whose sizes are just 2×2 areas, we're done — we already know areas.

PICTURE. The parallelogram, its diagonal-product rectangles shaded, one in red.

Figure — Determinant of 3×3 matrix — cofactor expansion
Recall

Value of ? :::


Step 3 — Slice the box along the top row

WHAT. Look at the first row, . We claim the whole volume is built by taking each of these three numbers, one at a time, and multiplying it by the area of a smaller 2×2 slice.

WHY. Volume of a box = (how far it reaches in one direction) × (area of the cross-section it drags along). The top-row entries are the "how far" pieces; the 2×2 areas are the "cross-sections." So we walk across the top row and collect three volume-slabs, then add them.

The 2×2 slice belonging to is called its minor : cover up row 1 (because we've already used it) and column (because lives there), and take the determinant of the four numbers left over.

PICTURE. Row 1 highlighted; for we grey out its row and column and the surviving 2×2 block glows red.

Figure — Determinant of 3×3 matrix — cofactor expansion

Step 4 — The three slices, drawn out

WHAT. Do the covering for each top-row entry in turn:

  • : cover row 1 & column 1 → columns 2,3 survive.
  • : cover row 1 & column 2 → columns 1,3 survive (notice the gap — column 2 is gone).
  • : cover row 1 & column 3 → columns 1,2 survive.

WHY. Each minor is the cross-sectional area left after we "spend" one top-row number in one direction. Three numbers, three cross-sections.

PICTURE. The 3×3 shown three times side by side, each with a different column struck through in red.

Figure — Determinant of 3×3 matrix — cofactor expansion

Step 5 — Where the minus sign is born

WHAT. If we naively added we would get the wrong answer. The true rule alternates sign:

The middle term is subtracted.

WHY. Watch the columns of the surviving block. For we kept columns in order — natural order. For we kept : to line them up with the "natural" left-to-right box we had to swap column 1 past column 2. One swap flips the box to its mirror image, which flips the sign of the volume. That single swap is the minus sign. For , columns need an even number of swaps back, so it's plus again.

We package this bookkeeping into . For the top row :

The number times its sign times its minor is the cofactor .

PICTURE. The checkerboard sign grid, with the top-row cells picked out in red, and a little "one swap = flip" cartoon.

Figure — Determinant of 3×3 matrix — cofactor expansion

Step 6 — Assemble the full formula and test it

WHAT. Putting Steps 3–5 together gives the parent's headline result:

WHY test. A picture is worth nothing if the arithmetic breaks. Take

  • , sign .
  • , sign .
  • , sign .

PICTURE. Bar chart of the three signed slabs stacking up to the red total .

Figure — Determinant of 3×3 matrix — cofactor expansion

Step 7 — Any row works (and why you should choose zeros)

WHAT. Nothing forced us to slice the top row. The same argument slices any row or column. The general rule:

Here the ("sigma") means "add these up for ." All six choices (three rows, three columns) give the identical number — see the properties.

WHY. Because they all measure the same box's volume. So pick the row/column with the most zeros — a zero kills its whole slab before you compute the minor. For column 2 has two zeros, so only the middle survives:

PICTURE. Column 2 highlighted; its two zero-slabs faded to nothing, only the red middle slab remains.

Figure — Determinant of 3×3 matrix — cofactor expansion

Step 8 — The degenerate case: a flat box gives zero

WHAT. What if the three arrows don't reach into all of 3D — if they lie in a single flat sheet? Then the box has no thickness, volume , so . Example:

Because row 3 is built from the other two, its arrow lies in the plane of the first two. Cofactor expansion confirms it:

WHY it matters. A zero determinant is the signal that the transformation collapses 3D onto a flat plane — the matrix has no inverse, and systems like Cramer's rule break exactly here.

PICTURE. Three arrows lying flat in one tilted plane; the "box" is a red pancake with zero height.

Figure — Determinant of 3×3 matrix — cofactor expansion

The one-picture summary

Everything above in a single frame: top row across the top, each entry firing a signed 2×2 slab downward, the three slabs summing into the box's volume.

Figure — Determinant of 3×3 matrix — cofactor expansion
Recall Feynman retelling — say it plain

Three rows of numbers are three arrows; the determinant is the volume of the slanty box they cage. To measure it, I walk across the top row. Each top number tells me how far the box reaches in one direction; the little 2×2 area left after I hide that number's row and column tells me the cross-section it drags. Distance times area = a slab of volume. I collect three slabs — but the middle one comes out mirror-flipped (one column had to hop past another), so I subtract it: plus, minus, plus. Add the slabs and I have the volume. I can start from any row or column and get the same answer, so I start where the zeros are to save work. And if the three arrows all lie flat in one sheet, the box is a pancake with no height — volume zero, determinant zero.