4.2 Cofactor Expansion in Three Dimensions
The last section defined for a matrix and read it three ways: as an area, as an orientation, and as a test for invertibility. All three readings survive in higher dimensions, but the formula does not — there is no two-term expression for a determinant. What there is instead is a rule that reduces the new case to the old one, applied three times.
Take
The minor of an entry is the determinant of what remains when you delete that entry's row and column — a determinant, which you can already do. Deleting the first row and first column of leaves , whose determinant is . That is the minor of the entry in the corner. The cofactor of an entry is its minor with a sign attached, for the entry in row and column — so the cofactor of that corner is , and the word in this section's title just means "expansion in terms of those signed minors".
Cofactor expansion says: walk along any one row or column, multiply each entry by its minor, and add the results with alternating signs. Along the first row of the entries are , and , so
where the three minors come from deleting the first row together with each column in turn.
Delete the first row and first column of and take the determinant of the block left behind: . Every cofactor expansion is built from determinants this small, which is what makes the rule usable by hand.
Delete the first row and the second column and the remaining block is , of determinant . This is the term that carries the minus sign, which is a property of its position — second along the row — and has nothing to do with its entries.
The full determinant, computed by a computer algebra system: , matching the expansion done by hand above.
The signs, and choosing where to walk
The alternating signs follow a fixed checkerboard, starting with a plus in the top-left corner:
The sign attached to a term depends only on where the entry sits, never on the entry itself — a common early error is to let a negative entry flip a sign twice.
Because every row and every column gives the same answer, you get to choose, and the choice is worth making. Expanding along its bottom row, whose entries are , and with signs , , :
the same . The three products even match, , , in a different order, but only because reads the same backwards: the bottom row's minors come from different blocks than the top row's, and for most matrices they would be different numbers. Nor did this walk save any work. The top row and the bottom row each contain one zero, and a zero entry multiplies its minor away, so each walk really needs just two minors (the displays write out only for completeness). A line with more zeros saves more, as the worked example below shows with a row holding two. Hence the practical rule: expand along the row or column with the most zeros.
Watching it vanish
Fix the top-left block and put the bottom-right entry on a slider:
Expanding along the bottom row again gives , so : a straight line in , hitting zero at and recovering the value at .
The determinant computed symbolically in . It is linear, because appears in exactly one entry and a cofactor expansion uses each entry at most once — determinants are linear in any single row or column, though emphatically not in the matrix as a whole.
Explore in 3D (opens in a new tab)A semi-transparent patch of a plane floating in space, spanned by a red segment from the origin to (2, 1, 0) and a blue segment from the origin to (1, 3, 1). A green segment rises from the origin to (0, 1, g), where a slider sets g, and an amber segment joins the green segment's tip to a white dot at (0, 1, 0.4) lying in the plane of the patch. Dragging the slider down to 0.4 closes that gap, laying the green segment flat into the plane; there the determinant of the three columns is zero, and above or below it the determinant is the signed amount five g minus two.
Explore the figure
- At the default the green segment stands well clear of the blue-and-red sheet, and , the determinant you computed by hand.
- Drag down and watch two things at once: the amber gap shrinking, and the value heading for zero. They arrive together — the geometry and the arithmetic are reporting the same event.
- At the gap closes and the green segment lies in the sheet. The three columns are now dependent: as the algebra confirms, .
- Keep going to . The green segment has swung out below the sheet and . As in the last section, passing through dependence is the only way for the sign to change. (Avoid stopping at exactly to judge this: there the third column is , which lies along the -axis and is hard to pick out against it.)
An original work of XYZ Homework, built around interactive XYZ 3D figures. Chapters 1–6 follow the topic sequence of Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL). Chapter 0's scope (its topics, their order, and the idea each figure shows) follows the Vectors chapter of Ximera's Linear Algebra: An Interactive Introduction. The prose, worked examples and figures were written for this book, which is not affiliated with or endorsed by the authors of either work. License: CC-BY-NC-SA-4.0.