Está en la página 1de 447

In linear algebra, the CayleyHamilton theorem (named after the mathematicians Arthur

Cayley and William Rowan Hamilton) states that every square matrix over acommutative ring (such
as the real or complex field) satisfies its own characteristic equation.
More precisely,[1][2][3][4] if A is a given nn matrix and In is the nn identity matrix, then
the characteristic polynomial of A is defined as

where "det" is the determinant operation. Since the entries of the matrix are (linear or constant)
polynomials in , the determinant is also an n-th order polynomial in .
The CayleyHamilton theorem states that "substituting" the matrix A for in this polynomial
results in the zero matrix,

p(A) = 0 .
The powers of A, obtained by substitution from powers of , are defined by repeated matrix
multiplication; the constant term of p() gives a multiple of the power A0, which power is
defined as the identity matrix. The theorem allows An to be expressed as a linear
combination of the lower matrix powers of A.
When the ring is a field, the CayleyHamilton theorem is equivalent to the statement that
the minimal polynomial of a square matrix divides its characteristic polynomial.
Contents
[hide]

1 Example
2 Illustration for specific dimensions and practical applications
3 Proving the theorem in general
o 3.1 Preliminaries
3.1.1 Adjugate matrices
o 3.2 A direct algebraic proof
o 3.3 A proof using polynomials with matrix coefficients
o 3.4 A synthesis of the first two proofs
o 3.5 A proof using matrices of endomorphisms
o 3.6 A bogus "proof": p(A) = det(AIn A) = det(A A) = 0
4 Abstraction and generalizations
5 See also
6 References

Example[edit]
As a concrete example, let

.
Its characteristic polynomial is given by

The CayleyHamilton theorem claims that, if we define

then

which one can verify easily.

Illustration for specific dimensions and


practical applications[edit]
For a 11 matrix A

= (a), the characteristic polynomial is given

by p() = a, and so p(A) = (a) a(1) = 0 is obvious.


For a 22 matrix,

the characteristic polynomial is given


by p()

= 2 (a + d) + (ad bc), so the CayleyHamilton theorem

states that

which is indeed always the case, evident by working out the entries
of A2.
For a general nn invertible matrix A, i.e., one with nonzero
determinant, A1 can thus be written as an (n 1)-th
order polynomial expression in A: As indicated, the Cayley
Hamilton theorem amounts to the identity

with cn1

= tr(A), etc., where tr(A) is the trace of the matrix A.

This can then be written as

and, by multiplying both sides


by A1 (note

), one is led to the

compact expression for the inverse,

For larger matrices, the expressions for the


coefficients ck of the characteristic polynomial in terms
of the matrix components become increasingly
complicated; but they can also be expressed in terms
of traces of powers of the matrix A, using Newton's
identities (at least when the ring contains the rational
numbers), thus resulting in the expression for
theadjugate matrix of A as a trace identity,

where the sum is taken over s and the sets of all


integer partitions kl

0 satisfying the equation

For instance, in the above 22 matrix


example, the
coefficient c1

= a + d of above is just the

trace of A, trA, while the constant

= ad bc can be written
as((trA) tr(A2)). (Of course, it is also the
determinant of A, in this case.)
coefficient c0
2

In fact, this expression, ((trA)2

tr(A2)),

always gives the coefficient cn2 of n2 in the


characteristic polynomial of any nn matrix;
so, for a 33 matrix A, the statement of the
CayleyHamilton theorem can also be written
as

where the right-hand side designates a


33 matrix with all entries reduced to zero.
Likewise, this determinant in the n = 3
case, is now

minus the coefficient cn3 of n3 in the


general case, as seen below.
Similarly, one can write for a 44
matrix A,

where, now, the determinant is

and so on for larger matrices,


with the increasingly complex
expressions for the
coefficients deducible
from Newton's identities.
A practical method for
obtaining these
coefficients ck for a
general nn matrix, yielding
the above ones virtually by
inspection, provided no root
be zero, relies on an alternate
expression for the
determinant,

Hence,

where the
exponential only need
s be expanded to
order n,
since p() is of
order n, the net
negative powers
of automatically
vanishing by the CH
theorem. (Again, this
requires a ring
containing the rational
numbers.)
The generic
coefficients of the
characteristic
polynomial for
general n are given
(Le Verrier) by
determinants
of mm matrices,

The Cayley
Hamilton theorem
always provides a
relationship

between the
powers
of A (though not
always the
simplest one),
which allows one
to simplify
expressions
involving such
powers, and
evaluate them
without having to
compute the
power An or any
higher powers
of A.
For instance, the
concrete 22
Example above
can be written as

Then, for
example, to
calculate A4,
observe

Pr
ovi
ng
the
the
ore
m

in
ge
ne
ral[
edi
t]
As
the
exam
ples
abov
e
show
,
obtai
ning
the
state
ment
of the
Cayl
ey
Hami
lton
theor
em
for
an n
n m
atrix
requi
res
two
steps
: first

the
coeffi
cient
s ci of
the
chara
cteris
tic
polyn
omial
are
deter
mine
d by
devel
opme
nt as
a
polyn
omial
in t of
the
deter
m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