Chapter 12 sorted the operators that have an
orthonormal eigenbasis. Among them the self-adjoint ones
are the matrix analogue of the real numbers, since they
are exactly the operators fixed by starring. Inside the
real numbers sits a smaller and even more useful set,
the non-negative ones, and this section finds its matrix
analogue. The answer turns out to have three faces — a
sign condition on the spectrum, a sign condition on a
scalar function, and a factorization — and the whole of
the rest of the chapter is built on the fact that the
three agree.
Throughout, or , and carries the standard
inner product .
Which
self-adjoint matrices deserve to be called
non-negative?
A real number
is non-negative in three equivalent ways: ; for every real
; and for some real
. Each of the
three has a matrix reading. “Every eigenvalue is ” copies the first.
“ for every ” copies the second,
because is the
one scalar a matrix attaches to a single vector. “” copies the
third, with the star doing what nothing does for numbers
but everything does for matrices.
It is not obvious that the three agree, and for a
general matrix they do not: they all fail for in different ways. What
makes them agree is self-adjointness, and the middle
condition is the one to take as the definition, because
it is the one that says something about every vector at
once.
A matrix is positive semidefinite when its
quadratic form never goes negative.
Definition
13.1.1 (Positive Semidefinite and Positive
Definite)
Let . Then is positive
semidefinite, written , if
- (P1) is
Hermitian, that is (over : symmetric, ); and
- (P2)
for every .
It is positive definite, written
, if (P1)
holds and for every non-zero
.
The same words apply to an operator on a
finite-dimensional inner product space: is positive
semidefinite if and for
every , and
positive definite if the inequality is strict for .
In words: (P1) puts in the class where the
analogy with real numbers is available at all, and (P2)
says that the number is never negative. The word
every in (P2) is the whole content; a
single vector proves nothing. In the definite case the
vector has
to be excluded, since for
every
whatsoever.
Clause (P1) is also what makes clause (P2)
meaningful. For a Hermitian , the number is
real for every , over as well as over (Proposition 11.6.7),
so comparing it with is legitimate. Without
(P1) the number can be a genuine complex number, and
“” would be
meaningless.
Positive definite implies positive semidefinite,
since a condition that holds strictly for holds weakly
for too.
The reverse fails, and the smallest witness is .
Before any examples, the trap.
Warning. Over , clause (P1) has to
be assumed; over it comes
free. Let , the quarter turn of . Then for every , so (P2)
holds in the strongest possible way, and yet . A
real matrix can pass the quadratic-form test and be
nowhere near symmetric, because over the quadratic form
cannot see the skew part of a matrix at all (Exercise (C3: What the real quadratic form does determine)).
So a real definition that dropped (P1) would call the
quarter turn positive semidefinite, and none of the
theorems below would survive.
Over the
situation is the opposite, and it is worth recording
once.
Proposition
13.1.1 (Over , positivity implies
Hermitian)
Let satisfy
for every — in particular, let
for every . Then
.
Proof. Put . For
every , moving
the star across (Lemma 11.4.1) and
using conjugate symmetry, the last equality because the number is real.
Hence for every , and Theorem 12.2.6
gives .
So over one
may state the definition with (P2) alone; over one may not. We keep
(P1) in the definition for both fields, so that a single
sentence covers them and so that no reader has to
remember which field licenses which shortcut.
Now the examples, all checked against (P1) and (P2)
in turn.
Example
(Five Positive Matrices)
Decide which of the following are positive
semidefinite, and which are positive definite.
- (a) , and more generally
with every real.
- (b) for a fixed
.
- (c) The Gram matrix
of a list in an
inner product space.
- (d) The zero matrix
.
- (e) .
Solution.
(a) because the
are real, so
(P1) holds. For (P2), So exactly when every , and exactly when
every :
if some ,
the vector
refutes (P2), and if some , the vector refutes
definiteness. In particular , with .
(b) , so (P1) holds. For (P2), using
twice, So . It is never positive definite for
, since any
orthogonal to
makes the value ;
and for it
is the zero matrix.
(c) by Theorem 11.2.5 (a),
and by part (b) of
the same theorem. So always, and by (c) of that theorem
exactly
when the list is linearly independent.
(d) and , so . This is the degenerate case, and it matters:
it is the bottom of the order introduced in Section 5,
and it shows that (P2) can hold with equality
everywhere.
(e) Symmetric, so
(P1) holds; but . Not positive semidefinite. This is (a) with
.
Example (e) is the non-example by minimal change:
keep (P1), change one diagonal entry, and (P2) fails at
one standard basis vector. The quarter turn of the
warning is the other kind of non-example, keeping (P2)
and losing (P1).
Two remarks on the name and the convention.
“Definite” is the older word, from the theory of
quadratic forms: the form has a
definite sign. “Semi” weakens the sign to allow
zeros. Some authors write “positive” for what we call
positive semidefinite and “strictly positive” for
positive definite; the words differ but the two classes
are the same two classes everywhere.
Warning. A positive matrix
is not a matrix with positive entries. The
all-ones matrix has every entry positive and is
positive semidefinite, but has every entry positive
and is not: at its form is
.
Conversely has a zero entry and is positive definite.
Entrywise positivity is a different subject, the one
Chapter 9 met through stochastic matrices, and it shares
only a word with this one.
Positivity
survives a change of variable
Before the equivalences, one small result that will
be used in almost every proof of this chapter. The
quadratic form is attached to ; substituting turns it into
the quadratic form of . The operation
is called
congruence, and Chapter 14 studies it
for its own sake. Here we need only that it preserves
the sign.
Proposition
13.1.2 (Congruence preserves positivity)
Let be Hermitian and .
Then is Hermitian, and:
- (a) if , then ;
- (b) if and , then
.
In particular, for and
invertible, if and only if .
Proof. , so the matrix
is Hermitian. For every ,
(a) If , the
right-hand side of is for every .
(b) If and , then
forces
, so the
right-hand side of is . For the last
claim, take
invertible: one direction is what we just proved, and
the other is the same statement applied to and the matrix
, since
.
The
equivalent descriptions
The characterization needs one determinant identity,
which is worth stating on its own because it also
describes every coefficient of a characteristic
polynomial. Recall from Definition 7.7.1 that
denotes
the submatrix of
on the rows and columns indexed by ; its determinant is a
principal minor of , and is a
principal submatrix.
Lemma
13.1.3 (Shifting by , minor by
minor)
Let and . Then where and, for , is the
sum of all principal minors of .
Idea. Column of is , a sum of
two columns, and the determinant is linear in each
column separately. Expanding all columns turns one
determinant into of them, one for each
choice of which columns contribute their . A determinant with
in column
collapses under
cofactor expansion to the determinant with row and column deleted, and doing that
for every chosen column leaves exactly a principal
submatrix.
Proof. Write for the
columns of , so
that column of
is . The
determinant is linear in each column with the others
fixed (Theorem 7.4.3).
Applying that in column , then in column , and so on through
column , where is the matrix whose
-th column is
for and for .
Fix and let
. Expanding
along
column (Theorem 7.6.1 (a))
leaves one term, since that column is : the entry is in row and elsewhere, and its
cofactor is . So equals the determinant of with row and column deleted, which is a
matrix of the same shape on the index set . Repeating this for each
deletes
every row and column indexed by and leaves Collecting the subsets by ,
so that , gives the stated formula.
Here is the main theorem of the section.
Theorem
13.1.4 (Characterizations of Positive
Semidefiniteness)
Let be Hermitian. The following are
equivalent.
- (a) .
- (b) Every eigenvalue
of is a
non-negative real number.
- (c) for some
.
- (d) for exactly one
with
.
- (e) Every principal
minor of is
.
Idea. The spectral theorem makes
(a) and (b) two readings of one diagonal matrix, since
an orthonormal change of basis does not change the sign
of a quadratic form. From (b) the square root of Chapter
12 produces , and
is its own . The step is
the identity , one line of moving across. For (e), a
principal submatrix is what the form does to vectors
supported on a few coordinates, which gives at
once; the return trip uses Lemma 13.1.3 to show
that for every , so that no can be an
eigenvalue.
Proof. (a)
(b). Let with
. By Theorem 12.2.1,
,
and so , as . By Corollary 12.4.3
(over ) or Corollary 12.5.2
(over ), with
unitary and
the eigenvalues. Put . Then every term being a product of two non-negative
reals.
(b) (d).
A Hermitian matrix has an orthonormal basis of
eigenvectors, so the operator on satisfies the
hypothesis of Theorem 12.8.4,
whose spectral condition is exactly (b). That theorem gives a
unique with an
orthonormal eigenbasis, non-negative spectrum and , and it is
self-adjoint; by the equivalence just proved, applied to
, this says . Conversely
any
with is
Hermitian with non-negative spectrum, hence is that one.
So there is exactly one such .
(d) (c).
Take ; then
.
(c) (a).
Conjugate-transposing twice, , which is (P1).
And for every ,
which is (P2). Both facts are recorded in
operator form in Exercise (C1: The operator )
(a), applied to the map .
(a) (e).
Let . Given , let have and all
other entries .
Then , because the terms with
or vanish. So
is
Hermitian and satisfies (P2), that is . By
the equivalence (a) (b)
applied to , all its
eigenvalues are . Diagonalizing it as as
above, with , and taking determinants (Theorem 7.5.4, Corollary 7.5.6),
(e) (b).
Let be
real. Every by hypothesis and , so Lemma 13.1.3 gives
In particular is invertible (Theorem 7.5.3), so
is not an
eigenvalue of
(Theorem 9.2.6 applied
to ). As
was
arbitrary and every eigenvalue of is real (Theorem 12.2.1),
no eigenvalue is negative. This closes the cycle and
proves the theorem.
Item (c) is the one to keep in mind: every
positive semidefinite matrix is a Gram matrix,
since is
the Gram matrix of the columns of (Definition 11.2.3).
Section 3 turns that remark into a theorem. Item (d)
names the square root, which Section 2 develops. Item
(b) is how one thinks; item (e) is, for small
matrices, how one computes.
The
definite case, and Sylvester’s criterion
The definite versions of (a), (b) and (c) are proved
by putting “strict” in front of the same arguments. The
new item is a test that can be run by hand on a
numerical matrix without finding a single
eigenvalue.
Theorem
13.1.5 (Characterizations of Positive
Definiteness, with Sylvester’s Criterion)
Let be Hermitian, and for let be its leading
principal submatrix, the top-left corner. The
following are equivalent.
- (a) .
- (b) Every eigenvalue
of is a positive
real number.
- (c) for some
invertible .
- (d)
(Sylvester’s criterion) for
every .
Idea. Steps (a) (b) (c)
repeat the previous proof with strict inequalities. For
(a)
(d), a leading principal submatrix inherits
definiteness, and a determinant is a product of
eigenvalues. The content is (d) (a), and it
is an induction on that peels off the last
row and column. The inductive hypothesis makes the
corner
definite, hence invertible, and one shear — the
congruence by , which is exactly the
block elimination of Chapter 8 — clears the border and
turns into with
one scalar left
over. Determinants identify the sign of , and Proposition 13.1.2
carries the verdict back.
Proof. (a)
(b). As in Theorem 13.1.4, with
replaced by
throughout:
for ,
forces ; for , whenever , which happens exactly when
because
is
invertible.
(b) (c).
Let
with (Theorem 13.1.4 (d)).
Since every eigenvalue of is positive, and
is invertible
(Theorem 9.2.6). If
then
,
so ; hence
is invertible
too (Theorem 3.4.4).
Take .
(c) (a).
For ,
, so
.
(a) (d).
As in the proof of (a) (e) of Theorem 13.1.4 with
, the corner satisfies for , so . Its eigenvalues are positive, and is their
product, computed as in the proof of Theorem 13.1.4, so
.
(d) (a).
Induct on . For
, with , and for .
Let , and
write The leading principal submatrices of are , so
the inductive hypothesis gives ; in
particular
is invertible, since . Put Block multiplication (Theorem 8.1.1),
together with because is Hermitian,
gives Both
and are
triangular with s
on the diagonal, so by Theorem 7.4.6. Taking
determinants in with Theorem 7.5.4 and Theorem 7.8.4, and , so . The right-hand side of is therefore
positive definite: for , since the two terms are and not both zero.
Finally is
invertible, so Proposition 13.1.2 (b)
turns back into . This completes the induction and
proves the theorem.
The number in that proof is the Schur
complement of Definition 8.3.1,
and is the
block
factorization of Theorem 8.3.1
written as a congruence. Section 6 replaces the scalar
by a block and
gets the general test.
Warning. For
semidefiniteness, the leading principal minors are not
enough. Sylvester’s criterion has no “” version. Take Its leading principal minors are and , both , and yet , so
is not positive semidefinite. What Theorem 13.1.4 (e)
demands is all principal minors, and
the one this matrix fails is . The leading corners simply never look at the
second coordinate on its own. This is the single most
common error about the subject: for the strict test
minors suffice,
for the weak test one needs all of them.
Quick check. Is positive semidefinite?
Is it positive definite? Which minors did you use?
Solution. It is positive
semidefinite but not positive definite. The principal
minors are , and , all
, so Theorem 13.1.4 (e)
applies. It is not definite, since violates
Sylvester’s criterion; concretely , so at
the non-zero . One can also see everything at once from
with
, which
is Example (Five Positive Matrices)
(b).
Two by
two, and where these matrices come from
The
case is worth memorizing, because it is the one that
appears inside larger arguments.
Example
(The
Test)
Let be
Hermitian, so and . State and justify the tests for and for .
Solution. if and only if
and . This is Sylvester’s criterion, Theorem 13.1.5 (d):
the two leading principal minors are and .
if
and only if ,
and . This is Theorem 13.1.4 (e):
the principal minors are , and , and all three
are needed. Dropping readmits .
Note what the second condition says: ,
so an off-diagonal entry can never be larger in modulus
than the geometric mean of the two diagonal entries it
sits between. For over : and , so .
Where do positive semidefinite matrices come from?
Almost always from item (c) of Theorem 13.1.4, and
the standard source is data.
Example
(A Covariance-style Matrix)
Three quantities are measured on four occasions, and
each column of has been adjusted to sum to . Show that is positive
definite, and check the verdict against Sylvester’s
criterion.
Solution. Multiplying out, is the dot product
of columns and
of : The columns of are linearly
independent: if , rows
and read and , which
force , and then row reads . So , and
taking in
Proposition 13.1.2 (b)
with the positive definite matrix gives .
Equivalently, for .
Sylvester’s criterion agrees: , ,
and expanding along the first row, all positive. The reason the two routes must
agree is that is
the Gram matrix of the columns of , and Theorem 11.2.5 (d)
already said that its determinant is positive exactly
when those columns are independent.
The
invertible matrix theorem grows
Chapter 2 collected the conditions equivalent to
invertibility for an operator (Theorem 2.5.7);
Chapter 3 gave the eight matrix conditions of the
Invertible Matrix Theorem (Theorem 3.4.4);
Chapter 7 added the determinant (Theorem 7.5.3) and
Chapter 9 the eigenvalue (Theorem 9.2.6).
Positivity adds a pair, and they are the ones used
whenever a square system is attacked through least
squares.
Theorem
13.1.6 (Invertible Matrix Theorem, with
Positive Definiteness)
Let with or . The following are equivalent, and each is
equivalent to each of the conditions of Theorem 3.4.4, Theorem 7.5.3 and Theorem 9.2.6.
- (a) is invertible.
- (b) .
- (c) .
For a general , one always has , with
if
and only if the columns of are linearly
independent.
Proof. Let .
Then is
positive semidefinite by Theorem 13.1.4 ((c)
(a)).
Whether it is definite is decided by the identity , computed in
the proof of Theorem 13.1.4 ((c)
(a))
and recorded in operator form in Exercise (C1: The operator )
(a): the left side is for every exactly when for every
, that is,
exactly when , that is, exactly when the columns of
are linearly
independent. The same conclusion comes from Lemma 11.4.3, which
says and so lets one read the condition off
directly.
Now let be
square. Then “” is item (b) of Theorem 3.4.4,
which gives (a) (b). Also
is invertible if
and only if
is, since is a
two-sided inverse of and conversely;
applying (a) (b) to
therefore
gives (a) (c).
The two new items look like a detour — why test when itself is available?
Because is
Hermitian and positive, and everything in this chapter
applies to it. Chapter 11 already used it once, in the
normal equations of least squares; Section 8 will use it
again, to build the singular value decomposition of a
matrix that is not even square, and that decomposition
supplies the last item of the list: a square matrix is
invertible exactly when none of its singular values is
zero.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) State the
definition of and of , including every quantifier and the
field.
- (b) Explain why
clause (P1) cannot be dropped from the real definition,
with a concrete matrix.
- (c) True or false:
if is Hermitian
and every leading principal minor of is , then . Justify
your answer.
- (d) Write down the
three conditions of the test for .
- (e) Name the item of
Theorem 13.1.4 that
says every positive semidefinite matrix is a Gram
matrix.
Solution.
(a) with or is positive
semidefinite if and
for every ; positive
definite if and
for every non-zero (Definition 13.1.1).
(b) Because over
the quadratic
form does not see the skew part. The quarter turn has for
every
and is not symmetric.
(c) False. has leading
principal minors
and , and . All principal minors are needed (Theorem 13.1.4
(e)).
(d) With Hermitian: , and .
(e) Item (c):
, and
is the
Gram matrix of the columns of .
B. Practice
Exercise
(B1: Determine the definiteness)
For each matrix below, determine whether it is
positive definite, positive semidefinite but not
positive definite, or neither. Justify your answer.
- (a) over .
- (b) over .
- (c) over .
- (d) The all-ones
matrix .
- (e) over .
- (f) over .
Solution.
(a) Positive
definite. Symmetric, with leading principal minors and , both positive
(Theorem 13.1.5
(d)).
(b) Neither. The
leading principal minors are and , which tempts one into
“semidefinite”, but the principal minor is negative, and .
(c) Positive
definite. Symmetric, with leading principal minors , and ,
all positive.
(d) Positive
semidefinite, not positive definite. , which is Example (Five Positive Matrices)
(b) with ;
so . It vanishes
at the non-zero , so it is not definite. (Equivalently, .)
(e) Neither: it
is not symmetric, so (P1) fails and it is not in the
class at all. Its quadratic form is identically , which shows how little
the form sees over .
(f) Positive
semidefinite, not positive definite. Hermitian, with
, and . The determinant is , so definiteness fails;
indeed .
Exercise
(B2: A parameter)
For which is positive definite? Justify your answer.
Solution. is symmetric for
every real , so
Sylvester’s criterion applies (Theorem 13.1.5 (d)).
The leading principal minors are the last by expansion along the first row:
. All three are positive exactly
when and
, that
is when . Hence if and only if .
At the matrix is positive semidefinite
but singular, and for the determinant is
negative, so
has an odd number of negative eigenvalues and is not
even semidefinite.
Exercise
(B3: The inverse of a positive definite matrix)
Let with . Prove that is invertible and that
.
Solution. By Theorem 13.1.5 (b),
every eigenvalue of is positive, so and
is invertible
(Theorem 9.2.6). Then
, so is Hermitian.
Apply Proposition 13.1.2 (b)
with ,
which is invertible: (Alternatively: the eigenvalues of are the
reciprocals of those of
, hence positive,
and Theorem 13.1.5 (b)
applies again.)
C. Going deeper
Exercise
(C1: Zero trace forces zero)
Let with .
- (a) Prove that for every
, and that .
- (b) Prove that if
then
.
- (c) Deduce that if
and
, then
.
Solution.
(a) by (P2). Summing,
.
(b) Write with
unitary and
the eigenvalues (Corollary 12.4.3,
Corollary 12.5.2).
Then by
Theorem 0.9.6, and
each by Theorem 13.1.4 (b). A
sum of non-negative reals is only if every term is
, so and hence .
Alternatively, without eigenvalues: by (a) each , so forces every
. Writing
(Theorem 13.1.4 (c)),
the -th diagonal
entry is for the
-th column of ; so every column of
is , that is and .
- (c) If both and , then by
(a)
and , so and (b) gives .
Exercise
(C2: The cone of positive matrices)
Let be the set of positive semidefinite
matrices.
- (a) Prove that if
and is
real, then and . (A set with these two properties is a
convex cone: it contains for as
well.)
- (b) Prove that contains no line
through : if and then .
- (c) Prove that is closed under
congruence: if and , then .
Give an example showing that is
not closed under multiplication.
Hint for (c): for the example, two positive
semidefinite matrices whose product is not even
Hermitian will do.
Solution.
(a) Sums and real
multiples of Hermitian matrices are Hermitian. For every
, and since . Convexity
follows by taking and and adding.
(b) This is Exercise (C1: Zero trace forces zero)
(c).
(c) Immediate
from Proposition 13.1.2
(a). For the failure of multiplicativity, take both positive semidefinite ( and
). Then
which is not symmetric, so it is not positive
semidefinite — it fails (P1), never mind (P2). Section 2
shows what does survive: , and
whenever and
commute.
Exercise
(C3: The largest entry sits on the diagonal)
Let with .
- (a) Prove that for all .
- (b) Deduce that if
for some
, then the whole
-th row and -th column of are zero.
- (c) Deduce that
.
Hint for (a): look at a principal
submatrix.
Solution.
(a) For the claim is .
For , take
. By
the proof of Theorem 13.1.4 ((a)
(e)),
,
and Example (The Test)
gives .
(b) If , then (a)
gives for every , so ; and since
is Hermitian.
(c) Let , a
maximum of non-negative reals by Exercise (C1: Zero trace forces zero)
(a). By (a), for
all , so . The reverse inequality holds because the
diagonal entries are among the entries. Hence the two
maxima are equal.