Determinant
Every square matrix has a single number attached to it called its determinant, written or . The picture to keep in mind is geometric: a square matrix acts on space as a linear transformation — stretching, rotating, shearing, or flipping it — and the determinant is the factor by which areas (or volumes) get scaled under that transformation.
A few things follow immediately from that picture:
- If , every shape comes out three times bigger after applying .
- The sign records orientation: positive means preserves it, negative means flips it (like a mirror reflection).
- is the degenerate case — squashes space down into a lower-dimensional shadow with no volume left, which is exactly when has no inverse. So "" is the standard test for invertibility.
For the small cases that come up most often — and — that scale factor has a clean closed-form formula.
2×2 Determinant
A matrix has two columns, each a vector in the plane. Together they span a parallelogram, and the determinant is just the signed area of that parallelogram.
The determinant of a matrix is:
The recipe to remember: multiply along the main diagonal (, top-left to bottom-right), then subtract the product along the anti-diagonal (, top-right to bottom-left).
So this matrix scales areas by a factor of and preserves orientation.
3×3 Determinant
The story is the same, one dimension up. A matrix has three columns — three vectors in space — and they span a parallelepiped (a slanted box). The determinant is the signed volume of that box.
The determinant of a matrix , expanded along the first row, is:
Evaluating each of the three determinants gives the closed form
The “cross out the row and column” leftover block has a name: its determinant is the minor of the entry, and the signed minor (with the checkerboard sign attached) is the cofactor. The alternating pattern is the same one that shows up in the cross-product determinant mnemonic.
Nothing forces you to walk the first row — expanding along any row or column gives the same answer, as long as you use the right sign pattern: the checkerboard at position . Picking a row or column with zeros saves effort, since those terms drop out before you ever compute the corresponding minor.
For , expanding along the first row:
Sarrus’ rule is a popular shortcut for matrices specifically — it does not generalize to larger sizes. Write the matrix and copy its first two columns to the right of it:
Add the products along the three “downward” diagonals (top-left to bottom-right), then subtract the products along the three “upward” diagonals (bottom-left to top-right):
Multiplying out the cofactor expansion above and rearranging gives exactly these six terms — Sarrus’ rule just bundles the bookkeeping into a memorable visual.
Determinant from Eigenvalues
Beyond the closed-form formulas above, the determinant has a second face that holds for every square matrix: it equals the product of the matrix’s eigenvalues. The case shows why concretely, and the same argument lifts to any size.
Expanding for a matrix gives the characteristic polynomial
Its roots are the eigenvalues , so the same polynomial must also factor as:
Matching coefficients (Vieta’s formulas) reads off two classical identities at once:
For an matrix the picture is the same: is the product of all eigenvalues, and is their sum.
Key Properties
For square matrices and a scalar :
- Multiplicativity: — composing two transformations multiplies their volume scale factors, exactly as you’d expect.
- Transpose invariance: — so cofactor expansion along any row or column gives the same result.
- Scaling: for an matrix — every column gets stretched by , and there are of them, so the volume picks up a factor of .
- Invertibility: is invertible if and only if — a transformation that crushes volume to zero cannot be undone.
- Diagonal and triangular matrices: the determinant of a diagonal matrix — and more generally any upper- or lower-triangular matrix — is the product of its diagonal entries: . In particular, , which makes sense: the identity transformation leaves every shape exactly as it found it.