Matrix Operations
The prior section shows how matrices represent linear maps. We now explore how this representation interacts with things that we already know. First we will see how the representation of a scalar product of a linear map relates to the representation of , and also how the representation of a sum relates to the representations of the two summands. Later we will do the same comparison for the map operations of composition and inverse.
Sums and Scalar Products
Example 1.1 Let be a linear function represented with respect to some bases by this matrix.
Consider the map that is the scalar multiple . We will relate the representation with .
Let associate with these representations.
Where the codomain’s basis is , that representation gives that the output vector is .
The action of the map is and . So associates the input vector with the output vector having this representation.
Changing from the map to the map has the effect on the representation of the output vector of multiplying each entry by .
Because of that, is this matrix.
Therefore, going from the matrix representing to the one representing means multiplying all the matrix entries by .
Example 1.2 We can do a similar exploration for the sum of two maps. Suppose that two linear maps with the same domain and codomain are represented with respect to bases and by these matrices.
Recall the definition of sum: if does and does then is the function whose action is . Let these be the representations of the input and output vectors.
Where we have and so this is the representation of the vector sum.
Thus, since these represent the actions of of the maps and on the input
adding the entries represents the action of the map .
Therefore, we compute the matrix representing the function sum by adding the entries of the matrices representing the functions.
Definition 1.3 The scalar multiple of a matrix is the result of entry-by-entry scalar multiplication. The sum of two same-sized matrices is their entry-by-entry sum.
These operations extend the first chapter’s operations of addition and scalar multiplication of vectors.
We need a result that proves these matrix operations do what the examples suggest that they do.
Theorem 1.4 Let be linear maps represented with respect to bases by the matrices and and let be a scalar. Then with respect to the map is represented by and the map is represented by .
Proof Generalize the examples. This is Exercise 1.10.
QED
Remark 1.5 These two operations on matrices are simple, but we did not define them in this way because they are simple. We defined them this way because they represent function addition and function scalar multiplication. That is, our program is to define matrix operations by referencing function operations. Simplicity is a bonus.
We will see this again in the next subsection, where we will define the operation of multiplying matrices. Since we’ve just defined matrix scalar multiplication and matrix sum to be entry-by-entry operations, a naive thought is to define matrix multiplication to be the entry-by-entry product. In theory we could do whatever we please but we will instead be practical and combine the entries in the way that represents the function operation of composition.
A special case of scalar multiplication is multiplication by zero. For any map is the zero homomorphism and for any matrix is the matrix with all entries zero.
Definition 1.6 A zero matrix has all entries . We write or simply (another common notation is or just ).
Example 1.7 The zero map from any three-dimensional space to any two-dimensional space is represented by the zero matrix
no matter what domain and codomain bases we use.
Exercises
Exercise 1.8 Worked answer
Recommended. Perform the indicated operations, if defined, or state “not defined.”
Exercise 1.9 Worked answer
Give the matrix representing the zero map from to , with respect to the standard bases.
Answer. The bases don’t matter. The only thing that matters is getting the dimensions right.
Exercise 1.10 Worked answer
Prove Theorem 1.4.
Prove that matrix addition represents addition of linear maps.
Prove that matrix scalar multiplication represents scalar multiplication of linear maps.
Answer. Represent the domain vector and the maps with respect to bases in the usual way.
The representation of
regroups
to the entry-by-entry sum of the representation of and the representation of .
The representation of
is the entry-by-entry multiple of and the representation of .
Exercise 1.11 Worked answer
Recommended. Prove each, assuming that the operations are defined, where , , and are matrices, where is the zero matrix, and where and are scalars.
Matrix addition is commutative .
Matrix addition is associative .
The zero matrix is an additive identity .
Matrices have an additive inverse .
Answer. First, each of these properties is easy to check in an entry-by-entry way. For example, writing
then, by definition we have
and
and the two are equal since their entries are equal . That is, each of these is easy to check by using Definition 1.3 alone.
However, each property is also easy to understand in terms of the represented maps, by applying Theorem 1.4 as well as the definition.
The two maps and are equal because , as addition is commutative in any vector space. Because the maps are the same, they must have the same representative.
As with the prior answer, except that here we apply that vector space addition is associative.
As before, except that here we note that .
Apply that .
Apply that .
Apply the prior two items with and .
Apply that .
Apply that .
Exercise 1.12 Worked answer
Fix domain and codomain spaces. In general, one matrix can represent many different maps with respect to different bases. However, prove that a zero matrix represents only a zero map. Are there other such matrices?
Answer. For any with bases , the (appropriately-sized) zero matrix represents this map.
This is the zero map.
There are no other matrices that represent only one map. For, suppose that is not the zero matrix. Then it has a nonzero entry; assume that . With respect to bases , it represents sending
and with respect to it also represents sending
(the notation means to double all of the members of D). These maps are easily seen to be unequal.
Exercise 1.13 Worked answer
Recommended. Let and be vector spaces of dimensions and . Show that the space of linear maps from to is isomorphic to .
Answer. Fix bases and for and , and consider associating each linear map with the matrix representing that map . From the prior section we know that (under fixed bases) the matrices correspond to linear maps, so the representation map is one-to-one and onto. That it preserves linear operations is Theorem 1.4.
Exercise 1.14 Worked answer
Recommended. Show that it follows from the prior question that for any six transformations there are scalars such that not every equals but is the zero map. (Hint: the six is slightly misleading.)
Answer. Fix bases and represent the transformations with matrices. The space of matrices has dimension four, and hence any six-element set is linearly dependent. By the prior exercise that extends to a dependence of maps. (The misleading part is only that there are six transformations, not five, so that we have more than we need to give the existence of the dependence.)
Exercise 1.15 Worked answer
The trace of a square matrix is the sum of the entries on the main diagonal (the entry plus the entry, etc.; we will see the significance of the trace in Chapter Five). Show that . Is there a similar result for scalar multiplication?
Answer. That the trace of a sum is the sum of the traces holds because both and are the sum of with , etc. For scalar multiplication we have ; the proof is easy. Thus the trace map is a homomorphism from to .
Exercise 1.16 Worked answer
Recall that the transpose of a matrix is another matrix, whose entry is the entry of . Verify these identities.
Answer.
The entry of is . That is also the entry of .
The entry of is , which is also the entry of .
Exercise 1.17 Worked answer
Recommended. A square matrix is symmetric if each entry equals the entry, that is, if the matrix equals its transpose.
Prove that for any square , the matrix is symmetric. Does every symmetric matrix have this form?
Prove that the set of symmetric matrices is a subspace of .
Answer.
For , the entry is and the entry of is . The two are equal and thus is symmetric.
Every symmetric matrix does have that form, since we can write .
The set of symmetric matrices is nonempty as it contains the zero matrix. Clearly a scalar multiple of a symmetric matrix is symmetric. A sum of two symmetric matrices is symmetric because (since and ). Thus the subset is nonempty and closed under the inherited operations, and so it is a subspace.
Exercise 1.18 Worked answer
Recommended.
How does matrix rank interact with scalar multiplication—can a scalar product of a rank matrix have rank less than ? Greater?
How does matrix rank interact with matrix addition—can a sum of rank matrices have rank less than ? Greater?
Answer.
Scalar multiplication leaves the rank of a matrix unchanged except that multiplication by zero leaves the matrix with rank zero. (This follows from the first theorem of the book, that multiplying a row by a nonzero scalar doesn’t change the solution set of the associated linear system.)
A sum of rank matrices can have rank less than . For instance, for any matrix , the sum has rank zero.
A sum of rank matrices can have rank greater than . Here are rank one matrices that sum to a rank two matrix.
Matrix Multiplication
After representing addition and scalar multiplication of linear maps in the prior subsection, the natural next operation to consider is function composition.
Lemma 2.1 The composition of linear maps is linear.
Proof (Note: this argument has already appeared, as part of the proof of Theorem I.2.2.) Let and be linear. The calculation
shows that preserves linear combinations, and so is linear.
QED
As we did with the operation of matrix addition and scalar multiplication, we will see how the representation of the composite relates to the representations of the compositors by first considering an example.
Example 2.2 Let and , fix bases , , , and let these be the representations.
To represent the composition we start with a , represent of , and then represent of that. The representation of is the product of ’s matrix and ’s vector.
The representation of is the product of ’s matrix and ’s vector.
Distributing and regrouping on the ’s gives
which is this matrix-vector product.
The matrix representing has the rows of combined with the columns of .
Definition 2.3 The matrix-multiplicative product of the matrix and the matrix is the matrix , where
so that the -th entry of the product is the dot product of the -th row of the first matrix with the -th column of the second.
Example 2.4
Example 2.5 Some products are not defined, such as the product of a matrix with a , because the number of columns in the first matrix must equal the number of rows in the second. But the product of two matrices is always defined. Here are two ’s.
Example 2.6 The matrices from Example 2.2 combine in this way.
Theorem 2.7 A composition of linear maps is represented by the matrix product of the representatives.
Proof This argument generalizes Example 2.2. Let and be represented by and with respect to bases , , and , of sizes , , and . For any the -th component of is
and so the -th component of is this.
Distribute and regroup on the ’s.
Finish by recognizing that the coefficient of each
matches the definition of the entry of the product .
QED
This arrow diagram pictures the relationship between maps and matrices (‘wrt’ abbreviates ‘with respect to’).
Above the arrows, the maps show that the two ways of going from to , straight over via the composition or else in two steps by way of , have the same effect
(this is just the definition of composition). Below the arrows, the matrices indicate that multiplying into the column vector has the same effect as multiplying the column vector first by and then multiplying the result by .
As mentioned in Example 2.5, because the number of columns on the left does not equal the number of rows on the right, the product as here of a matrix with a matrix is not defined.
The definition requires that the sizes match because we want that the underlying function composition is possible.
Thus, matrix product combines the matrix with the matrix to yield the result . Briefly: .
Remark 2.8 The order of the dimensions can be confusing. In ‘’ the number written first is . But appears last in the map dimension description line () above, and the other dimensions also appear in reverse. The explanation is that while is done first, followed by , we write the composition as , with on the left (arising from the notation ). That carries over to matrices, so that is represented by .
We can get insight into matrix-matrix product operation by studying how the entries combine. For instance, an alternative way to understand why we require above that the sizes match is that the row of the left-hand matrix must have the same number of entries as the column of the right-hand matrix, or else some entry will be left without a matching entry from the other matrix.
Another aspect of the combinatorics of matrix multiplication, in the sum defining the entry, is brought out here by the boxing the equal subscripts.
The highlighted subscripts on the ’s are column indices while those on the ’s are for rows. That is, the summation takes place over the columns of but over the rows of — the definition treats left differently than right. So we may reasonably suspect that can be unequal to .
Example 2.9 Matrix multiplication is not commutative.
Example 2.10 Commutativity can fail more dramatically:
while
isn’t even defined.
Remark 2.11 The fact that matrix multiplication is not commutative can seem odd at first, perhaps because most mathematical operations in prior courses are commutative. But matrix multiplication represents function composition and function composition is not commutative: if and then while .
Except for the lack of commutativity, matrix multiplication is algebraically well-behaved. The next result gives some nice properties and more are in Exercise 2.25 and Exercise 2.26.
Theorem 2.12 If , , and are matrices, and the matrix products are defined, then the product is associative and distributes over matrix addition and .
Proof Associativity holds because matrix multiplication represents function composition, which is associative: the maps and are equal as both send to .
Distributivity is similar. For instance, the first one goes (the third equality uses the linearity of ). Right-distributivity goes the same way.
QED
Remark 2.13 We could instead prove that result by slogging through indices. For example, for associativity the entry of is
where , , and are , , and matrices. Distribute
and regroup around the ’s
to get the entry of .
Contrast the two proofs. The index-heavy argument is hard to understand in that while the calculations are easy to check, the arithmetic seems unconnected to any idea. The argument in the proof is shorter and also says why this property “really” holds. This illustrates the comments made at the start of the chapter on vector spaces—at least sometimes an argument from higher-level constructs is clearer.
We have now seen how to represent the composition of linear maps. The next subsection will continue to explore this operation.
Exercises
Exercise 2.17 Worked answer
Recommended. Give the size of the product or state “not defined”.
a matrix times a matrix
a matrix times a matrix
a matrix times a matrix
a matrix times a matrix
Exercise 2.18 Worked answer
Recommended. Find the system of equations resulting from starting with
and making this change of variable (i.e., substitution).
Answer. We have
which, after expanding and regrouping about the ’s yields this.
We can express the starting system and the system used for the substitutions in matrix language, as
and
and with this, the substitution is .
Exercise 2.19 Worked answer
Recommended. Consider the two linear functions and given as here.
Use these bases for the spaces.
Give the formula for the composition map derived directly from the above definition.
Represent and with respect to the appropriate bases.
Represent the map computed in the first part with respect to the appropriate bases.
Check that the product of the two matrices from the second part is the matrix from the third part.
Answer.
Following the definitions gives this.
Because
we get this representation for .
Similarly, because
this is the representation of .
The action of on the domain basis is this.
We have this.
The matrix multiplication is routine, just take care with the order.
Exercise 2.20 Worked answer
As Definition 2.3 points out, the matrix product operation generalizes the dot product. Is the dot product of a row vector and a column vector the same as their matrix-multiplicative product?
Answer. Technically, no. The dot product operation yields a scalar while the matrix product yields a matrix. However, we usually will ignore the distinction.
Exercise 2.21 Worked answer
Recommended. Represent the derivative map on with respect to where is the natural basis . Show that the product of this matrix with itself is defined; what map does it represent?
Answer. The action of on is , , , …and so this is its matrix representation.
The product of this matrix with itself is defined because the matrix is square.
The map so represented is the composition
which is the second derivative operation.
Exercise 2.22 Worked answer
[Cleary] Match each type of matrix with all these descriptions that could fit, say ‘None’ if it applies: (i) can be multiplied by its transpose to make a matrix, (ii) can represent a linear map from to that is not onto, (iii) can represent an isomorphism from to .
a matrix whose rank is
a matrix that is nonsingular
a matrix that is singular
an column vector
Exercise 2.23 Worked answer
Show that composition of linear transformations on is commutative. Is this true for any one-dimensional space?
Answer. It is true for all one-dimensional spaces. Let and be transformations of a one-dimensional space. We must show that for all vectors. Fix a basis for the space and then the transformations are represented by matrices.
Therefore, the compositions can be represented as and .
These two matrices are equal and so the compositions have the same effect on each vector in the space.
Exercise 2.24 Worked answer
Why is matrix multiplication not defined as entry-wise multiplication? That would be easier, and commutative too.
Answer. It would not represent linear map composition; Theorem 2.7 would fail.
Exercise 2.25 Worked answer
Prove that and for positive integers .
Prove that for any positive integer and scalar .
Answer. Each follows easily from the associated map fact. For instance, applications of the transformation , following applications, is simply applications.
Exercise 2.26 Worked answer
Recommended.
How does matrix multiplication interact with scalar multiplication: is ? Is ?
How does matrix multiplication interact with linear combinations: is ? Is ?
Answer. Although we can do these by going through the indices, they are best understood in terms of the represented maps. That is, fix spaces and bases so that the matrices represent linear maps .
Yes; we have both and (the second equality holds because of the linearity of ).
Both answers are yes. First, and both send to ; the calculation is as in the prior item (using the linearity of for the first one). For the other, and both send to .
Exercise 2.27 Worked answer
We can ask how the matrix product operation interacts with the transpose operation.
Show that .
A square matrix is symmetric if each entry equals the entry, that is, if the matrix equals its own transpose. Show that the matrices and are symmetric.
Answer. We have not seen a map interpretation of the transpose operation, so we will verify these by considering the entries.
The entry of is the entry of , which is the dot product of the -th row of and the -th column of . The entry of is the dot product of the -th row of and the -th column of , which is the dot product of the -th column of and the -th row of . Dot product is commutative and so these two are equal.
By the prior item each equals its transpose, e.g., .
Exercise 2.28 Worked answer
Recommended. Rotation of vectors in about an axis is a linear map. Show that linear maps do not commute by showing geometrically that rotations do not commute.
Answer. Consider rotating all vectors radians counterclockwise about the and axes (counterclockwise in the sense that a person whose head is at or and whose feet are at the origin sees, when looking toward the origin, the rotation as counterclockwise).
Rotating first and then is different than rotating first and then . In particular, so , while so , and hence the maps do not commute.
Exercise 2.29 Worked answer
In the proof of Theorem 2.12 we used some maps. What are the domains and codomains?
Answer. It doesn’t matter (as long as the spaces have the appropriate dimensions).
For associativity, suppose that is , that is , and that is . We can take any dimensional space, any dimensional space, any dimensional space, and any dimensional space—for instance, , , , and will do. We can take any bases , , , and , for those spaces. Then, with respect to the matrix represents a linear map , with respect to the matrix represents a , and with respect to the matrix represents an . We can use those maps in the proof.
The second half is similar, except that we add and and so we must take them to represent maps with the same domain and codomain.
Exercise 2.30 Worked answer
How does matrix rank interact with matrix multiplication?
Can the product of rank matrices have rank less than ? Greater?
Show that the rank of the product of two matrices is less than or equal to the minimum of the rank of each factor.
Answer.
The product of rank matrices can have rank less than or equal to but not greater than .
To see that the rank can fall, consider the maps projecting onto the axes. Each is rank one but their composition , which is the zero map, is rank zero. That translates over to matrices representing those maps in this way.
To prove that the product of rank matrices cannot have rank greater than , we can apply the map result that the image of a linearly dependent set is linearly dependent. That is, if and both have rank then a set in the range of size larger than is the image under of a set in of size larger than and so is linearly dependent (since the rank of is ). Now, the image of a linearly dependent set is dependent, so any set of size larger than in the range is dependent. (By the way, observe that the rank of was not mentioned. See the next part.)
Fix spaces and bases and consider the associated linear maps and . Recall that the dimension of the image of a map (the map’s rank) is less than or equal to the dimension of the domain, and consider the arrow diagram.
First, the image of must have dimension less than or equal to the dimension of , by the prior sentence. On the other hand, is a subset of the domain of , and thus its image has dimension less than or equal the dimension of the domain of . Combining those two, the rank of a composition is less than or equal to the minimum of the two ranks.
The matrix fact follows immediately.
Exercise 2.31 Worked answer
Is ‘commutes with’ an equivalence relation among matrices?
Answer. The ‘commutes with’ relation is reflexive and symmetric. However, it is not transitive: for instance, with
commutes with and commutes with , but does not commute with .
Exercise 2.32 Worked answer
(We will use this exercise in the Matrix Inverses exercises.) Here is another property of matrix multiplication that might be puzzling at first sight.
Prove that the composition of the projections onto the and axes is the zero map despite that neither one is itself the zero map.
Prove that the composition of the derivatives is the zero map despite that neither is the zero map.
Give a matrix equation representing the first fact.
Give a matrix equation representing the second.
When two things multiply to give zero despite that neither is zero we say that each is a zero divisor.
Answer.
Either of these.
The composition is the fifth derivative map on the space of fourth-degree polynomials.
With respect to the natural bases,
and their product (in either order) is the zero matrix.
Where ,
and their product (in either order) is the zero matrix.
Exercise 2.33 Worked answer
Show that, for square matrices, need not equal .
Answer. Note that , so a reasonable try is to look at matrices that do not commute so that and don’t cancel: with
we have the desired inequality.
Exercise 2.34 Worked answer
Recommended. Represent the identity transformation with respect to for any basis . This is the identity matrix . Show that this matrix plays the role in matrix multiplication that the number plays in real number multiplication: (for all matrices for which the product is defined).
Answer. Because the identity map acts on the basis as , …, , the representation is this.
The second part of the question is obvious from Theorem 2.7.
Exercise 2.35 Worked answer
Prove that for any matrix there are scalars that are not all such that the combination is the zero matrix (where is the identity matrix, with ’s in its and entries and zeroes elsewhere; see Exercise 2.34).
Let be a polynomial . If is a square matrix we define to be the matrix (where is the appropriately-sized identity matrix). Prove that for any square matrix there is a polynomial such that is the zero matrix.
The minimal polynomial of a square matrix is the polynomial of least degree, and with leading coefficient , such that is the zero matrix. Find the minimal polynomial of this matrix.
(This is the representation with respect to , the standard basis, of a rotation through radians counterclockwise.)
Answer.
The vector space has dimension four. The set has five elements and thus is linearly dependent.
Where is , generalizing the argument from the prior item shows that there is such a polynomial of degree or less, since is a -member subset of the -dimensional space .
First compute the powers
(observe that rotating by three times results in a rotation by , which is indeed what represents). Then set equal to the zero matrix
to get this linear system.
Apply Gaussian reduction.
Setting , , and to zero makes and also come out to be zero so no degree one or degree zero polynomial will do. Setting and to zero (and to one) gives a linear system
with solution and . Conclusion: the polynomial is minimal for the matrix .
Exercise 2.36 Worked answer
The infinite-dimensional space of all finite-degree polynomials gives a memorable example of the non-commutativity of linear maps. Let be the usual derivative and let be the shift map.
Show that the two maps don’t commute ; in fact, not only is not the zero map, it is the identity map.
Exercise 2.37 Worked answer
Recall the notation for the sum of the sequence of numbers .
In this notation, the entry of the product of and is this.
Using this notation,
reprove that matrix multiplication is associative;
reprove Theorem 2.7.
Answer.
Tracing through the remark at the end of the subsection gives that the entry of is this
(the first equality comes from using the distributive law to multiply through the ’s, the second equality is the associative law for real numbers, the third is the commutative law for reals, and the fourth equality follows on using the distributive law to factor the ’s out), which is the entry of .
The -th component of is
and so the -th component of is this
(the first equality holds by using the distributive law to multiply the ’s through, the second equality represents the use of associativity of reals, the third follows by commutativity of reals, and the fourth comes from using the distributive law to factor the ’s out).
Mechanics of Matrix Multiplication
We can consider matrix multiplication as a mechanical process, putting aside for the moment any implications about the underlying maps.
The striking thing about this operation is the way that rows and columns combine. The entry of the matrix product is the dot product of row of the left matrix with column of the right one. For instance, here a second row and a third column combine to make a entry.
We can view this as the left matrix acting by multiplying its rows into the columns of the right matrix. Or, it is the right matrix using its columns to act on the rows of the left matrix. Below, we will examine actions from the left and from the right for some simple matrices.
Simplest is the zero matrix.
Example 3.1 Multiplying by a zero matrix from the left or from the right results in a zero matrix.
The next easiest matrices are the ones with a single nonzero entry.
Definition 3.2 A matrix with all ’s except for a in the entry is an unit matrix (or matrix unit).
Example 3.3 This is the unit matrix with three rows and two columns, multiplying from the left.
Acting from the left, an unit matrix copies row of the multiplicand into row of the result. From the right an unit matrix picks out column of the multiplicand and copies it into column of the result.
Example 3.4 Rescaling unit matrices simply rescales the result. This is the action from the left of the matrix that is twice the one in the prior example.
Next in complication are matrices with two nonzero entries.
Example 3.5 There are two cases. If a left-multiplier has entries in different rows then their actions don’t interact.
But if the left-multiplier’s nonzero entries are in the same row then that row of the result is a combination.
Right-multiplication acts in the same way, but with columns.
Lemma 3.6 In a product of two matrices and , the columns of are formed by taking times the columns of
and the rows of are formed by taking the rows of times
Proof We will check that in a product of matrices, the rows of the product equal the product of the rows of with the entire matrix ; other cases worh the same way.
(We ignore the extra parentheses.)
QED
Example 3.7 Consider the columns of the product of two matrices.
Each column is the result of multiplying by the corresponding column of .
An application of those observations is that there is a matrix that just copies out the rows and columns.
Definition 3.8 The main diagonal (or principal diagonal or simply diagonal) of a square matrix goes from the upper left to the lower right.
Definition 3.9 An identity matrix is square and every entry is except for ’s in the main diagonal.
Example 3.10 Here is the identity matrix leaving its multiplicand unchanged when it acts from the right.
Example 3.11 Here the identity leaves its multiplicand unchanged both from the left
and from the right.
In short, an identity matrix is the identity element of the set of matrices with respect to the operation of matrix multiplication.
We can generalize the identity matrix by relaxing the ones to arbitrary reals. The resulting matrix rescales whole rows or columns.
Definition 3.12 A diagonal matrix is square and has ’s off the main diagonal.
Example 3.13 From the left, the action of multiplication by a diagonal matrix is to rescales the rows.
From the right such a matrix rescales the columns.
We can also generalize identity matrices by putting a single one in each row and column in ways other than putting them down the diagonal.
Definition 3.14 A permutation matrix is square and is all ’s except for a single in each row and column.
Example 3.15 From the left these matrices permute rows.
From the right they permute columns.
We finish this subsection by applying these observations to get matrices that perform Gauss’s Method and Gauss-Jordan reduction. We have already seen how to produce a matrix that rescales rows, and a row swapper.
Example 3.16 Multiplying by this matrix rescales the second row by three.
Example 3.17 This multiplication swaps the first and third rows.
To see how to perform a row combination, we observe something about those two examples. The matrix that rescales the second row by a factor of three arises in this way from the identity.
Similarly, the matrix that swaps first and third rows arises in this way.
Example 3.18 The matrix that arises as
will, when it acts from the left, perform the combination operation .
Definition 3.19 The elementary reduction matrices (or just elementary matrices) result from applying a single Gaussian operation to an identity matrix.
for
for
for
Lemma 3.20 Matrix multiplication can do Gaussian reduction.
If then .
If then .
If then .
Proof Clear.
QED
Example 3.21 This is the first system, from the first chapter, on which we performed Gauss’s Method.
We can reduce it with matrix multiplication. Swap the first and third rows,
triple the first row,
and then add times the first row to the second.
Now back substitution will give the solution.
Example 3.22 Gauss-Jordan reduction works the same way. For the matrix ending the prior example, first turn the leading entries to ones,
then clear the third column, and then the second column.
Corollary 3.23 For any matrix there are elementary reduction matrices , …, such that is in reduced echelon form.
Until now we have taken the point of view that our primary objects of study are vector spaces and the maps between them, and we seemed to have adopted matrices only for computational convenience. This subsection shows that this isn’t the entire story.
Understanding matrix operations by understanding the mechanics of how the entries combine is also useful. In the rest of this book we shall continue to focus on maps as the primary objects but we will be pragmatic—if the matrix point of view gives some clearer idea then we will go with it.
Exercises
Exercise 3.24 Worked answer
Recommended. Predict the result of each product with a permutation matrix and then check by multiplying it out.
Answer.
Acting from the left, the matrix swaps the first and second rows.
Acting from the right, swaps the first and second columns.
From the left, swaps the second and third rows.
Exercise 3.25 Worked answer
Recommended. Predict the result of each multiplication by an elementary reduction matrix, and then check by multiplying it out.
Answer.
The second matrix has its first row multiplied by .
The second matrix has its second row multiplied by .
The second matrix undergoes the combination operation of replacing the second row with times the first row added to the second.
The first matrix undergoes the column operation of: replace the second column by times the first column plus the second.
The first matrix has its columns swapped.
Exercise 3.26 Worked answer
Predict the result of each multiplication by a diagonal matrix, and then check by multiplying it out.
Answer.
The second matrix has its first row multiplied by and its second row multiplied by .
The second matrix has its first row multiplied by and its second row multiplied by .
Exercise 3.27 Worked answer
Produce each.
a matrix that, acting from the left, swaps rows one and two
a matrix that, acting from the right, swaps column one and two
Answer.
This matrix swaps row one and row three.
This matrix swaps column one and two.
Exercise 3.28 Worked answer
Recommended. Show how to use matrix multiplication to bring this matrix to echelon form.
Answer. Multiply by , then by , and then by , paying attention to the right-to-left order.
Exercise 3.29 Worked answer
Find the product of this matrix with its transpose.
Answer. The product is the identity matrix (recall that ). An explanation is that the given matrix represents, with respect to the standard bases, a rotation in of radians while the transpose represents a rotation of radians. The two cancel.
Exercise 3.30 Worked answer
The need to take linear combinations of rows and columns in tables of numbers arises often in practice. For instance, this is a map of part of Vermont and New York.
In part because of Lake Champlain, there are no roads directly connecting some pairs of towns. For instance, there is no way to go from Winooski to Grand Isle without going through Colchester. (To simplify the graph many other roads and towns have been omitted. From top to bottom of this map is about forty miles.)
The adjacency matrix of a map is the square matrix whose entry is the number of roads from city to city (all entries are ). Produce the adjacency matrix of this map, taking the cities in alphabetical order.
A matrix is symmetric if it equals its transpose. Show that an adjacency matrix is symmetric. (These are all two-way streets. Vermont doesn’t have many one-way streets.)
What is the significance of the square of the adjacency matrix? The cube?
Answer.
The adjacency matrix is this (e.g, the first row shows that there is only one connection including Burlington, the road to Winooski).
Because these are two-way roads, any road connecting city to city gives a connection between city and city .
The square of the adjacency matrix tells how cities are connected by trips involving two roads.
Exercise 3.31 Worked answer
Recommended. This table gives the number of hours of each type done by each worker, and the associated pay rates. Use matrices to compute the wages due.
regular overtime Alan 40 12 Betty 35 6 Catherine 40 18 Donald 28 0 wage regular overtime Remark. This illustrates that in practice we often want to compute linear combinations of rows and columns in a context where we really aren’t interested in any associated linear maps.
Answer. The pay due each person appears in the matrix product of the two arrays.
Exercise 3.32 Worked answer
Express this nonsingular matrix as a product of elementary reduction matrices.
Answer. The Gauss-Jordan reduction is routine.
Thus we know elementary reduction matrices such that . Move the matrices to the other side, paying attention to order. For instance, first multiply both sides from the left by to get , which simplifies to , etc.
Taking the inverse of an elementary reduction matrix is easy. For instance, to undo adding times row to row , you should take times row and add it to row . With that, Lemma 3.20 says that .
Exercise 3.33 Worked answer
Express
as the product of two elementary reduction matrices.
Answer. One way to produce this matrix from the identity is to use the column operations of first multiplying the second column by three, and then adding the negative of the resulting second column to the first.
In contrast with row operations, column operations are written from left to right, so this matrix product expresses doing the above two operations.
Remark. Alternatively, we could get the required matrix with row operations. Starting with the identity, first adding the negative of the first row to the second, and then multiplying the second row by three will work. Because we write successive row operations as matrix products from right to left, doing these two row operations is expressed with: the same matrix product.
Exercise 3.34 Worked answer
Recommended. Prove that the diagonal matrices form a subspace of . What is its dimension?
Answer. The set of diagonal matrices is nonempty as the zero matrix is diagonal. Clearly it is closed under scalar multiples and sums. Therefore it is a subspace. The dimension is ; here is a basis.
Exercise 3.35 Worked answer
Does the identity matrix represent the identity map if the bases are unequal?
Answer. No. In , with respect to the unequal bases and , the identity transformation is represented by this matrix.
Exercise 3.36 Worked answer
Show that every multiple of the identity commutes with every square matrix. Are there other matrices that commute with all square matrices?
Answer. For any scalar and square matrix we have .
There are no other such matrices; here is an argument for matrices that is easily extended to . If a matrix commutes with all others then it commutes with this unit matrix.
From this we first conclude that the upper left entry must equal its lower right entry . We also conclude that the lower left entry is zero. The argument for the upper right entry is similar.
Exercise 3.38 Worked answer
Recommended. Show that the product of a permutation matrix and its transpose is an identity matrix.
Answer. A permutation matrix has a single one in each row and column, and all its other entries are zeroes. Fix such a matrix. Suppose that the -th row has its one in its -th column. Then no other row has its one in the -th column; every other row has a zero in the -th column. Thus the dot product of the -th row and any other row is zero.
The -th row of the product is made up of the dot products of the -th row of the matrix and the columns of the transpose. By the last paragraph, all such dot products are zero except for the -th one, which is one.
Exercise 3.39 Worked answer
Show that if the first and second rows of are equal then so are the first and second rows of . Generalize.
Answer. The generalization is to go from the first and second rows to the -th and -th rows. Row of is made up of the dot products of row of and the columns of . Thus if rows and of are equal then so are rows and of .
Exercise 3.40 Worked answer
Describe the product of two diagonal matrices.
Answer. If the product of two diagonal matrices is defined—if both are —then the product of the diagonals is the diagonal of the products: where are equal-sized diagonal matrices, is all zeros except each that entry is .
Exercise 3.41 Worked answer
Recommended. Show that if has a row of zeros then (if defined) has a row of zeros. Does that work for columns?
Answer. The -th row of is made up of the dot products of the -th row of with the columns of . The dot product of a zero row with a column is zero.
It works for columns if stated correctly: if has a column of zeros then (if defined) has a column of zeros. The proof is easy.
Exercise 3.42 Worked answer
Show that the set of unit matrices forms a basis for .
Answer. Perhaps the easiest way is to show that each matrix is a linear combination of unit matrices in one and only one way:
has the unique solution , , etc.
Exercise 3.43 Worked answer
Find the formula for the -th power of this matrix.
Answer. Call that matrix . We have
In general,
where is the -th Fibonacci number and , , which we verify by induction, based on this equation.
Exercise 3.44 Worked answer
Recommended. The trace of a square matrix is the sum of the entries on its diagonal (its significance appears in Chapter Five). Show that .
Answer. Chapter Five gives a less computational reason—the trace of a matrix is the second coefficient in its characteristic polynomial—but for now we can use indices. We have
while
and the two are equal.
Exercise 3.45 Worked answer
A square matrix is upper triangular if its only nonzero entries lie above, or on, the diagonal. Show that the product of two upper triangular matrices is upper triangular. Does this hold for lower triangular also?
Answer. A matrix is upper triangular if and only if its entry is zero whenever . Thus, if are upper triangular then and are zero when . An entry in the product is zero unless at least some of the terms are nonzero, that is, unless for at least some of the summands both and . Of course, if this cannot happen and so the product of two upper triangular matrices is upper triangular. (A similar argument works for lower triangular matrices.)
Exercise 3.46 Worked answer
A square matrix is a Markov matrix if each entry is between zero and one and the sum along each row is one. Prove that a product of Markov matrices is Markov.
Exercise 3.47 Worked answer
Give an example of two matrices of the same rank and size with squares of differing rank.
Answer. Fix a basis . Matrices representing the maps that send
and
will do. For instance, if for we use the standard basis then the two above give these matrices.
Notice that has rank while has rank .
Exercise 3.48 Worked answer
Matrix multiplication is performed often on computers. Researchers trying to understand its performance, and improve on it, count the number of operations that it takes.
Definition 2.3 gives . How many real number multiplications are in that expression? Using it, how many do we need for the product of a matrix and a matrix?
Matrix multiplication is associative, so in computing we can expect to get the same answer no matter where we put the parentheses. The cost in number of multiplications, however, varies. Find the association requiring the fewest real number multiplications to compute the matrix product of a matrix, a matrix, a matrix, and a matrix. Use the same formula as in the prior part.
(Very hard.) Find a way to multiply two matrices using only seven multiplications instead of the eight suggested by the prior approach.
Answer.
Each entry takes multiplications and there are entries. Thus there are multiplications.
Let be , let be , let be , let be . Then
this association uses this many multiplications shows which is cheapest.
This is an improvement by S. Winograd of a formula due to V. Strassen: let and then
where , and , and , and . This takes seven multiplications and fifteen additions (save the intermediate results).
Exercise 3.49 Worked answer
Puzzle. [Putnam, 1990, A-5] If and are square matrices of the same size such that , does it follow that ?
Answer. This is how the answer was given in the cited source. No, it does not. Let and represent, with respect to the standard bases, these transformations of .
Observe that
Exercise 3.50 Worked answer
[Am. Math. Mon., Dec. 1966] Demonstrate these four assertions to get an alternate proof that column rank equals row rank.
iff .
iff .
.
.
Answer. This is how the answer was given in the cited source.
Obvious.
If then where . Hence by (a).
The converse is obvious.
By (b), ,…, are linearly independent iff ,…, are linearly independent.
We have
Thus also and so .
Exercise 3.51 Worked answer
[Ackerson] Prove (where is an matrix and so defines a transformation of any -dimensional space with respect to where is a basis) that . Conclude
iff ;
iff ;
iff and ;
iff ;
(Requires the Direct Sum subsection, which is optional.) iff .
Answer. This is how the answer was given in the cited source. Let be a basis for ( might be ). Let be such that . Note is linearly independent, and extend to a basis for : where .
Now take . Write
and so
But , so and we now know
spans .
To see is linearly independent, write
and, since we get a contradiction unless it is (clearly it is in , but is a basis for ).
Hence .
Inverses
We finish this section by considering how to represent the inverse of a linear map. We first recall some things about inverses. Where is the projection map and is the embedding
then the composition is the identity map on .
We say that is a right inverse of or, what is the same thing, that is a left inverse of . However, composition in the other order doesn’t give the identity map—here is a vector that is not sent to itself under .
In fact, has no left inverse at all. For, if were to be a left inverse of then we would have
for all of the infinitely many ’s. But a function cannot send a single argument to more than one value.
So a function can have a right inverse but no left inverse, or a left inverse but no right inverse. A function can also fail to have an inverse on either side; one example is the zero transformation on .
Some functions have a two-sided inverse, another function that is the inverse both from the left and from the right. For instance, the transformation given by has the two-sided inverse . The appendix shows that a function has a two-sided inverse if and only if it is both one-to-one and onto. The appendix also shows that if a function has a two-sided inverse then it is unique, so we call it ‘the’ inverse and write .
In addition, recall that we have shown in Theorem II.2.20 that if a linear map has a two-sided inverse then that inverse is also linear.
Thus, our goal in this subsection is, where a linear has an inverse, to find the relationship between and .
Definition 4.1 A matrix is a left inverse matrix of the matrix if is the identity matrix. It is a right inverse if is the identity. A matrix with a two-sided inverse is an invertible matrix. That two-sided inverse is denoted .
Because of the correspondence between linear maps and matrices, statements about map inverses translate into statements about matrix inverses.
Lemma 4.2 If a matrix has both a left inverse and a right inverse then the two are equal.
Theorem 4.3 A matrix is invertible if and only if it is nonsingular.
Proof (For both results.) Given a matrix , fix spaces of appropriate dimension for the domain and codomain and fix bases for these spaces. With respect to these bases, represents a map . The statements are true about the map and therefore they are true about the matrix.
QED
Lemma 4.4 A product of invertible matrices is invertible: if and are invertible and is defined then is invertible and .
Proof Because the two matrices are invertible they are square, and because their product is defined they must both be . Fix spaces and bases—say, with the standard bases— to get maps that are associated with the matrices, and .
Consider . By the prior paragraph this composition is defined. This map is a two-sided inverse of since and . The matrices representing the maps reflect this equality.
QED
This is the arrow diagram giving the relationship between map inverses and matrix inverses. It is a special case of the diagram relating function composition to matrix multiplication.
Beyond its place in our program of seeing how to represent map operations, another reason for our interest in inverses comes from linear systems. A linear system is equivalent to a matrix equation, as here.
By fixing spaces and bases (for instance, with the standard bases), we take the matrix to represent a map . The matrix equation then becomes this linear map equation.
If we had a left inverse map then we could apply it to both sides to get . Restating in terms of the matrices, we want to multiply by the inverse matrix to get .
Example 4.5 We can find a left inverse for the matrix just given
by using Gauss’s Method to solve the resulting linear system.
Answer: , , , and . (This matrix is actually the two-sided inverse of ; the check is easy.) With it, we can solve the system from the prior example.
Remark 4.6 Why solve systems with inverse matrices when we have Gauss’s Method? Beyond the conceptual appeal of representing the map inverse operation, solving linear systems this way has two advantages.
First, once we have done the work of finding an inverse then solving a system with the same coefficients but different constants is fast: if we change the constants on the right of the system above then we get a related problem
that our inverse method solves quickly.
Another advantage of inverses is that we can explore a system’s sensitivity to changes in the constants. For example, tweaking the on the right of the prior example’s system to
and solving with the inverse
shows that the first component of the solution changes by of the tweak, while the second component moves by of the tweak. This is sensitivity analysis. We could use it to decide how accurately we must specify the data in a linear model to ensure that the solution has a desired accuracy.
Lemma 4.7 A matrix is invertible if and only if it can be written as the product of elementary reduction matrices. We can compute the inverse by applying to the identity matrix the same row steps, in the same order, that Gauss-Jordan reduce .
Proof The matrix is invertible if and only if it is nonsingular and thus Gauss-Jordan reduces to the identity. By Corollary 3.23 we can do this reduction with elementary matrices.
For the first sentence of the result, note that elementary matrices are invertible because elementary row operations are reversible, and that their inverses are also elementary. Apply from the left to both sides of (). Then apply , etc. The result gives as the product of elementary matrices . (The there covers the case .)
For the second sentence, group () as and recognize what’s in the parentheses as the inverse . Restated: applying to the identity, followed by , etc., yields the inverse of .
QED
Example 4.8 To find the inverse of
do Gauss-Jordan reduction, meanwhile performing the same operations on the identity. For clerical convenience we write the matrix and the identity side-by-side and do the reduction steps together.
This calculation has found the inverse.
Example 4.9 This one happens to start with a row swap.
Example 4.10 This algorithm detects a non-invertible matrix when the left half won’t reduce to the identity.
With this procedure we can give a formula for the inverse of a general matrix, which is worth memorizing.
Corollary 4.11 The inverse for a matrix exists and equals
if and only if .
Proof This computation is Exercise 4.21.
QED
We have seen in this subsection, as in the subsection on Mechanics of Matrix Multiplication, how to exploit the correspondence between linear maps and matrices. We can fruitfully study both maps and matrices, translating back and forth to use whichever is handiest.
Over the course of this entire section we have developed an algebra system for matrices. We can compare it with the familiar algebra of real numbers. Matrix addition and subtraction work in much the same way as the real number operations except that they only combine same-sized matrices. Scalar multiplication is in some ways an extension of real number multiplication. We also have a matrix multiplication operation and its inverse that are somewhat like the familiar real number operations (associativity, and distributivity over addition, for example), but there are differences (failure of commutativity). This section provides an example that algebra systems other than the usual real number one can be interesting and useful.
Exercises
Exercise 4.12 Worked answer
Supply the intermediate steps in Example 4.9.
Answer. Here is one way to proceed. Follow
with
and read the answer off of the right side.
Exercise 4.13 Worked answer
Recommended. Use Corollary 4.11 to decide if each matrix has an inverse.
Exercise 4.14 Worked answer
Recommended. For each invertible matrix in the prior problem, use Corollary 4.11 to find its inverse.
Exercise 4.15 Worked answer
Recommended. Find the inverse, if it exists, by using the Gauss-Jordan Method. Check the answers for the matrices with Corollary 4.11.
Answer.
The reduction is routine.
This answer agrees with the answer from the check.
This reduction is easy.
The check agrees.
Trying the Gauss-Jordan reduction
shows that the left side won’t reduce to the identity, so no inverse exists. The check agrees.
This produces an inverse.
This is one way to do the reduction.
There is no inverse.
As a check, note that the third column of the starting matrix is times the second, and so it is indeed singular and therefore has no inverse.
Exercise 4.17 Worked answer
How does the inverse operation interact with scalar multiplication and addition of matrices?
What is the inverse of ?
Is ?
Answer.
The proof that the inverse is (provided, of course, that the matrix is invertible) is easy.
No. For one thing, the fact that has an inverse doesn’t imply that has an inverse or that has an inverse. Neither of these matrices is invertible but their sum is.
Another point is that just because and each has an inverse doesn’t mean has an inverse; here is an example.
Still a third point is that, even if the two matrices have inverses, and the sum has an inverse, doesn’t imply that the equation holds:
but
and does not equal .
Exercise 4.20 Worked answer
For each real number let be represented with respect to the standard bases by this matrix.
Show that . Show also that .
Answer. One way to check that the first is true is with the angle sum formulas from trigonometry.
Checking the second equation in this way is similar.
Of course, the equations can be not just checked but also understood by recalling that is the map that rotates vectors about the origin through an angle of radians.
Exercise 4.21 Worked answer
Do the calculations for the proof of Corollary 4.11.
Answer. There are two cases. For the first case we assume that is nonzero. Then
shows that the matrix is invertible (in this case) if and only if . To find the inverse, we finish with the Jordan half of the reduction.
The other case is the case. We swap to get into the position.
This matrix is nonsingular if and only if both and are nonzero (which, under the case assumption that , holds if and only if ). To find the inverse we do the Jordan half.
(Note that this is what is required, since gives that ).
Exercise 4.22 Worked answer
Show that this matrix
has infinitely many right inverses. Show also that it has no left inverse.
Answer. With a matrix, in looking for a matrix such that the combination acts as the identity we need to be . Setting up the equation
and solving the resulting linear system
gives infinitely many solutions.
Thus has infinitely many right inverses.
As for left inverses, the equation
gives rise to a linear system with nine equations and four unknowns.
This system is inconsistent (the first equation conflicts with the third, as do the seventh and ninth) and so there is no left inverse.
Exercise 4.23 Worked answer
In the review of inverses example, starting this subsection, how many left inverses has ?
Answer. With respect to the standard bases we have
and setting up the equation to find the matrix inverse
gives rise to a linear system.
There are infinitely many solutions in to this system because two of these variables are entirely unrestricted
and so there are infinitely many solutions to the matrix equation.
With the bases still fixed at , for instance taking and gives a matrix representing this map.
The check that is the identity map on is easy.
Exercise 4.24 Worked answer
If a matrix has infinitely many right-inverses, can it have infinitely many left-inverses? Must it have?
Answer. By Lemma 4.2 it cannot have infinitely many left inverses, because a matrix with both left and right inverses has only one of each (and that one of each is one of both—the left and right inverse matrices are equal).
Exercise 4.25 Worked answer
Assume that is linear. One of these is true, the other is false. Which is which?
If is a left inverse of then must be linear.
If is a right inverse of then must be linear.
Answer.
True, It must be linear, as the proof from Theorem II.2.20 shows.
False. It may be linear, but it need not be. Consider the projection map described at the start of this subsection. Define in this way.
It is a right inverse of because does this.
It is not linear because it does not map the zero vector to the zero vector.
Exercise 4.26 Worked answer
Recommended. Assume that is invertible and that is the zero matrix. Show that is a zero matrix.
Answer. The associativity of matrix multiplication gives and also .
Exercise 4.27 Worked answer
Prove that if is invertible then the inverse commutes with a matrix if and only if itself commutes with that matrix .
Answer. Multiply both sides of the first equation by .
Exercise 4.28 Worked answer
Recommended. Show that if is square and if is the zero matrix then . Generalize.
Answer. Checking that when is multiplied on both sides by that expression (assuming that is the zero matrix) then the result is the identity matrix is easy. The obvious generalization is that if is the zero matrix then ; the check again is easy.
Exercise 4.29 Worked answer
Recommended. Let be diagonal. Describe , , …, etc. Describe , , …, etc. Define appropriately.
Answer. The powers of the matrix are formed by taking the powers of the diagonal entries. That is, is all zeros except for diagonal entries of , , etc. This suggests defining to be the identity matrix.
Exercise 4.30 Worked answer
Prove that any matrix row-equivalent to an invertible matrix is also invertible.
Answer. Assume that is row equivalent to and that is invertible. Because they are row-equivalent, there is a sequence of row steps to reduce one to the other. We can do that reduction with matrices, for instance, can change by row operations to as . This equation gives as a product of invertible matrices and by Lemma 4.4 then, is also invertible.
Exercise 4.31 Worked answer
The first question below appeared as Exercise 2.30.
Show that the rank of the product of two matrices is less than or equal to the minimum of the rank of each.
Show that if and are square then if and only if .
Answer.
See the answer to Exercise 2.30.
We will show that both conditions are equivalent to the condition that the two matrices be nonsingular.
As and are square and their product is defined, they are equal-sized, say . Consider the half. By the prior item the rank of is less than or equal to the minimum of the rank of and the rank of . But the rank of is , so the rank of and the rank of must each be . Hence each is nonsingular.
The same argument shows that implies that each is nonsingular.
Exercise 4.32 Worked answer
Show that the inverse of a permutation matrix is its transpose.
Answer. Inverses are unique, so we need only show that it works. The check appears above as Exercise 3.38.
Exercise 4.33 Worked answer
Show that .
A square matrix is symmetric if each entry equals the entry (that is, if the matrix equals its transpose). Show that the matrices and are symmetric.
Show that the inverse of the transpose is the transpose of the inverse.
Show that the inverse of a symmetric matrix is symmetric.
Answer.
See the answer for Exercise 2.27.
See the answer for Exercise 2.27.
Apply the first part to to get .
Apply the prior item with , as is symmetric.
Exercise 4.34 Worked answer
Recommended.
Prove that the composition of the projections is the zero map despite that neither is the zero map.
Prove that the composition of the derivatives is the zero map despite that neither map is the zero map.
Give matrix equations representing each of the prior two items.
When two things multiply to give zero despite that neither is zero, each is said to be a zero divisor. Prove that no zero divisor is invertible.
Answer. For the answer to the items making up the first half, see Exercise 2.32. For the proof in the second half, assume that is a zero divisor so there is a nonzero matrix with (or else ; this case is similar), If is invertible then but also , contradicting that is nonzero.
Exercise 4.35 Worked answer
In the algebra of real numbers, quadratic equations have at most two solutions. Matrix algebra is different. Show that the matrix equation has more than two solutions.
Answer. There are infinitely many matrices that square to the identity. Here are four.
Two more are
and here is another
(in this last one the pattern involves Pythagorean triples, numbers such that ). Remark: see also https://en.wikipedia.org/wiki/Square_root_of_a_2_by_2_matrix.
Exercise 4.36 Worked answer
Is the relation ‘is a two-sided inverse of’ transitive? Reflexive? Symmetric?
Answer. It is not reflexive since, for instance,
is not a two-sided inverse of itself. The same example shows that it is not transitive. That matrix has this two-sided inverse
and while is a two-sided inverse of and is a two-sided inverse of , we know that is not a two-sided inverse of . However, the relation is symmetric: if is a two-sided inverse of then and therefore is also a two-sided inverse of .
Exercise 4.37 Worked answer
[Am. Math. Mon., Nov. 1951] Prove: if the sum of the elements of each row of a square matrix is , then the sum of the elements in each row of the inverse matrix is .
Answer. This is how the answer was given in the cited source. Let be , non-singular, with the stated property. Let be its inverse. Then for ,
( is singular if ).
References cited in this section
Cleary
R. Cleary, private communication, Nov. 2011.
Putnam, 1990, A-5
William Lowell Putnam Mathematical Competition, Problem A-5, 1990.
Am. Math. Mon., Dec. 1966
Hans Liebeck, A Proof of the Equality of Column Rank and Row Rank of a Matrix American Mathematical Monthly, vol. 73 no. 10 (Dec. 1966), p. 1114.
Ackerson
R. H. Ackerson, A Note on Vector Spaces, American Mathematical Monthly, vol. 62 no. 10 (Dec. 1955), p. 721.
Am. Math. Mon., Nov. 1951
Albert Wilansky, The Row-Sums of the Inverse Matrix, American Mathematical Monthly, vol. 58 no. 9 (Nov. 1951), p. 614.