The previous section defined the determinant by the
Leibniz formula and proved it is the only normalized
alternating form. The formula settles every theoretical
question in principle, but with terms it is useless
for computing, and it hides the two facts that make
determinants worth having. The first is that exactly
when is
invertible. The second is that . This section proves both. Along the way we
get a fast algorithm, and we extend the determinant from
matrices to operators.
Row
operations
Row reduction is the workhorse of Chapter 3, and the
three rules of a determinant say precisely how it reacts
to each elementary row operation. Everything follows
from Theorem 7.4.5, which
lets us treat
as a function of the rows.
Theorem
7.5.1 (Row Operations and the
Determinant)
Let and let be obtained from by one operation.
- (a)
(Swap) If is obtained by
with , then
.
- (b)
(Scale) If is obtained by with , then .
- (c)
(Replace) If is obtained by with
and , then .
- (d) The same three
statements hold for the corresponding operations on
columns.
- (e) For the
elementary matrices of Definition 3.4.1,
and for every elementary matrix
.
Proof. By Theorem 7.4.5, is an alternating
-linear function
of the rows of . We write for it in this proof.
(b) This is
linearity in row .
(c) By linearity
in row , where the displayed arguments sit in positions
and . The last determinant
has two equal rows, so it is . Hence .
(d) This is the
swap rule of Theorem 7.2.1,
applied to the rows.
(e) By Theorem 7.4.3, is an alternating
-linear function
of the columns, and the arguments for (a), (b), (c)
apply word for word.
(f) The matrices
, , and are
obtained from
by a swap, a scaling, and a replacement respectively. By
(a), (b), (c), and , their determinants are , , and . Now let be
elementary. By Theorem 3.4.1,
. By
(a), (b), or (c), is times , , or respectively, and this
factor is .
Hence . This proves the theorem.
Read part (e) as a bookkeeping rule. A swap flips the
sign, a scaling by multiplies by , and a replacement
changes nothing. Replacement, the operation used most in
elimination, is free.
Warning. A combined move is
not a replacement. The move looks
harmless but multiplies the determinant by : it is the scaling
followed by the replacement . For
, with , it produces
, whose determinant is
. Keep
replacements in the form “row plus a multiple of
another row”, with coefficient on row .
Since elimination brings any square matrix to an
upper triangular one, and triangular determinants are
products of diagonal entries (Theorem 7.4.6), we
have an algorithm.
Example
(A
Determinant by Elimination)
Compute
for
Solution. We record each operation
and its effect, using Theorem 7.5.1.
Step 1. The -entry is , so swap: .
This multiplies the determinant by :
Step 2. Clear column with the replacements
and , which change nothing. Row has a common factor
; pulling it out
is linearity in row :
Step 3. Clear column : and
.
Then clear column : . None
of these changes the determinant:
Step 4. The last matrix is upper
triangular, so by Theorem 7.4.6 its
determinant is . Hence .
Elimination costs roughly arithmetic
operations, and reading off the triangular determinant
takes only
more multiplications, against
multiplications for the Leibniz formula (Exercise (C2: Counting the cost)).
For that is
a few thousand operations against about . Every
practical determinant computation is some form of
elimination.
Determinant
and invertibility
The same bookkeeping answers the invertibility
question. Row reduction multiplies the determinant by
nonzero factors only, so it cannot turn a nonzero
determinant into zero or back. And the end of the
reduction is either or a matrix with a
zero row.
Theorem
7.5.2 (Invertible if and only if Non-Zero
Determinant)
A matrix is invertible if and only if .
Proof. Let be the reduced row
echelon form of
(Theorem 3.2.3, Theorem 3.3.4). By
Definition 3.2.2
and Theorem 3.4.1,
there are elementary matrices
(possibly )
with . Applying Theorem 7.5.1 (e)
times, Each is , , or some , since a scaling
operation requires . A product of nonzero elements of a field is
nonzero (Theorem 0.7.1), so
if and
only if .
By Lemma 3.4.3, either
, and then
;
or the last row of is zero. In the second
case, scaling that row by leaves unchanged, so by Theorem 7.5.1 (b).
Hence
if and only if , which by Theorem 3.4.4 holds
if and only if
is invertible.
This is the promised addition to the list of
equivalent conditions. We collect it with the conditions
from Chapter 2 about the map (Theorem 2.5.7), and
with two conditions about rows that the determinant
makes easy.
Theorem
7.5.3 (Invertible Matrix Theorem, with
Determinants)
Let and , . The following are equivalent, and
each is equivalent to each of the eight conditions of Theorem 3.4.4.
- (a) is invertible.
- (b) is injective.
- (c) is
surjective.
- (d) .
- (e) is invertible.
- (f) The rows of
are linearly
independent.
- (g) .
Proof. Item (a) is item (a) of Theorem 3.4.4, so
it suffices to connect each new item with that
theorem.
(a)
(g). This is Theorem 7.5.2.
(a)
(b). By Theorem 2.5.7 ((b)
(c)) with ,
is injective
if and only if is . That is
item (b) of Theorem 3.4.4.
(b)
(c). This is Theorem 2.5.7 ((b)
(d)), since is
finite-dimensional.
(c)
(d). By Theorem 0.9.3, is the set of
combinations of the columns of , that is, . So is surjective if
and only if . Since is a subspace of
, this holds if
and only if (Definition 3.5.4,
Theorem 1.6.8).
(a)
(e). By Theorem 7.4.5, .
Applying (a) (g) to
and to , both “ invertible” and “ invertible” are
equivalent to .
(e)
(f). Let be the rows of . The columns of are . By Theorem 0.9.5, if and only if , so the rows of
are independent
exactly when the columns of are. By Theorem 3.4.4 ((a)
(f)) applied to , this holds exactly
when is
invertible. This proves the theorem.
The determinant is now one more item on the menu, and
for the right problems it is the best one. For a
concrete matrix with a parameter, one polynomial in the
parameter decides invertibility at once. For an abstract
matrix, such as when , the determinant is usually hopeless, and
the kernel is the item to try first.
Quick check. For which is invertible? Over , for which ?
Solution. The determinant is .
Over the matrix
is invertible exactly for . Over , , so the determinant
is , which
is for and for ; the matrix is
invertible only for .
Multiplicativity
Now the second fact. A natural first attempt is to
multiply out the Leibniz formula for , whose entries are
sums, and regroup. That is legitimate, but the
bookkeeping is horrible. The uniqueness theorem does the
work instead: we exhibit as an alternating form in
the columns of ,
and then it has no choice.
Theorem
7.5.4 (Multiplicativity of the
Determinant)
For all ,
Idea. Fix . The -th column of is , so is
viewed
as a function of the columns of . It inherits linearity
in each
from and from
matrix multiplication, and equal columns
give equal columns . So is an alternating form,
hence a multiple of , and the multiple is
.
Proof. Fix , and define
by By Theorem 0.9.2
(columns), has
columns when has columns , so .
is -linear. Fix and all with . The map is linear by Theorem 0.9.4, and
is linear in
its -th argument
by Theorem 7.4.3. A
composite of linear maps is linear, so is linear in .
is
alternating. If
with , then
, so since is alternating.
By Corollary 7.4.4,
. Finally
is the
-th column of
(Theorem 0.9.3), so
. Hence .
Alternatively, the building blocks of Chapter 3 give
a proof. If is
invertible, then with elementary (Theorem 3.4.4 (d)),
and peeling off one factor at a time with Theorem 7.5.1 (e)
gives ; the case of the same
computation shows . If is not invertible,
neither is :
otherwise for some , so and would be invertible by
Theorem 3.4.5. Then
both sides are by
Theorem 7.5.2. This
route leans on row reduction, which divides, so unlike
the first proof it needs a field.
For reference, here are the two identities used most
often, now both proved.
Theorem
7.5.5 (Properties of Determinants)
Let . Then:
- ;
- .
The first consequences are immediate.
Corollary
7.5.6 (Determinant of the Inverse)
If
is invertible, then and .
Proof. By Theorem 7.5.4, . Hence , and is the
inverse of
in .
Warning. Multiplicativity
does not make
additive, and it does not make products
commute. For and , , yet
, since both equal . On the other hand, is not
determined by and at all: and have determinants
and ,
while and
also have
determinants
but .
Quick check. Let . Without multiplying
any matrices, find , , and .
The
determinant of an operator
In Chapter 2 the trace passed from matrices to
operators because similar matrices have the same trace
(Definition 4.5.2).
Multiplicativity gives the same for determinants.
Corollary
7.5.7 (Determinant Is a Similarity
Invariant)
If are similar, then .
Proof. Let with
invertible. By
Theorem 7.5.4 and Corollary 7.5.6,
where the middle step uses commutativity of
multiplication in .
The converse fails: and both have determinant
, but the only
matrix similar to is
itself.
By Theorem 4.2.4,
all matrices of one operator in the various bases are
similar to each other. So the corollary lets us
define:
Definition
7.5.1 (Determinant of an operator)
Let be a
finite-dimensional vector space over with , and let
. The
determinant of is where
is any basis of . For we set
.
Well-definedness. If and are bases of , then with
invertible, by Theorem 4.2.3 and
Theorem 4.2.4
(a). By Corollary 7.5.7 the
two determinants agree. The convention for is the
empty product, and it keeps the next theorem true in
that case.
Examples.
- Scalars. For and , in every basis, so by
Theorem 7.4.6.
- A reflection. on has standard matrix
, of determinant . In the basis its
matrix is (Example (The reflection in a mirror-adapted basis)),
again of determinant , as it must be.
- Differentiation. On with basis
,
the matrix of is
upper triangular with zero diagonal (Example (Differentiation on Cubic Polynomials)),
so .
The determinant of a map between
different spaces is not defined, even
when . A matrix exists,
but changing
alone multiplies it on the left by an arbitrary
invertible matrix, which can change its determinant to
any nonzero value. For with input basis and output basis
,
the matrix is , of determinant , not .
Theorem
7.5.8 (Properties of the Determinant of an
Operator)
Let be a
finite-dimensional vector space over and . Then
and is
invertible if and only if .
Proof. If , all
determinants are
and the only operator is , which is
invertible. Otherwise fix a basis of . By Theorem 4.1.2,
, so
by Theorem 7.5.4. Next
, of determinant . Finally, by Theorem 4.1.5
(b), is
invertible if and only if is,
which by Theorem 7.5.2 holds
if and only if .
So the determinant is a property of the operator, not
of the coordinates. Differentiation on is not
invertible because its determinant is , whichever basis we
compute in. In the section on orientation and volume we
will see what the number measures
geometrically.
The
determinant as a homomorphism
In Chapter 0 we met groups and homomorphisms, and
promised that the determinant would be one. The general
linear group is the group of
invertible matrices in under
multiplication, and is a group under multiplication
(Example (Groups)).
Theorem
7.5.9 (The Determinant Is a Group
Homomorphism)
Let . The
determinant restricts to a surjective
group homomorphism Its kernel is the special linear
group ,
which is therefore a subgroup of .
Proof. By Theorem 7.5.2, for , so maps into , and Theorem 7.5.4 says it
is a homomorphism (Definition 0.10.3).
For , the
matrix has determinant by Theorem 7.4.6, which
is nonzero, so it lies in ; hence is surjective. A
matrix with determinant is invertible by Theorem 7.5.2, so the
kernel is . It is a
subgroup by Theorem 0.10.3.
For example, and the elementary
matrices lie in , while , of determinant
, does not. Over
, the rotation
matrices have determinant and lie in . The sign
of the third section is the other
homomorphism promised in Chapter 0, and the two are
linked: (Exercise (B2: The determinant of )),
and (Lemma 3.4.7).
Which
proofs survive over a ring
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) State how each
of the three elementary row operations changes the
determinant.
- (b) True or false:
the move does not change the determinant. Justify
your answer.
- (c) True or false:
if have , then and are similar. Justify
your answer.
- (d) True or false:
for all .
Justify your answer.
- (e) Explain why
does not
depend on the basis used to compute it.
- (f) Is
a group homomorphism? Explain.
Solution.
- (a) By Theorem 7.5.1: a swap
multiplies it by , scaling a row by
multiplies it by
, and adding a
multiple of one row to a different row leaves it
unchanged.
- (b) False. The move
is
followed by , so it multiplies the determinant by . For it gives , of determinant .
- (c) False. and both have determinant
, but for
every invertible , so is similar only to
itself.
- (d) True. Both equal
by
Theorem 7.5.4, since
multiplication in
is commutative.
- (e) Matrices of
in two bases are
similar (Theorem 4.2.3),
and similar matrices have equal determinants (Corollary 7.5.7).
- (f) No: is not a group
under multiplication, since the zero matrix has no
inverse. The restriction is a homomorphism (Theorem 7.5.9).
B. Practice
Exercise
(B1: Determinants by elimination)
Compute the determinants of the following real
matrices by row reduction, recording the effect of each
operation.
Solution. For : the replacements
and give rows , , , . Then and give and . Pulling
the factor out of
row leaves , and gives
. None
of the replacements changes the determinant (Theorem 7.5.1), so
by Theorem 7.4.6.
For : , , give
rows ,
, , , without
changing the determinant. The -entry is , so swap ,
which multiplies the determinant by . The result is upper
triangular with diagonal , so
Exercise
(B2: A parameter)
Let
and . Find as a factored
polynomial in .
Hence determine for which the matrix is invertible.
Solution. The replacements and
do not change the determinant and make row equal to . By
linearity in row
(this holds for every value of , including ), where the second step uses , , and
the last uses Theorem 7.4.6. By Theorem 7.5.2, is invertible if and
only if and
.
Exercise
(B3: The shift operator)
Let , . Find
. Hence show
that is
invertible.
Solution. In the basis ,
, , ,
and . So which is upper triangular with ones on the
diagonal. By Definition 7.5.1 and
Theorem 7.4.6, . Since , is invertible by Theorem 7.5.8. (Its
inverse is .)
C. Going deeper
Exercise
(C1: Orthogonal-type matrices)
- (a) Let satisfy
.
Prove that or .
- (b) Show that both
values occur, for every .
- (c) Over , what can be if ?
Solution.
- (a) By Theorem 7.5.5, . A real number
with square is
or .
- (b) and
. For
, and by Theorem 7.4.6.
- (c) The same
computation gives . In , and
, so . This agrees
with (a), since in .
Exercise
(C2: Left multiplication on matrices)
Let , and let , . This is a linear operator on a space of
dimension .
Prove that
- (a) Order the matrix
units column by column, Show that
consists of
copies of placed
along the diagonal, with zeros elsewhere.
- (b) Show that ,
and prove the formula when is an elementary
matrix.
- (c) Prove the
formula for invertible , and then for
noninvertible .
Hint: for a swap matrix, identify
as a permutation matrix and use Exercise (B2: The determinant of ).
Solution.
- (a) By Theorem 0.9.2, the
-th column of
is , the -th column of , and the other columns
are zero. So . In , the coordinates of
this vector are zero outside the -th block of positions, and inside
that block they are the -th column of . Hence the columns of
belonging to the -th block are those of
, placed in the
rows of the -th
block:
has copies of
along the
diagonal.
- (b) by associativity. Now let
be elementary.
If with , then by (a) is
triangular (upper if , lower if ) with all diagonal entries , so by Theorem 7.4.6 and Theorem 7.5.1 (e). If
, then
is
diagonal with
appearing times
and elsewhere, so
. If , then
has exactly one
in each row and column, so it is a permutation matrix
(Definition 3.4.2),
and
exchanges the positions of and for each : is a product of
disjoint
transpositions. By Exercise (B2: The determinant of ),
Theorem 7.3.1, and Corollary 7.3.2,
.
- (c) If is invertible, then
with elementary (Theorem 3.4.4 (d)).
By (b) and Theorem 7.5.8, where the last step is Theorem 7.5.4. If
is not
invertible, there is
with (Theorem 3.4.4 (b)).
The matrix is nonzero and
, so is not injective,
hence not invertible, and by Theorem 7.5.8. Also
by Theorem 7.5.2, so
as
.
Exercise
(C3: Nonsquare factors)
- (a) Give and with .
- (b) Let , ,
and . Prove that .
- (c) Explain why (a)
does not contradict Theorem 7.5.4.
Solution.
- (a) Let and . Then , of
determinant , and
, of
determinant .
- (b) By Theorem 3.5.9,
, since is spanned by
columns. So , and
the
matrix is not
invertible by Theorem 7.5.3 (d).
Hence by Theorem 7.5.2.
- (c) Theorem 7.5.4
concerns two square matrices of the
same size, and then .
Here and are not square, and are not defined,
and , have different
sizes.