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 — and, as it happens, through the same three products , , in a different order, since both walks use all three of the same minors. What changed is the work: the leading multiplied its minor away, so that minor never had to be computed at all. 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)Explore the figure
- At the default the green arrow 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 dashed 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 arrow lies in the sheet. The three columns are now dependent: as the algebra confirms, .
- Keep going to . The green arrow 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. Its chapter sequence is aligned to Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL); this work is original, copies nothing from it, and is not affiliated with or endorsed by its authors. License: CC-BY-NC-SA-4.0.