For a square matrix over and a scalar , when is invertible? The
question matters: fails to be invertible exactly when
for some nonzero vector , the situation
Chapter 9 is built around. The determinant answers the
question for each single . This section lets
vary. Replacing
the number by a
variable turns
into
a polynomial, the characteristic polynomial, and the
scalars we are looking for become its roots. The price
is that is
a matrix of polynomials, not of field
elements, so we must check which determinant facts
survive there. The remarks at the ends of §4, §5, and §6
did exactly that bookkeeping, and here we cash them
in.
From a
number to a variable
Take . For each , The same expression appears
whatever is. It
is the value at
of one polynomial, and that polynomial deserves a name.
To define it directly, without first choosing , we put the variable
into the matrix
and take the determinant of a matrix whose entries lie in .
Is that allowed? is not a field, but
it is a commutative ring in the sense
of the remark in §4: all the field axioms hold except
the existence of inverses (Theorem 0.8.1). The
Leibniz formula of Definition 7.4.1 uses
only sums, differences and products of entries, so it
defines for every .
The characteristic polynomial of is the determinant of
, computed
with polynomial entries.
Definition
7.10.1 (Characteristic Polynomial)
Let and
. The characteristic
polynomial of is where if and
otherwise, so that is
the -entry of
. The
determinant is the Leibniz sum of Definition 7.4.1,
computed in the commutative ring .
In words: subtract from times the identity, so
that appears only
on the diagonal; then take the determinant exactly as
for a matrix of numbers, multiplying and adding
polynomials instead of scalars. The result is
one polynomial, not a number.
Well-definedness. Each term of the
Leibniz sum is a product of polynomials, and the
sum is finite, so is a polynomial.
It depends only on .
How to compute it. By the remarks in
§4, §5, and §6, the following results were proved
without dividing, and so hold for matrices over : Theorem 7.4.5 and Theorem 7.4.6 (§4),
Theorem 7.5.4 by its
first proof (§5), Theorem 7.6.1 (§6),
and Theorem 7.8.4 (§8).
So we may expand along any row or column, and read it off
from triangular or block triangular shape. What we may
not do is row reduce by dividing by a
polynomial entry, as the warning below explains.
Examples.
- . For , .
- . For , For this is , as
above.
- Triangular. If is upper or lower
triangular, so is , with diagonal entries . By Theorem 7.4.6 over
, .
- Degenerate cases. The zero matrix
has , and the identity has ;
both are triangular. These two polynomials are
different, although both matrices are as simple as
possible, which already shows that records something
about .
Example
(A
Characteristic Polynomial)
Find for
.
Solution. We have Column
has a single nonzero entry, in position . Expanding along
it (Theorem 7.6.1 over
), Multiplied out, . Compare with and (expand along column : ).
A companion-type example. Let , with ones just below the
diagonal, a last column , and zeros elsewhere. Expanding along the first row (Theorem 7.6.1 over
), which factors as .
The last column of lists the coefficients
of in , with their signs
changed. This is no accident: Exercise (C1: Companion matrices)
shows that the same pattern works in every size.
Nonexample by minimal change. Swap
the order of subtraction: . Each of
the columns of
is times the
corresponding column of , so by multilinearity . For this is , whose leading coefficient is . What still works: the
roots are the same. What fails: the result is
not monic when is odd.
Why this definition. Some books use
. We
use so
that the characteristic polynomial is always
monic (Theorem 7.10.2
below), which makes statements like “” true without sign bookkeeping. The name
comes from the fact that the roots of this polynomial
are the “characteristic values” of , which Chapter 9 calls
eigenvalues.
Warning. Do not row reduce
by
dividing by polynomials. Over a field, a matrix
with nonzero determinant is invertible (Theorem 7.5.2), but
that proof runs through elimination, which divides by
pivots, and it fails over . For , the
matrix has determinant , yet it has no
inverse in : if for a
polynomial , then
, and
by Theorem 0.8.3, which
is impossible since . Likewise, “divide row of by ” produces entries
that are not polynomials and that make no sense at . Compute by expansion, by
triangular or block shape, or by the Leibniz
formula.
Before looking at the coefficients, we record the
fact that makes useful: evaluating
it at a scalar
gives the same result as putting in place of before taking the
determinant.
Lemma
7.10.1 (Evaluating the Characteristic
Polynomial)
Let and . Then .
Proof. By Theorem 0.8.5,
evaluation at
turns sums of polynomials into sums and products into
products, and sends a constant to . Applying it to the
Leibniz sum in Definition 7.10.1
term by term, and is the -entry of . By Definition 7.4.1, the
right side is .
The shape
of the characteristic polynomial
The
example suggests a pattern: the leading coefficient is
, the next
coefficient is minus the trace, and the constant term is
the determinant up to sign. The same holds in every
size.
Theorem
7.10.2 (Coefficients of the Characteristic
Polynomial)
Let and
. Then
is
monic of degree , and that is, the coefficient of is and the constant
term is . (For these two statements concern the same
coefficient, and both say it is .)
Idea. Look at the Leibniz sum term
by term and count powers of . A factor contains only if . A
permutation other than the identity moves at least
two indices, so its term has degree at
most and
cannot affect the top two coefficients. The identity
contributes , whose top two coefficients are and . For the
constant term, set .
Proof. Write for the entries of . By Definition 7.10.1,
with .
Terms with . If for some
, then , because is injective. So
moves at
least two indices, and at most indices are fixed.
For a moved index , has degree at most ; for a fixed index it
has degree at most . By Theorem 0.8.3, .
The term . We show by induction on that with and . For , take . If it holds for , then with , and the bracket has degree at most by Theorem 0.8.2 and Theorem 0.8.3. This
completes the induction. Since , with .
Adding, , and the bracket has degree at
most by Theorem 0.8.2. Hence
is monic of
degree , with
coefficient
at (Definition 0.9.12).
Constant term. The constant term of a
polynomial is its value at (Definition 0.8.6). By
Lemma 7.10.1 with
, .
The matrix is
obtained from by
multiplying each of its columns by , so
by Theorem 7.5.1 (d).
This proves the theorem.
So the characteristic polynomial packages two
invariants we already know, the trace and the
determinant, and adds more coefficients in between. For nothing is in
between, which is why for every matrix.
Quick check. Without expanding any
determinant, find the coefficient of and the constant term
of for , given that .
Solution. By Theorem 7.10.2, the
coefficient of
is , and
the constant term is . (In
full, .)
Similar
matrices, same polynomial
Similar matrices describe the same operator in
different bases (Theorem 4.2.4),
so everything intrinsic to the operator should agree for
them. The trace and determinant do (Theorem 4.2.5, Corollary 7.5.7). The
characteristic polynomial, which contains both, does
too, and the proof is the proof for the determinant, run
over .
Theorem
7.10.3 (Similar Matrices Have the Same
Characteristic Polynomial)
If are similar, then .
Proof. Let with
invertible. Regard , , , and as matrices over whose entries happen
to be constants. The laws of matrix arithmetic in Theorem 0.9.4 are
proved from the ring axioms alone, so they hold in . Hence By Theorem 7.5.4, valid
over by the
remark in §5, using commutativity of in the last step.
Finally by Theorem 7.5.4 over
. Hence .
This is exactly the case singled out in the remark in
§5: the proof of Corollary 7.5.7
survives over
because is
invertible already over . The theorem lets us
attach a characteristic polynomial to an operator.
Definition
7.10.2 (Characteristic Polynomial of an
Operator)
Let be a
vector space over
with , and let . The characteristic
polynomial of is where
is any basis of .
This does not depend on : for bases and , the matrices and
are similar by Theorem 4.2.4
(a), so they have the same characteristic polynomial by
Theorem 7.10.3. By Theorem 7.10.2, is monic of degree
, with
coefficient
at and
constant term (Definition 4.5.2,
Definition 7.5.1).
Example
(Characteristic Polynomials of Two Operators)
On , find the characteristic polynomials of
differentiation and of the shift .
Solution. Use the basis . Since
, , , and , , ,
Both are upper triangular, so and . (We
name the variable
here, since is
already the variable of the polynomials in .) As a check, and , matching the
coefficient of
and the
constant term .
Warning. Equal
characteristic polynomials do not make matrices
similar. The converse of Theorem 7.10.3 is
false. Recall the pair from the warning in Chapter 4,
§02: and both have
characteristic polynomial , since both are triangular with diagonal
. But is similar only to
itself, so . In particular the characteristic
polynomial does not determine the matrix, not even up to
similarity. Deciding similarity needs finer invariants;
Chapter 10 finds a complete set.
Roots and
singular matrices
We can now answer the opening question. The
determinant tests invertibility of for one at a time; the
characteristic polynomial tests all at once, and the answer
is a finite set.
Theorem
7.10.4 (Roots of the Characteristic
Polynomial)
Let with , and let .
- (a) The following
are equivalent: (i) ; (ii) is
not invertible; (iii) there is a
nonzero with
.
- (b) There are
at most scalars with these
properties.
Proof.
(a) By Lemma 7.10.1, , which is a determinant of a matrix over
the field . By Theorem 7.5.2, it is
zero if and only if is not invertible; this is (i) (ii). By
Theorem 3.4.4,
is not
invertible if and only if for some ,
and by Theorem 0.9.4; this is
(ii)
(iii).
(b) By Theorem 7.10.2, is monic of degree
, in particular
nonzero. By Corollary 6.1.4, it
has at most
distinct roots in , and by (a) these are
exactly the scalars in question.
Notice where the evaluation happens:
first substitute , getting a matrix over
the field ,
then use the invertibility test, which
is valid over fields. That order is what the warning
about above
requires.
The same holds for an operator on with : if and only if
is not
invertible, by (a) applied to
together with Theorem 4.1.5
(b), since .
The scalars of
this theorem are the eigenvalues of
, and the vectors
in (iii)
its eigenvectors. They are the subject of Chapter 9,
which starts from this theorem.
Examples.
- For in Example (A Characteristic
Polynomial), , so is singular
exactly for
and . For
instance has a
zero column, and satisfies .
- The rotation has . Over
this has no
root, so
is invertible for every real : no nonzero real vector
is merely stretched by a quarter-turn. Over , the roots appear, and for
example . The field matters.
Quick check. For which is invertible,
where ?
Solution. . By Theorem 7.10.4, is invertible
exactly for .
A tempting
false proof
Here is a statement that is true, and important:
every square matrix satisfies its own
characteristic polynomial, . This is
the Cayley–Hamilton Theorem, proved in Chapter 9. Here
means
substituting the matrix into the polynomial
, replacing
each by and the constant
term by (Definition 0.9.14).
For a
matrix it says , which you can check
by multiplying out.
A one-line “proof” suggests itself, and it is
wrong.
Warning. The fake proof of
Cayley–Hamilton. “Since , put : .” This is
invalid for two reasons. First, the two sides are
different kinds of object: is an
matrix, while is a
scalar, so “” compares a matrix
with a number. Second, Lemma 7.10.1 lets us
substitute only a scalar into the entries
of .
Substituting a matrix for inside the entries
would produce a matrix whose entries are matrices, and
“”
silently treats the in the entry as if the
entry became , which is not what substitution into a
polynomial means.
The same “argument” proves false statements, which
shows it is not a proof. Replace by : let . The fake reasoning gives “”. But for , and .
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define the
characteristic polynomial of , and say in
which ring its determinant is computed.
- (b) State the
degree, leading coefficient, coefficient of , and constant
term of .
- (c) True or false:
for every . Justify
your answer.
- (d) True or false:
if ,
then .
Justify your answer.
- (e) What does say about
the matrix ? About vectors?
- (f) Explain in one
sentence why “” is not a proof.
Solution.
(a) , the Leibniz sum computed in the
commutative ring (Definition 7.10.1).
(b) Degree , leading coefficient
, coefficient
at , constant term
(Theorem 7.10.2).
(c) False. , since each of the three columns
changes sign. For , .
(d) False. and both have but are not
similar.
(e) is not
invertible; equivalently there is a nonzero with
(Theorem 7.10.4).
(f) is a matrix
obtained by substituting into a polynomial,
while is a scalar, and substitution into the
entries of
is only justified for scalars (Lemma 7.10.1).
B. Practice
Exercise
(B1: Computing characteristic polynomials)
Find the characteristic polynomial of each matrix
over , factor it
as far as possible over , and check the trace
and determinant against Theorem 7.10.2. Hence list the for which , respectively
, is not
invertible.
Solution. For . Expanding along the first row
(Theorem 7.6.1 over
), Check: ; , and
. Since , divide by : . The quadratic has discriminant , so no
rational (indeed no real) root. By Theorem 7.10.4, is singular only
for .
For .
is block
upper triangular with diagonal blocks and . By Theorem 7.8.4 over
and the formula, Multiplied out, . Check: ; by Theorem 7.8.4, and
.
So is
singular exactly for and .
Exercise
(B2: Transpose)
Prove that for every . Hence show that is invertible if
and only if is.
Solution. By Theorem 0.9.5, ; these rules are proved entrywise
from the ring axioms, so they hold over . By Theorem 7.4.5, which
holds over by
the remark in §4, By Theorem 7.10.4, is not
invertible exactly when , which is
exactly when , that is, when is not
invertible.
Exercise
(B3: and )
Let with invertible.
- (a) Show that ,
and deduce .
- (b) Deduce that
and
in this case.
- (c) Check (a) for
, , and note that .
(Chapter 9 removes the hypothesis that is invertible.)
Solution.
(a) By
associativity, . So (Definition 4.2.2,
with ), and
by Theorem 7.10.3.
(b) By Theorem 7.10.2, the
coefficient of is in and in ; the constant
terms are and
.
Equal polynomials have equal coefficients.
(c) and , so . Both have
trace and
determinant , so
both characteristic polynomials are .
C. Going deeper
Exercise
(C1: Companion matrices)
Let and
. The
companion matrix of is the matrix with
in each position
just
below the diagonal, last column , and elsewhere: (The matrix of Exercise (B2: An annihilating polynomial by elimination)
is .)
- (a) Let . For
each , show that
deleting row and
column of leaves a block
diagonal matrix whose blocks are an
lower triangular matrix with diagonal and an
upper triangular matrix with diagonal (either
block may be absent when or ). Deduce that the cofactor of equals .
- (b) Deduce, by
expanding along the last column, that .
- (c) Verify (b) for
by writing and checking the
coefficients predicted by Theorem 7.10.2.
- (d) Deduce that
every monic polynomial of degree over is the characteristic
polynomial of some matrix over .
Solution.
(a) The entries
of are: at for ; at ; at for ; at ; elsewhere. Delete row
and column . In the remaining
matrix, rows have nonzero entries only in columns and for row , all at most ; and rows have
nonzero entries only in columns and , all at least
. So the matrix is
block diagonal with blocks on rows and columns and on
rows , columns . The first block has on its diagonal and
just below it,
so it is lower triangular. In the second block, row
of (for ) has in column , which is the
diagonal position of the block, and in column , one step to the right;
so it is upper triangular with diagonal . By Theorem 7.8.4 and Theorem 7.4.6 over
(both
division-free), the minor is , where an absent block
contributes the factor (for or the matrix is a
single triangular block). Hence .
(b) By Theorem 7.6.1 along
column , valid
over ,
(c) Here , , , , so Its trace is , so Theorem 7.10.2
predicts the coefficient at , as in . Its determinant,
expanding along the first row, whose only nonzero entry
is in position
, is , since deleting row and column leaves . So the predicted
constant term is .
(d) For , take and use (b). For
, is .
Exercise
(C2: Nilpotent matrices)
Let satisfy for some .
- (a) Show that the
constant term of is .
- (b) By multiplying
out, verify that for every .
- (c) Deduce that
, and
hence
and .
- (d) Give an example
showing that does not force .
Solution.
(a) By Theorem 7.5.4, , so because a field has no zero divisors (Theorem 0.7.1). The
constant term is by Theorem 7.10.2.
(b) Let . Then and . The difference is ,
as claimed.
(c) By (a) and
(b), . By induction,
for all : if
it holds for ,
then . If , then . If , then forces , since
a nonzero matrix times a scalar is zero only if the
scalar is zero; here , because would give . Hence by Theorem 0.7.1 (f),
applied repeatedly. So , and .
(d) has and .
Exercise
(C3: Odd size over the reals)
Let be odd and
.
- (a) Prove that there
is and a
nonzero with .
- (b) Show by an
example that (a) fails for .
- (c) Show that (a)
holds for every and every .