โ† back to linear algebra

Determinants

Jim Hefferon ยท GFDL + CC BY-SA 2.5 ยท Linear Algebra

The determinant is a single number that captures whether a square matrix is invertible and how it scales volume. det(A) = 0 means the map collapses a dimension. det(AB) = det(A) * det(B). Geometrically, the determinant of a 2-by-2 matrix is the signed area of the parallelogram spanned by its columns.

Cofactor expansion

The determinant of a 1-by-1 matrix is its single entry. For larger matrices, expand along any row or column: multiply each entry by its cofactor (the determinant of the submatrix with that row and column deleted, times a sign). The result is the same regardless of which row or column you pick.

Scheme

Properties of determinants

Three key properties. First, det(AB) = det(A) * det(B): the determinant is multiplicative. Second, row operations have predictable effects: swapping rows flips the sign, scaling a row multiplies the determinant, adding a multiple of one row to another leaves it unchanged. Third, det(A) is nonzero if and only if A is invertible.

Scheme

Row operations and determinants

Row operations are the algorithmic path to computing determinants. Reduce to echelon form, track the sign flips from row swaps, and multiply the diagonal entries. This is O(n^3), far better than cofactor expansion's O(n!).

Scheme

Geometric interpretation

In 2D, |det(A)| is the area of the parallelogram spanned by the columns of A. In 3D, it is the volume of the parallelepiped. A negative determinant means the transformation reverses orientation. Zero determinant means the columns are coplanar, and the map squashes a dimension.

Scheme

Notation reference

Symbol Scheme Python Meaning
det(A)(det2 a b c d)np.linalg.det(A)Determinant
det(AB) = det(A)det(B)verified aboveverified aboveMultiplicativity
det(A) = 0singularsingularA is not invertible
cofactor Cij(-1)^(i+j) * Mij(-1)**(i+j) * MijSigned minor
|det(A)|(abs (det ...))abs(det(A))Volume scaling factor
Neighbors

Adjacent chapters

Foundations (Wikipedia)

Translation notes

Hefferon's chapter also covers permutation-based definitions of the determinant, Cramer's rule, and the Laplace expansion in full generality. This page focuses on the 2-by-2 and 3-by-3 cases and the key properties. For the permutation approach and proofs of multiplicativity, see the original text.