LINEAR ALGEBRA · MATRICES AND EIGENVALUES · ADVANCED

Cayley–Hamilton Theorem

Every square matrix satisfies its own characteristic equation. This theorem converts a polynomial identity into a matrix identity, giving a reliable way to simplify high powers, derive matrix inverses, and connect eigenvalues to algebraic structure. Follow the statement, proof idea, and worked examples below.

THE THEOREM

A square matrix is a root of its characteristic polynomial

Let A be an n × n matrix with entries in a field, and define its characteristic polynomial by pA(t) = det(tI − A). Then evaluating that polynomial at the matrix itself gives the zero matrix:

pA(t)=det⁡(tI−A)⟹pA(A)=0n×np_A(t)=\det(tI-A)\qquad\Longrightarrow\qquad p_A(A)=0_{n\times n}

For a 2 × 2 matrix, if pA(t) = t² − (tr A)t + det A, the result is A² − (tr A)A + (det A)I = 0. The constant term multiplies the identity matrix, not a scalar zero.

How the Cayley–Hamilton theorem turns a matrix into its zero polynomialStart with a square matrix A, form its characteristic polynomial from t I minus A, then substitute A for t. The result is the zero matrix.Square matrixACharacteristic polynomialpₐ(t) = det(tI − A)Substitute Apₐ(A) = 0The polynomial coefficients are scalars; its variable is replaced by the matrix.
Build the characteristic polynomial from the matrix, then replace its scalar variable with that same matrix.

What the theorem means in plain language

A polynomial such as q(t) = t² − 5t − 2 normally takes a number as its input. A matrix polynomial uses the same idea, but substitutes a square matrix for the variable. For example, q(A) = A² − 5A − 2I. Matrix powers are formed by repeated multiplication, scalar coefficients multiply matrices, and the constant term is interpreted as a multiple of the identity matrix.

The theorem says that a particular polynomial—the characteristic polynomial computed from A—always evaluates to the zero matrix. It does not say that A itself is zero, nor that every polynomial in A vanishes. It gives one exact relationship among the powers I, A, A², …, Aⁿ.

This relationship matters because powers above degree n − 1 can be reduced to combinations of lower powers. Once the characteristic equation is known, a long matrix-power calculation can often be shortened to a few substitutions rather than repeated multiplication.

Characteristic polynomial, trace, and determinant

The identity matrix I has the same size as A. The expression tI − A is therefore a matrix whose entries contain the scalar variable t. Its determinant is a scalar polynomial of degree n, called the characteristic polynomial. The convention used here is det(tI − A); some texts use det(A − tI), which differs by a predictable sign depending on the dimension.

For a 2 × 2 matrix, expansion of the determinant gives the especially useful formula involving trace and determinant:

A=(abcd),pA(t)=t2−(a+d)t+(ad−bc)=t2−(tr⁡A)t+det⁡(A)A=\begin{pmatrix}a&b\\c&d\end{pmatrix},\qquad p_A(t)=t^2-(a+d)t+(ad-bc)=t^2-(\operatorname{tr}A)t+\det(A)

For larger matrices, the coefficients still encode matrix information. The coefficient of tn−1 is −tr(A), and the constant term is (−1)n det(A). Eigenvalues, counted with algebraic multiplicity over an algebraic closure, are the roots of this polynomial.

Why the Cayley–Hamilton theorem is true

One accessible proof route uses the adjugate identity. For any square matrix M, the adjugate satisfies M adj(M) = det(M)I. Set M = tI − A. Each entry of adj(tI − A) is a polynomial in t, so write the adjugate as a matrix polynomial B(t).

(tI−A)B(t)=pA(t)I(tI-A)B(t)=p_A(t)I

Write B(t) = B₀ + B₁t + ⋯ + Bn−1tn−1 and compare coefficients on both sides. The coefficient equations connect each matrix Bk to powers of A and to the scalar coefficients of pA. Multiply those equations by the matching powers of A and add them. The intermediate terms cancel in pairs, leaving precisely the characteristic polynomial evaluated at A, equal to the zero matrix.

This coefficient comparison is a valid proof because all coefficient matrices that arise from tI − A and its adjugate commute with A; they can be expressed using powers of A. A second common proof uses Jordan form over an algebraic closure. On each Jordan block for eigenvalue λ, the nilpotent part is annihilated by a sufficiently high power of (A − λI); the characteristic polynomial contains that factor with at least the block’s multiplicity. It therefore annihilates every block, and similarity carries the zero identity back to the original matrix.

The Jordan-form argument is compact but assumes familiarity with canonical forms. The adjugate argument explains why determinants and matrix polynomials appear together. Both establish an algebraic identity, so the result holds over any field and does not require the matrix to be diagonalizable.

Worked example: verify the theorem for a 2 × 2 matrix

Take the matrix below. We will find its characteristic polynomial and substitute the matrix into that polynomial, keeping every scalar term paired with the identity matrix.

A=(1234)A=\begin{pmatrix}1&2\\3&4\end{pmatrix}

Step 1: Find the characteristic polynomial

Compute det(tI − A). For a 2 × 2 matrix, this is the product of the diagonal entries minus the product of the off-diagonal entries.

pA(t)=det⁡(t−1−2−3t−4)=(t−1)(t−4)−6=t2−5t−2p_A(t)=\det\begin{pmatrix}t-1&-2\\-3&t-4\end{pmatrix}=(t-1)(t-4)-6=t^2-5t-2

Step 2: Evaluate the polynomial at A

Replace t with A and the constant −2 with −2I. First calculate A².

A2=(1234)(1234)=(7101522)A^2=\begin{pmatrix}1&2\\3&4\end{pmatrix}\begin{pmatrix}1&2\\3&4\end{pmatrix}=\begin{pmatrix}7&10\\15&22\end{pmatrix}
pA(A)=A2−5A−2I=(7101522)−(5101520)−(2002)=(0000)p_A(A)=A^2-5A-2I=\begin{pmatrix}7&10\\15&22\end{pmatrix}-\begin{pmatrix}5&10\\15&20\end{pmatrix}-\begin{pmatrix}2&0\\0&2\end{pmatrix}=\begin{pmatrix}0&0\\0&0\end{pmatrix}

The matrix identity is verified. Notice why the identity matrix is essential: subtracting a scalar directly from a matrix is undefined, while subtracting 2I is a valid matrix operation.

How to use Cayley–Hamilton

Reduce high powers

If the characteristic equation expresses Aⁿ using lower powers, multiply and substitute to reduce Aⁿ⁺¹, Aⁿ⁺², or another high power to a shorter expression.

Find an inverse

If the constant coefficient is nonzero, rearrange the characteristic equation and multiply by A⁻¹. This gives an inverse as a polynomial in A, without row reduction.

Check eigenvalues

If Av = λv for a nonzero eigenvector, applying the theorem gives pA(λ)v = 0. Thus each eigenvalue is a root of the characteristic polynomial.

Understand matrix recurrences

Power reduction can turn repeated matrix multiplication into scalar recurrence relations, useful in discrete systems, transition models, and sequence calculations.

Example: obtain the inverse from the characteristic equation

For the example matrix, the characteristic equation is A² − 5A − 2I = 0. Its constant term is nonzero, so the matrix is invertible. Rearranging gives A(A − 5I) = 2I, hence:

A−1=12(A−5I)=12(−423−1)=(−2132−12)A^{-1}=\frac{1}{2}(A-5I)=\frac12\begin{pmatrix}-4&2\\3&-1\end{pmatrix}=\begin{pmatrix}-2&1\\\frac32&-\frac12\end{pmatrix}

Multiplication confirms the result: AA⁻¹ = I. The shortcut works because a nonzero determinant is equivalent to a nonzero constant term in the characteristic polynomial.

Characteristic polynomial versus minimal polynomial

The characteristic polynomial is determined by the determinant det(tI − A) and always has degree equal to the matrix size. The minimal polynomial is the monic polynomial of smallest degree that evaluates to zero at A. Cayley–Hamilton guarantees the characteristic polynomial is one annihilating polynomial, so the minimal polynomial divides it.

The minimal polynomial may have lower degree. For a scalar matrix A = cI, the minimal polynomial is t − c, even though the characteristic polynomial is (t − c)ⁿ. Both vanish when evaluated at A, but the minimal one can produce a more efficient reduction of powers.

Common mistakes and conditions

  • Using a nonsquare matrix: the characteristic polynomial and the theorem require a square matrix.
  • Forgetting the identity matrix: the constant term c₀ in a matrix polynomial means c₀I.
  • Changing the sign convention mid-calculation: choose det(tI − A) or det(A − tI) and use its coefficients consistently.
  • Assuming diagonalization: the theorem holds even when a matrix has too few eigenvectors to be diagonalizable.
  • Claiming the characteristic polynomial is the smallest one: that is the minimal polynomial’s defining property, not the characteristic polynomial’s.
  • Confusing a scalar equation with a matrix equation: pA(A)=0 means every entry of the resulting matrix is zero.

Cayley–Hamilton Theorem FAQs

What is the Cayley–Hamilton theorem formula?

For an n × n matrix A, let pA(t) = det(tI − A). The theorem states pA(A) = 0, where the right-hand side is the n × n zero matrix.

Does every square matrix satisfy the theorem?

Yes. Every square matrix over a field satisfies its own characteristic polynomial, including matrices that are singular or not diagonalizable.

Why does the constant term become cI?

A matrix polynomial must have terms of the same matrix size. A scalar constant c is therefore interpreted as c times the identity matrix I.

Can Cayley–Hamilton be used to find an inverse?

Yes, if A is invertible. Rearrange the characteristic equation and multiply by A inverse to express the inverse as a polynomial in A. The determinant must be nonzero.

Is the matrix required to be diagonalizable?

No. Diagonalization is one possible way to see the theorem for some matrices, but it is not a condition. The theorem also holds for defective matrices.

What is the difference between characteristic and minimal polynomials?

The characteristic polynomial comes from det(tI − A). The minimal polynomial is the lowest-degree monic polynomial that annihilates A and divides the characteristic polynomial.