The Cayley–Hamilton theorem
A number $x$ can be a root of a polynomial, as in $x^2 - 5x - 2 = 0$. Since matrices can be added, multiplied by numbers and multiplied together, it also makes sense to write a polynomial in a matrix: $A^2 - 5A - 2I$. Can it give the zero matrix? In the 1858 memoir Cayley discovered that it can, and more: every matrix is a root of a polynomial computed from the matrix itself.
The 2 × 2 case
Let $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$. Its characteristic polynomial is the determinant
$$\det(\lambda I - A) = \begin{vmatrix} \lambda - a & -b \\ -c & \lambda - d \end{vmatrix} = \lambda^2 - (a + d)\lambda + (ad - bc).$$The coefficients are the trace $a + d$ and the determinant $ad - bc$. The theorem says that replacing $\lambda$ by $A$ gives zero:
$$A^2 - (a + d)A + (ad - bc)I = 0.$$To check it, one only has to do the calculation. The first entry of $A^2$ is $a^2 + bc$; that of $(a + d)A$ is $a^2 + ad$; that of $(ad - bc)I$ is $ad - bc$. So the first entry of the left-hand side is $a^2 + bc - a^2 - ad + ad - bc = 0$. The top right entry: $A^2$ has $ab + bd$, and $(a + d)A$ has $(a + d)b$, which is the same; the difference is zero. The other two entries work out in the same way.
With an example: for $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$, the trace is $5$, the determinant is $-2$, and
$$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}.$$In the figure, change the entries of the matrix and drag the vector $v$. The red arrow, $A^2v$, always ends at the gold point, which is $(a + d)\,Av - (ad - bc)\,v$:
“I have not thought it necessary”
Cayley checked the theorem for $2 \times 2$ and $3 \times 3$ matrices and stopped there. The sentence with which he closed the matter became famous:
I have not thought it necessary to undertake the labour of a formal proof of the theorem in the general case of a matrix of any degree.
— Arthur Cayley, A memoir on the theory of matrices (1858)
Hamilton’s name came in because in 1853, in his Lectures on Quaternions, he had proved an equivalent result for linear functions of quaternions, which corresponds to the case of certain $4 \times 4$ matrices. The first general proof was by Frobenius, in 1878.
What it is good for
The theorem turns high powers into low ones. From the example above, $A^2 = 5A + 2I$. Multiplying by $A$,
$$A^3 = 5A^2 + 2A = 5(5A + 2I) + 2A = 27A + 10I,$$and so on: every power of a $2 \times 2$ matrix is a combination of $A$ and $I$.
It also gives the inverse. If the determinant is not zero, the equation $A^2 - (a + d)A = -(ad - bc)I$ can be written as $A\,[(a + d)I - A] = (ad - bc)I$, and therefore
$$A^{-1} = \frac{(a + d)I - A}{ad - bc}.$$For the matrix in the example, $A^{-1} = \frac{5I - A}{-2} = \begin{pmatrix} -2 & 1 \\ \frac{3}{2} & -\frac{1}{2} \end{pmatrix}$, the same one given by the formula in the memoir on matrices.
Exercise: A³ in two ways
For $A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}$, compute $A^3$ by multiplying $A^2$ by $A$ and compare with $27A + 10I$.
Directly: $A^3 = \begin{pmatrix} 7 & 10 \\ 15 & 22 \end{pmatrix}\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = \begin{pmatrix} 37 & 54 \\ 81 & 118 \end{pmatrix}$. By the theorem: $27A + 10I = \begin{pmatrix} 27 + 10 & 54 \\ 81 & 108 + 10 \end{pmatrix} = \begin{pmatrix} 37 & 54 \\ 81 & 118 \end{pmatrix}$. The two calculations agree.
Exercise: the Fibonacci matrix
Let $F = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}$. Use the theorem to show that $F^2 = F + I$ and deduce that $F^n = f_n F + f_{n-1} I$, where $f_1 = f_2 = 1$, $f_{n+1} = f_n + f_{n-1}$ are the Fibonacci numbers.
The trace is $1$ and the determinant is $-1$, so $F^2 - F - I = 0$, or $F^2 = F + I$. If $F^n = f_n F + f_{n-1} I$, then
$$F^{n+1} = f_n F^2 + f_{n-1} F = f_n (F + I) + f_{n-1} F = (f_n + f_{n-1}) F + f_n I = f_{n+1} F + f_n I.$$Starting from $F^1 = 1 \cdot F + 0 \cdot I$, the formula holds for every $n$. Looking at the top right entry, $F^n$ has $f_n$: it is a way of computing Fibonacci numbers with matrices.
Sources: Arthur Cayley, “A memoir on the theory of matrices”, Philosophical Transactions 148 (1858) · William Rowan Hamilton, Lectures on Quaternions (1853) · Georg Frobenius, “Über lineare Substitutionen und bilineare Formen”, Journal für die reine und angewandte Mathematik 84 (1878) · Thomas Hawkins, The Mathematics of Frobenius in Context (2013).
All topics on Arthur Cayley · ← The algebra of matrices · Abstract groups →