Matrix Inverse via Cofactors
Matrix Inverse via Cofactors computes the inverse of a square matrix as , where is the adjugate — the transpose of the matrix of signed minors (cofactors). Works for any invertible matrix over a field (or commutative ring with invertible determinant). Classic result formalized in the 18th–19th century; foundational in linear algebra courses, Cramer's rule, and symbolic computation.
The product of a row of with the corresponding column of the cofactor matrix reproduces the cofactor (Laplace) expansion of the determinant. The product with a non-corresponding column reproduces the determinant of a matrix with a repeated row — which is always zero. These two facts — "right answer on the diagonal, zero off the diagonal" — are exactly the statement . Dividing by gives the inverse.
Formal Statement
Let be an matrix over a field . The minor is the determinant of the matrix obtained by deleting row and column of . The cofactor is the signed minor:
Derivation hint: the sign is the parity contributed by moving entry to the top-left corner via row/column swaps in the determinant's permutation sum. The cofactor matrix is . The adjugate (classical adjoint) is its transpose:
Derivation hint: transposition is required so that the row–column pairing in pairs row of with the cofactors of row , reconstructing a Laplace expansion.
For any matrix ,
Derivation hint: the diagonal entries are Laplace expansions of ; off-diagonal entries are Laplace expansions of a determinant with a duplicated row, hence zero. If , then is invertible and
Derivation hint: multiply [3] on the left or right by and use uniqueness of the two-sided inverse. Entrywise, this reads
Derivation hint: read off entry of using from [2]; note the swapped indices.
Why It Holds / Derivation
Step 1 — Laplace expansion. Fix a row . Expanding along row gives
Derivation hint: group the terms of the Leibniz determinant sum by which column the entry from row occupies; the remaining factor is exactly .
Step 2 — Diagonal entries. The entry of is
Derivation hint: substitute from [2], then apply [6].
Step 3 — Off-diagonal entries. For ,
Derivation hint: again use [2], now pairing row entries with cofactors of row . This last sum is the Laplace expansion along row of the matrix formed from by replacing row with a copy of row . Since depends only on rows , it equals the cofactor of in position , so
because has two identical rows (rows and ). Derivation hint: a determinant with two equal rows vanishes — swapping them negates the determinant yet leaves it unchanged, forcing it to be (char ; the result holds in all characteristics via the alternating Leibniz formula).
Step 4 — Combine. Equations [7] and [9] give , i.e. . The identity follows identically by expanding along columns instead of rows.
∎Theorem [3] holds for every square matrix, singular or not — it is a polynomial identity in the entries . Only [4] requires . When , still exists but does not; instead .
Laplace's 1772 memoir on determinants gave the systematic cofactor expansion (Laplace expansion) that underpins this entire method. While determinants trace to Leibniz and Cramer, Laplace's recursive expansion along a row or column is the engine that connects minors to the determinant and, through the adjugate, to the inverse. The term "adjugate" and the modern packaging crystallized through Cauchy and later 19th-century algebraists.
Building Intuition
Think of as the signed volume scaling factor of the linear map . The inverse map must rescale volumes by — that explains the denominator. The numerator, , encodes "how each output coordinate is built from sub-volumes." Each cofactor measures the volume of the parallelepiped spanned by all columns except column , projected appropriately. Solving by Cramer's rule replaces column of with — the cofactors are precisely the partial derivatives of with respect to the matrix entries: . The adjugate is therefore the gradient of the determinant, reshaped.
Worked Examples
Given:
Derivation hint: a generic invertible matrix; entries chosen for a clean nonzero determinant.
Step 1 — Determinant:
Step 2 — Cofactors. For , , , , . So
Derivation hint: the adjugate is "swap diagonal, negate off-diagonal," which is exactly here.
Step 3 — Inverse:
Derivation hint: scale by .
Check: ✓ (dimensionless)
Given:
Derivation hint: a standard textbook matrix with an easy-to-track structure.
Step 1 — Determinant (expand along row 1):
Derivation hint: each bracket is a minor; signs alternate along the row.
Step 2 — Cofactor matrix. Compute all nine signed minors:
Derivation hint: e.g. , , ; apply signs throughout.
Step 3 — Adjugate (transpose) and inverse:
Derivation hint: transpose [15]; rows of become columns of . Since :
Derivation hint: dividing by leaves unchanged.
Check (first column): ✓ (dimensionless)
Common Misconceptions
- Forgetting the transpose. is wrong; it must be . The mistake is invisible for symmetric cofactor matrices, so test cases hide it.
- Sign of the checkerboard. The pattern starts with in the top-left and alternates. Index from , not .
- Index swap in [5]. Entry of uses , not — the transpose again.
- " means undefined cofactors." No — cofactors and are perfectly defined; only the division fails.
- Efficiency. Cofactor expansion of an inverse costs naively — catastrophically slow. Use it for theory and tiny matrices, not numerics.
Let , so . The adjugate is , and indeed
Derivation hint: identity [3] forces the product to be ; you cannot divide by , confirming has no inverse. Attempting divides by zero — there is no inverse, consistent with rows being linearly dependent.
Connections
The cofactor formula sits at the crossroads of several core results. It is the engine behind Cramer's Rule, since is exactly . It depends entirely on the Laplace Expansion of the determinant and on properties of the Determinant as an alternating multilinear form. The identity links it to Jacobi's Formula for the derivative of a determinant. For practical computation it is contrasted with Gaussian Elimination and LU Decomposition, which compute inverses in . Over rings rather than fields, the adjugate appears in the Cayley–Hamilton Theorem, where generates the characteristic polynomial's coefficients.
Real-World Applications
Historical Development
Subtleties & Limits
The adjugate behaves richly near singularity: if has rank , then ; if , then . This makes a sensitive but non-continuous-in-rank probe of degeneracy. Numerically, computing inverses via cofactors amplifies round-off and scales factorially, so the genuine open practical questions concern stable, fast exact inversion over rings (where one cannot pivot freely by division): Bareiss-style fraction-free elimination and division-free determinant/adjugate algorithms (e.g., Berkowitz, Mahajan–Vinay) aim to compute in polynomial arithmetic operations without divisions — relevant to complexity classes like and the algebraic complexity of the determinant. Whether the determinant/adjugate admit polynomial-size formulas (vs. circuits) ties into Valiant's vs. program, one of the central open problems of algebraic complexity.
See Also
Determinant · Laplace Expansion · Cramer's Rule · Cayley–Hamilton Theorem · Jacobi's Formula · Gaussian Elimination · LU Decomposition · Adjugate Matrix