Section 1 inverted block triangular matrices, and
Section 2 cleared blocks without changing the rank. A
general block matrix has no zero block to
help, but when one diagonal block is invertible, a
single step of block elimination creates one. What is
left in the opposite corner is a new matrix, the Schur
complement, and it carries everything that the
invertible block does not: the determinant, the rank and
the inverse of the whole matrix can all be read off from
the block and its complement. This section introduces
it, derives these formulas, uses the two complements of
one matrix to prove the Sherman–Morrison–Woodbury
formula, and ends with the determinant of a block matrix
whose lower blocks commute, over every field.
Eliminating
a block
Suppose we must solve a linear system whose unknowns
come in two groups, and : with invertible. Do what we would do for two
equations in two numbers: solve the first equation for
, and substitute.
The first equation gives . Substituting into the
second, The unknown has disappeared, and
solves a smaller
system whose matrix is . Once is known, .
So the big system is solvable for every right-hand side
exactly when the small matrix allows
it, and this matrix will keep appearing.
For we
have met it before: is the determinant divided by the
pivot , which is
what Gaussian elimination leaves in the corner after
clearing the entry .
The Schur complement of an invertible block is
what remains in the opposite corner after that block has
been used to eliminate its row and column.
Definition
8.3.1 (Schur Complement)
Let be a block matrix with , ,
and , where .
- (a) If is
invertible, the Schur
complement of in
is
- (b) Symmetrically,
if with
invertible, ,
and , the Schur complement
of in is .
In words, clause by clause. The block whose
complement we take must be square and
invertible, since its inverse appears in the
formula; the other blocks may be rectangular. The
complement has the size of the opposite
corner: has the shape of
, and has the shape of
. In the factors
come in the only order the sizes allow: is , is , is . A way to
remember it: go from the corner to along its row (), invert, and come
back along its column ().
Well-definedness. depends on and on the chosen
partition, which says which corner is . The inverse is unique (Theorem 0.9.7), so
there is no other choice to make.
Examples.
- Scalars. For with , . In particular .
- An identity corner. If , then . No
inversion is needed at all.
- Block triangular. If , then : nothing needs
to be eliminated.
- A example. For over , has , and , so . This complement is
the last pivot of Gaussian elimination on : subtracting row from row and row from row gives the rows
and , and adding the first of these to the
second gives .
Non-example by minimal change. For
, . Change the corner entry to : . The blocks , , and the partition are
unchanged, and is still
invertible, but is
not defined, because the clause “ is invertible” fails.
Here is
not defined either, since .
Why this definition. The formula is
read off from the elimination in the hook, so the
question is only about the name and the hypotheses.
“Complement” refers to position: sits in the corner
complementary to . The quotient notation
is suggested
by the first example, , and the determinant formula below shows that
this holds for blocks of every size. Invertibility of
cannot be
dropped, since is in the
formula; the price is that some invertible matrices,
like , have
no Schur complement for a given partition.
Warning. can be invertible
while is
not. For , neither corner is invertible, so
neither Schur complement exists for the partition . Before using a
formula below, check that the block you invert is
invertible. If it is not, try the other corner (), a different
partition, or first permute rows: . The same
issue appears in Gaussian elimination as a zero
pivot.
Quick check. Let with partition . Compute .
Solution. Here , , , . Then , so . These are exactly
the entries left in rows , after clearing column
with the pivot
.
The block
LDU factorization
The elimination of the hook, written with matrices,
factors into a
lower block triangular matrix, a block diagonal matrix
and an upper block triangular matrix. Everything else in
this section follows from this factorization.
Theorem
8.3.1 (Block LDU Factorization)
Let be
partitioned as in Definition 8.3.1.
- (a) If is
invertible, then
- (b) If is
invertible, then
Idea. The left factor in (a)
records the row operation “subtract times block
row from block
row ”, which turns
into and into . The right factor
records the column operation “subtract block column
times from block
column ”, which
turns into . Undoing both
operations gives the factorization. To prove it we need
not retrace the elimination: multiplying out is
enough.
Proof.
(a) Write . The sizes are conformable
throughout. By Theorem 8.1.1,
and then since and . By
associativity (Theorem 0.9.4) the
triple product equals .
(b) Write . By Theorem 8.1.1,
The outer factors are block triangular with identity
blocks on the diagonal. They are invertible, with
inverses obtained by changing the sign of the
off-diagonal block (Theorem 8.1.5), and
they have determinant . So, up to these
harmless factors, is
the block diagonal matrix when and are square.
Determinant, rank and invertibility cannot tell the
difference.
Determinant
and rank
The outer factors of Theorem 8.3.1 do
not change the determinant or the rank, so both can be
read off from the middle factor.
Theorem
8.3.2 (Schur Determinant Formula)
Let with , and .
- (a) If is invertible, then
.
- (b) If is invertible, then
.
Proof.
- (a) By Theorem 8.3.1 (a),
with and
.
Here because
is square, so
.
By Theorem 7.8.4, , , and . By Theorem 7.5.4,
- (b) The same
argument with Theorem 8.3.1 (b),
where because is square.
This is the correct replacement for the false rule
of Section 1: the determinant of is that of times that of the
complement. For it is . Chapter 7 promised
this, and it relies on Theorem 7.8.4 in
exactly the form proved there, with square diagonal
blocks.
Theorem
8.3.3 (Schur Rank Formula)
Let be
partitioned as in Definition 8.3.1.
If is
invertible, then Symmetrically, if is
invertible, then .
In words: an invertible block of size contributes exactly
to the rank, and
all the remaining rank sits in its complement. For
example, in Example (Rank of versus ) the
matrix has the
two complements and , and the theorem gives both expressions for
its rank at once.
Inverting a
block matrix
Since is invertible exactly when is, the
factorization also inverts : invert the three
factors and multiply them in the reverse order.
Proof.
- (a) By Theorem 8.3.3,
. So if and only if , and by Theorem 3.4.4 this
says that is
invertible if and only if is.
Suppose is
invertible. In Theorem 8.3.1 (a),
, where
and by Theorem 8.1.5, and
by Theorem 8.1.4 (c).
By Theorem 0.9.7 (3),
. By Theorem 8.1.1,
- (b) The equivalence
follows from the second statement of Theorem 8.3.3 in
the same way. By Theorem 8.3.1 (b),
, and whose product with is the
displayed matrix by Theorem 8.1.1.
Nobody should memorize these blocks. Remember instead
that is the
product of three easy inverses in reverse order, and
that the corner opposite in is the inverse of
the complement of .
Example
(A
Inverse through a Schur Complement)
Invert using Theorem 8.3.4, and
find .
Solution. The blocks are , , , .
Step 1: invert . , so by Theorem 0.9.8.
Step 2: the two “half” products.
Step 3: the complement and its inverse.
. Its determinant is , so is invertible by Theorem 8.3.4 (a),
and by Theorem 0.9.8. By Theorem 8.3.2,
.
Step 4: the blocks of . Using Step
2, and Hence Check one row: row of times column of is , and
times column is
.
All the work was with matrices, and only two of them had to
be inverted.
Chapter 7 proved the Matrix Determinant Lemma, (Theorem 7.8.5), by
bordering into a larger block matrix. There is a
matching statement about inverses: if we already know
and change
by a low-rank
term , the
new inverse should cost only a small inversion. The
trick is to find one block matrix that has in one corner and
as a
Schur complement, and then to compute its inverse
twice.
Theorem
8.3.5 (Sherman–Morrison–Woodbury
Formula)
Let ,
let
and
be invertible, and let and .
Put .
- (a) is
invertible if and only if is invertible.
- (b) In that case
- (c) .
Idea. Look for a block matrix whose
two Schur complements are and something involving . The complement of the
lower-right corner of is , which is when , that is,
. The
complement of the upper-left corner is then . Now Theorem 8.3.4
computes the upper-left block of in two ways: as
, and from the formula in terms of
and . Setting them equal
is the Woodbury formula. The determinant formula of the
previous subsection, used twice, gives (c).
Proof. Let , which is
invertible with by Theorem 0.9.7 (2) and
(5), and let . By Definition 8.3.1,
(a) By Theorem 8.3.4 (a)
and (b), is
invertible if and only if is, and if and only
if
is. Since is
invertible exactly when is (Theorem 0.9.7 (5)),
this proves (a).
(b) Suppose is invertible, so
is invertible,
and . The upper-left block of is by Theorem 8.3.4 (b).
By Theorem 8.3.4 (a),
applied to ,
whose blocks are , and with , the same block is The two expressions are the same block of the
same matrix, so they are equal.
(c) By Theorem 8.3.2 (a)
and (b), .
Multiplying a matrix by multiplies each of its
rows by , so by Theorem 7.5.1
and ,
using Corollary 7.5.6.
Hence .
Multiplying both sides by gives
(c).
The formula is useful when is much smaller than
and is already known
or easy (diagonal, say): the only new inversion is of
the
matrix . The most
common case is a rank-one update, and .
Corollary
8.3.6 (Sherman–Morrison Formula)
Let be invertible and . Then
is
invertible if and only if , and in that case Moreover .
Proof. Apply Theorem 8.3.5 with
, , and . Then is a matrix, invertible exactly when its
entry is non-zero, with inverse the reciprocal.
Multiplying by a matrix is multiplying by its entry, which
gives the displayed formula; and is the entry
itself.
For example, over let , so
, and
. For
, ,
and
. So has
determinant , and which agrees with Theorem 0.9.8. For
instead, , and indeed is not
invertible.
With ,
the determinant statement is the Matrix Determinant
Lemma of Chapter 7, now obtained as a special case of a
formula about general low-rank updates, and it matches
Exercise (C3: Rank-one updates of an invertible matrix).
Commuting
blocks
Section 1 warned that in general. With the Schur complement we
can see what goes wrong and what extra hypothesis
repairs it. Take all four blocks in and suppose is invertible. By Theorem 8.3.2 (b),
using Theorem 7.5.4. If
and commute, then , and the right side is . So
commuting is exactly what lets cancel. The real
question is how to remove the hypothesis that is invertible, which
is not needed for the conclusion to make sense.
Over one
could perturb: is invertible for all but finitely many
, both sides are
polynomials in ,
and polynomials that agree at infinitely many points are
equal. Over a finite field such as there may be no
invertible perturbation at all. We use instead a
perturbation by an indeterminate:
replace by , a matrix with
entries in .
Its determinant is a monic polynomial, hence not the
zero polynomial, and that is all the cancellation needs.
First we record that evaluating polynomial entries
commutes with matrix operations.
For with entries in and , write for
the matrix over
obtained by evaluating every entry at . A matrix over is a matrix over with constant
entries, and then .
Lemma
8.3.7 (Evaluating a Matrix of
Polynomials)
Let , and
let be
matrices with entries in of sizes for which
the operations below are defined. Then , , and, for square
, .
Proof. By Theorem 0.8.5,
evaluation at
sends sums of polynomials to sums, products to products,
and constants to themselves. The -entry of is and
that of
is , so evaluating gives the
corresponding entries of and
.
The determinant is the Leibniz sum of Definition 7.4.1,
computed in ,
and evaluating it term by term gives the Leibniz sum for
. This is the
argument of Lemma 7.10.1.
Theorem
8.3.8 (Determinant with Commuting
Blocks)
Let and
over any field . If , then
Idea. ① Work over the commutative
ring ,
replacing by
,
which still commutes with . ② Multiply on the right by
: the lower-left
block becomes and the upper-left block becomes
.
This is the Schur computation above with cleared from the
denominators. ③ Take determinants: . ④ Cancel , which is legal
because it is a non-zero polynomial and has no zero
divisors. ⑤ Set . Each step uses only determinant facts that
Chapter 7 proved over commutative rings.
Proof. Regard as
matrices over
with constant entries, and let . The
proofs of Theorem 0.9.4 use only
the ring axioms, so they hold for matrices over ; in particular using the hypothesis . Let both in . By Theorem 8.1.1,
which holds over by the remark
following it, By the remarks in Chapter 7 §5 and §8, Theorem 7.5.4 and Theorem 7.8.4 hold
over the commutative ring . Hence , with , and . So, in , Now , so is the characteristic polynomial
of
(Definition 7.10.1).
By Theorem 7.10.2 it is
monic of degree ,
so
in . By Corollary 0.8.4 (2),
we may cancel it from : Finally evaluate both sides at . By Lemma 8.3.7, , since ; and , so . Hence
.
The cancellation in is the heart of the
argument, so it is worth being precise about why it is
legal. Over we
cannot divide by when it is . Over we still cannot
divide, since usually has no inverse, but we do not need
to: cancellation only needs “ and imply ”, and this holds in
because a
product of non-zero polynomials is non-zero (Corollary 0.8.4). The
perturbation
makes
non-zero as a polynomial even when
every value with is zero. For example, over , let . Then and , because in ; no scalar shift
makes
invertible. But is not the zero
polynomial.
For example, over , let , , and , which
commutes with .
Here is not
invertible, so the Schur route is closed. The theorem
gives .
Warning. Which blocks
commute decides which product appears. The
hypothesis gives . If instead and commute, the correct
formula is (Exercise (C3: When and commute)), with
and in the other order.
The two can differ: for the blocks , , , of the
warning in Section 1, commutes with but does not commute with
; indeed , while .
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define the Schur
complement ,
including the hypothesis on and the size of .
- (b) State the block
LDU factorization of in terms of and .
- (c) True or false:
if is
invertible and
is square, then
is invertible. Justify your answer.
- (d) If is invertible and
is invertible,
which block of is ?
- (e) True or false:
for all with , , even if is not invertible and
. Justify
your answer.
Solution.
(a) For with
invertible, ,
, : , the
size of (Definition 8.3.1).
(b) (Theorem 8.3.1).
(c) False. is invertible, but is not.
(d) The
lower-right block, in the position of (Theorem 8.3.4
(a)).
(e) True. Theorem 8.3.8 holds
over every field and needs no invertibility; its proof
cancels the non-zero polynomial in .
B. Practice
Exercise
(B1: A Schur complement, a determinant and a
rank)
Let Compute for the upper-left
block . Hence
find and
, and
decide whether
is invertible.
Solution. has , so (Theorem 0.9.8). With
, , : By Theorem 8.3.2,
. By Theorem 8.3.3,
, since is non-zero with
equal rows. So
is not invertible (Theorem 7.5.3
(d)).
Exercise
(B2: A rank-one update)
Let , and . Use Corollary 8.3.6 to
find and , and check one entry.
Solution. , so and . Then , so . By Corollary 8.3.6,
is
invertible, , and Check: ,
and its row times
column of the
answer is , times column is .
Exercise
(B3: Identity corners)
Let , and .
- (a) Show that is invertible if and
only if is, and write down in terms of .
- (b) Deduce the
inverse of .
- (c) For and over , compute .
Solution.
(a) The block
is invertible
and . By Theorem 8.3.4 (a),
is invertible if
and only if is, and then, with ,
(b) With ,
and ,
so the inverse is , in agreement with
Theorem 8.1.5.
(c) , so
and . Then , and , so Check: row of times column of is , and times column is .
C. Going deeper
Exercise
(C1: Sylvester’s determinant identity)
Let and with .
- (a) Compute both
Schur complements of the identity blocks in , and deduce
- (b) Deduce that for
every non-zero , .
- (c) Deduce Theorem 7.8.5 from
(a).
Solution.
(a) Both identity
blocks are invertible. By Definition 8.3.1,
By Theorem 8.3.2 (a)
and (b), and . Hence .
(b) Let . Then
and . Multiplying an matrix by
multiplies each
of its rows by
, so it multiplies
the determinant by (Theorem 7.5.1). By
(a) applied to and ,
(c) Let , and apply
(a) with the sizes there replaced by : and . Then , because the determinant
of a
matrix is its entry.
Exercise
(C2: Pivots as Schur complements)
Let , and for let be its leading
principal submatrix (the top-left corner), as in
Exercise (C1: Leading principal submatrices).
- (a) Suppose is invertible,
where , and write . Show that is the scalar , and that .
- (b) Suppose are all
invertible, and put . Prove that for every , and that every is non-zero.
- (c) Keep the
hypothesis of (b). In the proof of Exercise (C1: Leading principal submatrices)
(c), the last pivot is with and . Show that . Deduce
that the diagonal entries of in the LU
factorization are , with .
- (d) Check (c) for
over .
Solution.
(a) With the
partition ,
Definition 8.3.1
gives the matrix , which we identify with its
entry. By Theorem 8.3.2 (a),
.
(b) By induction
on . For , .
If , then by (a), which applies since is invertible,
. Since is invertible, (Theorem 7.5.2), so no
factor is zero
(Theorem 0.7.1
(d)).
(c)
with both factors invertible, so (Theorem 0.9.7 (3)) and
. Hence by (a). The same
construction applied to (whose LU factors
are the top-left corners of , by Exercise (C1: Leading principal submatrices)
(a) and Theorem 3.6.5)
shows
for every . By (a)
and (b), , with .
(d) , ,
and expanding, . The predicted pivots are , , . Elimination
gives and : subtract and times row to get rows and , then times the new row to get . The diagonal
of is , as
predicted.
Exercise
(C3: When and
commute)
Let and
with , and .
- (a) Assume is invertible. Use Theorem 8.3.2 to
prove .
- (b) Remove the
assumption that
is invertible, over any field, by adapting the proof of
Theorem 8.3.8 with
.
- (c) For , , , in , check that
, and
compare ,
and .
Hint for (b): multiply on the left by a
block matrix that clears the lower-left block.
Solution.
(a) By Theorem 8.3.2 (a)
and Theorem 7.5.4, Since , , so .
(b) Let over
. Then . Let and . By Theorem 8.1.1 over
, By Theorem 7.5.4 and Theorem 7.8.4 over
(Chapter 7 §5
and §8), , using . As in the proof of Theorem 8.3.8,
is monic, hence non-zero, and Corollary 0.8.4 (2)
gives . Evaluating at with Lemma 8.3.7 gives
.
(c) , since
. As
computed in Section 1, . Also , with determinant , in agreement with
(b). But , with determinant . So with the product
must be taken as , not ; here , so Theorem 8.3.8 does
not apply.