We can now answer the question of Chapter 4 in the
best case. An operator has a diagonal matrix in some
basis exactly when there are enough eigenvectors to form
a basis, and the previous two sections give precise ways
to count “enough”: by dimensions of eigenspaces, or by
comparing geometric with algebraic multiplicities. This
section proves that these tests agree, shows how to find
the diagonalizing basis for a concrete matrix, and uses
it to compute powers. The payoff is a closed formula for
the Fibonacci numbers. We also meet the operators for
which the method fails, and see that the field is part
of the answer.
Diagonalizable operators
Chapter 2 introduced similarity to compare the
matrices of one operator in different bases (Theorem 4.2.4),
and asked for the simplest representative. Section 2
unwound the wish “ is
diagonal” and found that it says exactly that every
vector of is an
eigenvector. Diagonal matrices are the matrices we can
compute with most easily: they add, multiply, power and
invert entry by entry. So the operators that admit such
a basis deserve a name.
An operator is diagonalizable when some basis
consists of vectors that the operator only
stretches.
Definition
9.4.1 (Diagonalizable)
Let be a
finite-dimensional vector space over . An operator is
diagonalizable if there
exists a basis of such that is a
diagonal matrix.
A matrix is diagonalizable over if it is
similar to a diagonal matrix: there
exist an invertible
and a
diagonal with ,
equivalently .
In words: for an operator, we are free to choose
any basis, and we ask whether
one of them makes the matrix diagonal;
most bases will not. For a matrix, the change-of-basis
matrix and the
diagonal entries of must both have entries
in . The two
notions match:
is diagonalizable over if and only if is
diagonalizable, by Theorem 4.2.4
(c), because the matrices of in the bases of
are exactly the
matrices similar to . Likewise, is diagonalizable if
and only if is
diagonalizable for one, equivalently every, basis of , by Theorem 4.2.4 (a)
and (b).
Examples.
- Diagonal matrices are
diagonalizable, with . So is every scalar operator , whose matrix is
in every
basis.
- The degenerate cases. Every matrix is
diagonal. On , the empty basis gives the empty matrix,
which counts as diagonal. These cases are harmless, but
they remind us that diagonalizability is a question
about repeated eigenvalues and missing eigenvectors,
which need room to occur.
- A matrix. In Example (Eigenvalues and Eigenspaces of a Matrix), has eigenvectors for and for . They form a basis of
, so is diagonalizable,
with and ; we
check this below.
- Projections and involutions. A
projection
satisfies with the identity on and zero on (Theorem 4.5.1). A
basis of
followed by a basis of is a basis with . In characteristic not
, an involution
splits (Theorem 4.5.5),
and gives in the same way.
Non-example by minimal change.
Change the -entry of from to , giving over any field . It is still triangular
with the single eigenvalue , and still invertible.
What fails is the existence of a basis of eigenvectors:
is a line, so every eigenvector
of is a multiple
of , and no two
eigenvectors are independent. By the unwinding in
Section 2, no basis makes
diagonal. (Directly: if were
diagonal, its diagonal entries would be eigenvalues of
, so , and then ,
which is false.)
Why this definition. We ask for
similarity to a diagonal matrix, not equality, because
the basis is ours to choose; a matrix like has nothing diagonal
about it until the right basis is found. We insist that
and have entries in , because otherwise the
word would not depend on the field and would hide a real
phenomenon: the rotation has no real eigenvector, so it is
not diagonalizable over , while over it becomes (Section 2).
The name says what the definition promises: the operator
can be made diagonal.
Warning. Diagonalizability
depends on the field, and even on its
characteristic. The rotation is diagonalizable over
but not over
. A subtler
case: is
diagonalizable over , with eigenvectors
for and for . Over the same matrix has
, since , and has rank , so its only
eigenvectors are the multiples of , and is
not diagonalizable over . Always say over
which field.
The
Diagonalization Theorem
How do we decide whether a basis of eigenvectors
exists without searching for one? Eigenvectors for
different eigenvalues are automatically independent (Theorem 9.2.2), so the
only question is whether each eigenspace supplies enough
of them. The theorem below lists five equivalent ways to
say “enough”.
Theorem
9.4.1 (Diagonalization Theorem)
Let be a
finite-dimensional vector space over with , let
, and
let be the distinct eigenvalues of (possibly ). The following are
equivalent:
- (a) is diagonalizable;
- (b) has a basis consisting
of eigenvectors of ;
- (c) ;
- (d) ;
- (e) splits over , and for every .
In that case, if is a basis of
eigenvectors, then is
diagonal, its diagonal entries are the eigenvalues of
the corresponding basis vectors, and each appears on the
diagonal exactly times.
(For the
sum in (c) is and the sum in (d)
is ; all five
conditions are then false, since .)
Idea. Plan: prove
(a) (b)
(c)
(d)
(e)
(b)
(a).
① (a) (b) is
the unwinding of columns from Section 2. ② From a basis
of eigenvectors, the eigenspaces add up to , and Corollary 9.2.3 makes
the sum direct. ③ Dimensions add in a direct sum. ④ (d)
(e) is
a sandwich: , so every inequality is an
equality. ⑤ (e) (b) runs the
sandwich backwards and glues bases of the eigenspaces
together.
The hard work was done in Sections 2 and 3; this
proof only assembles it.
Proof.
(a) (b). Let
be a basis of . By Definition 4.1.1,
column of is
,
and this column is if and only if
.
Hence if and only if for every
. Since basis
vectors are non-zero, this says that every is an eigenvector of
, for the
eigenvalue . So
a basis makes
diagonal exactly when it consists of eigenvectors, which
also proves the final statement about the diagonal
entries, apart from the count.
(b) (c). Let
be a basis of
eigenvectors. Each vector of lies in for some
, so . This sum is a
subspace (Theorem 1.7.1)
containing a spanning list of , so it equals . By Corollary 9.2.3 the
sum is direct.
(c) (d). By Theorem 1.7.5 ((a)
(e)),
.
(d) (e). By Theorem 9.3.1, for each . The eigenvalues are
exactly the roots of in (Theorem 9.2.1), so by
Theorem 6.4.3, (Theorem 7.10.2). With
(d), Hence both inequalities are equalities. The
second equality, , means that splits over (Theorem 6.4.3). The
first says ,
a sum of non-negative integers, so every term is and for each .
(e) (b). Since
splits, Theorem 6.4.3 gives
, and so by (e). For each let be a basis of , of
length , and let
be the list
. The sum is
direct (Corollary 9.2.3), so
by Theorem 1.7.5 ((a)
(d)),
is a basis of
, and . By
Theorem 1.6.8, . So is a basis of , and its vectors are
eigenvectors, being non-zero vectors of
eigenspaces.
Finally, suppose is a basis of
eigenvectors, and let be the number of its
vectors with eigenvalue . By (a) (b),
is diagonal with appearing times, so (the triangular case after Definition 7.10.1).
Since the
are distinct, divides and the remaining
factors do not vanish at , so by
Lemma 6.4.1; and by (e). This proves the
theorem.
This is the theorem promised in Chapter 1, §7:
an operator is diagonalizable exactly when its
eigenspaces split
as a direct sum, and then acts on the -th piece as the scalar
. In the
language of Theorem 9.1.5, the
pieces are invariant, the blocks are ,
and the matrix is block diagonal with scalar blocks.
Condition (e) is the practical test. It separates two
different ways to fail, and they have different
remedies. If
does not split, the field is too small, and enlarging it
(from to ) may help. If splits but some , there are genuinely too few
eigenvectors, and no change of field helps; Chapter 10
explains what the best matrix is then.
The easiest case of (e) needs no rank computation at
all.
Corollary
9.4.2 (Distinct Eigenvalues Imply
Diagonalizable)
Let be a
finite-dimensional vector space over with , and let
have
distinct
eigenvalues. Then
is diagonalizable. The same holds for with distinct eigenvalues in
.
Proof. Let be the eigenvalues. Each is an
eigenvalue, so (Definition 9.2.2) and
, so , and by Corollary 9.2.3 the
sum is at most .
Hence it equals ,
and is
diagonalizable by Theorem 9.4.1 ((d)
(a)).
So a matrix whose characteristic polynomial has distinct roots in is diagonalizable over
; for example
is, because its
eigenvalues and
are distinct.
This is the generic situation, but it is only a
sufficient condition.
Warning. The converse
fails: diagonalizable matrices may have repeated
eigenvalues. is diagonal, and its
only eigenvalue is . Less trivially, the
matrix of Example (Diagonalizing a Matrix
with a Repeated Eigenvalue) below has eigenvalues
and is
diagonalizable. A repeated eigenvalue is a reason to
check ,
not a verdict.
Quick check. Which of , , are diagonalizable over
?
Solution. The first has distinct
eigenvalues ,
so it is diagonalizable by Corollary 9.4.2. The
second has
but , so
,
and it is not diagonalizable by Theorem 9.4.1 (e). The
third is already diagonal.
Computing
and
For a matrix , a basis of eigenvectors turns into the
matrices and
of Definition 9.4.1
directly. Let be a basis of with , let
be the matrix
with columns , and
. By the column view of matrix
multiplication (Theorem 0.9.2), column
of is , and
column of is . So
The columns of form a basis, so is invertible (Theorem 3.4.4), and
multiplying on the left by gives . The
order matters in one way only: the
-th column of
must be an
eigenvector for the -th diagonal entry of
. Reordering the
eigenvectors reorders the diagonal of in the same way, and
any order works.
For , with
and : and . Checking avoids
computing ,
and together with it proves .
The full procedure, then: compute and its roots; if
it does not split over , stop (not
diagonalizable over ); for each eigenvalue
compute a basis of ; if some
, stop; otherwise put the basis
vectors as columns of .
Example
(Diagonalizing a Matrix with a Repeated Eigenvalue)
Let Decide whether is diagonalizable over
. If it is, find
an invertible
and a diagonal
with .
Solution. Characteristic
polynomial. Expanding along the first row (Theorem 7.6.1 over
), The brackets are ,
and , so the last
two terms cancel and It splits over , with and . As a check,
(Theorem 9.3.3).
Eigenspace for . Every row is a multiple of , so the rank
is and .
The system reduces to ; with the free variables and , a basis of is , (Theorem 3.5.4).
Eigenspace for . Here by Theorem 9.3.1, so
condition (e) of Theorem 9.4.1 holds
and is
diagonalizable. To find the eigenvector, Row
gives , and
row gives ; row then reads . So
.
The matrices. Put the eigenvectors as
columns, in the order of the eigenvalues we want on the
diagonal: Check. The columns of are , and , which are the columns of
. Expanding
along the first column, , so
is invertible, and in fact as multiplying out confirms.
Hence .
Had we listed the eigenvectors in the order , we would get instead. Both are correct.
Powers and
polynomials
Why diagonalize? Because powers of diagonal matrices
are free: . Similarity
carries this over.
Theorem
9.4.3 (Powers and Polynomials of a
Diagonalizable Matrix)
Let with invertible and . Then for every and every , If moreover every , then is invertible and
.
Proof. Since , Proposition 4.2.6
(c) gives , so . A diagonal matrix is the
direct sum of blocks, so by
Theorem 8.1.4 (b),
extended to
blocks by induction on the number of blocks, .
Taking
gives the formula for . If every , put ; then , and by Theorem 3.4.5.
In words: to apply a polynomial to a diagonalizable
matrix, apply it to the eigenvalues and change basis
back. The work is done once, when is found; every power
after that costs a single product of three matrices. For
Example (Diagonalizing a Matrix
with a Repeated Eigenvalue), which is for and for , as it must be.
The most famous application is to a recurrence. A
linear recurrence of order two becomes a first-order
recurrence for vectors, whose solution is a matrix
power.
Example
(A Closed Formula for the Fibonacci Numbers)
The Fibonacci numbers are defined by , and
for . (Here
is a number,
not a field; we work over .) Find a formula for
by
diagonalizing a matrix.
Solution. A vector
recurrence. Put . The recurrence says
By induction on , with
.
Eigenvalues. and , so , with the two real roots They are distinct, so is diagonalizable over
(Corollary 9.4.2). Each
root satisfies , and we will use , and
.
Eigenvectors. For a root , the vector is an
eigenvector: . So where and comes from Theorem 0.9.8.
The power. By Theorem 9.4.3, . Working from the right: The second entry of is , so Check. : .
: . :
.
And the right side satisfies the recurrence, because
(multiply
by ), and
likewise for .
Since , the term has
absolute value less than , so is the integer
nearest to ; the
Fibonacci numbers grow like powers of ,
the larger eigenvalue.
The irrational numbers in the formula are forced.
Over , the
polynomial has no root (by Theorem 6.3.6, the
only candidates are , and neither works), so has no eigenvalue in
and is
not diagonalizable over , although all its
entries and powers are integers. Chapter 7 met the same
numbers as determinants of tridiagonal matrices (Example (Fibonacci Numbers as Determinants));
here the recurrence is solved rather than just
recognized. Section 11 of this chapter treats general
linear recurrences and Markov chains the same way.
When
diagonalization fails
Two examples collect the ways Theorem 9.4.1 (e) can
fail.
Too few eigenvectors. is not diagonalizable
over any field, because splits
but . Enlarging the field changes nothing: the
rank of is
over every field.
Its powers are still easy, by induction, but
they are not of the form ; the entry , growing linearly
rather than like a power, is the footprint of the
missing eigenvector. Chapter 10 shows that such blocks
are the only additional ingredient.
Too small a field. The rotation
has , which
does not split over , so is not diagonalizable
over . Over
it has the
distinct eigenvalues with eigenvectors and , so with , Then , and since
, : four
quarter-turns make a full turn, as they should.
When a matrix depends on a parameter, the same test
decides diagonalizability for every value at once.
Example
(Diagonalizability with a Parameter)
For which is
diagonalizable over ?
Solution. The matrix is upper
triangular, so for every , by Theorem 7.4.6. This
splits, with and . Since by Theorem 9.3.1, only
needs
checking. Here whose rank is if and if . By rank–nullity
for matrices (Theorem 3.5.7),
is
when and
when . By Theorem 9.4.1 (e),
is
diagonalizable exactly when .
Notice what did not change: the eigenvalues and their
algebraic multiplicities are the same for every . Only the geometric
multiplicity, a rank, detects the difference.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define what it
means for to be diagonalizable over .
- (b) State the
Diagonalization Theorem, with at least four equivalent
conditions.
- (c) True or false: a
diagonalizable matrix has distinct eigenvalues.
Justify your answer.
- (d) True or false:
every invertible matrix is diagonalizable. Justify your
answer.
- (e) True or false:
every diagonalizable matrix is invertible. Justify your
answer.
- (f) If is
diagonal, what are the columns of , and how are they
matched with the diagonal of ?
Solution.
(a) There are an
invertible and a diagonal with (Definition 9.4.1).
(b) See Theorem 9.4.1: for
, , with
distinct eigenvalues , the following are equivalent: is diagonalizable;
has a basis of
eigenvectors; ; ;
splits and for all .
(c) False. is diagonal, with
the single eigenvalue .
(d) False. has determinant but is not
diagonalizable.
(e) False. The
zero matrix is diagonal and not invertible.
(f) The columns
of form a basis
of eigenvectors of , and column is an eigenvector for
the -th diagonal
entry of , since
.
B. Practice
Exercise
(B1: Diagonalize or show impossible)
For each real matrix, either find an invertible and a diagonal with , or
show that none exist.
- (a) .
- (b) .
- (c) .
Solution.
(a) , , so . The eigenvalues are distinct, so is diagonalizable
(Corollary 9.4.2).
gives
, eigenvector
; gives , eigenvector . So and indeed .
(b) Expanding
along the first row, The first bracket is , and the
last two terms add up to . So , and . Now Row
equals row minus
row , and rows
and are not proportional,
so the rank is
and . By Theorem 9.4.1 (e),
is
not diagonalizable, over or over .
(c) Expanding
along the first row, The first bracket is and the
other two are each, so . For , has rank , so , and
is the plane
, with
basis . Also , so is diagonalizable.
From , row
gives and row gives , so .
Hence Check: , , , so ; and .
Exercise
(B2: A tenth power)
Let .
- (a) Diagonalize
.
- (b) Hence find a
formula for ,
, and
compute .
Solution.
(a) , , so . gives the eigenvector , and gives . So , , and
by Theorem 0.9.8.
(b) By Theorem 9.4.3, For
this gives . With and ,
Exercise
(B3: A matrix with a parameter)
For ,
let . Determine all for which is diagonalizable
over . Justify
your answer.
Solution. is upper triangular,
so , which splits over .
Case . The eigenvalues are distinct, so
is
diagonalizable (Corollary 9.4.2).
Case . Then , and has rank
, so . Not
diagonalizable.
Case . Then , and has rank
, so ; also
.
Diagonalizable, with eigenvectors for and for .
Hence is
diagonalizable over if and only if . In both
exceptional cases a diagonal entry is repeated, but only
for is an
eigenvector lost: the entry in position couples and , and it matters only
when their diagonal entries agree.
C. Going deeper
Exercise
(C1: Matrices with )
Let , , and .
- (a) Prove that if
, then
every eigenvalue of satisfies .
- (b) Prove that if
is
diagonalizable and every eigenvalue satisfies , then .
- (c) Show that the
hypothesis “diagonalizable” in (b) cannot be
dropped.
Solution.
(a) Let with
. By Exercise (B3: Eigenvalues of powers and inverses)
(a), , so
and
by Theorem 1.1.9.
(b) Write with
(Definition 9.4.1). The
are eigenvalues
of : and are similar, so (Theorem 7.10.3), and
each is a root
of . So for all , and by Theorem 9.4.3, .
(c) Let . Its only eigenvalue is
, and . But by induction (), which
is not since
in . (Section 8 proves
the converse of (b) in a strong form: over , forces to be
diagonalizable.)
Exercise
(C2: Polynomials of diagonalizable matrices)
- (a) Prove that if
is
diagonalizable over , then so is for every , and that
every eigenvalue of has the form with .
- (b) Show that the
converse of the first statement fails: find a
non-diagonalizable and a polynomial with
diagonalizable.
Solution.
(a) Let , . By Theorem 9.4.3, , so is similar to a
diagonal matrix, that is, diagonalizable. By Theorem 7.10.3, , so by Theorem 9.2.1 every
eigenvalue of
is some . As
in Exercise (C1: Matrices with )
(b), each is an
eigenvalue of .
(b) Let and . Then is not diagonalizable:
gives
, while
gives
(Theorem 9.4.1 (e)).
But is diagonal.
Exercise
(C3: The transpose map on )
Let and
, .
- (a) Suppose the
characteristic of
is not . Prove
that is
diagonalizable, and find and .
- (b) Under the same
hypothesis, deduce , and .
- (c) Now let and . Prove that is
not diagonalizable.
Hint: for the dimensions, use the matrices and
.
Solution.
- (a) Since (Theorem 0.9.5), . By Theorem 4.5.5,
, where is the space of symmetric matrices
and the space of skew-symmetric
matrices.
A symmetric is determined by its entries on and
above the diagonal, and . These matrices are symmetric and
independent, since their non-zero entries sit in
disjoint positions. So . A skew-symmetric has , so
and
(as
); and , with these matrices
independent for the same reason. So .
The eigenvalues of lie among (as in Exercise (B2: The transpose map)),
and . If , both eigenspaces
are non-zero, and the dimensions of the eigenspaces add
up to ; if , and is everything.
Either way Theorem 9.4.1 ((d)
(a))
shows that is
diagonalizable.
(b) In a basis
of
eigenvectors, with ones and entries (Theorem 9.4.1). This
matrix is triangular, so As a check on the trace: in the basis , ,
so the diagonal entry of at
is if and otherwise, and the
trace is .
(c) Over , . If
with , then
as in Exercise (B2: The transpose map)
(a), ,
so
and . So
and is
the space of symmetric matrices. The spanning argument
in (a) did not divide by , so . For , , so condition (d) of Theorem 9.4.1 fails,
and is not
diagonalizable. For instance, is not a sum of
eigenvectors.