You have probably met matrices as tables of numbers
that are multiplied by a strange rule. This section
rebuilds them over an arbitrary field and answers the
questions a computational course leaves open. Why is the
product defined the way it is? Which rules of school
algebra survive, and which fail? What does it mean to
divide by a matrix? Everything later in the book, from
Gaussian elimination in Chapter 3 to the matrix of a
linear map in Chapter 4, rests on the answers.
Throughout, is
a field (Definition 0.7.1).
Nothing here uses more about than the field axioms,
so every statement holds over , , and alike.
Matrices
and their entries
Definition
0.9.1 (Matrix)
Let be a field
and
integers. An matrix over is a
rectangular array with
rows and columns,
whose entries lie in . Formally, it is a
function , .
The set of all such matrices is , and we
write for the square
matrices.
The entry
sits in row and
column :
row first, column second. We write
, and
for the
-entry when
the matrix has no letter of its own. Two matrices are
equal when they have the same
size and the same entry in every position; this
is equality of functions (Definition 0.4.1).
Two sizes deserve their own names. A matrix in is a
column vector, and we write In running text we write
and still mean a column. Columns are printed in bold. A
matrix in is a row vector. For
,
the column has
in position and
elsewhere.
We will often cut a matrix into its columns. If is the -th column of , we write The -th
row of is the
row vector .
Example
(Matrices over different fields)
Identify the size, the field and a few entries of
each matrix: Here
is meant over . Also write out the
real
matrix with
.
Solution. , with and ; its second
column is . , with and . ; every
entry is or . is the
degenerate case, a matrix. It behaves exactly like the number
, and matrices are
how numbers will appear inside matrix formulas. Finally
, , , , so . Swapping the roles of
and would give a different
matrix, which is why the order “row, column”
matters.
Special
matrices
A few shapes of matrix occur so often that they have
names. The main diagonal of a square
matrix consists of the entries .
Definition
0.9.2 (Zero matrix)
The zero matrix is the matrix all of whose entries are
.
Definition
0.9.3 (Identity matrix)
The identity matrix has
entries That is, on the main diagonal
and elsewhere. We
write when the
size is clear. The symbol is the
Kronecker delta.
The columns of are exactly .
Definition
0.9.4 (Diagonal matrix)
A square matrix is diagonal if
whenever . We write
for the diagonal matrix with diagonal entries .
Definition
0.9.5 (Upper triangular matrix)
A square matrix is upper triangular if
whenever , that is, every entry strictly
below the main diagonal is zero. It is
lower triangular if whenever .
Example
(Zero and identity matrices)
Write out ,
and . Which of
them are diagonal?
Solution. and are diagonal. The matrix is
not diagonal, because the definition
only applies to square matrices; the square zero matrix
is diagonal.
Example
(Diagonal and triangular)
Classify each matrix as diagonal, upper triangular,
lower triangular, or none of these:
Solution. is
diagonal. A zero on the diagonal is allowed: the
definition only constrains off-diagonal entries. is also both upper and
lower triangular, and in general a matrix is diagonal
exactly when it is both. is upper triangular
but not lower triangular, since . differs from in one entry, . All other
entries below the diagonal are still zero, but the
clause “
whenever ”
fails at , so
is not upper triangular. It is not lower triangular
either.
Addition
and scalar multiplication
Matrices of the same size are added, and multiplied
by scalars, one entry at a time.
Definition
0.9.6 (Matrix addition)
Let and be in , of the same
size. Their sum is with .
Definition
0.9.7 (Scalar multiplication)
Let and . The
scalar multiple
has entries .
Definition
0.9.8 (Additive inverse)
The additive inverse of
is ,
with entries . We write .
Matrices of different sizes are never added: is not defined.
Example
(Adding and scaling)
Let and in
. Compute ,
and .
Solution. Entry by entry,
Because both operations work entry by entry, they
inherit the rules of :
Theorem
0.9.1 (Properties of addition and scalar
multiplication)
Let and . Then:
- ;
- ;
- ;
- ;
- and ;
-
and .
Proof. Two matrices of the same
size are equal when their entries agree, so it suffices
to compare -entries. For 1, , where the
middle equality is commutativity of addition in . For 5, by distributivity in . Each remaining
identity reduces in the same way to the corresponding
field axiom of Definition 0.7.1 in
each entry. This proves the theorem.
These eight rules will reappear in Chapter 1 as the
axioms of a vector space: is one
of our standard examples.
Matrix
multiplication
Addition was entrywise. The obvious guess for
multiplication is also entrywise, but that product is
almost useless. The product that matters is the one that
records substitution, and it looks very
different.
Suppose new variables are given in
terms of ,
and in
terms of :
Record each substitution by its table of
coefficients: for in terms of , and for in terms of . Substituting, So in
terms of has
coefficient table . Look at how each entry
arose: the coefficient of in is , row of against column of . The entrywise product
has nothing to do with
the substitution. This forces the definition.
To multiply matrices, run each row of the first
against each column of the second: the product of two
matrices is the table of the combined
substitution.
Definition
0.9.9 (Matrix multiplication)
Let and , so that the number of columns of
equals the
number of rows of . Their
product is the matrix with entries for and . If the sizes do not match, is not
defined.
In words: to get the -entry of , walk along row
of and down column of at the same time,
multiply the entries you meet in pairs, and add. The
size condition says that the row and the column have the
same length , so
the pairing makes sense. The product has as many rows as
and as many
columns as :
In particular, for and a column , the product
is
defined, with -th
entry . A system of linear equations in
unknowns is
therefore a single equation .
Example
(A product of square matrices)
Let and in . Compute and .
Solution. Row of against column of : Both products are defined, and they are
different.
Example
(Products of rectangular matrices)
Let and . Determine the sizes of and and compute them.
Then compute and .
Solution. is ,
so it is ; is
, so it is . Computing row against column, For instance . The last two products show the extreme
cases: a row times a column is , namely , while a column times a row is
, namely
.
Here is a non-example by minimal change. Take the
same six entries as , but arrange them in
two rows: . The
entries are still real numbers and is unchanged. But
has columns and has rows, so forming would pair a row of
length with a
column of length .
The clause “the number of columns of equals the number of
rows of ” fails, and
is not
defined.
Why this definition, and not the entrywise one?
Because it is the only rule under which “the table of a
combined substitution is the product of the tables”. In
Chapter 4 the same fact becomes: the matrix of a
composition of linear maps is the product of their
matrices. Every property of matrix multiplication, good
or bad, comes from this.
Three views
of a product
The entry formula is how one computes a product by
hand, but it hides the structure. Two other
descriptions, by columns and by rows, are what we will
actually think with. It turns out that multiplying by
on the left acts
on each column of separately, and
multiplying by
on the right acts on each row of separately:
Theorem
0.9.2 (Three views of a product)
Let and , and write with columns
.
Then:
- (Entries) for all ;
- (Columns) the -th column of is , that is,
- (Rows) the -th row of is .
Proof. Part 1 is Definition 0.9.9. For
part 2, fix . The
column has
entries , so by Definition 0.9.9 the
-th entry of is . By part 1 this is , the -th entry of the -th column of . Hence the -th column of is .
For part 3, fix , and let
be row of . Then is a matrix whose
-th entry is , again by Definition 0.9.9. This
is the -th entry
of row of . This proves the
theorem.
The column view reduces every matrix product to
products of a
matrix with a single column. So it pays to understand
well, and here
is the fact to understand:
Theorem
0.9.3 ( is a combination of
the columns of )
Let with columns , and let
. Then In particular for each
. Similarly, if
are the rows of and is a row vector,
then .
Proof. Both sides are in , so we compare -th entries. By Definition 0.9.9, the
-th entry of is . On the right, the -th entry of is by Definition 0.9.7, so
by Definition 0.9.6 the
-th entry of is . These agree because multiplication in
is commutative.
Taking ,
whose only non-zero entry is , gives . The
statement for rows follows in the same way, comparing
the -th entries
. This proves the theorem.
Read the formula as a sentence: the entries
of are the
weights, and the columns of are what gets
weighted. So has a solution exactly when can be built from the
columns of . This
single observation drives much of Chapters 2 and 3.
Combined with Theorem 0.9.2, it also
says that every column of is a combination of
the columns of , with weights
taken from the corresponding column of , and every row
of is a
combination of the rows of .
Example
(One product, three ways)
Let Compute as a combination of
the columns of .
Then compute
by columns, check one row by the row view, and check one
entry by the entry formula.
Solution. The columns of are and
.
By Theorem 0.9.3, Columns. The first column of
is , so
the first column of is , just
computed. The second column is , so . Hence Rows. Row 2 of is , and by Theorem 0.9.3 (rows
version) ,
which is row 2 of .
Entries. , as
in the answer.
The column view needed nothing beyond scaling and
adding columns of . When the columns of
are simple, it
is usually the fastest route.
Quick check. Without multiplying
out, what is the second column of ?
Solution. The second column of the
right factor is . By Theorem 0.9.2 and Theorem 0.9.3, the
second column of the product is , the third column
of the left factor: .
The rules
of multiplication
Matrix multiplication keeps the most important rules
of arithmetic: associativity, both distributive laws,
and an identity.
Theorem
0.9.4 (Properties of matrix
multiplication)
Let , and
let , and .
Then:
- (Associativity) ;
- (Distributivity) and ;
- (Identity) ;
- (Scalars) ;
- (Zero) and for all .
Idea. Each identity is checked
entry by entry. The only one with content is
associativity. Both sides have -entry equal to the
double sum , added up in two different
orders, so the proof is “expand, swap the order of the
finite sums, and fold back up”. In the substitution
picture it is no surprise: substituting in two stages
gives the same result whichever pair of stages we
combine first.
Proof. For 1, both sides lie in
.
Fix and . By Definition 0.9.9
applied twice, where the last step uses distributivity in
. The same
computation gives The two double sums add the same terms in different
orders, so they are equal, by commutativity and
associativity of addition in . Hence .
For 2, by
distributivity in ; the other law is the
same with the roles of the factors swapped.
For 3, ,
because by Definition 0.9.3 only
the term
survives. Likewise .
For 4, , and moving next to instead, using
commutativity in ,
gives . For 5,
every term or is by Theorem 0.7.1. This
proves the theorem.
Associativity means we may write without brackets,
and more generally a product of any number of matrices,
as long as consecutive sizes match.
Just as important is what is missing
from the list. There is no commutative law, and no
cancellation law. Each of the following failures will
cost you a wrong proof if you forget it.
Warning. in
general. Take and . Then but . Before swapping two
factors in a proof, you must know that they commute.
(And if is and is , then and do not even have the
same size.)
Warning. A product can be
zero with both factors non-zero. In , So
is not a field for , and “ implies or ” is false.
Warning. Cancellation
fails:
does not imply . With we get although . By the column
view, both columns of are , so and only see the first
columns of and
, which agree.
Canceling is
legal only when
is invertible, as we will see below.
Quick check. Find a non-zero with
.
Solution. Take . By the column view,
and
, so
the columns of
are and
. Hence
although
. This
small matrix is the source of a remarkable number of
counterexamples in this book; it will reappear
often.
The
transpose
Rows and columns play symmetric roles in a matrix,
and the transpose exchanges them.
Definition
0.9.10 (Transpose)
Let . The
transpose of is the matrix with entries
In words: row
of becomes
column of , and the size flips
from to
. A
square matrix is reflected in its main diagonal.
Definition
0.9.11 (Symmetric and skew-symmetric
matrices)
A square matrix is symmetric if , that is,
for
all . It is
skew-symmetric if , that is,
for all .
Example
(Transposes, symmetric and skew-symmetric
matrices)
Compute the transpose of .
Decide whether over
are symmetric or skew-symmetric.
Solution. The rows of become columns: .
is symmetric:
, , . is skew-symmetric:
, , , and
each diagonal entry satisfies , so it
is . The matrix
differs
from only in the
entry . Every
other symmetric pair still matches, but , so is
not symmetric. A matrix is
always symmetric, and the identity and every diagonal
matrix are symmetric.
Over , a
skew-symmetric matrix has zero diagonal, since forces
. Over
, where , “skew-symmetric”
and “symmetric” mean the same thing, and is skew-symmetric.
The characteristic of the field (Definition 0.7.2)
matters.
The transpose is compatible with the operations,
except that it reverses products:
Theorem
0.9.5 (Properties of the transpose)
Let . For
matrices of sizes for which each expression is
defined:
- ;
- ;
- ;
- for and .
Idea. The order reverses for a size
reason before any computation: is , and is , while is ,
usually not even defined. Then compare entries.
Proof. For 1, by Definition 0.9.10. For
2 and 3, and
.
For 4, both sides lie in . Fix
and
. By
Definition 0.9.10 and
Definition 0.9.9,
The two sums agree term by term because
multiplication in
is commutative. Hence .
This proves the theorem.
For example, for every , the square matrix is symmetric: by
parts 4 and 1, . Matrices of this
form are central to least squares and the singular value
decomposition much later on.
The
trace
The trace is the simplest number attached to a square
matrix, and it has one surprising property.
Definition
0.9.12 (Trace)
The trace of a square matrix
is the sum of its diagonal entries:
Example
(Computing traces)
Compute
for , and over and over .
Solution. ; the off-diagonal entries play no role. . Over this is . Over it is when is even and when is odd. The trace is
not defined for a non-square
matrix.
Theorem
0.9.6 (Properties of the trace)
Let and . Then:
- and ;
- ;
- . More generally, this holds for all
and , where is and is .
Idea. Part 3 is surprising because
in
general. But the trace only sees the diagonal, and is a sum over all pairs of the product of
with the
“mirror” entry . That description
does not care which matrix is written first.
Proof. Parts 1 and 2 follow from
the definitions: the diagonal entries of , and are , and .
For 3, let and . By Definition 0.9.12 and
Definition 0.9.9,
where the middle equality swaps the order of
the finite double sum and uses commutativity of
multiplication in . This proves the
theorem.
A first payoff: for all , the
matrix
has trace . So over it can never equal
, whose trace
is (Exercise (C1: is impossible,
or is it?)). The trace will also turn out to be one
of the quantities that does not change when we change
coordinates.
It is tempting to conclude that the trace of a
product ignores the order of all the
factors. It does not.
Warning. in general. Take , and . Then has trace , but , so has trace
. What
is true is that a
cyclic rotation preserves the trace:
by part 3.
Inverse
matrices
In a field we solve by multiplying by , and this works
exactly when . We would like to solve a system the same way,
by “dividing by ”. What should that
mean, and for which is it possible?
The naive answer, “every non-zero matrix”, fails. Let
. For
any , the first column of is times the first column
of , that is
, by Theorem 0.9.2. The
first column of is , so : no matrix
undoes from the
left. Dividing needs a genuine two-sided inverse, and
not every non-zero matrix has one.
An invertible matrix is a square matrix whose
effect can be undone by multiplying, on either
side.
Definition
0.9.13 (Invertible matrix)
A square matrix is
invertible if there exists such that
Such a
is called an inverse of . A square matrix that
is not invertible is called
singular.
In words: is
invertible when some matrix of the same size
cancels it from the right ()
and from the left (). The
definition asks for one doing both jobs, and
it only speaks about square matrices.
Is “an inverse” really “the inverse”? Yes: an
inverse, if it exists, is unique. This is part 1 of the
next theorem, and it lets us write . The remaining
parts are what inverses are for.
Theorem
0.9.7 (Properties of inverses)
Let .
- (Uniqueness) If and are both inverses
of , then . We write
for
the inverse of an invertible .
- If is
invertible, then so is , and .
- If and are invertible, then
so is , and
.
- If is
invertible, then so is , and .
- If is
invertible and is non-zero, then is invertible, and
.
- (Cancellation) If is invertible, then
implies
for all
, and implies for all .
- (Solving) If is invertible, then
for every the equation has
exactly one solution , namely .
Idea. Uniqueness is the standard
trick for “prove unique by assuming two”: sandwich between and , and use associativity
to collapse the product both ways. For the other parts
the candidate inverse is written in the statement, so we
only multiply it out on both sides, as
the definition demands. The order in part 3 is the
“socks and shoes” rule: to undo “first , then ”, undo first.
Proof. For 1, suppose and
. By Theorem 0.9.4
(identity and associativity),
For 2, the equations and
say precisely that is an inverse of . By part 1 it is
the inverse.
For 3, by associativity, and similarly . Hence
is
an inverse of ,
and by part 1 it is .
For 4, by Theorem 0.9.5, and , where since
is symmetric.
Hence
is the inverse of .
For 5, since , the inverse exists in . By Theorem 0.9.4
(scalars), , and similarly in
the other order.
For 6, suppose . Multiplying on the left by and using
associativity, . The statement for follows by
multiplying on the right by .
For 7, is a solution, since . If
is any solution, then , and part 6 (with ) gives . This
proves the theorem.
Part 6 is the repair of the failed cancellation law
from the warnings above: you may cancel an
invertible matrix, on the side where it stands,
and nothing else.
Example
(Some invertible matrices)
Show that each of the following is invertible and
find its inverse: ; a diagonal matrix
with all ; ; and .
Solution. , so
is its own
inverse. This is the degenerate case: plays the role that
plays among
numbers.
For , let
, which exists since every . Then , and only can contribute, so ; likewise . Hence . For this says the matrix is invertible when
, with
inverse ,
exactly as in the field.
For , let
. Then so . (Where came from is explained
by Theorem 0.9.8
below.)
For over
, , since . So is its own inverse.
Over the same
array would have inverse : the answer depends on
the field.
Now a non-example by minimal change. The matrix is
invertible, with inverse . Change
the entry to
: is still
diagonal and still non-zero. But for any , the second
column of is
times the second
column of , which
is , while
the second column of is . So for every
: the clause
“there exists with … ” fails, and
is
singular. The same argument shows that any square matrix
with a zero column is singular, and in particular so is
every zero matrix .
Why does the definition insist on a
square matrix and on
both equations? For non-square matrices
one-sided inverses can exist without the other side:
with
and , we get but . Demanding
both equations makes the inverse unique (part 1) and
makes both cancellation laws (part 6) hold.
Warning. For square
matrices, already implies . This is
true, but it is not obvious, and we do not know it
yet. Nothing in this chapter proves it: the
entries of and
are different
sums. It is proved in Chapter 3, using row reduction.
Until then, to show that is the inverse of
, check
both and . (The non-square example above shows that
some argument is needed.)
For
matrices, invertibility is decided by one number.
Theorem
0.9.8 (Inverse of a matrix)
Let . Then is invertible
if and only if . In that
case,
Idea. Where does the formula come
from? Try to kill the off-diagonal entries of by multiplying with a
matrix built from its own entries. Swapping and and negating and gives . If
,
divide by it. If , the same computation shows that sends a non-zero
column to , and
an invertible matrix cannot do that, since its inverse
would have to send back to a non-zero
column.
Proof. Write and
. By Definition 0.9.9 and
commutativity of multiplication in ,
()
Suppose , so exists in
. By Theorem 0.9.4
(scalars), , and likewise . Hence is invertible with
, which is the stated formula.
() We
prove the contrapositive. Suppose . We first find
with
and
.
Case 1. . Take .
Case 2. or . Take . Then .
Case 3. but or . Take . Then , since .
These cases cover every . Now suppose, for a
contradiction, that is invertible. Then by
Theorem 0.9.4, contradicting . Hence is not invertible.
This proves the theorem.
The number will return in Chapter 7 as the determinant
of . Here it
arose from a single multiplication, and the proof used
nothing beyond the field axioms, so the theorem holds
over every field. For instance, has ,
which explains the inverse found in Example (Some invertible matrices);
and has , so it is
singular, with .
Powers and
polynomials of a matrix
A square matrix can be multiplied by itself, so we
can form powers, and then plug the matrix into a
polynomial (Definition 0.8.1).
This is how polynomials act on matrices throughout the
book.
Definition
0.9.14 (Powers and polynomials of a
matrix)
Let . The powers of are defined
recursively by For a polynomial , the
matrix is
Two points in this definition deserve attention. The
constant term becomes , because alone is a number and
cannot be added to matrices; this matches with . And is well defined,
because enlarging
only adds terms , exactly as for evaluation at a number (Definition 0.8.6).
The next theorem says that plugging in a matrix
respects sums and products, just as plugging in a number
does (Theorem 0.8.5).
Theorem
0.9.9 (Polynomials in one matrix)
Let and . Then:
- for all ;
- and ;
- .
Idea. In the proof of Theorem 0.8.5, the
only delicate step moved past a coefficient
. Here the
coefficients are scalars, and scalars can be moved
freely through matrix products. The other step, ,
becomes part 1, which is associativity plus induction.
Part 3 is then free, because in .
Proof. For 1, fix and use induction on
(Theorem 0.2.7). For
, . If , then by Definition 0.9.14 and
associativity (Theorem 0.9.4),
For 2, let and . The statement for sums follows from Theorem 0.9.1, since
. For products, by Definition 0.8.2 the
coefficient of
in is ,
so where the second equality uses part 1 and Theorem 0.9.1, and the
third uses distributivity and the scalar rule from Theorem 0.9.4.
For 3,
in by Theorem 0.8.1. Hence
by part 2, . This proves
the theorem.
Example
(Plugging a matrix into a polynomial)
Let and . Compute directly, and again
using the factorization .
Solution. First . Hence The constant term contributed , not “”. By Theorem 0.9.9, , and indeed Note that neither factor is zero; this is the
second warning of the multiplication part in action.
That the diagonal entries of
are the roots of
is no accident, as we will see with eigenvalues.
Theorem 0.9.9 is about
polynomials in one matrix. Identities
with two different matrices are another
matter.
Warning. School identities
fail for matrices that do not commute.
Expanding with distributivity, , and this equals only
when .
With and : , but
. Before using a polynomial
identity valid for numbers, check that all the matrices
involved commute; polynomials in a single always do.
Two
equivalence relations on matrices
We close with two relations on matrices that the rest
of the book studies in depth. Both are equivalence
relations (Definition 0.5.2), and
the proofs are short exercises in using Theorem 0.9.7.
Example
(Similarity)
For , say is
similar to , written , if there is
an invertible with . Prove
that similarity is an equivalence relation on . Then check that
is similar to
using
, and show that
is
not similar to over .
Solution. We check the three
conditions of Definition 0.5.2.
Reflexive. Let . The
identity is
invertible with (Example (Some invertible matrices)),
and . Hence .
Symmetric. Suppose , so with
invertible.
Multiplying on the left by and on the right by
, and using
associativity, . By Theorem 0.9.7 (part
2), is
invertible with , so . Hence .
Transitive. Suppose and , so and
with
invertible. Then where the last step is Theorem 0.9.7 (part
3), which also says is invertible. Hence
. This
shows that similarity is an equivalence relation.
For the numerical part, by Theorem 0.9.8 (here
), and
Finally, if for some invertible , then , which is false. (Alternatively: similar
matrices have equal traces by Theorem 0.9.6, and
.) Hence .
In Chapter 4 we will see that similar matrices
describe the same linear map in two different coordinate
systems. That is why a quantity like the trace, which
similar matrices share, is really a property of the map
and not of the matrix. Deciding when two matrices are
similar is one of the main problems of this book.
Example
(Row equivalence)
For , say is row
equivalent to if there is an
invertible with . Prove that row
equivalence is an equivalence relation on . Then,
with , compute
for and
describe what
did to the rows of .
Solution. Reflexive. and is invertible, so
is row
equivalent to itself.
Symmetric. Suppose with invertible.
Multiplying on the left by , , and is invertible by
Theorem 0.9.7 (part
2). So is row
equivalent to .
Transitive. Suppose and with invertible.
Then by associativity, and is invertible
by Theorem 0.9.7 (part
3). So is row
equivalent to .
This shows that row equivalence is an equivalence
relation.
For the computation, is invertible, with
inverse (check both
products, or use Theorem 0.9.8 with
). By
the row view of Theorem 0.9.2 and Theorem 0.9.3, row 1
of is and row 2 is : So
subtracted twice row 1 from row 2, which is the first
step of Gaussian elimination on .
In Chapter 3 we will see that every elementary row
operation is multiplication on the left by an invertible
matrix, and that row equivalence is exactly “reachable
by a sequence of row operations”. This is why Gaussian
elimination never changes the solutions of a linear
system.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Let
and . Which of , , and are defined?
Give the size of each one that is.
- (b) Define what it
means for to be invertible.
- (c) Determine
whether the following statement is true: “if and
, then
or .” Justify your
answer.
- (d) Determine
whether the following statement is true: “ for all .” Justify your answer.
- (e) Let have
columns . Express and the second column of in terms of the
columns of and
itself.
Solution.
- (a) is ,
defined, of size .
would pair rows of length with columns of length
, so it is not
defined.
is , defined, of size . is ,
defined, of size ; it equals by Theorem 0.9.5.
- (b) is invertible if there
exists with and .
- (c) False. with both factors
non-zero.
- (d) False. Expanding
gives , which differs from
unless
. For
and , we have , but
.
- (e) By Theorem 0.9.3, . By Theorem 0.9.2, the
second column of is .
B. Practice
Exercise
(B1: Products and sizes)
Let over .
- (a) Compute and .
- (b) Determine which
of and is defined, and
compute it.
- (c) Compute for as a
combination of the columns of .
Solution.
- (a) is and is . Row against
column, For instance and .
- (b) would be ,
and , so it
is not defined. is ,
of size :
- (c) By Theorem 0.9.3, .
Exercise
(B2: Traces of products)
- (a) With and as in Exercise (B1: Products and sizes),
verify that , although and have different
sizes.
- (b) Let , and . Show that , and verify that .
Solution.
- (a) From Exercise (B1: Products and sizes),
and , as Theorem 0.9.6
predicts.
- (b) By the column
view, has
columns and , so , and , with trace . Next, , so , with trace . Hence . Finally and , with trace , as the
cyclic rule predicts.
Exercise
(B3: Inverses of matrices)
- (a) Find the inverse
of , and
check both products.
- (b) Show that is not invertible by
finding a non-zero with .
- (c) Find the inverse
of .
- (d) For which is invertible?
Solution.
- (a) Here , so by Theorem 0.9.8 the
inverse is . Check: and .
- (b) Here .
Following the proof of Theorem 0.9.8, take
. Then . If were invertible, then
, a contradiction. Hence is not
invertible.
- (c) In , , and since . By Theorem 0.9.8 the
inverse is . Check:
and in .
- (d) By Theorem 0.9.8, it is
invertible if and only if , that is,
and .
Exercise
(B4: Transposes of products)
- (a) Prove that for all and matrices
whose sizes allow the product.
- (b) Let . Prove that
is
symmetric and is skew-symmetric.
Solution.
- (a) We use induction
on (Theorem 0.2.7). For
there is
nothing to prove. Suppose the formula holds for products
of matrices, and
let be given. By associativity, . By Theorem 0.9.5 (part 4)
and then the induction hypothesis, This proves the formula for all .
- (b) By Theorem 0.9.5 (parts
1–3), ,
so is
symmetric. Similarly , so
is
skew-symmetric.
C. Going deeper
Exercise
(C1: is impossible, or is it?)
- (a) Prove that there
are no , for any , with .
- (b) Show that the
argument of (a) breaks down in , and that
, satisfy over
.
Hint: consider the trace of both sides.
Solution.
- (a) Suppose, for a
contradiction, that . Taking traces and using Theorem 0.9.6 (parts 1
and 3), This contradicts . Hence no such exist.
- (b) Over the same
computation gives , so taking traces yields and no
contradiction. For the given matrices, the column view
gives and , so ,
because in
.
Exercise
(C2: Triangular matrices with non-zero diagonal)
Let be a
field.
- (a) Let with . Show that
is invertible
and that is
upper triangular.
- (b) Let with . Show that
is the inverse of .
- (c) Explain how the
entries of can
be found, column by column, by solving .
The general case, for all , follows from the
methods of Chapter 3.
Solution.
- (a) Here , since a product of non-zero elements of a
field is non-zero (Theorem 0.7.1). By Theorem 0.9.8, is invertible with
, which is upper
triangular.
- (b) The inverses
exist, and by Theorem 0.7.1, so
is defined. We
check
entry by entry. The diagonal entries are , , . Below
the diagonal both matrices are zero, so . Above the diagonal, Hence . For , again the diagonal
entries are and
the entries below the diagonal are , and using . Hence , and . Both
products had to be checked, since we may not yet use
that one implies the other.
- (c) By Theorem 0.9.2, says exactly
that the columns of
satisfy . Because is upper triangular,
each system can be solved from the bottom row up. For
example, reads , , , giving , then , then
, which is the third column of
. (This only
finds a candidate satisfying ; the check
in (b)
is still needed.)
Exercise
(C3: Matrices that commute)
Let .
- (a) Find all with
.
- (b) Deduce that the
only matrices with for every are the
scalar multiples , .
Solution.
- (a) Let . By the column view,
, and by the row
view, has rows
and : . Comparing entries,
if and
only if and
, that is,
with
arbitrary.
- (b) Every commutes with every
, by Theorem 0.9.4: . Conversely, suppose for every
. Taking , part (a) gives
. Taking , we compute
and . Equality forces
. Hence , as
claimed.