We can now compute determinants by elimination and we
know what they decide. This section adds a third view: a
determinant of size is a combination of
determinants of size . This recursive formula, the Laplace
expansion, is rarely the fastest way to compute, but it
has two important consequences. It gives an explicit
formula for the inverse of a matrix, through the
adjugate, and an explicit formula for the solution of a
square linear system, Cramer’s rule. Both rest on one
identity built from the entries alone, with no division,
and that identity holds for matrices of polynomials too,
which is what later chapters need.
Minors and
cofactors
Group the six terms of a determinant
(from the examples after Definition 7.4.1) by
the entry they take from column : Each bracket is a determinant.
The bracket beside is the determinant
of what remains of after deleting row
and column ; the bracket beside
is what
remains after deleting row and column ; and similarly for
. The signs
alternate. These smaller determinants recur constantly,
so they get names.
A minor is the determinant of what is left after
crossing out one row and one column; a cofactor is that
minor with a checkerboard sign.
Definition
7.6.1 (Minor and cofactor)
Let ,
, and
. The -minor of
is The -cofactor of is .
The rows and columns that remain keep their original
order. The sign depends only
on the position, and follows a checkerboard starting
with in the
top-left corner: When the matrix matters we write and .
Examples. For , the minors are determinants:
, , , , and the
cofactors are , , , . For the matrix of the previous sections, the
cofactors along column are and ,
which is as
computed before. For the identity , , and for , because deleting row and a different column
leaves a matrix
with a zero column.
Nonexample by minimal change. A
minor and a cofactor differ only by a sign, and
forgetting the sign is the commonest slip. For the matrix above,
but
; using
minors throughout would turn into , which is the permanent, not the
determinant.
The Laplace
expansion
The
grouping above is a special case of a general identity,
valid along every row and
every column.
Theorem
7.6.1 (Laplace Expansion)
Let and
, with
cofactors .
- (a) (Along
column )
For each ,
- (b) (Along
row ) For
each ,
Idea. The plan for (a):
① Write column
as and use linearity in column
. This leaves
determinants, the
-th with column
replaced by .
② In such a determinant, move the lone to the top-left corner.
To keep the other rows and columns in their original
order, use adjacent swaps: column swaps and
row swaps,
costing .
③ A matrix whose first column is has the same
determinant as its lower-right block:
only permutations fixing contribute to the
Leibniz formula. After ②, that block is exactly the
matrix defining .
Part (b) is part (a) for the transpose.
Quick check. In step ② of the Idea,
why not move column to the front with the
single swap of columns and ?
Solution. A single swap costs only
one factor , but
it puts the old first column in position , so the lower-right
block is no longer the matrix defining : its columns are
out of order. For , putting that column back in place within the
block takes
further adjacent swaps, and the total sign is again
. Adjacent swaps keep the count
honest from the start.
The expansion is most useful along a row or column
with many zeros, since each zero entry kills its term
without computing the minor.
Example
(A
Expansion)
Compute
for by expanding along a suitable row.
Solution. Row has two zeros. Its
signs in the checkerboard are . By Theorem 7.6.1 (b)
along row , Deleting row and column , and then row and column , Expand along its first
row, which has a zero: Expand along its third
row , with
signs :
Hence .
Warning. The sign belongs
to the position, not to the place in the row.
Along row the
signs start with .
Using the first-row pattern in the example
above would give , the wrong sign. Always read
the sign as .
Expansion alone is slow: expanding fully down to
determinants reproduces all Leibniz terms. In
practice one first creates zeros with replacements,
which do not change the determinant, and then expands
along the line of zeros.
The
adjugate
In Chapter 0 we inverted a matrix by
multiplying it by (Theorem 0.9.8).
Compare with the cofactors listed after Definition 7.6.1:
, , , . The matrix of
Chapter 0 is the matrix of cofactors,
transposed. That recurring matrix
deserves a name in every size.
The adjugate is the transposed matrix of
cofactors.
Definition
7.6.2 (Adjugate)
Let and
. The
adjugate of is the matrix with
entries that is, the transpose of the
matrix of
cofactors. For we set .
In words: the entry in row , column of is the cofactor
from row , column
of . The adjugate is
defined for every square matrix,
invertible or not.
Examples. For , . For , the cofactors
computed above give . For the nine cofactors, row by row, are , , ; , , ; , , . Transposing,
and , by
expansion along row .
Nonexample by minimal change. Skip
the transpose. The cofactor matrix has the same entries in other
places, and
times it is , which is not a multiple
of . The
transpose is what lines up row of with the cofactors
of row .
The product is no accident. Its diagonal
entries are row expansions of . Its off-diagonal
entries are expansions too, of a matrix that looks like
but has a
repeated row.
Theorem
7.6.2 (The Adjugate Identity)
For every ,
Idea. The -entry of is : the
entries of row
against the cofactors of row . If , this is the
expansion of along row . If , build a
look-alike matrix : copy , but overwrite row
with row . The cofactors along
row never see row
, because
computing them deletes it, so has the same
cofactors along row as . Expanding along row
gives exactly
, and because two rows are equal.
Proof. For , , , and both
products are . Let .
The product . By Theorem 0.9.2 and Definition 7.6.2, its
-entry is
If ,
this is by
Theorem 7.6.1 (b)
along row .
Suppose ,
and let
be the matrix obtained from by replacing row with a copy of row
. Rows and of are equal, so
by Theorem 7.4.5.
Expanding along row by Theorem 7.6.1 (b),
Here . The minor is
computed from with row deleted, and outside
row the matrices
and agree; so . Hence .
Therefore .
The product . Its -entry is .
If , this is
by Theorem 7.6.1 (a)
along column . If
, let be with column replaced by a copy of
column . It has
two equal columns, so by Theorem 7.4.3.
Expanding along column , ,
since deleting column removes the only column
where and
differ.
Therefore . This proves the theorem.
Dividing by the determinant, when we may, gives the
inverse.
For this
is Theorem 0.9.8 again.
For the matrix
above, .
Warning. The adjugate
exists for singular matrices too. Nothing in Definition 7.6.2
needs . For , with , one computes
, and , as Theorem 7.6.2
predicts. So “ exists” says nothing about invertibility,
and the formula must never be used before
checking .
Quick check. What are for and , and for the zero
matrix in ,
? What is
for ?
Solution. Deleting row and column from leaves , of determinant
; deleting
row and a
different column leaves a zero column, of determinant
. So ; in particular for , since . For , by
definition, and indeed .
Cramer’s
rule
For an invertible , the system has
exactly one solution. The adjugate expresses it in
closed form, and the closed form has a direct proof by
linearity that shows where it comes from. For ,
write for the
matrix obtained from by replacing column
with .
Theorem
7.6.4 (Cramer’s Rule)
Let be invertible and . The
unique solution of is
given by
Idea. If ,
then . Put this
combination into column and expand by
linearity. Every term except the -th has the column twice, so it
vanishes, and what remains is .
Proof. By Theorem 0.9.7 (7),
has exactly one solution . By Theorem 0.9.3, , where is the -th column of . Since is linear in column
(Theorem 7.4.3), For , the matrix has the
column
in positions and
, so its
determinant is .
For , .
Hence . Since is invertible, by Theorem 7.5.2, and
dividing gives the formula.
Alternatively, by Corollary 7.6.3, and
the -th entry of
is , which is the expansion of along
column (Theorem 7.6.1 (a));
the cofactors along column of and of
agree, because
computing them deletes column .
For example, the system , has
coefficient matrix of determinant , so and indeed and .
Warning. Cramer’s rule is a
theoretical tool, not an algorithm. It needs
determinants
of size .
Evaluated by the Leibniz formula this is about products; even
with each determinant computed by elimination it costs
about
operations, while Gaussian elimination solves the system
once in about . For , term-by-term
Leibniz evaluation at multiplications per
second would take tens of thousands of years. Use
Cramer’s rule to understand how the
solution depends on and , and elimination
to find it.
Integer
matrices
The adjugate formula shows that each entry of is a polynomial
in the entries of divided by the single
polynomial .
In particular, the entries of change
continuously with those of over , as long as . Here is an
arithmetic consequence. A matrix with integer entries
lies in ,
and we may ask when its inverse again has integer
entries.
Corollary
7.6.5 (Integer Matrices with Integer
Inverses)
Let have all entries in .
- (a) , and
has all
entries in .
- (b) is invertible and
has all
entries in if
and only if or .
Proof.
(a) The Leibniz
formula (Definition 7.4.1) is
a sum of products of entries with signs , so the determinant
of a matrix with integer entries is an integer. Each
cofactor is
such a determinant, so has integer entries (for , ).
(b) If , then
is invertible
and by Corollary 7.6.3,
which has integer entries by (a). Suppose
has integer
entries. By Theorem 7.5.4, , and both factors are integers by (a). The
only integers whose product is are and , so .
For example, has determinant and inverse , while has determinant and inverse . In the language of the
remark after Theorem 7.6.2, part
(b) says that a matrix over the ring is invertible over
exactly when
its determinant is invertible in .
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define the -minor, the -cofactor, and the
adjugate of , .
- (b) What are the
signs of
the cofactors in positions and ?
- (c) True or false:
is defined
only when is
invertible. Justify your answer.
- (d) True or false:
Cramer’s rule (Theorem 7.6.4) gives
the solutions of every square linear system .
Justify your answer.
- (e) In the proof of
Theorem 7.6.2, which
matrix is expanded to show that
for , and
why is its determinant ?
- (f) True or false:
if has integer
entries and , then has integer
entries. Justify your answer.
Solution.
- (a) is the determinant
of the matrix obtained by deleting row and column ; ; is the matrix
with -entry
(Definition 7.6.1, Definition 7.6.2).
- (b) and .
- (c) False. It is
defined for every square matrix; for instance , although the matrix
is singular.
- (d) False. It
requires . For and , the
system has infinitely many solutions, and the formula
would divide by .
- (e) The matrix obtained from
by replacing row
with row , expanded along row
. It has two equal
rows, and , so its determinant is
.
- (f) False. By Corollary 7.6.5, an
integer inverse forces . For instance has inverse
.
B. Practice
Exercise
(B1: Adjugate and inverse)
Let . Compute all
nine cofactors, and . Verify that , and hence write down
.
Solution. The cofactors are Transposing the cofactor matrix (Definition 7.6.2),
Expanding along row (Theorem 7.6.1), . Row of against the columns of
gives , , ; row gives , , ; row gives , , . So . By
Corollary 7.6.3,
Exercise
(B2: Cramer’s rule)
Use Cramer’s rule to solve over .
Check your answer by substitution.
Solution. The coefficient matrix is
the matrix of Exercise (B1: Adjugate and inverse),
with , and . Expanding each along its
first row, By Theorem 7.6.4, , , . Check:
,
, .
Exercise
(B3: Choosing the best line)
Compute
for expanding along the row or column that needs
the least work.
Solution. Column has a single nonzero
entry, ,
whose sign is . By Theorem 7.6.1 (a)
along column ,
, where expanding along the first row. Hence .
C. Going deeper
Exercise
(C1: The determinant of the adjugate)
Let and
.
Prove that .
Hint: treat and separately; in the second case, ask whether
can be
invertible.
Solution. Case 1: . By Theorem 7.6.2 and Theorem 7.5.4, ,
where the last step is Theorem 7.4.6.
Dividing by gives .
Case 2: . Then by Theorem 7.6.2.
Suppose, for a contradiction, that is invertible.
Then . But every minor of the zero
matrix is the determinant of a zero matrix of size , which is
, so , which is
not invertible. This contradiction shows that is not
invertible, so by Theorem 7.5.2, since
.
Exercise
(C2: The rank of the adjugate)
Let and
.
Prove that
- (a) Prove the case
.
- (b) Suppose . Prove
that every minor is .
- (c) Suppose . Prove
that every column of lies in , and deduce
.
- (d) Suppose . Prove
that some minor is nonzero, and
conclude.
Hint for (d): choose independent columns
of , then independent rows of
the resulting matrix.
Solution.
- (a) If , then is invertible by Theorem 7.5.3, so
and
by Corollary 7.6.3. This
is invertible, since is and (Theorem 0.9.7), so
.
- (b) Fix , and let be with row and column deleted. The columns of other than column
lie in , of dimension
,
so they are linearly dependent by Theorem 1.6.3: with the not all zero.
Deleting the -th
entry of every vector preserves this relation, so the
columns of
are dependent. By Theorem 3.4.4,
is not
invertible, and by Theorem 7.5.2. Hence
and
.
- (c) Since , by Theorem 7.5.3, so
by
Theorem 7.6.2. By Theorem 0.9.2, kills each column of
, so . By Theorem 3.5.7,
. Hence .
- (d) By Theorem 3.5.2, the
pivot columns of
form a basis of ; there are of them, so exactly
one column index
is not a pivot column. Let consist of the other columns. They are
independent, so , and by Theorem 3.5.5. The
rows of span , so by Theorem 1.5.4 some
of them are
independent; since independent vectors in a space of dimension
form a basis,
sifting leaves out exactly one row, say row . Deleting row from gives an matrix
with
independent rows, so by Theorem 7.5.3. But
is with row and column deleted, so , hence and . With (c),
.
Exercise
(C3: An adjugate over )
Work in , using the
remarks after Theorem 7.6.1 and Theorem 7.6.2.
- (a) For , compute and , and
verify by multiplying
out.
- (b) For a general
, show
that and .
- (c) Deduce from (b),
without using Theorem 7.6.2 over
, that , and
check that .
Solution.
- (a) , so
, and by Definition 7.6.2,
. The product has entries , , and , so it is .
- (b) , so
. Also
.
- (c) Since commutes with every
matrix, expanding with (b) gives where is the computation of Theorem 0.9.8 over
. Finally , which is .