A non-negative real number has exactly one
non-negative square root, and it is the reason
“non-negative” is a useful class of numbers at all: it
lets us take lengths, define standard deviations, and
undo a squaring. Section 1 produced the matrix analogue
as one clause of a theorem. This section makes it an
object with a name, adds the one property the clause did
not mention — that the square root is a
polynomial in the matrix — and then
turns the same idea into the triangular factorization
that elimination discovers, the one Chapter 3 promised
and could not yet explain.
Throughout, or , and all matrices are over .
The
positive square root
Theorem 13.1.4 (d)
already says that a positive semidefinite has exactly one
positive semidefinite square root. That is an
existence-and-uniqueness statement, so by the usual
convention it deserves a notation.
The square root of a positive matrix is what you
get by taking square roots of its eigenvalues and
leaving the eigenvectors alone.
Theorem
13.2.1 (The Positive Square Root)
Let with . Then there is exactly one with and . We write , also . Moreover:
- (a) for some
polynomial with
real coefficients (the nodes and the values
are real, so the interpolation of Theorem 6.6.1 may be
run over , and
);
- (b)
for every with ;
- (c)
and ; in particular is invertible if
and only if
is.
The eigenvalues of are the
non-negative square roots of those of , with the same
eigenvectors.
Idea. Existence and uniqueness are
Section 1. What is new is (a), and it is the reason (b)
is free. On the spectrum, the square root is just a
function defined at finitely many points,
and a function defined at finitely many points is a
polynomial — that is Lagrange interpolation from Chapter
6. The functional calculus of Chapter 12 says that
applying a polynomial to and applying the
corresponding function to the spectrum are the same
operation, so the interpolating polynomial evaluated at
is the
square root. Once is a polynomial
in , anything
commuting with
commutes with it, with no further work.
Proof. Existence and uniqueness are
Theorem 13.1.4
(d).
- (a) Let be the distinct
eigenvalues of
and let be its spectral resolution
(Definition 12.8.1,
Theorem 12.8.1),
which exists because a Hermitian matrix has an
orthonormal basis of eigenvectors. Every is a
non-negative real number by Theorem 13.1.4 (b), so
the numbers are
defined and real. Let on . By Theorem 12.8.3 (b)
and (a), and by (c) and (d) of the same theorem is Hermitian with
spectrum , so by Theorem 13.1.4 (b).
Uniqueness gives .
The numbers are distinct, so by Lagrange
interpolation (Theorem 6.6.1) there
is a polynomial
of degree at most , with real coefficients, such that for every . By Theorem 12.8.3
(a), .
(b) Suppose . Then commutes with every
power of , hence
with every polynomial in , hence with .
(c) If then
. Conversely, if , then since
is
Hermitian, so . Hence the two null spaces agree, and the
ranks agree by Theorem 3.5.7.
Invertibility is the case (Theorem 3.4.4).
The last sentence is the spectral mapping statement
of Theorem 12.8.3 (d)
for .
Two routes to the same matrix, then, and both are
worth practicing: assemble
from the projections, or find one interpolating
polynomial and substitute.
Example
(Two Square Roots)
Compute
for
- (a) ;
- (b) ,
in each case by the spectral resolution and by a
polynomial.
Solution.
(a) is symmetric. Since
and , the eigenvalues are and , with eigenlines
spanned by
and . Both
are positive, so . The orthogonal projections onto the two
eigenlines are so and By the polynomial route: we need with and . The line
through the two points is , and Check: .
(b) Here with the all-ones matrix.
Since
and for
every with
entries summing to , the eigenvalues of
are and , so those of are and ; both are positive, so
. We need
with and , namely , giving Check by squaring: the diagonal entry of the
square is and an off-diagonal entry is ,
which reproduces . Only two distinct
eigenvalues appear, so a polynomial of degree suffices even though
is .
Warning. is not the
entrywise square root, and it is not the only square
root. For the entrywise roots form a matrix whose
square is not .
And has other
square roots: is one, and
is another symmetric one. The
word positive in “positive square root”
is what makes the object unique; drop it and this , whose two eigenvalues
are distinct and positive, has four symmetric square
roots, one for each choice of sign on each eigenline.
When an eigenvalue repeats there are infinitely many,
symmetric ones included: every reflection is a symmetric
square root of .
Quick check. Let and let
be unitary. What
is ?
Solution. . It is
positive semidefinite by Proposition 13.1.2
(a), since , and its square is because . Uniqueness
in Theorem 13.2.1 does
the rest. In words: the square root does not care which
orthonormal coordinates we use, which is exactly what
one wants of an operation defined on the spectrum.
The
absolute value of a matrix
A complex number has a modulus , and the polar form splits it into a rotation and a
non-negative stretch. Section 9 will split a matrix the
same way, and the stretching factor it needs is built
now. For any matrix, square or not,
is
positive semidefinite (Theorem 13.1.6), so it
has a square root.
Definition
13.2.1 (Absolute Value of a Matrix)
Let . The absolute value of
is the unique positive semidefinite square root
of .
Note the size: is , not , because acts on the
domain of . It is
well defined because and Theorem 13.2.1 gives
exactly one root.
Proposition
13.2.2 (What the absolute value
preserves)
Let . Then for every , Consequently and .
Proof. Since is
Hermitian and , using Lemma 11.4.1 twice.
Both sides are non-negative reals, so the norms agree.
Hence if and only if , and the rank
statement follows by Theorem 3.5.7.
So does
exactly what
does to lengths, and nothing else. That single identity
is the whole engine of the polar decomposition: the map
preserves norms, so it extends to a
unitary matrix, and follows.
Example
(Two Absolute Values)
Compute for and for , both over .
Solution. For the quarter turn,
, so
. This is right: a rotation changes no
length, so the matrix that does the same thing to
lengths and nothing else is the identity.
For , , whose positive
square root is . Check Proposition 13.2.2:
. Both have rank and null space .
Warning. is not the
entrywise absolute value, and . For the
quarter turn above, the entrywise absolute value is
, while . For
the product rule, take Then , so ,
while and , giving That product is not even Hermitian, so it
could not be the absolute value of anything. The modulus
of a product of numbers is the product
of the moduli because numbers commute; matrices do
not.
Cholesky:
elimination on a positive definite matrix
Chapter 3 ran elimination on a symmetric matrix and
found that the two triangular factors are secretly the
same one: (Theorem 3.6.8). It
then observed that when every entry of is positive one can
split and write , called this the
Cholesky factorization, and promised
that Chapter 13 would connect it with positive definite
matrices. Here is the connection, and it is the best
kind: the hypothesis “every entry of is positive” is not an
extra assumption at all. It holds exactly when is positive definite,
and it can be checked while the elimination runs.
Theorem
13.2.3 (Cholesky Factorization)
Let be Hermitian. Then if and only if
for some lower triangular whose
diagonal entries are real and strictly
positive. In that case is unique.
Idea. is one line:
such an is
invertible, and is Theorem 13.1.5 (c)
with .
is
Chapter 3’s elimination with its hypothesis supplied,
run symmetrically. One pass clears the first column and
the first row at once and leaves a smaller matrix that
is again positive definite, so an induction produces
with unit lower
triangular and every pivot . Absorbing
into finishes it. For
uniqueness, strip the positive diagonal off each
candidate ; what
is left is an LU factorization of , and Chapter 3 already
proved those unique.
Proof. Suppose
with
lower triangular
and every . Then
is invertible by Lemma 3.6.2, hence
so is , and
is positive definite by Theorem 13.1.5 ((c)
(a)).
Suppose .
Claim. There are a unit lower
triangular and a diagonal whose entries are real and
strictly positive, with .
Proof. Induction on . For , the single entry
is by (P2) of Definition 13.1.1 in
its strict form, so and will do.
Let .
Since ,
we may write Here , so exists and is
a positive real number. Put which is Hermitian, since
and is
real.
The smaller matrix is again positive
definite. Let with , set and ,
which is non-zero because is. Multiplying out in
blocks (Theorem 8.1.1),
With and , the first three terms are
so . The left side is because and . Hence .
The induction step. By the induction
hypothesis, with
unit lower triangular and real with positive entries. Put Then
is unit lower triangular and is diagonal with the
positive real entries .
Block multiplication (Theorem 8.1.1)
gives and . So , which
proves the claim.
The claim is one pass of elimination performed
symmetrically, and are its pivots. Over
it is the factorization
of Theorem 3.6.8 with
the hypothesis that makes every pivot positive.
Write for the diagonal entries of , all of them positive
real numbers. Then
is a real matrix, and putting gives a lower triangular matrix — its -entry is , which
vanishes for — whose -th diagonal entry is
,
and
Uniqueness. Suppose , with each lower triangular
with positive diagonal entries. Split off the diagonal:
write , a real
diagonal matrix with positive entries, and , which is lower triangular
with every diagonal entry . Then and
The second factor is upper triangular, its
-entry being
,
which vanishes for . So for and this displays an LU factorization of , which is invertible:
is triangular
with non-zero diagonal, hence invertible by Lemma 3.6.2, and
is a product of two invertible matrices. By Theorem 3.6.5 the
two agree: Canceling the invertible gives
, and since both have positive
diagonal entries, . Hence . This proves the
theorem.
Reading the equation entry by entry turns it into a recipe,
and the recipe is the standard way to factor by hand.
Comparing the entry of both sides gives , and comparing the entry for gives . Solving each for
its one new unknown, column by column:
Example
(A Cholesky Factorization, and One That Fails)
Factor as , and run the same
algorithm on the matrix obtained from
by changing the
entry to
.
Solution. Column 1. ;
then and .
Column 2. ; then
Column 3. . So and multiplying back confirms . The
diagonal entries are positive, so by Theorem 13.2.3; their
squares
are the pivots , consistent with , , .
The failure. For , columns and are unchanged, and the
last step asks for which is not a positive real number. The
algorithm stops, and by Theorem 13.2.3 its
stopping is a proof: is not positive
definite. Indeed , so Sylvester’s criterion
fails at .
The example shows the practical point. The
algorithm is the test. To decide whether a
numerical Hermitian matrix is positive definite, one
does not compute eigenvalues and one does not compute
determinants; one
starts the Cholesky recursion and watches whether every
quantity under a square root stays positive. Sylvester’s
criterion guarantees that this verdict is correct,
because .
Warning. Cholesky needs
definiteness, not just semidefiniteness, for
uniqueness. The matrix is positive semidefinite
and does factor as , for instance
with . But
the diagonal entry is not positive, so Theorem 13.2.3 does
not apply — and indeed uniqueness fails, since and are two different lower
triangular matrices with . Also note
that the of
Cholesky is not the of Chapter 3’s LU
factorization: the latter is unit lower triangular, and
the two differ by the factor .
Quick check. Let with Cholesky
factor . What is
in terms of
, and what is the
Cholesky factor of ?
Solution. , by Theorem 7.5.4 and Theorem 7.4.6, the
last step because the are positive
reals. For the inverse, with , which
is upper triangular; so this is not
itself a Cholesky factorization. The Cholesky factor of
is a
different matrix, which is why solving is done by two
triangular substitutions with rather than by
inverting anything.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) State what is, including
the two conditions that pin it down.
- (b) Define for
and say what size it is.
- (c) State the
Cholesky factorization theorem.
- (d) True or false:
every Hermitian matrix has exactly one Hermitian square
root. Justify your answer.
- (e) Explain in one
sentence why the Cholesky algorithm is a test for
positive definiteness.
Solution.
(a) For , is the unique
matrix with
and
(Theorem 13.2.1). Both
conditions are needed: positivity, and squaring to .
(b) , which is , the size of
the domain of
(Definition 13.2.1).
(c) A Hermitian
is positive
definite if and only if with lower triangular with
positive real diagonal entries, and then is unique (Theorem 13.2.3).
(d) False, twice
over. A Hermitian matrix with a negative eigenvalue has
no Hermitian square root at all, since always.
And a positive semidefinite with two distinct
eigenvalues has at least two Hermitian square roots,
.
Uniqueness needs the root itself to be positive
semidefinite.
(e) Because the
algorithm computes one step at a time, so it
produces a positive real at every step
exactly when Sylvester’s criterion holds.
B. Practice
Exercise
(B1: Square roots)
Compute
for each of the following, and in each case give a
polynomial with
.
- (a) .
- (b) .
Solution.
(a) and , so the
eigenvalues are
and with
eigenlines and ; both
positive, so . With the projections onto those lines, For the polynomial, solve , : , and . Check: .
(b) and
, so
the eigenvalues are and . Then For the polynomial, and give , and . Check: .
Exercise
(B2: Cholesky, and a planted failure)
- (a) Find the
Cholesky factor of , and hence
write down .
- (b) Run the same
algorithm on and say what
the outcome proves.
Solution.
(a) ,
,
.
Then and Finally . So and . All diagonal entries are positive, so . By the Quick
check above, .
(b) Columns and are identical, and the
last step asks for . The algorithm
fails, so
is not positive definite (Theorem 13.2.3).
Confirming by Sylvester: , , and
.
Exercise
(B3: An absolute value)
Let . Compute , verify
directly, and determine whether
.
Solution. , whose eigenvalues
are and with eigenlines and . Hence
Directly: , so , and the same computation applies to
. The equality is no
accident: here, and for a positive semidefinite one has , so by uniqueness in Theorem 13.2.1.
C. Going deeper
Exercise
(C1: The trace of a product of positive matrices)
Let with and .
- (a) Prove that , and deduce that .
- (b) Prove that if and only
if .
Hint for (b): a positive semidefinite matrix of
trace is .
Solution.
(a) By Theorem 0.9.6, .
With
and , Now by Proposition 13.1.2
(a), since
is Hermitian. The trace of a positive semidefinite
matrix is by
Exercise (C1: Zero trace forces zero)
(a). Hence .
(b) is clear.
Suppose . By (a), and
, so
by Exercise (C1: Zero trace forces zero)
(b). Put . Then so
by Lemma 11.4.3 (its
null space is all of , hence so is ). Therefore
Exercise
(C2: Commuting positive matrices)
Let with .
- (a) Prove
without using Theorem 13.2.1 (a)
that if , then .
Hint: show that maps each eigenspace
of into
itself.
- (b) Let with . Prove that
and
that .
Solution.
(a) Let and
.
Then , so maps into
itself. Since , its distinct eigenvalues are non-negative reals, and with the orthogonal
projection onto (proof
of Theorem 13.2.1). For
we have for and , so . Now (Theorem 12.8.1),
so it suffices to check for . The left side is ;
the right side is as well, because by the first sentence. Hence
.
(b) By (a), commutes with
. Applying (a)
once more, this time to with the commuting matrix , gives that
commutes
with . Put
. Then so is
Hermitian, and after
one commutation. It remains to see . The
matrices
and are
commuting Hermitian matrices, so by Corollary 12.7.2
(over ) or Corollary 12.7.3
(over ) there is
a unitary with
and , all .
Then , so by Proposition 13.1.2
(a). Hence and, by uniqueness in Theorem 13.2.1, .
Exercise
(C3: Why definiteness is needed)
- (a) Give a positive
semidefinite , not positive definite, together with
two different lower triangular satisfying . Which
hypothesis of Theorem 13.2.3
fails?
- (b) Prove that if
then
for every real , and hence that every positive semidefinite
matrix is a limit of positive definite ones in the
entrywise sense.
Solution.
(a) Take . Then
and are both lower triangular with . The
hypothesis that fails is that the diagonal entries of
be strictly
positive: here, which is exactly the first pivot
vanishing. Uniqueness in Theorem 13.2.3 is not
available without it.
(b) is Hermitian,
and for ,
so . Each entry of differs from the corresponding entry of
by or by , so letting decrease to recovers entry by entry. This
is the standard device for extending a statement from
positive definite to positive semidefinite matrices
whenever the statement survives taking limits; Theorem 13.1.4 already
used it in the form .