Cayley-Hamilton Theorem
The Cayley-Hamilton Theorem and Its Direct Consequences
Statement
Let A be an n × n matrix over a field, with characteristic polynomial
p(λ) = det(λI − A) = λn + cn−1λn−1 + … + c1λ + c0.
Cayley–Hamilton theorem. p(A) = An + cn−1An−1 + … + c1A + c0I = 0, the n × n zero matrix.
Three reading notes:
- p(A) is a matrix. The constant c0 becomes c0I.
- The tempting one-line “proof” p(A) = det(AI − A) = det 0 = 0 is not valid: it produces a number, while p(A) is a matrix, and substituting a matrix inside a determinant is not the same as substituting into the expanded polynomial. Genuine proofs use the adjugate identity or triangularization.
- The theorem holds for every square matrix, diagonalizable or not. For a diagonalizable matrix it is easy to see, since p(A) = P diag(p(λ1), …, p(λn)) P−1 and each p(λi) = 0; the content of the theorem is that no hypothesis of this kind is needed.
The coefficients you need
- 2 × 2: p(λ) = λ2 − (tr A)λ + det A, so A2 = (tr A)A − (det A)I.
- 3 × 3: p(λ) = λ3 − (tr A)λ2 + E2λ − det A, where E2 is the sum of the three principal 2 × 2 minors (delete row i and column i, take the determinant, add over i).
2 × 2 check. Let A have rows (2, 3) and (1, 4): tr A = 6, det A = 5. Direct multiplication gives A2 with rows (7, 18) and (6, 19), and 6A − 5I has rows (12 − 5, 18) and (6, 24 − 5) = (7, 18) and (6, 19). They agree.
3 × 3 check. Let M have rows (1, 2, 0), (0, 1, 1), (1, 0, 2).
Then tr M = 4, the principal minors are 1 · 2 − 1 · 0 = 2 (rows/columns 2, 3), 1 · 2 − 0 · 1 = 2 (rows/columns 1, 3) and 1 · 1 − 2 · 0 = 1 (rows/columns 1, 2), so E2 = 5, and det M = 4. Hence M3 − 4M2 + 5M − 4I = 0.
Consequence 1: reducing powers
Cayley–Hamilton expresses An through lower powers, and repeating the substitution reduces any Ak to a combination of I, A, …, An−1. For the 2 × 2 example, A2 = 6A − 5I, so
A3 = A · A2 = 6A2 − 5A = 6(6A − 5I) − 5A = 31A − 30I.
Eigenvalue check. The eigenvalues of this A are 1 and 5 (they sum to 6 and multiply to 5). Any identity Ak = aA + bI must also hold for each eigenvalue: 13 = 31 − 30 = 1 and 53 = 155 − 30 = 125. Both hold.
Consequence 2: the inverse as a polynomial
Since c0 = (−1)n det A, the constant term is nonzero exactly when A is invertible. Then A(An−1 + … + c1I) = −c0I gives A−1 = −(An−1 + … + c1I)/c0. For the 2 × 2 example, A(6I − A) = 5I, so A−1 = (6I − A)/5.
Consequence 3: testing annihilating relations
Because p(A) = 0, the minimal polynomial divides the characteristic polynomial, and for an n × n matrix it has degree at most n. The converse direction needs care: a relation q(A) = 0 does not make q the characteristic polynomial. For a 2 × 2 matrix with A2 = sA − tI:
- if A is not a scalar multiple of I, then I and A are independent, the relation is unique, and so tr A = s and det A = t;
- if A = cI, then any polynomial with root c annihilates it, and trace and determinant are 2c and c2 instead.
How annihilators organize the space into invariant subspaces, and how that leads to primary decomposition and Jordan form, is developed in those concepts.
A 2 × 2 real matrix A has trace 5 and determinant 6. Which expression equals A2 for every such matrix?
A 2 × 2 matrix A has trace 3 and determinant 2. Which expression equals A4?