← mapVectors & Matrices

Determinants

⚗ Dr. Möbius, from the lab

Every 2×22\times 2 matrix is a machine that rescales areas. Apply the matrix to any shape and every piece of area in that shape gets multiplied by some fixed factor — the same factor everywhere on the plane, no exceptions. That factor is the determinant. And when the determinant is zero, the goddamn machine has committed a crime against geometry: it has crushed a two-dimensional region down to zero area. This is the most important single number associated with a matrix, and I will be testing you on it with zero mercy.

THE BIG IDEA

The determinant of a matrix is the signed factor by which the matrix scales areas (volumes in higher dimensions); det = 0 if and only if the transformation is singular.

The definition that actually makes sense

Before computing a single determinant, let's nail down what it IS. Most textbooks give you the formula first and the meaning never. Not in this lab. The matrix AA is a linear transformation. Consider the unit square with corners at (0,0)(0,0), (1,0)(1,0), (0,1)(0,1), (1,1)(1,1). The matrix AA moves this square to a parallelogram with corners at A(0,0)=(0,0)A(0,0) = (0,0), A(1,0)A(1,0), A(0,1)A(0,1), A(1,1)A(1,1).

Since A(1,0)TA(1,0)^T = column 1 of AA and A(0,1)TA(0,1)^T = column 2 of AA, the parallelogram has sides given by the two column vectors. The area of this parallelogram is det(A)|\det(A)|. The sign of det(A)\det(A) records orientation: positive if the transformation preserves orientation (counterclockwise stays counterclockwise), negative if it flips orientation.

Definition first, formula second. det(A)\det(A) is the signed area-scaling factor of the transformation AA. For any region SS in the plane with area Area(S)\text{Area}(S), the region A(S)A(S) has area det(A)Area(S)|\det(A)| \cdot \text{Area}(S).

Watch the determinant readout as you drag the matrix columns — see how area scales:

matrix transform — drag the columns
A·e₁=(1,0)A·e₂=(0,1)
A = [1 0 | 0 1]det A = 1

The 2×22\times 2 formula

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}:

det(A)=adbc\det(A) = ad - bc

This formula computes the signed area of the parallelogram formed by columns (a,c)T(a,c)^T and (b,d)T(b,d)^T. Memorize the shape: main diagonal product minus anti-diagonal product.

Verifying on the greatest hits:

  • Rotation RθR_\theta: det(Rθ)=cosθcosθ(sinθ)(sinθ)=cos2θ+sin2θ=1\det(R_\theta) = \cos\theta \cdot \cos\theta - (-\sin\theta)(\sin\theta) = \cos^2\theta + \sin^2\theta = 1. Rotations preserve area. Of course they do — they just spin things around.

  • Uniform scaling by cc: det(c00c)=c20=c2\det\begin{pmatrix}c&0\\0&c\end{pmatrix} = c^2 - 0 = c^2. Scaling by cc multiplies every length by cc, so every area by c2c^2. The formula agrees.

  • Horizontal shear (1k01)\begin{pmatrix}1&k\\0&1\end{pmatrix}: det=(1)(1)(k)(0)=1\det = (1)(1) - (k)(0) = 1. Shears preserve area. This is geometrically obvious once you see it: a shear slides things sideways but doesn't compress or expand. The base of the parallelogram stays the same length and the height doesn't change. Area = base ×\times height = unchanged.

These three checks are not accidents. They're the formula working correctly, and any textbook that doesn't show them is hiding the ball on purpose — cowardly bullshit.

det = 0: the singularity detector

det(A)=0    A squashes the plane down to a line (or a point)\det(A) = 0 \iff A \text{ squashes the plane down to a line (or a point)}

When the transformation crushes 2D down to 1D, every area becomes zero — the scaling factor IS zero. Equivalently, if adbc=0ad - bc = 0, the two columns of AA are proportional (parallel), so their parallelogram has zero area. This is dimension murder.

Three equivalent statements — memorize them together as one fact:

  1. det(A)=0\det(A) = 0
  2. The plane gets squashed flat (the transformation is not invertible)
  3. The columns of AA are linearly dependent (parallel; one is a scalar multiple of the other)

A matrix with nonzero determinant is called invertible (or nonsingular). One with zero determinant is singular — it is broken in the deepest possible way, and I want you to feel genuine disgust when you encounter one. We'll build the full A1A^{-1} theory next lesson.

The 3×33\times 3 determinant via cofactor expansion

For a 3×33\times 3 matrix, we expand along the first row:

det(abcdefghi)=adet(efhi)bdet(dfgi)+cdet(degh)\det\begin{pmatrix}a & b & c \\ d & e & f \\ g & h & i\end{pmatrix} = a\det\begin{pmatrix}e&f\\h&i\end{pmatrix} - b\det\begin{pmatrix}d&f\\g&i\end{pmatrix} + c\det\begin{pmatrix}d&e\\g&h\end{pmatrix}

The 2×22\times 2 matrices are the minors — what's left after deleting row 1 and the column of each top entry. The signs alternate ++, -, ++. I'll show you once: for

M=(213042153)M = \begin{pmatrix}2 & -1 & 3 \\ 0 & 4 & -2 \\ 1 & 5 & -3\end{pmatrix}

det(M)=2det(4253)(1)det(0213)+3det(0415)\det(M) = 2\det\begin{pmatrix}4&-2\\5&-3\end{pmatrix} - (-1)\det\begin{pmatrix}0&-2\\1&-3\end{pmatrix} + 3\det\begin{pmatrix}0&4\\1&5\end{pmatrix}

=2[(4)(3)(2)(5)]+1[(0)(3)(2)(1)]+3[(0)(5)(4)(1)]= 2[(4)(-3) - (-2)(5)] + 1[(0)(-3) - (-2)(1)] + 3[(0)(5) - (4)(1)]

=2[12+10]+1[0+2]+3[04]= 2[-12 + 10] + 1[0 + 2] + 3[0 - 4]

=2(2)+1(2)+3(4)=4+212=14= 2(-2) + 1(2) + 3(-4) = -4 + 2 - 12 = -14

This number 14-14 means: the transformation MM scales volumes by a factor of 1414 AND flips orientation. Nobody enjoys computing 3×33\times 3 determinants twice — they're a slog and I won't pretend otherwise — so I'll say this once: do it carefully, step by step, check every 2×22\times 2 minor. One sign error and your answer is wrong and you'll never know.

The multiplicative property

det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B)

From the scaling story, this is obvious: if AA scales areas by det(A)\det(A) and BB scales areas by det(B)\det(B), then applying both scales areas by det(A)det(B)\det(A)\det(B). The composition of the scalings is the product of the factors.

This one-line geometric argument is far more illuminating than any algebraic proof, and the fact that most courses lead with the algebraic proof is a genuine sin against pedagogy. The formula det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B) is just the statement that "scaling by two factors in sequence multiplies the factors." From the formula, though, it would take pages to verify. This is what conceptual definitions buy you: short proofs.

Corollary: If AA is invertible, det(A)det(A1)=det(AA1)=det(I)=1\det(A)\det(A^{-1}) = \det(AA^{-1}) = \det(I) = 1, so det(A1)=1/det(A)\det(A^{-1}) = 1/\det(A). The inverse transformation scales areas by the reciprocal factor. Makes sense.

🔬 SPECIMENS (worked examples)

Worked example 1 — computing and interpreting a 2x2 determinant

Compute det(A)\det(A) for A=(3215)A = \begin{pmatrix} 3 & -2 \\ 1 & 5 \end{pmatrix} and describe what it tells you about the transformation.

Apply the formula det=adbc\det = ad - bc:

det(A)=(3)(5)(2)(1)=15+2=17\det(A) = (3)(5) - (-2)(1) = 15 + 2 = 17

Interpretation: The transformation AA scales areas by a factor of 1717 and preserves orientation (positive determinant). If you apply AA to the unit square, the resulting parallelogram has area 1717. The transformation is invertible (nonzero determinant), so no dimension-squashing occurs.

Worked example 2 — the shear's dirty secret (area preserved, no kidding)

Verify that the shear H=(1k01)H = \begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix} preserves area for any value of kk.

Compute the determinant: det(H)=(1)(1)(k)(0)=10=1\det(H) = (1)(1) - (k)(0) = 1 - 0 = 1

For any kk, the determinant is 11. This confirms that horizontal shears always preserve area.

Geometric argument to accompany the algebra: The shear maps the unit square to a parallelogram. The base vector (1,0)T(1,0)^T doesn't move; the top edge, which was at height 11, slides sideways to (k,1)T(k,1)^T but stays at height 11. A parallelogram with base 11 and height 11 has area 1=1 = area of the original unit square.

The formula confirms the geometry, and the geometry explains why the formula gives 11 regardless of kk. This is the right way to understand a computation — check it two ways.

Worked example 3 — a 3x3 determinant, done once, done carefully, or suffer

Compute det(B)\det(B) for B=(102131224)B = \begin{pmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 2 & -2 & 4 \end{pmatrix}.

Expand along row 1. The entries are b11=1b_{11}=1, b12=0b_{12}=0, b13=2b_{13}=2.

det(B)=1M110M12+2M13\det(B) = 1 \cdot M_{11} - 0 \cdot M_{12} + 2 \cdot M_{13}

where MijM_{ij} is the determinant of the matrix obtained by deleting row ii and column jj.

Since b12=0b_{12} = 0, that whole term vanishes — the 00 saves us a computation.

M11=det(3124)=(3)(4)(1)(2)=12+2=14M_{11} = \det\begin{pmatrix}3&1\\-2&4\end{pmatrix} = (3)(4)-(1)(-2) = 12+2 = 14

M13=det(1322)=(1)(2)(3)(2)=26=4M_{13} = \det\begin{pmatrix}-1&3\\2&-2\end{pmatrix} = (-1)(-2)-(3)(2) = 2-6 = -4

det(B)=1(14)0+2(4)=148=6\det(B) = 1(14) - 0 + 2(-4) = 14 - 8 = 6

Check: The matrix BB has positive determinant 66, so it scales volumes by 66 and preserves orientation. The transformation is invertible.

☠ KNOWN HAZARDS

  • Mixing up the 2×22\times 2 formula. det(abcd)=adbc\det\begin{pmatrix}a&b\\c&d\end{pmatrix} = ad - bc, not acbdac - bd or abcdab - cd. Main-diagonal product minus anti-diagonal product. Burn it in — if you swap those terms on an exam, the Federation of Boring Textbook Authors will have won.

  • Forgetting the alternating signs in cofactor expansion. The sign pattern for 3×33\times 3 expansion along row 1 is +,,++, -, +. Dropping the negative on the middle term is the most common computational error, and it will cost you the whole problem.

  • Thinking det(A+B)=det(A)+det(B)\det(A+B) = \det(A) + \det(B). False in general. Determinant is NOT linear in the matrix. det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B) (multiplicative), but there's no corresponding additive rule.

  • Concluding A=0A = 0 from det(A)=0\det(A) = 0. A zero determinant means the transformation is singular — it collapses the plane. The matrix itself need not be the zero matrix. For example, (1122)\begin{pmatrix}1&1\\2&2\end{pmatrix} has determinant zero but is definitely not the zero matrix.

TL;DR

  • det(A)\det(A) is the signed factor by which AA scales areas. det(A)|\det(A)| = area scaling; sign = orientation.

  • For A=(abcd)A = \begin{pmatrix}a&b\\c&d\end{pmatrix}: det(A)=adbc\det(A) = ad - bc. Main diagonal minus anti-diagonal.

  • det(A)=0    \det(A) = 0 \iff columns linearly dependent     \iff transformation is singular (non-invertible).

  • Rotation: det=1\det = 1. Shear: det=1\det = 1 (area-preserving!). Scaling by cc: det=c2\det = c^2.

  • det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B) — obvious from the area-scaling story.

unlocks