Mathwords logoMathwords

Cayley-Hamilton Theorem — Definition, Formula & Examples

The Cayley-Hamilton Theorem states that every square matrix satisfies its own characteristic polynomial. In other words, if you compute the characteristic polynomial of a matrix and then substitute the matrix itself into that polynomial, the result is the zero matrix.

Let AA be an n×nn \times n matrix over a field FF, and let p(λ)=det(λIA)p(\lambda) = \det(\lambda I - A) be its characteristic polynomial. Then p(A)=Op(A) = O, where OO is the n×nn \times n zero matrix. That is, det(λIA)λ=A=O\det(\lambda I - A)\big|_{\lambda = A} = O, with the constant term c0c_0 interpreted as c0Ic_0 I.

Key Formula

p(A)=An+cn1An1++c1A+c0I=Op(A) = A^n + c_{n-1}A^{n-1} + \cdots + c_1 A + c_0 I = O
Where:
  • AA = An n × n square matrix
  • p(λ)p(\lambda) = The characteristic polynomial det(λI − A)
  • c0,,cn1c_0, \ldots, c_{n-1} = Coefficients of the characteristic polynomial
  • II = The n × n identity matrix
  • OO = The n × n zero matrix

How It Works

To apply the theorem, first find the characteristic polynomial p(λ)=det(λIA)p(\lambda) = \det(\lambda I - A). Then replace every occurrence of λk\lambda^k with AkA^k and every constant cc with cIcI. The theorem guarantees the resulting matrix expression equals the zero matrix. This identity is often used to express A1A^{-1} in terms of lower powers of AA, or to reduce high powers of AA to combinations of I,A,,An1I, A, \ldots, A^{n-1}.

Worked Example

Problem: Verify the Cayley-Hamilton Theorem for A = [[1, 2], [3, 4]].
Find the characteristic polynomial: Compute det(λI − A).
p(λ)=det(λ123λ4)=(λ1)(λ4)6=λ25λ2p(\lambda) = \det\begin{pmatrix} \lambda - 1 & -2 \\ -3 & \lambda - 4 \end{pmatrix} = (\lambda - 1)(\lambda - 4) - 6 = \lambda^2 - 5\lambda - 2
Substitute the matrix into p: Replace λ² with A², λ with A, and the constant with −2I.
p(A)=A25A2Ip(A) = A^2 - 5A - 2I
Compute A²: Multiply A by itself.
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}
Evaluate p(A): Combine the matrices.
p(A)=(7101522)(5101520)(2002)=(0000)p(A) = \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}
Answer: p(A) equals the zero matrix, confirming the Cayley-Hamilton Theorem.

Why It Matters

The Cayley-Hamilton Theorem lets you express the inverse of a matrix as a polynomial in that matrix, which is the basis for computational methods in control theory and differential equations. It also shows that every matrix power AnA^n and beyond can be written as a linear combination of I,A,,An1I, A, \ldots, A^{n-1}, simplifying calculations involving matrix exponentials.

Common Mistakes

Mistake: Substituting the matrix entries directly into det(λI − A) instead of replacing λ with the matrix A.
Correction: The theorem requires you to substitute the entire matrix A for the scalar λ, replacing each λ^k with the matrix power A^k and each constant c with cI.