Prerequisite · Linear Algebra

Determinants

15 min read
By the end of this reading you will be able to:
  • Compute the determinant of a matrix via row reduction and state its relationship to invertibility
  • Interpret the determinant as a signed volume scaling factor and explain what det = 0 means geometrically
  • Apply the permutation expansion and cofactor (Laplace) expansion to compute determinants of small matrices
  • Use key determinant properties such as det(AB) = det(A)det(B) and det(A^T) = det(A) to simplify multi-step calculations

What the Determinant Measures

The determinant of a square matrix AA, written det(A)\det(A) or A|A|, answers a geometric question: by what factor does the transformation xAx\vec{x} \mapsto A\vec{x} scale volumes?

More precisely: if SS is any region in Rn\mathbb{R}^n with volume vol(S)\text{vol}(S), then the image A(S)A(S) has volume det(A)vol(S)|\det(A)| \cdot \text{vol}(S). The sign of det(A)\det(A) captures orientation: positive means orientation-preserving, negative means orientation-reversing (like a reflection).

When det(A)=0\det(A) = 0, the transformation squashes space into a lower dimension — the output has zero volume, and AA is singular.

Properties

The determinant is characterized by three properties:

  1. Multilinearity: det\det is linear in each row separately (with other rows held fixed)
  2. Alternating: swapping two rows negates det\det — equivalently, det=0\det = 0 if two rows are identical
  3. Normalization: det(I)=1\det(I) = 1

These three properties uniquely determine the determinant. All other properties follow:

  • det(A)=det(A)\det(A') = \det(A) — rows and columns interchangeable
  • det(AB)=det(A)det(B)\det(AB) = \det(A)\det(B) — determinant of a product is the product of determinants
  • det(A1)=1/det(A)\det(A^{-1}) = 1/\det(A) — follows from the product rule
  • det(cA)=cndet(A)\det(cA) = c^n \det(A) for n×nn \times n matrix
  • Adding a multiple of one row to another leaves det\det unchanged — scaling by the pivot in Gauss's method multiplies det\det by that scalar

Computing via Row Reduction

Gauss's method gives the fastest route to the determinant for large matrices. Tracking the effect of each row operation:

Operation Effect on det
Swap two rows Negate
Scale row by kk Multiply by kk
Add multiple of one row to another No change

Reduce AA to echelon form UU. The determinant of UU is the product of its diagonal entries (the pivots). Then:

det(A)=(1)s1k1k2u11u22unn\det(A) = (-1)^s \cdot \frac{1}{k_1 k_2 \cdots} \cdot u_{11} u_{22} \cdots u_{nn}

where ss = number of row swaps and kik_i = scaling factors applied during reduction.

In practice: reduce to echelon form, track signs from swaps, multiply pivots.

The Permutation Expansion

For an n×nn \times n matrix, the determinant can be written as a sum over all n!n! permutations σ\sigma of {1,,n}\{1,\ldots,n\}:

det(A)=σSnsgn(σ)a1,σ(1)a2,σ(2)an,σ(n)\det(A) = \sum_{\sigma \in S_n} \text{sgn}(\sigma)\, a_{1,\sigma(1)}\, a_{2,\sigma(2)} \cdots a_{n,\sigma(n)}

where sgn(σ)=+1\text{sgn}(\sigma) = +1 if σ\sigma is an even permutation (achievable by an even number of transpositions) and 1-1 if odd.

For 2×22 \times 2: two permutations, (1,2)(1,2) with sign +1+1 and (2,1)(2,1) with sign 1-1, giving det=a11a22a12a21\det = a_{11}a_{22} - a_{12}a_{21}.

For 3×33 \times 3: six permutations (Sarrus' rule). For larger nn, the permutation expansion is impractical (n!n! grows fast) but theoretically important — it proves properties of the determinant.

Laplace's Expansion (Cofactor Expansion)

For computational purposes, Laplace expansion along row ii:

det(A)=j=1n(1)i+jaijMij\det(A) = \sum_{j=1}^n (-1)^{i+j} a_{ij}\, M_{ij}

where MijM_{ij} is the minor — the determinant of the (n1)×(n1)(n-1) \times (n-1) matrix obtained by deleting row ii and column jj. The factor (1)i+jMij(-1)^{i+j} M_{ij} is the cofactor CijC_{ij}.

Choosing a row or column with many zeros minimizes computation. Expansion along any row or column gives the same result.

Cramer's Rule

For an invertible n×nn \times n system Ax=bA\vec{x} = \vec{b}, each component of the solution is a ratio of determinants:

xi=det(Ai)det(A)x_i = \frac{\det(A_i)}{\det(A)}

where AiA_i is AA with column ii replaced by b\vec{b}.

Cramer's rule is elegant but computationally expensive (O(n!)O(n!) naively, or O(n4)O(n^4) with efficient determinant computation). For n>3n > 3, Gaussian elimination is always faster. Cramer's rule is mainly useful for theoretical arguments and for 2×22 \times 2 and 3×33 \times 3 closed-form solutions.

References
Hefferon 2020 — Linear Algebra, Ch. Four: Determinants