In linear algebra, the Cayley-Hamilton theorem (named after the mathematicians Arthur Cayley and William Hamilton) states that every square matrix over the real or complex field, satisfies its own characteristic equation. This means the following: if A is the given square nxn matrix and In is the nxn identity matrix, then the characteristic polynomial of A is defined as:
where "det" is the determinant function. The Cayley-Hamilton theorem states that replacing t by the matrix A in the characteristic polynomial results in the zero matrix:
Indeed, the Cayley-Hamilton theorem holds for square matrices over commutative rings as well.
An important corollary of the Cayley-Hamilton theorem is that the minimal polynomial of a given matrix is a divisor of its characteristic polynomial. This is very useful in finding the Jordan form of a matrix.
Example
Consider for example the matrix
- .
The characteristic polynomial is given by
The Cayley-Hamilton theorem then claims that
- A2 - 5A - 2I2 = 0
which one can quickly verify in this case.
As a result of this, the Cayley-Hamilton theorem allows us to calculate powers of matrices more simply than by direct multiplication.
Taking the result above
- A2 - 5A - 2I2 = 0
- A2 = 5A + 2I2.
Then, for example, to calculate A4, observe
- A3 = (5A + 2I2)A = 5A2 + 2A = 5(5A + 2I2) + 2A = 27A + 10I2
- A4 = A3A = (27A + 10I2)A = 27A2 + 10A = 27(5A + 2I2) + 10A
- A4 = 145A + 54I2.
The theorem is also an important tool in calculating eigenvectors.