Original English by Jim Hefferon — 34 validated sections. The original mathematics and supplied answers below are preserved. This is a partial-book reading edition, not the complete book or an Everyday-English rewrite.

Source, reuse and conversion details

Source revision df2262e089a02651c127f1dd12649c4622ee1383; CC BY-SA 2.5 option, with original component credits retained. This is not an Everyday-English rewrite. The complete original source section is included. Cross-section references use the bound earlier local readers; retain those sibling files for offline use.

Notes about the original source and its answers

These seventeen findings are separate from the unchanged original text and formulas. Opening them can reveal answers. The complete source has been read through, but this is not an exhaustive mathematical correctness audit or human review. Answer containers may give only a pointer or a short argument; their presence does not prove a complete worked solution.

  1. Source note 1: The original prose repeats the word “of”.
  2. Source note 2: The regrouped final coefficient of v_n in the first output coordinate uses g_(1,1). It should use g_(1,n), matching the immediately preceding expansion of g(v).
  3. Source note 3: The matrix-product entry formula in the multiplication-cost answer has inconsistent final indices. Its last summand should be g_(i,r) h_(r,j), not g_(1,r) h_(r,1).
  4. Source note 4: The three displayed reciprocal diagonal matrices on the right also carry inverse exponents. As written, the equalities are false; the right-hand inverse exponents should be absent. The following scalar expression also contains a stray underscore.
  5. Source note 5: The left-inverse calculation displays a 2-by-2 unknown matrix multiplying the given 2-by-3 matrix but sets the product equal to a 3-by-3 identity. A left inverse must be 3-by-2. The following six-unknown system includes e and f, while the prose incorrectly says four unknowns.
  6. Source note 6: The question says exactly one of its two assertions is true, but both are false without additional hypotheses. A left inverse of an injective linear map need not be linear away from the image. The supplied answer incorrectly declares the left-inverse assertion true.
  7. Source note 7: This answer incorrectly states that every left inverse of a linear map must be linear. The cited two-sided inverse theorem does not justify that claim on points outside the image.
  8. Source note 8: The supplied proof of TS=I if and only if ST=I asserts that these are each equivalent to both matrices being nonsingular, which is false, and only proves two necessary conditions. It does not establish the requested equivalence.
  9. Source note 9: The answer names the pair of bases as standard bases of dimensions 2 and 2 while the displayed map has domain R^3 and codomain R^2.
  10. Source note 10: The row-operation label writes (a/ad-bc) times row 2. The displayed reduction requires a/(ad-bc), with the whole denominator grouped.
  11. Source note 11: The answer has an incomplete phrase: “the j,i entry of is”. The matrix name after “of” is missing.
  12. Source note 12: The rank-product proof bounds an image dimension by the dimension of the domain of g, then concludes a bound by rank(g). That step is not justified: domain dimension need not equal rank(g).
  13. Source note 13: The answer counts the powers of a matrix as distinct set elements. They need not be distinct: for T=I, the displayed set is just {I}. The dimension argument applies to the indexed family of n-squared-plus-one powers, not necessarily a set of that cardinality.
  14. Source note 14: The final shifted derivative drops the coefficient n from its last term. It should end with n times a_n x^n, not a_n x^n.
  15. Source note 15: The sentence says “is to rescales the rows”; the verb after “to” should be “rescale”.
  16. Source note 16: The answer says the displayed matrix swaps rows one and three, but the matrix and product swap rows one and two, as the question requests.
  17. Source note 17: The matrix displayed for g does not represent the stated basis action. The action beta_1 to beta_2 and beta_2 to zero has columns (0,1) and (0,0), whereas the printed matrix has columns (0,0) and (1,0). The sentence also contains “if for we use”.

Wide formulas and tables scroll horizontally. Focus a region and use the arrow keys.

Source-preserving rebuild, navigation, source packaging and current deterministic checks: OpenAI Codex — GPT-6 Astra, Ultra effort. Jim Hefferon remains the author of the mathematics. Earlier intermediate-conversion runtime identity is not established by its retained receipts and is not reassigned to this rebuild. No human review or exhaustive proof certification is claimed.

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 r ⋅ f of a linear map relates to the representation of f , and also how the representation of a sum f + g 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 f : V → W be a linear function represented with respect to some bases by this matrix.

Rep B , D ( f ) = ( 1 0 1 1 )

Consider the map that is the scalar multiple 5 f : V → W . We will relate the representation Rep B , D ( 5 f ) with Rep B , D ( f ) .

Let f associate v → ↦ w → with these representations.

Rep B ( v → ) = ( v 1 v 2 ) Rep D ( w → ) = ( w 1 w 2 )

Where the codomain’s basis is D = ⟨ δ → 1 , δ → 2 ⟩ , that representation gives that the output vector is w → = w 1 δ → 1 + w 2 δ → 2 .

The action of the map 5 f is v → ↦ 5 w → and 5 w → = 5 ⋅ ( w 1 δ → 1 + w 2 δ → 2 ) = ( 5 w 1 ) δ → 1 + ( 5 w 2 ) δ → 2 . So 5 f associates the input vector v → with the output vector having this representation.

Rep D ( 5 w → ) = ( 5 w 1 5 w 2 )

Changing from the map f to the map 5 f has the effect on the representation of the output vector of multiplying each entry by 5 .

Because of that, Rep B , D ( 5 f ) is this matrix.

Rep B , D ( 5 f ) ⋅ ( v 1 v 2 ) = ( 5 v 1 5 v 1 + 5 v 2 ) Rep B , D ( 5 f ) = ( 5 0 5 5 )

Therefore, going from the matrix representing f to the one representing 5 f means multiplying all the matrix entries by 5 .

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 f , g : ℝ 2 → ℝ 2 are represented with respect to bases B and  D by these matrices.

Rep B , D ( f ) = ( 1 3 2 0 ) Rep B , D ( g ) = ( − 2 − 1 2 4 )

Recall the definition of sum: if f  does v → ↦ u → and g  does v → ↦ w → then f + g is the function whose action is v → ↦ u → + w → . Let these be the representations of the input and output vectors.

Rep B ( v → ) = ( v 1 v 2 ) Rep D ( u → ) = ( u 1 u 2 ) Rep D ( w → ) = ( w 1 w 2 )

Where D = ⟨ δ → 1 , δ → 2 ⟩ we have u → + w → = ( u 1 δ → 1 + u 2 δ → 2 ) + ( w 1 δ → 1 + w 2 δ → 2 ) = ( u 1 + w 1 ) δ → 1 + ( u 2 + w 2 ) δ → 2 and so this is the representation of the vector sum.

Rep D ( u → + w → ) = ( u 1 + w 1 u 2 + w 2 )

Thus, since these represent the actions of of the maps f and  g on the input  v →

( 1 3 2 0 ) ( v 1 v 2 ) = ( v 1 + 3 v 2 2 v 1 ) ( − 2 − 1 2 4 ) ( v 1 v 2 ) = ( − 2 v 1 − v 2 2 v 1 + 4 v 2 )

adding the entries represents the action of the map f + g .

Rep B , D ( f + g ) ⋅ ( v 1 v 2 ) = ( − v 1 + 2 v 2 4 v 1 + 4 v 2 )

Therefore, we compute the matrix representing the function sum by adding the entries of the matrices representing the functions.

Rep B , D ( f + g ) = ( − 1 2 4 4 )

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 h , g : V → W be linear maps represented with respect to bases B , D by the matrices H and G and let r be a scalar. Then with respect to B , D the map r ⋅ h : V → W is represented by r H and the map h + g : V → W is represented by H + G .

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 0 ⋅ h is the zero homomorphism and for any matrix 0 ⋅ H is the matrix with all entries zero.

Definition 1.6 A zero matrix has all entries 0 . We write Z n × m or simply Z (another common notation is 0 n × m or just 0 ).

Example 1.7 The zero map from any three-dimensional space to any two-dimensional space is represented by the 2 × 3 zero matrix

Z = ( 0 0 0 0 0 0 )

no matter what domain and codomain bases we use.

Exercises

  1. Exercise 1.8 Worked answer

    Recommended. Perform the indicated operations, if defined, or state “not defined.”

    1. ( 5 − 1 2 6 1 1 ) + ( 2 1 4 3 0 5 )

    2. 6 ⋅ ( 2 − 1 − 1 1 2 3 )

    3. ( 2 1 0 3 ) + ( 2 1 0 3 )

    4. 4 ( 1 2 3 − 1 ) + 5 ( − 1 4 − 2 1 )

    5. 3 ( 2 1 3 0 ) + 2 ( 1 1 4 3 0 5 )

    Back to Exercise 1.8

    Answer.

    1. ( 7 0 6 9 1 6 )

    2. ( 12 − 6 − 6 6 12 18 )

    3. ( 4 2 0 6 )

    4. ( − 1 28 2 1 )

    5. Not defined.

  2. Exercise 1.9 Worked answer

    Give the matrix representing the zero map from ℝ 4 to ℝ 2 , with respect to the standard bases.

    Back to Exercise 1.9

    Answer. The bases don’t matter. The only thing that matters is getting the dimensions right.

    ( 0 0 0 0 0 0 0 0 )

  3. Exercise 1.10 Worked answer

    Prove Theorem 1.4.

    1. Prove that matrix addition represents addition of linear maps.

    2. Prove that matrix scalar multiplication represents scalar multiplication of linear maps.

    Back to Exercise 1.10

    Answer. Represent the domain vector v → ∈ V and the maps g , h : V → W with respect to bases B , D in the usual way.

    1. The representation of ( g + h ) ( v → ) = g ( v → ) + h ( v → )

      ( ( g 1 , 1 v 1 + ⋯ + g 1 , n v n ) δ → 1 + ⋯ + ( g m , 1 v 1 + ⋯ + g m , n v n ) δ → m ) + ( ( h 1 , 1 v 1 + ⋯ + h 1 , n v n ) δ → 1 + ⋯ + ( h m , 1 v 1 + ⋯ + h m , n v n ) δ → m )

      regroups

      = ( ( g 1 , 1 + h 1 , 1 ) v 1 + ⋯ + ( g 1 , 1 + h 1 , n ) v n ) ⋅ δ → 1 + ⋯ + ( ( g m , 1 + h m , 1 ) v 1 + ⋯ + ( g m , n + h m , n ) v n ) ⋅ δ → m

      to the entry-by-entry sum of the representation of g ( v → ) and the representation of h ( v → ) .

    2. The representation of ( r ⋅ h ) ( v → ) = r ⋅ ( h ( v → ) )

      r ⋅ ( ( h 1 , 1 v 1 + h 1 , 2 v 2 + ⋯ + h 1 , n v n ) δ → 1 + ⋯ + ( h m , 1 v 1 + h m , 2 v 2 + ⋯ + h m , n v n ) δ → m ) = ( r h 1 , 1 v 1 + ⋯ + r h 1 , n v n ) ⋅ δ → 1 + ⋯ + ( r h m , 1 v 1 + ⋯ + r h m , n v n ) ⋅ δ → m

      is the entry-by-entry multiple of r and the representation of h .

  4. Exercise 1.11 Worked answer

    Recommended. Prove each, assuming that the operations are defined, where G , H , and J are matrices, where Z is the zero matrix, and where r and s are scalars.

    1. Matrix addition is commutative G + H = H + G .

    2. Matrix addition is associative G + ( H + J ) = ( G + H ) + J .

    3. The zero matrix is an additive identity G + Z = G .

    4. 0 ⋅ G = Z

    5. ( r + s ) G = r G + s G

    6. Matrices have an additive inverse G + ( − 1 ) ⋅ G = Z .

    7. r ( G + H ) = r G + r H

    8. ( r s ) G = r ( s G )

    Back to Exercise 1.11

    Answer. First, each of these properties is easy to check in an entry-by-entry way. For example, writing

    G = ( g 1 , 1 … g 1 , n ⋮ ⋮ g m , 1 … g m , n ) H = ( h 1 , 1 … h 1 , n ⋮ ⋮ h m , 1 … h m , n )

    then, by definition we have

    G + H = ( g 1 , 1 + h 1 , 1 … g 1 , n + h 1 , n ⋮ ⋮ g m , 1 + h m , 1 … g m , n + h m , n )

    and

    H + G = ( h 1 , 1 + g 1 , 1 … h 1 , n + g 1 , n ⋮ ⋮ h m , 1 + g m , 1 … h m , n + g m , n )

    and the two are equal since their entries are equal g i , j + h i , j = h i , j + g i , j . 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.

    1. The two maps g + h and h + g are equal because g ( v → ) + h ( v → ) = h ( v → ) + g ( v → ) , as addition is commutative in any vector space. Because the maps are the same, they must have the same representative.

    2. As with the prior answer, except that here we apply that vector space addition is associative.

    3. As before, except that here we note that g ( v → ) + z ( v → ) = g ( v → ) + 0 → = g ( v → ) .

    4. Apply that 0 ⋅ g ( v → ) = 0 → = z ( v → ) .

    5. Apply that ( r + s ) ⋅ g ( v → ) = r ⋅ g ( v → ) + s ⋅ g ( v → ) .

    6. Apply the prior two items with r = 1 and s = − 1 .

    7. Apply that r ⋅ ( g ( v → ) + h ( v → ) ) = r ⋅ g ( v → ) + r ⋅ h ( v → ) .

    8. Apply that ( r s ) ⋅ g ( v → ) = r ⋅ ( s ⋅ g ( v → ) ) .

  5. 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?

    Back to Exercise 1.12

    Answer. For any V , W with bases B , D , the (appropriately-sized) zero matrix represents this map.

    β → 1 ↦ 0 ⋅ δ → 1 + ⋯ + 0 ⋅ δ → m ⋯ β → n ↦ 0 ⋅ δ → 1 + ⋯ + 0 ⋅ δ → m

    This is the zero map.

    There are no other matrices that represent only one map. For, suppose that H is not the zero matrix. Then it has a nonzero entry; assume that h i , j ≠ 0 . With respect to bases B , D , it represents h 1 : V → W sending

    β → j ↦ h 1 , j δ → 1 + ⋯ + h i , j δ → i + ⋯ + h m , j δ → m

    and with respect to B , 2 ⋅ D it also represents h 2 : V → W sending

    β → j ↦ h 1 , j ⋅ ( 2 δ → 1 ) + ⋯ + h i , j ⋅ ( 2 δ → i ) + ⋯ + h m , j ⋅ ( 2 δ → m )

    (the notation 2 ⋅ D means to double all of the members of D). These maps are easily seen to be unequal.

  6. Exercise 1.13 Worked answer

    Recommended. Let V and W be vector spaces of dimensions n and m . Show that the space ℒ ⁡ ( V , W ) of linear maps from V to W is isomorphic to ℳ m × n .

    Back to Exercise 1.13

    Answer. Fix bases B and D for V and W , and consider Rep B , D : ℒ ⁡ ( V , W ) → ℳ m × n associating each linear map with the matrix representing that map h ↦ Rep B , D ( h ) . 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.

  7. Exercise 1.14 Worked answer

    Recommended. Show that it follows from the prior question that for any six transformations t 1 , … , t 6 : ℝ 2 → ℝ 2 there are scalars c 1 , … , c 6 ∈ ℝ such that not every c i equals  0 but c 1 t 1 + ⋯ + c 6 t 6 is the zero map. (Hint: the six is slightly misleading.)

    Back to Exercise 1.14

    Answer. Fix bases and represent the transformations with 2 × 2 matrices. The space of matrices ℳ 2 × 2 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.)

  8. Exercise 1.15 Worked answer

    The trace of a square matrix is the sum of the entries on the main diagonal (the 1 , 1 entry plus the 2 , 2 entry, etc.; we will see the significance of the trace in Chapter Five). Show that trace ( H + G ) = trace ( H ) + trace ( G ) . Is there a similar result for scalar multiplication?

    Back to Exercise 1.15

    Answer. That the trace of a sum is the sum of the traces holds because both trace ( H + G ) and trace ( H ) + trace ( G ) are the sum of h 1 , 1 + g 1 , 1 with h 2 , 2 + g 2 , 2 , etc. For scalar multiplication we have trace ( r ⋅ H ) = r ⋅ trace ( H ) ; the proof is easy. Thus the trace map is a homomorphism from ℳ n × n to ℝ .

  9. Exercise 1.16 Worked answer

    Recall that the transpose of a matrix M is another matrix, whose i , j entry is the j , i entry of M . Verify these identities.

    1. ( G + H ) 𝖳 = G 𝖳 + H 𝖳

    2. ( r ⋅ H ) 𝖳 = r ⋅ H 𝖳

    Back to Exercise 1.16

    Answer.

    1. The i , j entry of ( G + H ) 𝖳 is g j , i + h j , i . That is also the i , j entry of G 𝖳 + H 𝖳 .

    2. The i , j entry of ( r ⋅ H ) 𝖳 is r h j , i , which is also the i , j entry of r ⋅ H 𝖳 .

  10. Exercise 1.17 Worked answer

    Recommended. A square matrix is symmetric if each i , j entry equals the j , i entry, that is, if the matrix equals its transpose.

    1. Prove that for any square  H , the matrix H + H 𝖳 is symmetric. Does every symmetric matrix have this form?

    2. Prove that the set of n × n symmetric matrices is a subspace of ℳ n × n .

    Back to Exercise 1.17

    Answer.

    1. For H + H 𝖳 , the i , j entry is h i , j + h j , i and the j , i entry of is h j , i + h i , j . The two are equal and thus H + H 𝖳 is symmetric.

      Every symmetric matrix does have that form, since we can write H = ( 1 / 2 ) ⋅ ( H + H 𝖳 ) .

    2. 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 H + G of two symmetric matrices is symmetric because h i , j + g i , j = h j , i + g j , i (since h i , j = h j , i and g i , j = g j , i ). Thus the subset is nonempty and closed under the inherited operations, and so it is a subspace.

  11. Exercise 1.18 Worked answer

    Recommended.

    1. How does matrix rank interact with scalar multiplication—can a scalar product of a rank  n matrix have rank less than n ? Greater?

    2. How does matrix rank interact with matrix addition—can a sum of rank  n matrices have rank less than n ? Greater?

    Back to Exercise 1.18

    Answer.

    1. 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.)

    2. A sum of rank n matrices can have rank less than n . For instance, for any matrix H , the sum H + ( − 1 ) ⋅ H has rank zero.

      A sum of rank n matrices can have rank greater than n . Here are rank one matrices that sum to a rank two matrix.

      ( 1 0 0 0 ) + ( 0 0 0 1 ) = ( 1 0 0 1 )

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 h : V → W and g : W → U be linear. The calculation

g ∘ h ( c 1 ⋅ v → 1 + c 2 ⋅ v → 2 ) = g ( h ( c 1 ⋅ v → 1 + c 2 ⋅ v → 2 ) ) = g ( c 1 ⋅ h ( v → 1 ) + c 2 ⋅ h ( v → 2 ) ) = c 1 ⋅ g ( h ( v → 1 ) ) + c 2 ⋅ g ( h ( v → 2 ) ) = c 1 ⋅ ( g ∘ h ) ( v → 1 ) + c 2 ⋅ ( g ∘ h ) ( v → 2 )

shows that g ∘ h : V → U 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 h : ℝ 4 → ℝ 2 and g : ℝ 2 → ℝ 3 , fix bases B ⊂ ℝ 4 , C ⊂ ℝ 2 , D ⊂ ℝ 3 , and let these be the representations.

H = Rep B , C ( h ) = ( 4 6 8 2 5 7 9 3 ) B , C G = Rep C , D ( g ) = ( 1 1 0 1 1 0 ) C , D

To represent the composition g ∘ h : ℝ 4 → ℝ 3 we start with a v → , represent h of v → , and then represent g of that. The representation of h ( v → ) is the product of h ’s matrix and v → ’s vector.

Rep C ( h ( v → ) ) = ( 4 6 8 2 5 7 9 3 ) B , C ( v 1 v 2 v 3 v 4 ) B = ( 4 v 1 + 6 v 2 + 8 v 3 + 2 v 4 5 v 1 + 7 v 2 + 9 v 3 + 3 v 4 ) C

The representation of g ( h ( v → ) ) is the product of g ’s matrix and h ( v → ) ’s vector.

Rep D ( g ( h ( v → ) ) ) = ( 1 1 0 1 1 0 ) C , D ( 4 v 1 + 6 v 2 + 8 v 3 + 2 v 4 5 v 1 + 7 v 2 + 9 v 3 + 3 v 4 ) C = ( 1 ⋅ ( 4 v 1 + 6 v 2 + 8 v 3 + 2 v 4 ) + 1 ⋅ ( 5 v 1 + 7 v 2 + 9 v 3 + 3 v 4 ) 0 ⋅ ( 4 v 1 + 6 v 2 + 8 v 3 + 2 v 4 ) + 1 ⋅ ( 5 v 1 + 7 v 2 + 9 v 3 + 3 v 4 ) 1 ⋅ ( 4 v 1 + 6 v 2 + 8 v 3 + 2 v 4 ) + 0 ⋅ ( 5 v 1 + 7 v 2 + 9 v 3 + 3 v 4 ) ) D

Distributing and regrouping on the v ’s gives

= ( ( 1 ⋅ 4 + 1 ⋅ 5 ) v 1 + ( 1 ⋅ 6 + 1 ⋅ 7 ) v 2 + ( 1 ⋅ 8 + 1 ⋅ 9 ) v 3 + ( 1 ⋅ 2 + 1 ⋅ 3 ) v 4 ( 0 ⋅ 4 + 1 ⋅ 5 ) v 1 + ( 0 ⋅ 6 + 1 ⋅ 7 ) v 2 + ( 0 ⋅ 8 + 1 ⋅ 9 ) v 3 + ( 0 ⋅ 2 + 1 ⋅ 3 ) v 4 ( 1 ⋅ 4 + 0 ⋅ 5 ) v 1 + ( 1 ⋅ 6 + 0 ⋅ 7 ) v 2 + ( 1 ⋅ 8 + 0 ⋅ 9 ) v 3 + ( 1 ⋅ 2 + 0 ⋅ 3 ) v 4 ) D

which is this matrix-vector product.

= ( 1 ⋅ 4 + 1 ⋅ 5 1 ⋅ 6 + 1 ⋅ 7 1 ⋅ 8 + 1 ⋅ 9 1 ⋅ 2 + 1 ⋅ 3 0 ⋅ 4 + 1 ⋅ 5 0 ⋅ 6 + 1 ⋅ 7 0 ⋅ 8 + 1 ⋅ 9 0 ⋅ 2 + 1 ⋅ 3 1 ⋅ 4 + 0 ⋅ 5 1 ⋅ 6 + 0 ⋅ 7 1 ⋅ 8 + 0 ⋅ 9 1 ⋅ 2 + 0 ⋅ 3 ) B , D ( v 1 v 2 v 3 v 4 ) B

The matrix representing g ∘ h has the rows of G combined with the columns of H .

Definition 2.3 The matrix-multiplicative product of the m × r matrix  G and the r × n matrix  H is the m × n matrix  P , where

p i , j = g i , 1 h 1 , j + g i , 2 h 2 , j + ⋯ + g i , r h r , j

so that the i , j -th entry of the product is the dot product of the i -th row of the first matrix with the j -th column of the second.

G H = ( ⋮ g i , 1 g i , 2 ⋯ g i , r ⋮ ) ( h 1 , j ⋯ h 2 , j ⋯ ⋮ h r , j ) = ( ⋮ ⋯ p i , j ⋯ ⋮ )

Example 2.4 ( 2 0 4 6 8 2 ) ( 1 3 5 7 ) = ( 2 ⋅ 1 + 0 ⋅ 5 2 ⋅ 3 + 0 ⋅ 7 4 ⋅ 1 + 6 ⋅ 5 4 ⋅ 3 + 6 ⋅ 7 8 ⋅ 1 + 2 ⋅ 5 8 ⋅ 3 + 2 ⋅ 7 ) = ( 2 6 34 54 18 38 )

Example 2.5 Some products are not defined, such as the product of a 2 × 3 matrix with a 2 × 2 , because the number of columns in the first matrix must equal the number of rows in the second. But the product of two n × n matrices is always defined. Here are two 2 × 2 ’s.

( 1 2 3 4 ) ( − 1 0 2 − 2 ) = ( 1 ⋅ ( − 1 ) + 2 ⋅ 2 1 ⋅ 0 + 2 ⋅ ( − 2 ) 3 ⋅ ( − 1 ) + 4 ⋅ 2 3 ⋅ 0 + 4 ⋅ ( − 2 ) ) = ( 3 − 4 5 − 8 )

Example 2.6 The matrices from Example 2.2 combine in this way.

( 1 1 0 1 1 0 ) ( 4 6 8 2 5 7 9 3 ) = ( 1 ⋅ 4 + 1 ⋅ 5 1 ⋅ 6 + 1 ⋅ 7 1 ⋅ 8 + 1 ⋅ 9 1 ⋅ 2 + 1 ⋅ 3 0 ⋅ 4 + 1 ⋅ 5 0 ⋅ 6 + 1 ⋅ 7 0 ⋅ 8 + 1 ⋅ 9 0 ⋅ 2 + 1 ⋅ 3 1 ⋅ 4 + 0 ⋅ 5 1 ⋅ 6 + 0 ⋅ 7 1 ⋅ 8 + 0 ⋅ 9 1 ⋅ 2 + 0 ⋅ 3 ) = ( 9 13 17 5 5 7 9 3 4 6 8 2 )

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 h : V → W and g : W → X be represented by H and G with respect to bases B ⊂ V , C ⊂ W , and D ⊂ X , of sizes n , r , and m . For any v → ∈ V the k -th component of Rep C ( h ( v → ) ) is

h k , 1 v 1 + ⋯ + h k , n v n

and so the i -th component of Rep D ( g ∘ h ( v → ) ) is this.

g i , 1 ⋅ ( h 1 , 1 v 1 + ⋯ + h 1 , n v n ) + g i , 2 ⋅ ( h 2 , 1 v 1 + ⋯ + h 2 , n v n ) + ⋯ + g i , r ⋅ ( h r , 1 v 1 + ⋯ + h r , n v n )

Distribute and regroup on the v ’s.

= ( g i , 1 h 1 , 1 + g i , 2 h 2 , 1 + ⋯ + g i , r h r , 1 ) ⋅ v 1 + ⋯ + ( g i , 1 h 1 , n + g i , 2 h 2 , n + ⋯ + g i , r h r , n ) ⋅ v n

Finish by recognizing that the coefficient of each v j

g i , 1 h 1 , j + g i , 2 h 2 , j + ⋯ + g i , r h r , j

matches the definition of the i , j entry of the product G H .

QED

This arrow diagram pictures the relationship between maps and matrices (‘wrt’ abbreviates ‘with respect to’).

Commutative triangle: V with basis B maps by h, represented by H, to W with basis C, then by g, represented by G, to X with basis D. The direct path is g composed with h, represented by GH.

Above the arrows, the maps show that the two ways of going from V to X , straight over via the composition or else in two steps by way of W , have the same effect

v → ⟼ g ∘ h g ( h ( v → ) ) v → ⟼ h h ( v → ) ⟼ g g ( h ( v → ) )

(this is just the definition of composition). Below the arrows, the matrices indicate that multiplying G H into the column vector Rep B ( v → ) has the same effect as multiplying the column vector first by H and then multiplying the result by G .

Rep B , D ( g ∘ h ) = G H Rep C , D ( g ) Rep B , C ( h ) = G H

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 2 × 3 matrix with a 2 × 2 matrix is not defined.

( − 1 2 0 0 10 1.1 ) ( 0 0 0 2 )

The definition requires that the sizes match because we want that the underlying function composition is possible.

dimension  n  space ⟶ h dimension  r  space ⟶ g dimension  m  space ( ∗ )

Thus, matrix product combines the m × r matrix  G with the r × n matrix  F to yield the m × n result  G F . Briefly: m × r  times  r × n  equals  m × n .

Remark 2.8 The order of the dimensions can be confusing. In ‘ m × r  times  r × n  equals  m × n ’ the number written first is  m . But  m appears last in the map dimension description line ( ∗ ) above, and the other dimensions also appear in reverse. The explanation is that while h is done first, followed by g , we write the composition as g ∘ h , with g on the left (arising from the notation g ( h ( v → ) ) ). That carries over to matrices, so that g ∘ h is represented by G H .

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 i , j entry, is brought out here by the boxing the equal subscripts.

p i , j = g i , 1 h 1 , j + g i , 2 h 2 , j + ⋯ + g i , r h r , j

The highlighted subscripts on the g ’s are column indices while those on the h ’s are for rows. That is, the summation takes place over the columns of G but over the rows of H — the definition treats left differently than right. So we may reasonably suspect that G H can be unequal to H G .

Example 2.9 Matrix multiplication is not commutative.

( 1 2 3 4 ) ( 5 6 7 8 ) = ( 19 22 43 50 ) ( 5 6 7 8 ) ( 1 2 3 4 ) = ( 23 34 31 46 )

Example 2.10 Commutativity can fail more dramatically:

( 5 6 7 8 ) ( 1 2 0 3 4 0 ) = ( 23 34 0 31 46 0 )

while

( 1 2 0 3 4 0 ) ( 5 6 7 8 )

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 f ( x ) = 2 x and g ( x ) = x + 1 then g ∘ f ( x ) = 2 x + 1 while f ∘ g ( x ) = 2 ( x + 1 ) = 2 x + 2 .

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 F , G , and H are matrices, and the matrix products are defined, then the product is associative ( F G ) H = F ( G H ) and distributes over matrix addition F ( G + H ) = F G + F H and ( G + H ) F = G F + H F .

Proof Associativity holds because matrix multiplication represents function composition, which is associative: the maps ( f ∘ g ) ∘ h and f ∘ ( g ∘ h ) are equal as both send v → to f ( g ( h ( v → ) ) ) .

Distributivity is similar. For instance, the first one goes f ∘ ( g + h ) ( v → ) = f ( ( g + h ) ( v → ) ) = f ( g ( v → ) + h ( v → ) ) = f ( g ( v → ) ) + f ( h ( v → ) ) = f ∘ g ( v → ) + f ∘ h ( v → ) (the third equality uses the linearity of f ). 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 i , j entry of ( F G ) H is

( f i , 1 g 1 , 1 + f i , 2 g 2 , 1 + ⋯ + f i , r g r , 1 ) h 1 , j + ( f i , 1 g 1 , 2 + f i , 2 g 2 , 2 + ⋯ + f i , r g r , 2 ) h 2 , j ⋮ + + ( f i , 1 g 1 , s + f i , 2 g 2 , s + ⋯ + f i , r g r , s ) h s , j

where F , G , and H are m × r , r × s , and s × n matrices. Distribute

f i , 1 g 1 , 1 h 1 , j + f i , 2 g 2 , 1 h 1 , j + ⋯ + f i , r g r , 1 h 1 , j + f i , 1 g 1 , 2 h 2 , j + f i , 2 g 2 , 2 h 2 , j + ⋯ + f i , r g r , 2 h 2 , j ⋮ + + f i , 1 g 1 , s h s , j + f i , 2 g 2 , s h s , j + ⋯ + f i , r g r , s h s , j

and regroup around the f ’s

f i , 1 ( g 1 , 1 h 1 , j + g 1 , 2 h 2 , j + ⋯ + g 1 , s h s , j ) + f i , 2 ( g 2 , 1 h 1 , j + g 2 , 2 h 2 , j + ⋯ + g 2 , s h s , j ) ⋮ + + f i , r ( g r , 1 h 1 , j + g r , 2 h 2 , j + ⋯ + g r , s h s , j )

to get the i , j entry of F ( G H ) .

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

  1. Exercise 2.14 Worked answer

    Recommended. Compute, or state “not defined”.

    1. ( 3 1 − 4 2 ) ( 0 5 0 0.5 )

    2. ( 1 1 − 1 4 0 3 ) ( 2 − 1 − 1 3 1 1 3 1 1 )

    3. ( 2 − 7 7 4 ) ( 1 0 5 − 1 1 1 3 8 4 )

    4. ( 5 2 3 1 ) ( − 1 2 3 − 5 )

    Back to Exercise 2.14

    Answer.

    1. ( 0 15.5 0 − 19 )

    2. ( 2 − 1 − 1 17 − 1 − 1 )

    3. Not defined.

    4. ( 1 0 0 1 )

  2. Exercise 2.15 Worked answer

    Recommended. Where

    A = ( 1 − 1 2 0 ) B = ( 5 2 4 4 ) C = ( − 2 3 − 4 1 )

    compute or state “not defined.”

    1. A B

    2. ( A B ) C

    3. B C

    4. A ( B C )

    Back to Exercise 2.15

    Answer.

    1. ( 1 − 2 10 4 )

    2. ( 1 − 2 10 4 ) ( − 2 3 − 4 1 ) = ( 6 1 − 36 34 )

    3. ( − 18 17 − 24 16 )

    4. ( 1 − 1 2 0 ) ( − 18 17 − 24 16 ) = ( 6 1 − 36 34 )

  3. Exercise 2.16 Worked answer

    Which products are defined?

    1. 3 × 2  times  2 × 3

    2. 2 × 3  times  3 × 2

    3. 2 × 2  times  3 × 3

    4. 3 × 3  times  2 × 2

    Back to Exercise 2.16

    Answer.

    1. Yes.

    2. Yes.

    3. No.

    4. No.

  4. Exercise 2.17 Worked answer

    Recommended. Give the size of the product or state “not defined”.

    1. a 2 × 3 matrix times a 3 × 1 matrix

    2. a 1 × 12 matrix times a 12 × 1 matrix

    3. a 2 × 3 matrix times a 2 × 1 matrix

    4. a 2 × 2 matrix times a 2 × 2 matrix

    Back to Exercise 2.17

    Answer.

    1. 2 × 1

    2. 1 × 1

    3. Not defined.

    4. 2 × 2

  5. Exercise 2.18 Worked answer

    Recommended. Find the system of equations resulting from starting with

    h 1 , 1 x 1 + h 1 , 2 x 2 + h 1 , 3 x 3 = d 1 h 2 , 1 x 1 + h 2 , 2 x 2 + h 2 , 3 x 3 = d 2

    and making this change of variable (i.e., substitution).

    x 1 = g 1 , 1 y 1 + g 1 , 2 y 2 x 2 = g 2 , 1 y 1 + g 2 , 2 y 2 x 3 = g 3 , 1 y 1 + g 3 , 2 y 2

    Back to Exercise 2.18

    Answer. We have

    h 1 , 1 ⋅ ( g 1 , 1 y 1 + g 1 , 2 y 2 ) + h 1 , 2 ⋅ ( g 2 , 1 y 1 + g 2 , 2 y 2 ) + h 1 , 3 ⋅ ( g 3 , 1 y 1 + g 3 , 2 y 2 ) = d 1 h 2 , 1 ⋅ ( g 1 , 1 y 1 + g 1 , 2 y 2 ) + h 2 , 2 ⋅ ( g 2 , 1 y 1 + g 2 , 2 y 2 ) + h 2 , 3 ⋅ ( g 3 , 1 y 1 + g 3 , 2 y 2 ) = d 2

    which, after expanding and regrouping about the y ’s yields this.

    ( h 1 , 1 g 1 , 1 + h 1 , 2 g 2 , 1 + h 1 , 3 g 3 , 1 ) y 1 + ( h 1 , 1 g 1 , 2 + h 1 , 2 g 2 , 2 + h 1 , 3 g 3 , 2 ) y 2 = d 1 ( h 2 , 1 g 1 , 1 + h 2 , 2 g 2 , 1 + h 2 , 3 g 3 , 1 ) y 1 + ( h 2 , 1 g 1 , 2 + h 2 , 2 g 2 , 2 + h 2 , 3 g 3 , 2 ) y 2 = d 2

    We can express the starting system and the system used for the substitutions in matrix language, as

    ( h 1 , 1 h 1 , 2 h 1 , 3 h 2 , 1 h 2 , 2 h 2 , 3 ) ( x 1 x 2 x 3 ) = H ( x 1 x 2 x 3 ) = ( d 1 d 2 )

    and

    ( g 1 , 1 g 1 , 2 g 2 , 1 g 2 , 2 g 3 , 1 g 3 , 2 ) ( y 1 y 2 ) = G ( y 1 y 2 ) = ( x 1 x 2 x 3 )

    and with this, the substitution is d → = H x → = H ( G y → ) = ( H G ) y → .

  6. Exercise 2.19 Worked answer

    Recommended. Consider the two linear functions h : ℝ 3 → 𝒫 2 and g : 𝒫 2 → ℳ 2 × 2 given as here.

    ( a b c ) ↦ ( a + b ) x 2 + ( 2 a + 2 b ) x + c p x 2 + q x + r ↦ ( p p − 2 q q 0 )

    Use these bases for the spaces.

    B = ⟨ ( 1 1 1 ) , ( 0 1 1 ) , ( 0 0 1 ) ⟩ C = ⟨ 1 + x , 1 − x , x 2 ⟩ D = ⟨ ( 1 0 0 0 ) , ( 0 2 0 0 ) , ( 0 0 3 0 ) , ( 0 0 0 4 ) ⟩

    1. Give the formula for the composition map g ∘ h : ℝ 3 → ℳ 2 × 2 derived directly from the above definition.

    2. Represent h and  g with respect to the appropriate bases.

    3. Represent the map g ∘ h computed in the first part with respect to the appropriate bases.

    4. Check that the product of the two matrices from the second part is the matrix from the third part.

    Back to Exercise 2.19

    Answer.

    1. Following the definitions gives this.

      ( a b c ) ↦ ( a + b ) x 2 + ( 2 a + 2 b ) x + c ↦ ( a + b ( a + b ) − 2 ( 2 a + 2 b ) 2 a + 2 b 0 ) = ( a + b − 3 a − 3 b 2 a + 2 b 0 )

    2. Because

      ( 1 1 1 ) ↦ 2 x 2 + 4 x + 1 ( 0 1 1 ) ↦ x 2 + 2 x + 1 ( 0 0 1 ) ↦ 0 x 2 + 0 x + 1

      we get this representation for  h .

      Rep B , C ( h ) = ( 5 / 2 3 / 2 1 / 2 − 3 / 2 − 1 / 2 1 / 2 2 1 0 )

      Similarly, because

      1 + x ↦ ( 0 − 2 1 0 ) 1 − x ↦ ( 0 2 − 1 0 ) x 2 ↦ ( 1 1 0 0 )

      this is the representation of  g .

      Rep C , D ( g ) = ( 0 0 1 − 1 1 1 / 2 1 / 3 − 1 / 3 0 0 0 0 )

    3. The action of g ∘ h on the domain basis is this.

      ( 1 1 1 ) ↦ ( 2 − 6 4 0 ) ( 0 1 1 ) ↦ ( 1 − 3 2 0 ) ( 0 0 1 ) ↦ ( 0 0 0 0 )

      We have this.

      Rep B , D ( g ∘ h ) = ( 2 1 0 − 3 − 3 / 2 0 4 / 3 2 / 3 0 0 0 0 )

    4. The matrix multiplication is routine, just take care with the order.

      ( 0 0 1 − 1 1 1 / 2 1 / 3 − 1 / 3 0 0 0 0 ) ( 5 / 2 3 / 2 1 / 2 − 3 / 2 − 1 / 2 1 / 2 2 1 0 ) = ( 2 1 0 − 3 − 3 / 2 0 4 / 3 2 / 3 0 0 0 0 )

  7. 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 1 × n row vector and a n × 1 column vector the same as their matrix-multiplicative product?

    Back to Exercise 2.20

    Answer. Technically, no. The dot product operation yields a scalar while the matrix product yields a 1 × 1 matrix. However, we usually will ignore the distinction.

  8. Exercise 2.21 Worked answer

    Recommended. Represent the derivative map on 𝒫 n with respect to B , B where B is the natural basis ⟨ 1 , x , … , x n ⟩ . Show that the product of this matrix with itself is defined; what map does it represent?

    Back to Exercise 2.21

    Answer. The action of d / d x on B is 1 ↦ 0 , x ↦ 1 , x 2 ↦ 2 x , …and so this is its ( n + 1 ) × ( n + 1 ) matrix representation.

    Rep B , B ( d d x ) = ( 0 1 0 0 0 0 2 0 ⋱ 0 0 0 n 0 0 0 0 )

    The product of this matrix with itself is defined because the matrix is square.

    ( 0 1 0 0 0 0 2 0 ⋱ 0 0 0 n 0 0 0 0 ) 2 = ( 0 0 2 0 0 0 0 0 6 0 ⋱ 0 0 0 n ( n − 1 ) 0 0 0 0 0 0 0 0 )

    The map so represented is the composition

    p ⟼ d d x d p d x ⟼ d d x d 2 p d x 2

    which is the second derivative operation.

  9. 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 1 × 1 matrix, (ii) can represent a linear map from ℝ 3 to ℝ 2 that is not onto, (iii) can represent an isomorphism from ℝ 3 to 𝒫 2 .

    1. a 2 × 3 matrix whose rank is  1

    2. a 3 × 3 matrix that is nonsingular

    3. a 2 × 2 matrix that is singular

    4. an n × 1 column vector

    Back to Exercise 2.22

    Answer.

    1. ii

    2. iii

    3. None

    4. None, or (i) if we include multiplication from the left.

  10. Exercise 2.23 Worked answer

    Show that composition of linear transformations on ℝ 1 is commutative. Is this true for any one-dimensional space?

    Back to Exercise 2.23

    Answer. It is true for all one-dimensional spaces. Let f and g be transformations of a one-dimensional space. We must show that g ∘ f ( v → ) = f ∘ g ( v → ) for all vectors. Fix a basis B for the space and then the transformations are represented by 1 × 1 matrices.

    F = Rep B , B ( f ) = ( f 1 , 1 ) G = Rep B , B ( g ) = ( g 1 , 1 )

    Therefore, the compositions can be represented as G F and F G .

    G F = Rep B , B ( g ∘ f ) = ( g 1 , 1 f 1 , 1 ) F G = Rep B , B ( f ∘ g ) = ( f 1 , 1 g 1 , 1 )

    These two matrices are equal and so the compositions have the same effect on each vector in the space.

  11. Exercise 2.24 Worked answer

    Why is matrix multiplication not defined as entry-wise multiplication? That would be easier, and commutative too.

    Back to Exercise 2.24

    Answer. It would not represent linear map composition; Theorem 2.7 would fail.

  12. Exercise 2.25 Worked answer

    1. Prove that H p H q = H p + q and ( H p ) q = H p q for positive integers p , q .

    2. Prove that ( r H ) p = r p ⋅ H p for any positive integer p and scalar r ∈ ℝ .

    Back to Exercise 2.25

    Answer. Each follows easily from the associated map fact. For instance, p applications of the transformation h , following q applications, is simply p + q applications.

  13. Exercise 2.26 Worked answer

    Recommended.

    1. How does matrix multiplication interact with scalar multiplication: is r ( G H ) = ( r G ) H ? Is G ( r H ) = r ( G H ) ?

    2. How does matrix multiplication interact with linear combinations: is F ( r G + s H ) = r ( F G ) + s ( F H ) ? Is ( r F + s G ) H = r F H + s G H ?

    Back to Exercise 2.26

    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 f , g , h .

    1. Yes; we have both r ⋅ ( g ∘ h ) ( v → ) = r ⋅ g ( h ( v → ) ) = ( r ⋅ g ) ∘ h ( v → ) and g ∘ ( r ⋅ h ) ( v → ) = g ( r ⋅ h ( v → ) ) = r ⋅ g ( h ( v → ) ) = r ⋅ ( g ∘ h ) ( v → ) (the second equality holds because of the linearity of g ).

    2. Both answers are yes. First, f ∘ ( r g + s h ) and r ⋅ ( f ∘ g ) + s ⋅ ( f ∘ h ) both send v → to r ⋅ f ( g ( v → ) ) + s ⋅ f ( h ( v → ) ) ; the calculation is as in the prior item (using the linearity of f for the first one). For the other, ( r f + s g ) ∘ h and r ⋅ ( f ∘ h ) + s ⋅ ( g ∘ h ) both send v → to r ⋅ f ( h ( v → ) ) + s ⋅ g ( h ( v → ) ) .

  14. Exercise 2.27 Worked answer

    We can ask how the matrix product operation interacts with the transpose operation.

    1. Show that ( G H ) 𝖳 = H 𝖳 G 𝖳 .

    2. A square matrix is symmetric if each i , j entry equals the j , i entry, that is, if the matrix equals its own transpose. Show that the matrices H H 𝖳 and H 𝖳 H are symmetric.

    Back to Exercise 2.27

    Answer. We have not seen a map interpretation of the transpose operation, so we will verify these by considering the entries.

    1. The i , j entry of G H 𝖳 is the j , i entry of G H , which is the dot product of the j -th row of G and the i -th column of H . The i , j entry of H 𝖳 G 𝖳 is the dot product of the i -th row of H 𝖳 and the j -th column of G 𝖳 , which is the dot product of the i -th column of H and the j -th row of G . Dot product is commutative and so these two are equal.

    2. By the prior item each equals its transpose, e.g., ( H H 𝖳 ) 𝖳 = H 𝖳 𝖳 H 𝖳 = H H 𝖳 .

  15. Exercise 2.28 Worked answer

    Recommended. Rotation of vectors in ℝ 3 about an axis is a linear map. Show that linear maps do not commute by showing geometrically that rotations do not commute.

    Back to Exercise 2.28

    Answer. Consider r x , r y : ℝ 3 → ℝ 3 rotating all vectors π / 2  radians counterclockwise about the x and y  axes (counterclockwise in the sense that a person whose head is at e → 1 or e → 2 and whose feet are at the origin sees, when looking toward the origin, the rotation as counterclockwise).

    Supplied-answer rotation diagram: a stick figure has feet at the origin and head along the positive x-axis. An oriented arc in the yz-plane specifies rotation about the x-axis. Supplied-answer rotation diagram: a stick figure has feet at the origin and head along the positive y-axis. An oriented arc in the xz-plane specifies rotation about the y-axis.

    Rotating r x first and then r y is different than rotating r y first and then r x . In particular, r x ( e → 3 ) = − e → 2 so r y ∘ r x ( e → 3 ) = − e → 2 , while r y ( e → 3 ) = e → 1 so r x ∘ r y ( e → 3 ) = e → 1 , and hence the maps do not commute.

  16. Exercise 2.29 Worked answer

    In the proof of Theorem 2.12 we used some maps. What are the domains and codomains?

    Back to Exercise 2.29

    Answer. It doesn’t matter (as long as the spaces have the appropriate dimensions).

    For associativity, suppose that F is m × r , that G is r × n , and that H is n × k . We can take any r  dimensional space, any m  dimensional space, any n  dimensional space, and any k  dimensional space—for instance, ℝ r , ℝ m , ℝ n , and ℝ k will do. We can take any bases A , B , C , and D , for those spaces. Then, with respect to C , D the matrix H represents a linear map h , with respect to B , C the matrix G represents a g , and with respect to A , B the matrix F represents an f . We can use those maps in the proof.

    The second half is similar, except that we add G and H and so we must take them to represent maps with the same domain and codomain.

  17. Exercise 2.30 Worked answer

    How does matrix rank interact with matrix multiplication?

    1. Can the product of rank n matrices have rank less than n ? Greater?

    2. Show that the rank of the product of two matrices is less than or equal to the minimum of the rank of each factor.

    Back to Exercise 2.30

    Answer.

    1. The product of rank n matrices can have rank less than or equal to n but not greater than n .

      To see that the rank can fall, consider the maps π x , π y : ℝ 2 → ℝ 2 projecting onto the axes. Each is rank one but their composition π x ∘ π y , which is the zero map, is rank zero. That translates over to matrices representing those maps in this way.

      Rep ℰ 2 , ℰ 2 ( π x ) ⋅ Rep ℰ 2 , ℰ 2 ( π y ) = ( 1 0 0 0 ) ( 0 0 0 1 ) = ( 0 0 0 0 )

      To prove that the product of rank n matrices cannot have rank greater than n , we can apply the map result that the image of a linearly dependent set is linearly dependent. That is, if h : V → W and g : W → X both have rank n then a set in the range ℛ ( g ∘ h ) of size larger than n is the image under g of a set in W of size larger than n and so is linearly dependent (since the rank of h is n ). Now, the image of a linearly dependent set is dependent, so any set of size larger than n in the range is dependent. (By the way, observe that the rank of g was not mentioned. See the next part.)

    2. Fix spaces and bases and consider the associated linear maps f and g . 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.

      V ⟼ f ℛ ( f ) ⟼ g ℛ ( g ∘ f )

      First, the image of ℛ ( f ) must have dimension less than or equal to the dimension of ℛ ( f ) , by the prior sentence. On the other hand, ℛ ( f ) is a subset of the domain of g , and thus its image has dimension less than or equal the dimension of the domain of g . 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.

  18. Exercise 2.31 Worked answer

    Is ‘commutes with’ an equivalence relation among n × n matrices?

    Back to Exercise 2.31

    Answer. The ‘commutes with’ relation is reflexive and symmetric. However, it is not transitive: for instance, with

    G = ( 1 2 3 4 ) H = ( 1 0 0 1 ) J = ( 5 6 7 8 )

    G commutes with H and H commutes with J , but G does not commute with J .

  19. 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.

    1. Prove that the composition of the projections π x , π y : ℝ 3 → ℝ 3 onto the x and y  axes is the zero map despite that neither one is itself the zero map.

    2. Prove that the composition of the derivatives d 2 / d x 2 , d 3 / d x 3 : 𝒫 4 → 𝒫 4 is the zero map despite that neither is the zero map.

    3. Give a matrix equation representing the first fact.

    4. 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.

    Back to Exercise 2.32

    Answer.

    1. Either of these.

      ( x y z ) ⟼ π x ( x 0 0 ) ⟼ π y ( 0 0 0 ) ( x y z ) ⟼ π y ( 0 y 0 ) ⟼ π x ( 0 0 0 )

    2. The composition is the fifth derivative map d 5 / d x 5 on the space of fourth-degree polynomials.

    3. With respect to the natural bases,

      Rep ℰ 3 , ℰ 3 ( π x ) = ( 1 0 0 0 0 0 0 0 0 ) Rep ℰ 3 , ℰ 3 ( π y ) = ( 0 0 0 0 1 0 0 0 0 )

      and their product (in either order) is the zero matrix.

    4. Where B = ⟨ 1 , x , x 2 , x 3 , x 4 ⟩ ,

      Rep B , B ( d 2 d x 2 ) = ( 0 0 2 0 0 0 0 0 6 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 0 ) Rep B , B ( d 3 d x 3 ) = ( 0 0 0 6 0 0 0 0 0 24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 )

      and their product (in either order) is the zero matrix.

  20. Exercise 2.33 Worked answer

    Show that, for square matrices, ( S + T ) ( S − T ) need not equal S 2 − T 2 .

    Back to Exercise 2.33

    Answer. Note that ( S + T ) ( S − T ) = S 2 − S T + T S − T 2 , so a reasonable try is to look at matrices that do not commute so that − S T and T S don’t cancel: with

    S = ( 1 2 3 4 ) T = ( 5 6 7 8 )

    we have the desired inequality.

    ( S + T ) ( S − T ) = ( − 56 − 56 − 88 − 88 ) S 2 − T 2 = ( − 60 − 68 − 76 − 84 )

  21. Exercise 2.34 Worked answer

    Recommended. Represent the identity transformation id : V → V with respect to B , B for any basis B . This is the identity matrix I . Show that this matrix plays the role in matrix multiplication that the number 1 plays in real number multiplication:  H I = I H = H (for all matrices H for which the product is defined).

    Back to Exercise 2.34

    Answer. Because the identity map acts on the basis B as β → 1 ↦ β → 1 , …, β → n ↦ β → n , the representation is this.

    ( 1 0 0 0 0 1 0 0 0 0 1 0 ⋱ 0 0 0 1 )

    The second part of the question is obvious from Theorem 2.7.

  22. Exercise 2.35 Worked answer

    1. Prove that for any 2 × 2 matrix T there are scalars c 0 , … , c 4 that are not all 0 such that the combination c 4 T 4 + c 3 T 3 + c 2 T 2 + c 1 T + c 0 I is the zero matrix (where I is the 2 × 2 identity matrix, with 1 ’s in its 1 , 1 and 2 , 2 entries and zeroes elsewhere; see Exercise 2.34).

    2. Let p ( x ) be a polynomial p ( x ) = c n x n + ⋯ + c 1 x + c 0 . If T is a square matrix we define p ( T ) to be the matrix c n T n + ⋯ + c 1 T + c 0 I (where I is the appropriately-sized identity matrix). Prove that for any square matrix there is a polynomial such that p ( T ) is the zero matrix.

    3. The minimal polynomial m ( x ) of a square matrix is the polynomial of least degree, and with leading coefficient 1 , such that m ( T ) is the zero matrix. Find the minimal polynomial of this matrix.

      ( 3 / 2 − 1 / 2 1 / 2 3 / 2 )

      (This is the representation with respect to ℰ 2 , ℰ 2 , the standard basis, of a rotation through π / 6  radians counterclockwise.)

    Back to Exercise 2.35

    Answer.

    1. The vector space ℳ 2 × 2 has dimension four. The set { T 4 , … , T , I } has five elements and thus is linearly dependent.

    2. Where T is n × n , generalizing the argument from the prior item shows that there is such a polynomial of degree n 2 or less, since { T n 2 , … , T , I } is a n 2 + 1 -member subset of the n 2 -dimensional space ℳ n × n .

    3. First compute the powers

      T 2 = ( 1 / 2 − 3 / 2 3 / 2 1 / 2 ) T 3 = ( 0 − 1 1 0 ) T 4 = ( − 1 / 2 − 3 / 2 3 / 2 − 1 / 2 )

      (observe that rotating by π / 6 three times results in a rotation by π / 2 , which is indeed what T 3 represents). Then set c 4 T 4 + c 3 T 3 + c 2 T 2 + c 1 T + c 0 I equal to the zero matrix

      ( − 1 / 2 − 3 / 2 3 / 2 − 1 / 2 ) c 4 + ( 0 − 1 1 0 ) c 3 + ( 1 / 2 − 3 / 2 3 / 2 1 / 2 ) c 2 + ( 3 / 2 − 1 / 2 1 / 2 3 / 2 ) c 1 + ( 1 0 0 1 ) c 0 = ( 0 0 0 0 )

      to get this linear system.

      − ( 1 / 2 ) c 4 + ( 1 / 2 ) c 2 + ( 3 / 2 ) c 1 + c 0 = 0 − ( 3 / 2 ) c 4 − c 3 − ( 3 / 2 ) c 2 − ( 1 / 2 ) c 1 = 0 ( 3 / 2 ) c 4 + c 3 + ( 3 / 2 ) c 2 + ( 1 / 2 ) c 1 = 0 − ( 1 / 2 ) c 4 + ( 1 / 2 ) c 2 + ( 3 / 2 ) c 1 + c 0 = 0

      Apply Gaussian reduction.

      ⟶ − ρ 1 + ρ 4 ( ⟶ ρ 2 + ρ 3 ( − ( 1 / 2 ) c 4 + ( 1 / 2 ) c 2 + ( 3 / 2 ) c 1 + c 0 = 0 − ( 3 / 2 ) c 4 − c 3 − ( 3 / 2 ) c 2 − ( 1 / 2 ) c 1 = 0 0 = 0 0 = 0 ⟶ − 3 ρ 1 + ρ 2 ( − ( 1 / 2 ) c 4 + ( 1 / 2 ) c 2 + ( 3 / 2 ) c 1 + c 0 = 0 − c 3 − 3 c 2 − 2 c 1 − 3 c 0 = 0 0 = 0 0 = 0

      Setting c 4 , c 3 , and c 2 to zero makes c 1 and c 0 also come out to be zero so no degree one or degree zero polynomial will do. Setting c 4 and c 3 to zero (and c 2 to one) gives a linear system

      ( 1 / 2 ) + ( 3 / 2 ) c 1 + c 0 = 0 − 3 − 2 c 1 − 3 c 0 = 0

      with solution c 1 = − 3 and c 0 = 1 . Conclusion: the polynomial m ( x ) = x 2 − 3 x + 1 is minimal for the matrix T .

  23. 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 d / d x : 𝒫 → 𝒫 be the usual derivative and let s : 𝒫 → 𝒫 be the shift map.

    a 0 + a 1 x + ⋯ + a n x n ⟼ s 0 + a 0 x + a 1 x 2 + ⋯ + a n x n + 1

    Show that the two maps don’t commute d / d x ∘ s ≠ s ∘ d / d x ; in fact, not only is ( d / d x ∘ s ) − ( s ∘ d / d x ) not the zero map, it is the identity map.

    Back to Exercise 2.36

    Answer. The check is routine:

    a 0 + a 1 x + ⋯ + a n x n ⟼ s a 0 x + a 1 x 2 + ⋯ + a n x n + 1 ⟼ d / d x a 0 + 2 a 1 x + ⋯ + ( n + 1 ) a n x n

    while

    a 0 + a 1 x + ⋯ + a n x n ⟼ d / d x a 1 + ⋯ + n a n x n − 1 ⟼ s a 1 x + ⋯ + a n x n

    so that under the map ( d / d x ∘ s ) − ( s ∘ d / d x ) we have a 0 + a 1 x + ⋯ + a n x n ↦ a 0 + a 1 x + ⋯ + a n x n .

  24. Exercise 2.37 Worked answer

    Recall the notation for the sum of the sequence of numbers a 1 , a 2 , … , a n .

    ∑ i = 1 n a i = a 1 + a 2 + ⋯ + a n

    In this notation, the i , j entry of the product of G and H is this.

    p i , j = ∑ k = 1 r g i , k h k , j

    Using this notation,

    1. reprove that matrix multiplication is associative;

    2. reprove Theorem 2.7.

    Back to Exercise 2.37

    Answer.

    1. Tracing through the remark at the end of the subsection gives that the i , j entry of ( F G ) H is this

      ∑ t = 1 s ( ∑ k = 1 r f i , k g k , t ) h t , j = ∑ t = 1 s ∑ k = 1 r ( f i , k g k , t ) h t , j = ∑ t = 1 s ∑ k = 1 r f i , k ( g k , t h t , j ) = ∑ k = 1 r ∑ t = 1 s f i , k ( g k , t h t , j ) = ∑ k = 1 r f i , k ( ∑ t = 1 s g k , t h t , j )

      (the first equality comes from using the distributive law to multiply through the h ’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 f ’s out), which is the i , j entry of F ( G H ) .

    2. The k -th component of h ( v → ) is

      ∑ j = 1 n h k , j v j

      and so the i -th component of g ∘ h ( v → ) is this

      ∑ k = 1 r g i , k ( ∑ j = 1 n h k , j v j ) = ∑ k = 1 r ∑ j = 1 n g i , k h k , j v j = ∑ k = 1 r ∑ j = 1 n ( g i , k h k , j ) v j = ∑ j = 1 n ∑ k = 1 r ( g i , k h k , j ) v j = ∑ j = 1 n ( ∑ k = 1 r g i , k h k , j ) v j

      (the first equality holds by using the distributive law to multiply the g ’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 v ’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 i , j entry of the matrix product is the dot product of row  i of the left matrix with column  j of the right one. For instance, here a second row and a third column combine to make a 2 , 3  entry.

( 1 1 0 1 1 0 ) ( 4 5 6 7 8 9 2 3 ) = ( 9 13 17 5 5 7 9 3 4 6 8 2 )

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.

( 0 0 0 0 ) ( 1 3 2 − 1 1 − 1 ) = ( 0 0 0 0 0 0 ) ( 2 3 1 4 ) ( 0 0 0 0 ) = ( 0 0 0 0 )

The next easiest matrices are the ones with a single nonzero entry.

Definition 3.2 A matrix with all 0 ’s except for a 1 in the i , j entry is an i , j unit matrix (or matrix unit).

Example 3.3 This is the 1 , 2 unit matrix with three rows and two columns, multiplying from the left.

( 0 1 0 0 0 0 ) ( 5 6 7 8 ) = ( 7 8 0 0 0 0 )

Acting from the left, an i , j unit matrix copies row  j of the multiplicand into row  i of the result. From the right an i , j unit matrix picks out column  i of the multiplicand and copies it into column  j of the result.

( 1 2 3 4 5 6 7 8 9 ) ( 0 1 0 0 0 0 ) = ( 0 1 0 4 0 7 )

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.

( 0 2 0 0 0 0 ) ( 5 6 7 8 ) = ( 14 16 0 0 0 0 )

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.

( 1 0 0 0 0 2 0 0 0 ) ( 1 2 3 4 5 6 7 8 9 ) = ( ( 1 0 0 0 0 0 0 0 0 ) + ( 0 0 0 0 0 2 0 0 0 ) ) ( 1 2 3 4 5 6 7 8 9 ) = ( 1 2 3 0 0 0 0 0 0 ) + ( 0 0 0 14 16 18 0 0 0 ) = ( 1 2 3 14 16 18 0 0 0 )

But if the left-multiplier’s nonzero entries are in the same row then that row of the result is a combination.

( 1 0 2 0 0 0 0 0 0 ) ( 1 2 3 4 5 6 7 8 9 ) = ( ( 1 0 0 0 0 0 0 0 0 ) + ( 0 0 2 0 0 0 0 0 0 ) ) ( 1 2 3 4 5 6 7 8 9 ) = ( 1 2 3 0 0 0 0 0 0 ) + ( 14 16 18 0 0 0 0 0 0 ) = ( 15 18 21 0 0 0 0 0 0 )

Right-multiplication acts in the same way, but with columns.

Lemma 3.6 In a product of two matrices G and H , the columns of G H are formed by taking G times the columns of H

G ⋅ ( ⋮ ⋮ h → 1 ⋯ h → n ⋮ ⋮ ) = ( ⋮ ⋮ G ⋅ h → 1 ⋯ G ⋅ h → n ⋮ ⋮ )

and the rows of G H are formed by taking the rows of G times H

( ⋯ g → 1 ⋯ ⋮ ⋯ g → r ⋯ ) ⋅ H = ( ⋯ g → 1 ⋅ H ⋯ ⋮ ⋯ g → r ⋅ H ⋯ )

Proof We will check that in a product of 2 × 2 matrices, the rows of the product equal the product of the rows of  G with the entire matrix  H ; other cases worh the same way.

( g 1 , 1 g 1 , 2 g 2 , 1 g 2 , 2 ) ( h 1 , 1 h 1 , 2 h 2 , 1 h 2 , 2 ) = ( ( g 1 , 1 g 1 , 2 ) H ( g 2 , 1 g 2 , 2 ) H ) = ( ( g 1 , 1 h 1 , 1 + g 1 , 2 h 2 , 1 g 1 , 1 h 1 , 2 + g 1 , 2 h 2 , 2 ) ( g 2 , 1 h 1 , 1 + g 2 , 2 h 2 , 1 g 2 , 1 h 1 , 2 + g 2 , 2 h 2 , 2 ) )

(We ignore the extra parentheses.)

QED

Example 3.7 Consider the columns of the product of two 2 × 2  matrices.

( g 1 , 1 g 1 , 2 g 2 , 1 g 2 , 2 ) ( h 1 , 1 h 1 , 2 h 2 , 1 h 2 , 2 ) = ( g 1 , 1 h 1 , 1 + g 1 , 2 h 2 , 1 g 1 , 1 h 1 , 2 + g 1 , 2 h 2 , 2 g 2 , 1 h 1 , 1 + g 2 , 2 h 2 , 1 g 2 , 1 h 1 , 2 + g 2 , 2 h 2 , 2 )

Each column is the result of multiplying G by the corresponding column of H .

G ( h 1 , 1 h 2 , 1 ) = ( g 1 , 1 h 1 , 1 + g 1 , 2 h 2 , 1 g 2 , 1 h 1 , 1 + g 2 , 2 h 2 , 1 ) G ( h 1 , 2 h 2 , 2 ) = ( g 1 , 1 h 1 , 2 + g 1 , 2 h 2 , 2 g 2 , 1 h 1 , 2 + g 2 , 2 h 2 , 2 )

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 0 except for 1 ’s in the main diagonal.

I n × n = ( 1 0 … 0 0 1 … 0 ⋮ 0 0 … 1 )

Example 3.10 Here is the 2 × 2 identity matrix leaving its multiplicand unchanged when it acts from the right.

( 1 − 2 0 − 2 1 − 1 4 3 ) ( 1 0 0 1 ) = ( 1 − 2 0 − 2 1 − 1 4 3 )

Example 3.11 Here the 3 × 3 identity leaves its multiplicand unchanged both from the left

( 1 0 0 0 1 0 0 0 1 ) ( 2 3 6 1 3 8 − 7 1 0 ) = ( 2 3 6 1 3 8 − 7 1 0 )

and from the right.

( 2 3 6 1 3 8 − 7 1 0 ) ( 1 0 0 0 1 0 0 0 1 ) = ( 2 3 6 1 3 8 − 7 1 0 )

In short, an identity matrix is the identity element of the set of n × n 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 0 ’s off the main diagonal.

( a 1 , 1 0 … 0 0 a 2 , 2 … 0 ⋮ 0 0 … a n , n )

Example 3.13 From the left, the action of multiplication by a diagonal matrix is to rescales the rows.

( 2 0 0 − 1 ) ( 2 1 4 − 1 − 1 3 4 4 ) = ( 4 2 8 − 2 1 − 3 − 4 − 4 )

From the right such a matrix rescales the columns.

( 1 2 1 2 2 2 ) ( 3 0 0 0 2 0 0 0 − 2 ) = ( 3 4 − 2 6 4 − 4 )

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 0 ’s except for a single  1 in each row and column.

Example 3.15 From the left these matrices permute rows.

( 0 0 1 1 0 0 0 1 0 ) ( 1 2 3 4 5 6 7 8 9 ) = ( 7 8 9 1 2 3 4 5 6 )

From the right they permute columns.

( 1 2 3 4 5 6 7 8 9 ) ( 0 0 1 1 0 0 0 1 0 ) = ( 2 3 1 5 6 4 8 9 7 )

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.

( 1 0 0 0 3 0 0 0 1 ) ( 0 2 1 1 0 1 / 3 1 − 1 1 0 2 0 ) = ( 0 2 1 1 0 1 3 − 3 1 0 2 0 )

Example 3.17 This multiplication swaps the first and third rows.

( 0 0 1 0 1 0 1 0 0 ) ( 0 2 1 1 0 1 3 − 3 1 0 2 0 ) = ( 1 0 2 0 0 1 3 − 3 0 2 1 1 )

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.

( 1 0 0 0 1 0 0 0 1 ) ⟶ 3 ρ 2 ( ( 1 0 0 0 3 0 0 0 1 )

Similarly, the matrix that swaps first and third rows arises in this way.

( 1 0 0 0 1 0 0 0 1 ) ⟶ ρ 1 ↔ ρ 3 ( ( 0 0 1 0 1 0 1 0 0 )

Example 3.18 The 3 × 3 matrix that arises as

( 1 0 0 0 1 0 0 0 1 ) ⟶ − 2 ρ 2 + ρ 3 ( ( 1 0 0 0 1 0 0 − 2 1 )

will, when it acts from the left, perform the combination operation − 2 ρ 2 + ρ 3 .

( 1 0 0 0 1 0 0 − 2 1 ) ( 1 0 2 0 0 1 3 − 3 0 2 1 1 ) = ( 1 0 2 0 0 1 3 − 3 0 0 − 5 7 )

Definition 3.19 The elementary reduction matrices (or just elementary matrices) result from applying a single Gaussian operation to an identity matrix.

  1. I ⟶ k ρ i ( M i ( k ) for k ≠ 0

  2. I ⟶ ρ i ↔ ρ j ( P i , j for i ≠ j

  3. I ⟶ k ρ i + ρ j ( C i , j ( k ) for i ≠ j

Lemma 3.20 Matrix multiplication can do Gaussian reduction.

  1. If H ⟶ k ρ i ( G then M i ( k ) H = G .

  2. If H ⟶ ρ i ↔ ρ j ( G then P i , j H = G .

  3. If H ⟶ k ρ i + ρ j ( G then C i , j ( k ) H = G .

Proof Clear.

QED

Example 3.21 This is the first system, from the first chapter, on which we performed Gauss’s Method.

3 x 3 = 9 x 1 + 5 x 2 − 2 x 3 = 2 ( 1 / 3 ) x 1 + 2 x 2 = 3

We can reduce it with matrix multiplication. Swap the first and third rows,

( 0 0 1 0 1 0 1 0 0 ) ( 0 0 3 9 1 5 − 2 2 1 / 3 2 0 3 ) = ( 1 / 3 2 0 3 1 5 − 2 2 0 0 3 9 )

triple the first row,

( 3 0 0 0 1 0 0 0 1 ) ( 1 / 3 2 0 3 1 5 − 2 2 0 0 3 9 ) = ( 1 6 0 9 1 5 − 2 2 0 0 3 9 )

and then add − 1 times the first row to the second.

( 1 0 0 − 1 1 0 0 0 1 ) ( 1 6 0 9 1 5 − 2 2 0 0 3 9 ) = ( 1 6 0 9 0 − 1 − 2 − 7 0 0 3 9 )

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,

( 1 0 0 0 − 1 0 0 0 1 / 3 ) ( 1 6 0 9 0 − 1 − 2 − 7 0 0 3 9 ) = ( 1 6 0 9 0 1 2 7 0 0 1 3 )

then clear the third column, and then the second column.

( 1 − 6 0 0 1 0 0 0 1 ) ( 1 0 0 0 1 − 2 0 0 1 ) ( 1 6 0 9 0 1 2 7 0 0 1 3 ) = ( 1 0 0 3 0 1 0 1 0 0 1 3 )

Corollary 3.23 For any matrix H there are elementary reduction matrices R 1 , …, R r such that R r ⋅ R r − 1 ⋯ R 1 ⋅ H 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

  1. Exercise 3.24 Worked answer

    Recommended. Predict the result of each product with a permutation matrix and then check by multiplying it out.

    1. ( 0 1 1 0 ) ( 1 2 3 4 )

    2. ( 1 2 3 4 ) ( 0 1 1 0 )

    3. ( 1 0 0 0 0 1 0 1 0 ) ( 1 2 3 4 5 6 7 8 9 )

    Back to Exercise 3.24

    Answer.

    1. Acting from the left, the P 1 , 2 matrix swaps the first and second rows. ( 3 4 1 2 )

    2. Acting from the right, P 1 , 2 swaps the first and second columns. ( 2 1 4 3 )

    3. From the left, P 2 , 3 swaps the second and third rows. ( 1 2 3 7 8 9 4 5 6 )

  2. Exercise 3.25 Worked answer

    Recommended. Predict the result of each multiplication by an elementary reduction matrix, and then check by multiplying it out.

    1. ( 3 0 0 1 ) ( 1 2 3 4 )

    2. ( 1 0 0 2 ) ( 1 2 3 4 )

    3. ( 1 0 − 2 1 ) ( 1 2 3 4 )

    4. ( 1 2 3 4 ) ( 1 − 1 0 1 )

    5. ( 1 2 3 4 ) ( 0 1 1 0 )

    Back to Exercise 3.25

    Answer.

    1. The second matrix has its first row multiplied by 3 .

      ( 3 6 3 4 )

    2. The second matrix has its second row multiplied by 2 .

      ( 1 2 6 8 )

    3. The second matrix undergoes the combination operation of replacing the second row with − 2 times the first row added to the second.

      ( 1 2 1 0 )

    4. The first matrix undergoes the column operation of: replace the second column by − 1 times the first column plus the second.

      ( 1 1 3 1 )

    5. The first matrix has its columns swapped.

      ( 2 1 4 3 )

  3. Exercise 3.26 Worked answer

    Predict the result of each multiplication by a diagonal matrix, and then check by multiplying it out.

    1. ( − 3 0 0 0 ) ( 1 2 3 4 )

    2. ( 4 0 0 2 ) ( 1 2 3 4 )

    Back to Exercise 3.26

    Answer.

    1. The second matrix has its first row multiplied by − 3 and its second row multiplied by 0 .

      ( − 3 − 6 0 0 )

    2. The second matrix has its first row multiplied by 4 and its second row multiplied by 2 .

      ( 4 8 6 8 )

  4. Exercise 3.27 Worked answer

    Produce each.

    1. a 3 × 3 matrix that, acting from the left, swaps rows one and two

    2. a 2 × 2 matrix that, acting from the right, swaps column one and two

    Back to Exercise 3.27

    Answer.

    1. This matrix swaps row one and row three.

      ( 0 1 0 1 0 0 0 0 1 ) ( a b c d e f g h i ) = ( d e f a b c g h i )

    2. This matrix swaps column one and two.

      ( a b c d ) ( 0 1 1 0 ) = ( b a d c )

  5. Exercise 3.28 Worked answer

    Recommended. Show how to use matrix multiplication to bring this matrix to echelon form.

    ( 1 2 1 0 2 3 1 − 1 7 11 4 − 3 )

    Back to Exercise 3.28

    Answer. Multiply by C 1 , 2 ( − 2 ) , then by  C 1 , 3 ( − 7 ) , and then by  C 2 , 3 ( − 3 ) , paying attention to the right-to-left order.

    ( 1 0 0 0 1 0 0 − 3 1 ) ( 1 0 0 0 1 0 − 7 0 1 ) ( 1 0 0 − 2 1 0 0 0 1 ) ( 1 2 1 0 2 3 1 − 1 7 11 4 − 3 ) = ( 1 2 1 0 0 − 1 − 1 − 1 0 0 0 0 )

  6. Exercise 3.29 Worked answer

    Find the product of this matrix with its transpose.

    ( cos ⁡ θ − sin ⁡ θ sin ⁡ θ cos ⁡ θ )

    Back to Exercise 3.29

    Answer. The product is the identity matrix (recall that cos 2 ⁡ θ + sin 2 ⁡ θ = 1 ). An explanation is that the given matrix represents, with respect to the standard bases, a rotation in ℝ 2 of θ radians while the transpose represents a rotation of − θ radians. The two cancel.

  7. 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.)

    Original simplified Lake Champlain road map. The five labelled towns are Burlington, Winooski, Colchester, Grand Isle and Swanton. Roads connect Burlington to Winooski, Winooski to Colchester, Colchester to Grand Isle and Swanton, and Grand Isle to Swanton. Other roads and towns are omitted in this exercise.

    1. The adjacency matrix of a map is the square matrix whose i , j entry is the number of roads from city i to city j (all ( i , i ) entries are  0 ). Produce the adjacency matrix of this map, taking the cities in alphabetical order.

    2. 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.)

    3. What is the significance of the square of the adjacency matrix? The cube?

    Back to Exercise 3.30

    Answer.

    1. The adjacency matrix is this (e.g, the first row shows that there is only one connection including Burlington, the road to Winooski).

      ( 0 0 0 0 1 0 0 1 1 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 0 )

    2. Because these are two-way roads, any road connecting city  i to city  j gives a connection between city  j and city  i .

    3. The square of the adjacency matrix tells how cities are connected by trips involving two roads.

  8. 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 $ 25.00
    overtime $ 45.00

    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.

    Back to Exercise 3.31

    Answer. The pay due each person appears in the matrix product of the two arrays.

  9. Exercise 3.32 Worked answer

    Express this nonsingular matrix as a product of elementary reduction matrices.

    T = ( 1 2 0 2 − 1 0 3 1 2 )

    Back to Exercise 3.32

    Answer. The Gauss-Jordan reduction is routine.

    ( 1 2 0 2 − 1 0 3 1 2 ) ⟶ − 3 ρ 1 + ρ 3 − 2 ρ 1 + ρ 2 ( ⟶ − ρ 2 + ρ 3 ( ⟶ ( 1 / 2 ) ρ 3 − ( 1 / 5 ) ρ 2 ( ⟶ − 2 ρ 2 + ρ 1 ( ( 1 0 0 0 1 0 0 0 1 )

    Thus we know elementary reduction matrices R 1 , … , R 6 such that R 6 ⋅ R 5 ⋯ R 1 ⋅ T = I . Move the matrices to the other side, paying attention to order. For instance, first multiply both sides from the left by R 6 − 1 to get ( R 6 − 1 R 6 ) ⋅ R 5 ⋯ R 1 ⋅ T = R 6 − 1 I , which simplifies to R 5 ⋯ R 1 ⋅ T = R 6 − 1 , etc.

    T = ( 1 0 0 − 2 1 0 0 0 1 ) − 1 ( 1 0 0 0 1 0 − 3 0 1 ) − 1 ( 1 0 0 0 1 0 0 − 1 1 ) − 1 ⋅ ( 1 0 0 0 − 1 / 5 0 0 0 1 ) − 1 ( 1 0 0 0 1 0 0 0 1 / 2 ) − 1 ( 1 − 2 0 0 1 0 0 0 1 ) − 1

    Taking the inverse of an elementary reduction matrix is easy. For instance, to undo adding k times row  i to row  j , you should take − k times row  i and add it to row  j . With that, Lemma 3.20 says that C i , j ( k ) − 1 = C i , j ( − k ) .

    = ( 1 0 0 2 1 0 0 0 1 ) ( 1 0 0 0 1 0 3 0 1 ) ( 1 0 0 0 1 0 0 1 1 ) ( 1 0 0 0 − 5 0 0 0 1 ) ( 1 0 0 0 1 0 0 0 2 ) ( 1 2 0 0 1 0 0 0 1 )

  10. Exercise 3.33 Worked answer

    Express

    ( 1 0 − 3 3 )

    as the product of two elementary reduction matrices.

    Back to Exercise 3.33

    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.

    ( 1 0 0 1 ) ⟶ ( ( 1 0 0 3 ) ⟶ ( ( 1 0 − 3 3 )

    In contrast with row operations, column operations are written from left to right, so this matrix product expresses doing the above two operations.

    ( 1 0 0 3 ) ( 1 0 − 1 1 )

    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.

  11. Exercise 3.34 Worked answer

    Recommended. Prove that the diagonal matrices form a subspace of ℳ n × n . What is its dimension?

    Back to Exercise 3.34

    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 n ; here is a basis.

    { ( 1 0 … 0 0 ⋱ 0 0 0 ) , … , ( 0 0 … 0 0 ⋱ 0 0 1 ) }

  12. Exercise 3.35 Worked answer

    Does the identity matrix represent the identity map if the bases are unequal?

    Back to Exercise 3.35

    Answer. No. In 𝒫 1 , with respect to the unequal bases B = ⟨ 1 , x ⟩ and D = ⟨ 1 + x , 1 − x ⟩ , the identity transformation is represented by this matrix.

    Rep B , D ( id ) = ( 1 / 2 1 / 2 1 / 2 − 1 / 2 ) B , D

  13. 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?

    Back to Exercise 3.36

    Answer. For any scalar r and square matrix H we have ( r I ) H = r ( I H ) = r H = r ( H I ) = ( H r ) I = H ( r I ) .

    There are no other such matrices; here is an argument for 2 × 2 matrices that is easily extended to n × n . If a matrix commutes with all others then it commutes with this unit matrix.

    ( 0 a 0 c ) = ( a b c d ) ( 0 1 0 0 ) = ( 0 1 0 0 ) ( a b c d ) = ( c d 0 0 )

    From this we first conclude that the upper left entry  a must equal its lower right entry  d . We also conclude that the lower left entry  c is zero. The argument for the upper right entry  b is similar.

  14. Exercise 3.37 Worked answer

    Prove or disprove: nonsingular matrices commute.

    Back to Exercise 3.37

    Answer. It is false; these two don’t commute.

    ( 1 2 3 4 ) ( 5 6 7 8 )

  15. Exercise 3.38 Worked answer

    Recommended. Show that the product of a permutation matrix and its transpose is an identity matrix.

    Back to Exercise 3.38

    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 i -th row has its one in its j -th column. Then no other row has its one in the j -th column; every other row has a zero in the j -th column. Thus the dot product of the i -th row and any other row is zero.

    The i -th row of the product is made up of the dot products of the i -th row of the matrix and the columns of the transpose. By the last paragraph, all such dot products are zero except for the i -th one, which is one.

  16. Exercise 3.39 Worked answer

    Show that if the first and second rows of G are equal then so are the first and second rows of G H . Generalize.

    Back to Exercise 3.39

    Answer. The generalization is to go from the first and second rows to the i 1 -th and i 2 -th rows. Row  i of G H is made up of the dot products of row  i of G and the columns of H . Thus if rows i 1 and i 2 of G are equal then so are rows i 1 and i 2 of G H .

  17. Exercise 3.40 Worked answer

    Describe the product of two diagonal matrices.

    Back to Exercise 3.40

    Answer. If the product of two diagonal matrices is defined—if both are n × n —then the product of the diagonals is the diagonal of the products: where G , H are equal-sized diagonal matrices, G H is all zeros except each that i , i entry is g i , i h i , i .

  18. Exercise 3.41 Worked answer

    Recommended. Show that if G has a row of zeros then G H (if defined) has a row of zeros. Does that work for columns?

    Back to Exercise 3.41

    Answer. The i -th row of G H is made up of the dot products of the i -th row of G with the columns of H . The dot product of a zero row with a column is zero.

    It works for columns if stated correctly: if H has a column of zeros then G H (if defined) has a column of zeros. The proof is easy.

  19. Exercise 3.42 Worked answer

    Show that the set of unit matrices forms a basis for ℳ n × m .

    Back to Exercise 3.42

    Answer. Perhaps the easiest way is to show that each n × m matrix is a linear combination of unit matrices in one and only one way:

    c 1 ( 1 0 … 0 0 ⋮ ) + ⋯ + c n , m ( 0 0 … ⋮ 0 … 1 ) = ( a 1 , 1 a 1 , 2 … ⋮ a n , 1 … a n , m )

    has the unique solution c 1 = a 1 , 1 , c 2 = a 1 , 2 , etc.

  20. Exercise 3.43 Worked answer

    Find the formula for the n -th power of this matrix.

    ( 1 1 1 0 )

    Back to Exercise 3.43

    Answer. Call that matrix F . We have

    F 2 = ( 2 1 1 1 ) F 3 = ( 3 2 2 1 ) F 4 = ( 5 3 3 2 )

    In general,

    F n = ( f n + 1 f n f n f n − 1 )

    where f i is the i -th Fibonacci number f i = f i − 1 + f i − 2 and f 0 = 0 , f 1 = 1 , which we verify by induction, based on this equation.

    ( f i − 1 f i − 2 f i − 2 f i − 3 ) ( 1 1 1 0 ) = ( f i f i − 1 f i − 1 f i − 2 )

  21. 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 Tr ( G H ) = Tr ( H G ) .

    Back to Exercise 3.44

    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

    Tr ( G H ) = ( g 1 , 1 h 1 , 1 + g 1 , 2 h 2 , 1 + ⋯ + g 1 , n h n , 1 ) + ( g 2 , 1 h 1 , 2 + g 2 , 2 h 2 , 2 + ⋯ + g 2 , n h n , 2 ) + ⋯ + ( g n , 1 h 1 , n + g n , 2 h 2 , n + ⋯ + g n , n h n , n )

    while

    Tr ( H G ) = ( h 1 , 1 g 1 , 1 + h 1 , 2 g 2 , 1 + ⋯ + h 1 , n g n , 1 ) + ( h 2 , 1 g 1 , 2 + h 2 , 2 g 2 , 2 + ⋯ + h 2 , n g n , 2 ) + ⋯ + ( h n , 1 g 1 , n + h n , 2 g 2 , n + ⋯ + h n , n g n , n )

    and the two are equal.

  22. 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?

    Back to Exercise 3.45

    Answer. A matrix is upper triangular if and only if its i , j entry is zero whenever i > j . Thus, if G , H are upper triangular then h i , j and g i , j are zero when i > j . An entry in the product p i , j = g i , 1 h 1 , j + ⋯ + g i , n h n , j is zero unless at least some of the terms are nonzero, that is, unless for at least some of the summands g i , r h r , j both i ≤ r and r ≤ j . Of course, if i > j this cannot happen and so the product of two upper triangular matrices is upper triangular. (A similar argument works for lower triangular matrices.)

  23. 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.

    Back to Exercise 3.46

    Answer. The sum along the i -th row of the product is this.

    p i , 1 + ⋯ + p i , n = ( h i , 1 g 1 , 1 + h i , 2 g 2 , 1 + ⋯ + h i , n g n , 1 ) + ( h i , 1 g 1 , 2 + h i , 2 g 2 , 2 + ⋯ + h i , n g n , 2 ) + ⋯ + ( h i , 1 g 1 , n + h i , 2 g 2 , n + ⋯ + h i , n g n , n ) = h i , 1 ( g 1 , 1 + g 1 , 2 + ⋯ + g 1 , n ) + h i , 2 ( g 2 , 1 + g 2 , 2 + ⋯ + g 2 , n ) + ⋯ + h i , n ( g n , 1 + g n , 2 + ⋯ + g n , n ) = h i , 1 ⋅ 1 + ⋯ + h i , n ⋅ 1 = 1

  24. Exercise 3.47 Worked answer

    Give an example of two matrices of the same rank and size with squares of differing rank.

    Back to Exercise 3.47

    Answer. Fix a basis B = ⟨ β → 1 , β → 2 ⟩ . Matrices representing the maps that send

    β → 1 ⟼ h β → 1 β → 2 ⟼ h 0 →

    and

    β → 1 ⟼ g β → 2 β → 2 ⟼ g 0 →

    will do. For instance, if for we use the standard basis then the two above give these matrices.

    H = ( 1 0 0 0 ) G = ( 0 1 0 0 )

    Notice that H 2 has rank  1 while G 2 has rank  0 .

  25. 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.

    1. Definition 2.3 gives p i , j = g i , 1 h 1 , j + g i , 2 h 2 , j + ⋯ + g i , r h r , j . How many real number multiplications are in that expression? Using it, how many do we need for the product of a m × r matrix and a r × n matrix?

    2. Matrix multiplication is associative, so in computing H 1 H 2 H 3 H 4 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 5 × 10 matrix, a 10 × 20 matrix, a 20 × 5 matrix, and a 5 × 1 matrix. Use the same formula as in the prior part.

    3. (Very hard.) Find a way to multiply two 2 × 2 matrices using only seven multiplications instead of the eight suggested by the prior approach.

    Back to Exercise 3.48

    Answer.

    1. Each entry p i , j = g i , 1 h 1 , j + ⋯ + g 1 , r h r , 1 takes r multiplications and there are m ⋅ n entries. Thus there are m ⋅ n ⋅ r multiplications.

    2. Let H 1 be 5 × 10 , let H 2 be 10 × 20 , let H 3 be 20 × 5 , let H 4 be 5 × 1 . Then

      this association uses this many multiplications
      ( ( H 1 H 2 ) H 3 ) H 4 1000 + 500 + 25 = 1525
      ( H 1 ( H 2 H 3 ) ) H 4 1000 + 250 + 25 = 1275
      ( H 1 H 2 ) ( H 3 H 4 ) 1000 + 100 + 100 = 1200
      H 1 ( H 2 ( H 3 H 4 ) ) 100 + 200 + 50 = 350
      H 1 ( ( H 2 H 3 ) H 4 ) 1000 + 50 + 50 = 1100

      shows which is cheapest.

    3. This is an improvement by S. Winograd of a formula due to V. Strassen: let w = a A − ( a − c − d ) ( A − C + D ) and then

      ( a b c d ) ( A B C D ) = ( α β γ δ )

      where α = a A + b B , and β = w + ( c + d ) ( C − A ) + ( a + b − c − d ) D , and γ = w + ( a − c ) ( D − C ) − d ( A − B − C + D ) , and δ = w + ( a − c ) ( D − C ) + ( c + d ) ( C − A ) . This takes seven multiplications and fifteen additions (save the intermediate results).

  26. Exercise 3.49 Worked answer

    Puzzle. [Putnam, 1990, A-5] If A and B are square matrices of the same size such that A B A B = 0 , does it follow that B A B A = 0 ?

    Back to Exercise 3.49

    Answer. This is how the answer was given in the cited source. No, it does not. Let A and B represent, with respect to the standard bases, these transformations of ℝ 3 .

    ( x y z ) ⟼ a ( x y 0 ) ( x y z ) ⟼ b ( 0 x y )

    Observe that

    ( x y z ) ⟼ a b a b ( 0 0 0 ) but ( x y z ) ⟼ b a b a ( 0 0 x ) .

  27. 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.

    1. y → ⋅ y → = 0 iff y → = 0 → .

    2. A x → = 0 → iff A 𝖳 A x → = 0 → .

    3. dim ⁡ ( ℛ ( A ) ) = dim ⁡ ( ℛ ( A 𝖳 A ) ) .

    4. col rank ( A ) = col rank ( A 𝖳 ) = row rank ( A ) .

    Back to Exercise 3.50

    Answer. This is how the answer was given in the cited source.

    1. Obvious.

    2. If A 𝖳 A x → = 0 → then y → ⋅ y → = 0 where y → = A x → . Hence y → = 0 → by (a).

      The converse is obvious.

    3. By (b), A x → 1 ,…, A x → n are linearly independent iff A 𝖳 A x → 1 ,…, A 𝖳 A x → n are linearly independent.

    4. We have

      col rank ( A ) = col rank ( A 𝖳 A ) = dim ⁡ { A 𝖳 ( A x → ) ∣ all  x → } ≤ dim ⁡ { A 𝖳 y → ∣ all  y → } = col rank ( A 𝖳 ) .

      Thus also col rank ( A 𝖳 ) ≤ col rank ( A 𝖳 𝖳 ) and so col rank ( A ) = col rank ( A 𝖳 ) = row rank ( A ) .

  28. Exercise 3.51 Worked answer

    [Ackerson] Prove (where A is an n × n matrix and so defines a transformation of any n -dimensional space V with respect to B , B where B is a basis) that dim ⁡ ( ℛ ( A ) ∩ 𝒩 ( A ) ) = dim ⁡ ( ℛ ( A ) ) − dim ⁡ ( ℛ ( A 2 ) ) . Conclude

    1. 𝒩 ( A ) ⊂ ℛ ( A ) iff dim ⁡ ( 𝒩 ( A ) ) = dim ⁡ ( ℛ ( A ) ) − dim ⁡ ( ℛ ( A 2 ) ) ;

    2. ℛ ( A ) ⊆ 𝒩 ( A ) iff A 2 = 0 ;

    3. ℛ ( A ) = 𝒩 ( A ) iff A 2 = 0 and dim ⁡ ( 𝒩 ( A ) ) = dim ⁡ ( ℛ ( A ) ) ;

    4. dim ⁡ ( ℛ ( A ) ∩ 𝒩 ( A ) ) = 0 iff dim ⁡ ( ℛ ( A ) ) = dim ⁡ ( ℛ ( A 2 ) ) ;

    5. (Requires the Direct Sum subsection, which is optional.) V = ℛ ( A ) ⊕ 𝒩 ( A ) iff dim ⁡ ( ℛ ( A ) ) = dim ⁡ ( ℛ ( A 2 ) ) .

    Back to Exercise 3.51

    Answer. This is how the answer was given in the cited source. Let ⟨ z → 1 , … , z → k ⟩ be a basis for ℛ ( A ) ∩ 𝒩 ( A ) ( k might be 0 ). Let x → 1 , … , x → k ∈ V be such that A x → i = z → i . Note { A x → 1 , … , A x → k } is linearly independent, and extend to a basis for ℛ ( A ) : A x → 1 , … , A x → k , A x → k + 1 , … , A x → r 1 where r 1 = dim ⁡ ( ℛ ( A ) ) .

    Now take x → ∈ V . Write

    A x → = a 1 ( A x → 1 ) + ⋯ + a r 1 ( A x → r 1 )

    and so

    A 2 x → = a 1 ( A 2 x → 1 ) + ⋯ + a r 1 ( A 2 x → r 1 ) .

    But A x → 1 , … , A x → k ∈ 𝒩 ( A ) , so A 2 x → 1 = 0 → , … , A 2 x → k = 0 → and we now know

    A 2 x → k + 1 , … , A 2 x → r 1

    spans ℛ ( A 2 ) .

    To see { A 2 x → k + 1 , … , A 2 x → r 1 } is linearly independent, write

    b k + 1 A 2 x → k + 1 + ⋯ + b r 1 A 2 x → r 1 = 0 → A [ b k + 1 A x → k + 1 + ⋯ + b r 1 A x → r 1 ] = 0 →

    and, since b k + 1 A x → k + 1 + ⋯ + b r 1 A x → r 1 ∈ 𝒩 ( A ) we get a contradiction unless it is 0 → (clearly it is in ℛ ( A ) , but A x → 1 , … , A x → k is a basis for ℛ ( A ) ∩ 𝒩 ( A ) ).

    Hence dim ⁡ ( ℛ ( A 2 ) ) = r 1 − k = dim ⁡ ( ℛ ( A ) ) − dim ⁡ ( ℛ ( A ) ∩ 𝒩 ( A ) ) .

Inverses

We finish this section by considering how to represent the inverse of a linear map. We first recall some things about inverses. Where π : ℝ 3 → ℝ 2 is the projection map and ι : ℝ 2 → ℝ 3 is the embedding

( x y z ) ⟼ π ( x y ) ( x y ) ⟼ ι ( x y 0 )

then the composition π ∘ ι is the identity map π ∘ ι = id on ℝ 2 .

( x y ) ⟼ ι ( x y 0 ) ⟼ π ( x y )

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 ι ∘ π .

( 0 0 1 ) ⟼ π ( 0 0 ) ⟼ ι ( 0 0 0 )

In fact, π has no left inverse at all. For, if f were to be a left inverse of π then we would have

( x y z ) ⟼ π ( x y ) ⟼ f ( x y z )

for all of the infinitely many z ’s. But a function  f cannot send a single argument ( x y ) 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 ℝ 2 .

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 v → ↦ 2 ⋅ v → has the two-sided inverse v → ↦ ( 1 / 2 ) ⋅ v → . 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 f has a two-sided inverse then it is unique, so we call it ‘the’ inverse and write f − 1 .

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 h has an inverse, to find the relationship between Rep B , D ( h ) and Rep D , B ( h − 1 ) .

Definition 4.1 A matrix G is a left inverse matrix of the matrix H if G H is the identity matrix. It is a right inverse if H G is the identity. A matrix H with a two-sided inverse is an invertible matrix. That two-sided inverse is denoted H − 1 .

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 H , fix spaces of appropriate dimension for the domain and codomain and fix bases for these spaces. With respect to these bases, H represents a map h . 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 G and H are invertible and G H is defined then G H is invertible and ( G H ) − 1 = H − 1 G − 1 .

Proof Because the two matrices are invertible they are square, and because their product is defined they must both be n × n . Fix spaces and bases—say, ℝ n with the standard bases— to get maps g , h : ℝ n → ℝ n that are associated with the matrices, G = Rep ℰ n , ℰ n ( g ) and H = Rep ℰ n , ℰ n ( h ) .

Consider h − 1 g − 1 . By the prior paragraph this composition is defined. This map is a two-sided inverse of g h since ( h − 1 g − 1 ) ( g h ) = h − 1 ( id ) h = h − 1 h = id and ( g h ) ( h − 1 g − 1 ) = g ( id ) g − 1 = g g − 1 = id . 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.

Inverse-map triangle: V with basis B maps by h, represented by H, to W with basis C, then by h inverse, represented by H inverse, back to V with basis B. The direct path is the identity map, represented by I.

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.

x 1 + x 2 = 3 2 x 1 − x 2 = 2 ⟺ ( 1 1 2 − 1 ) ( x 1 x 2 ) = ( 3 2 )

By fixing spaces and bases (for instance, ℝ 2 , ℝ 2 with the standard bases), we take the matrix H to represent a map h . The matrix equation then becomes this linear map equation.

h ( x → ) = d →

If we had a left inverse map  g then we could apply it to both sides g ∘ h ( x → ) = g ( d → ) to get x → = g ( d → ) . Restating in terms of the matrices, we want to multiply by the inverse matrix Rep C , B ( g ) ⋅ Rep C ( d → ) to get Rep B ( x → ) .

Example 4.5 We can find a left inverse for the matrix just given

( m n p q ) ( 1 1 2 − 1 ) = ( 1 0 0 1 )

by using Gauss’s Method to solve the resulting linear system.

m + 2 n = 1 m − n = 0 p + 2 q = 0 p − q = 1

Answer: m = 1 / 3 , n = 1 / 3 , p = 2 / 3 , and q = − 1 / 3 . (This matrix is actually the two-sided inverse of H ; the check is easy.) With it, we can solve the system from the prior example.

( x y ) = ( 1 / 3 1 / 3 2 / 3 − 1 / 3 ) ( 3 2 ) = ( 5 / 3 4 / 3 )

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

( 1 1 2 − 1 ) ( x y ) = ( 5 1 )

that our inverse method solves quickly.

( x y ) = ( 1 / 3 1 / 3 2 / 3 − 1 / 3 ) ( 5 1 ) = ( 2 3 )

Another advantage of inverses is that we can explore a system’s sensitivity to changes in the constants. For example, tweaking the 3 on the right of the prior example’s system to

( 1 1 2 − 1 ) ( x 1 x 2 ) = ( 3.01 2 )

and solving with the inverse

( 1 / 3 1 / 3 2 / 3 − 1 / 3 ) ( 3.01 2 ) = ( ( 1 / 3 ) ( 3.01 ) + ( 1 / 3 ) ( 2 ) ( 2 / 3 ) ( 3.01 ) − ( 1 / 3 ) ( 2 ) )

shows that the first component of the solution changes by 1 / 3 of the tweak, while the second component moves by 2 / 3 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 H 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 H .

Proof The matrix H 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.

R r ⋅ R r − 1 … R 1 ⋅ H = I ( ∗ )

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 R r − 1 from the left to both sides of ( ∗ ). Then apply R r − 1 − 1 , etc. The result gives H as the product of elementary matrices H = R 1 − 1 ⋯ R r − 1 ⋅ I . (The I there covers the case r = 0 .)

For the second sentence, group ( ∗ ) as ( R r ⋅ R r − 1 … R 1 ) ⋅ H = I and recognize what’s in the parentheses as the inverse H − 1 = R r ⋅ R r − 1 … R 1 ⋅ I . Restated: applying R 1 to the identity, followed by R 2 , etc., yields the inverse of H .

QED

Example 4.8 To find the inverse of

( 1 1 2 − 1 )

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.

( 1 1 1 0 2 − 1 0 1 ) ⟶ − 2 ρ 1 + ρ 2 ( ( 1 1 1 0 0 − 3 − 2 1 ) ⟶ − 1 / 3 ρ 2 ( ( 1 1 1 0 0 1 2 / 3 − 1 / 3 ) ⟶ − ρ 2 + ρ 1 ( ( 1 0 1 / 3 1 / 3 0 1 2 / 3 − 1 / 3 )

This calculation has found the inverse.

( 1 1 2 − 1 ) − 1 = ( 1 / 3 1 / 3 2 / 3 − 1 / 3 )

Example 4.9 This one happens to start with a row swap.

( 0 3 − 1 1 0 0 1 0 1 0 1 0 1 − 1 0 0 0 1 ) ⟶ ρ 1 ↔ ρ 2 ( ( 1 0 1 0 1 0 0 3 − 1 1 0 0 1 − 1 0 0 0 1 ) ⟶ − ρ 1 + ρ 3 ( ( 1 0 1 0 1 0 0 3 − 1 1 0 0 0 − 1 − 1 0 − 1 1 ) ⋮ ⟶ ⟶ ( ( 1 0 0 1 / 4 1 / 4 3 / 4 0 1 0 1 / 4 1 / 4 − 1 / 4 0 0 1 − 1 / 4 3 / 4 − 3 / 4 )

Example 4.10 This algorithm detects a non-invertible matrix when the left half won’t reduce to the identity.

( 1 1 1 0 2 2 0 1 ) ⟶ − 2 ρ 1 + ρ 2 ( ( 1 1 1 0 0 0 − 2 1 )

With this procedure we can give a formula for the inverse of a general 2 × 2 matrix, which is worth memorizing.

Corollary 4.11 The inverse for a 2 × 2 matrix exists and equals

( a b c d ) − 1 = 1 a d − b c ( d − b − c a )

if and only if a d − b c ≠ 0 .

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

  1. Exercise 4.12 Worked answer

    Supply the intermediate steps in Example 4.9.

    Back to Exercise 4.12

    Answer. Here is one way to proceed. Follow

    ⟶ ρ 1 ↔ ρ 2 ( ( 1 0 1 0 1 0 0 3 − 1 1 0 0 1 − 1 0 0 0 1 ) ⟶ − ρ 1 + ρ 3 ( ( 1 0 1 0 1 0 0 3 − 1 1 0 0 0 − 1 − 1 0 − 1 1 )

    with

    ⟶ ( 1 / 3 ) ρ 2 + ρ 3 ( ( 1 0 1 0 1 0 0 3 − 1 1 0 0 0 0 − 4 / 3 1 / 3 − 1 1 ) ⟶ − ( 3 / 4 ) ρ 3 ( 1 / 3 ) ρ 2 ( ( 1 0 1 0 1 0 0 1 − 1 / 3 1 / 3 0 0 0 0 1 − 1 / 4 3 / 4 − 3 / 4 ) ⟶ − ρ 3 + ρ 1 ( 1 / 3 ) ρ 3 + ρ 2 ( ( 1 0 0 1 / 4 1 / 4 3 / 4 0 1 0 1 / 4 1 / 4 − 1 / 4 0 0 1 − 1 / 4 3 / 4 − 3 / 4 )

    and read the answer off of the right side.

  2. Exercise 4.13 Worked answer

    Recommended. Use Corollary 4.11 to decide if each matrix has an inverse.

    1. ( 2 1 − 1 1 )

    2. ( 0 4 1 − 3 )

    3. ( 2 − 3 − 4 6 )

    Back to Exercise 4.13

    Answer.

    1. Yes, it has an inverse: a d − b c = 2 ⋅ 1 − 1 ⋅ ( − 1 ) ≠ 0 .

    2. Yes.

    3. No.

  3. Exercise 4.14 Worked answer

    Recommended. For each invertible matrix in the prior problem, use Corollary 4.11 to find its inverse.

    Back to Exercise 4.14

    Answer.

    1. 1 2 ⋅ 1 − 1 ⋅ ( − 1 ) ⋅ ( 1 − 1 1 2 ) = 1 3 ⋅ ( 1 − 1 1 2 ) = ( 1 / 3 − 1 / 3 1 / 3 2 / 3 )

    2. 1 0 ⋅ ( − 3 ) − 4 ⋅ 1 ⋅ ( − 3 − 4 − 1 0 ) = ( 3 / 4 1 1 / 4 0 )

    3. The prior question shows that no inverse exists.

  4. Exercise 4.15 Worked answer

    Recommended. Find the inverse, if it exists, by using the Gauss-Jordan Method. Check the answers for the 2 × 2 matrices with Corollary 4.11.

    1. ( 3 1 0 2 )

    2. ( 2 1 / 2 3 1 )

    3. ( 2 − 4 − 1 2 )

    4. ( 1 1 3 0 2 4 − 1 1 0 )

    5. ( 0 1 5 0 − 2 4 2 3 − 2 )

    6. ( 2 2 3 1 − 2 − 3 4 − 2 − 3 )

    Back to Exercise 4.15

    Answer.

    1. The reduction is routine.

      ( 3 1 1 0 0 2 0 1 ) ⟶ ( 1 / 2 ) ρ 2 ( 1 / 3 ) ρ 1 ( ( 1 1 / 3 1 / 3 0 0 1 0 1 / 2 ) ⟶ − ( 1 / 3 ) ρ 2 + ρ 1 ( ( 1 0 1 / 3 − 1 / 6 0 1 0 1 / 2 )

      This answer agrees with the answer from the check.

      ( 3 1 0 2 ) − 1 = 1 3 ⋅ 2 − 0 ⋅ 1 ⋅ ( 2 − 1 0 3 ) = 1 6 ⋅ ( 2 − 1 0 3 )

    2. This reduction is easy.

      ( 2 1 / 2 1 0 3 1 0 1 ) ⟶ − ( 3 / 2 ) ρ 1 + ρ 2 ( ( 2 1 / 2 1 0 0 1 / 4 − 3 / 2 1 ) ⟶ 4 ρ 2 ( 1 / 2 ) ρ 1 ( ( 1 1 / 4 1 / 2 0 0 1 − 6 4 ) ⟶ − ( 1 / 4 ) ρ 2 + ρ 1 ( ( 1 0 2 − 1 0 1 − 6 4 )

      The check agrees.

      1 2 ⋅ 1 − 3 ⋅ ( 1 / 2 ) ⋅ ( 1 − 1 / 2 − 3 2 ) = 2 ⋅ ( 1 − 1 / 2 − 3 2 )

    3. Trying the Gauss-Jordan reduction

      ( 2 − 4 1 0 − 1 2 0 1 ) ⟶ ( 1 / 2 ) ρ 1 + ρ 2 ( ( 2 − 4 1 0 0 0 1 / 2 1 )

      shows that the left side won’t reduce to the identity, so no inverse exists. The check a d − b c = 2 ⋅ 2 − ( − 4 ) ⋅ ( − 1 ) = 0 agrees.

    4. This produces an inverse.

      ( 1 1 3 1 0 0 0 2 4 0 1 0 − 1 1 0 0 0 1 ) ⟶ ρ 1 + ρ 3 ( ( 1 1 3 1 0 0 0 2 4 0 1 0 0 2 3 1 0 1 ) ⟶ − ρ 2 + ρ 3 ( ( 1 1 3 1 0 0 0 2 4 0 1 0 0 0 − 1 1 − 1 1 ) ⟶ − ρ 3 ( 1 / 2 ) ρ 2 ( ( 1 1 3 1 0 0 0 1 2 0 1 / 2 0 0 0 1 − 1 1 − 1 ) ⟶ − 3 ρ 3 + ρ 1 − 2 ρ 3 + ρ 2 ( ( 1 1 0 4 − 3 3 0 1 0 2 − 3 / 2 2 0 0 1 − 1 1 − 1 ) ⟶ − ρ 2 + ρ 1 ( ( 1 0 0 2 − 3 / 2 1 0 1 0 2 − 3 / 2 2 0 0 1 − 1 1 − 1 )

    5. This is one way to do the reduction.

      ( 0 1 5 1 0 0 0 − 2 4 0 1 0 2 3 − 2 0 0 1 ) ⟶ ρ 3 ↔ ρ 1 ( ( 2 3 − 2 0 0 1 0 − 2 4 0 1 0 0 1 5 1 0 0 ) ⟶ ( 1 / 2 ) ρ 2 + ρ 3 ( ( 2 3 − 2 0 0 1 0 − 2 4 0 1 0 0 0 7 1 1 / 2 0 ) ⟶ − ( 1 / 2 ) ρ 2 ( 1 / 7 ) ρ 3 ( 1 / 2 ) ρ 1 ( ( 1 3 / 2 − 1 0 0 1 / 2 0 1 − 2 0 − 1 / 2 0 0 0 1 1 / 7 1 / 14 0 ) ⟶ ρ 3 + ρ 1 2 ρ 3 + ρ 2 ( ( 1 3 / 2 0 1 / 7 1 / 14 1 / 2 0 1 0 2 / 7 − 5 / 14 0 0 0 1 1 / 7 1 / 14 0 ) ⟶ − ( 3 / 2 ) ρ 2 + ρ 1 ( ( 1 0 0 − 2 / 7 17 / 28 1 / 2 0 1 0 2 / 7 − 5 / 14 0 0 0 1 1 / 7 1 / 14 0 )

    6. There is no inverse.

      ( 2 2 3 1 0 0 1 − 2 − 3 0 1 0 4 − 2 − 3 0 0 1 ) ⟶ − 2 ρ 1 + ρ 3 − ( 1 / 2 ) ρ 1 + ρ 2 ( ( 2 2 3 1 0 0 0 − 3 − 9 / 2 − 1 / 2 1 0 0 − 6 − 9 − 2 0 1 ) ⟶ − 2 ρ 2 + ρ 3 ( ( 2 2 3 1 0 0 0 − 3 − 9 / 2 − 1 / 2 1 0 0 0 0 − 1 − 2 1 )

      As a check, note that the third column of the starting matrix is 3 / 2 times the second, and so it is indeed singular and therefore has no inverse.

  5. Exercise 4.16 Worked answer

    Recommended. What matrix has this one for its inverse?

    ( 1 3 2 5 )

    Back to Exercise 4.16

    Answer. We can use Corollary 4.11.

    1 1 ⋅ 5 − 2 ⋅ 3 ⋅ ( 5 − 3 − 2 1 ) = ( − 5 3 2 − 1 )

  6. Exercise 4.17 Worked answer

    How does the inverse operation interact with scalar multiplication and addition of matrices?

    1. What is the inverse of r H ?

    2. Is ( H + G ) − 1 = H − 1 + G − 1 ?

    Back to Exercise 4.17

    Answer.

    1. The proof that the inverse is r − 1 H − 1 = ( 1 / r ) ⋅ H − 1 (provided, of course, that the matrix is invertible) is easy.

    2. No. For one thing, the fact that H + G has an inverse doesn’t imply that H has an inverse or that G has an inverse. Neither of these matrices is invertible but their sum is.

      ( 1 0 0 0 ) ( 0 0 0 1 )

      Another point is that just because H and G each has an inverse doesn’t mean H + G has an inverse; here is an example.

      ( 1 0 0 1 ) ( − 1 0 0 − 1 )

      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:

      ( 2 0 0 2 ) − 1 = ( 1 / 2 0 0 1 / 2 ) − 1 ( 3 0 0 3 ) − 1 = ( 1 / 3 0 0 1 / 3 ) − 1

      but

      ( 5 0 0 5 ) − 1 = ( 1 / 5 0 0 1 / 5 ) − 1

      and ( 1 / 2 ) + ( 1 / 3 ) does not equal 1 / 5 .

  7. Exercise 4.18 Worked answer

    Recommended. Is ( T k ) − 1 = ( T − 1 ) k ?

    Back to Exercise 4.18

    Answer. Yes: T k ( T − 1 ) k = ( T T ⋯ T ) ⋅ ( T − 1 T − 1 ⋯ T − 1 ) = T k − 1 ( T T − 1 ) ( T − 1 ) k − 1 = ⋯ = I .

  8. Exercise 4.19 Worked answer

    Is H − 1 invertible?

    Back to Exercise 4.19

    Answer. Yes, the inverse of H − 1 is H .

  9. Exercise 4.20 Worked answer

    For each real number θ let t θ : ℝ 2 → ℝ 2 be represented with respect to the standard bases by this matrix.

    ( cos ⁡ θ − sin ⁡ θ sin ⁡ θ cos ⁡ θ )

    Show that t θ 1 + θ 2 = t θ 1 ⋅ t θ 2 . Show also that t θ − 1 = t − θ .

    Back to Exercise 4.20

    Answer. One way to check that the first is true is with the angle sum formulas from trigonometry.

    ( cos ⁡ ( θ 1 + θ 2 ) − sin ⁡ ( θ 1 + θ 2 ) sin ⁡ ( θ 1 + θ 2 ) cos ⁡ ( θ 1 + θ 2 ) ) = ( cos ⁡ θ 1 cos ⁡ θ 2 − sin ⁡ θ 1 sin ⁡ θ 2 − sin ⁡ θ 1 cos ⁡ θ 2 − cos ⁡ θ 1 sin ⁡ θ 2 sin ⁡ θ 1 cos ⁡ θ 2 + cos ⁡ θ 1 sin ⁡ θ 2 cos ⁡ θ 1 cos ⁡ θ 2 − sin ⁡ θ 1 sin ⁡ θ 2 ) = ( cos ⁡ θ 1 − sin ⁡ θ 1 sin ⁡ θ 1 cos ⁡ θ 1 ) ( cos ⁡ θ 2 − sin ⁡ θ 2 sin ⁡ θ 2 cos ⁡ θ 2 )

    Checking the second equation in this way is similar.

    Of course, the equations can be not just checked but also understood by recalling that t θ is the map that rotates vectors about the origin through an angle of θ  radians.

  10. Exercise 4.21 Worked answer

    Do the calculations for the proof of Corollary 4.11.

    Back to Exercise 4.21

    Answer. There are two cases. For the first case we assume that a is nonzero. Then

    ⟶ − ( c / a ) ρ 1 + ρ 2 ( ( a b 1 0 0 − ( b c / a ) + d − c / a 1 ) = ( a b 1 0 0 ( a d − b c ) / a − c / a 1 )

    shows that the matrix is invertible (in this a ≠ 0 case) if and only if a d − b c ≠ 0 . To find the inverse, we finish with the Jordan half of the reduction.

    ⟶ ( a / a d − b c ) ρ 2 ( 1 / a ) ρ 1 ( ( 1 b / a 1 / a 0 0 1 − c / ( a d − b c ) a / ( a d − b c ) ) ⟶ − ( b / a ) ρ 2 + ρ 1 ( ( 1 0 d / ( a d − b c ) − b / ( a d − b c ) 0 1 − c / ( a d − b c ) a / ( a d − b c ) )

    The other case is the a = 0 case. We swap to get c into the 1 , 1 position.

    ⟶ ρ 1 ↔ ρ 2 ( ( c d 0 1 0 b 1 0 )

    This matrix is nonsingular if and only if both b and c are nonzero (which, under the case assumption that a = 0 , holds if and only if a d − b c ≠ 0 ). To find the inverse we do the Jordan half.

    ⟶ ( 1 / b ) ρ 2 ( 1 / c ) ρ 1 ( ( 1 d / c 0 1 / c 0 1 1 / b 0 ) ⟶ − ( d / c ) ρ 2 + ρ 1 ( ( 1 0 − d / b c 1 / c 0 1 1 / b 0 )

    (Note that this is what is required, since a = 0 gives that a d − b c = − b c ).

  11. Exercise 4.22 Worked answer

    Show that this matrix

    H = ( 1 0 1 0 1 0 )

    has infinitely many right inverses. Show also that it has no left inverse.

    Back to Exercise 4.22

    Answer. With H a 2 × 3 matrix, in looking for a matrix G such that the combination H G acts as the 2 × 2 identity we need G to be 3 × 2 . Setting up the equation

    ( 1 0 1 0 1 0 ) ( m n p q r s ) = ( 1 0 0 1 )

    and solving the resulting linear system

    m + r = 1 n + s = 0 p = 0 q = 1

    gives infinitely many solutions.

    { ( m n p q r s ) = ( 1 0 0 1 0 0 ) + r ⋅ ( − 1 0 0 0 1 0 ) + s ⋅ ( 0 − 1 0 0 0 1 ) ∣ r , s ∈ ℝ }

    Thus H has infinitely many right inverses.

    As for left inverses, the equation

    ( a b c d ) ( 1 0 1 0 1 0 ) = ( 1 0 0 0 1 0 0 0 1 )

    gives rise to a linear system with nine equations and four unknowns.

    a = 1 b = 0 a = 0 c = 0 d = 1 c = 0 e = 0 f = 0 e = 1

    This system is inconsistent (the first equation conflicts with the third, as do the seventh and ninth) and so there is no left inverse.

  12. Exercise 4.23 Worked answer

    In the review of inverses example, starting this subsection, how many left inverses has ι ?

    Back to Exercise 4.23

    Answer. With respect to the standard bases we have

    Rep ℰ 2 , ℰ 3 ( ι ) = ( 1 0 0 1 0 0 )

    and setting up the equation to find the matrix inverse

    ( a b c d e f ) ( 1 0 0 1 0 0 ) = ( 1 0 0 1 ) = Rep ℰ 2 , ℰ 2 ( id )

    gives rise to a linear system.

    a = 1 b = 0 d = 0 e = 1

    There are infinitely many solutions in a , … , f to this system because two of these variables are entirely unrestricted

    { ( a b c d e f ) = ( 1 0 0 0 1 0 ) + c ⋅ ( 0 0 1 0 0 0 ) + f ⋅ ( 0 0 0 0 0 1 ) ∣ c , f ∈ ℝ }

    and so there are infinitely many solutions to the matrix equation.

    { ( 1 0 c 0 1 f ) ∣ c , f ∈ ℝ }

    With the bases still fixed at ℰ 2 , ℰ 2 , for instance taking c = 2 and f = 3 gives a matrix representing this map.

    ( x y z ) ⟼ f 2 , 3 ( x + 2 z y + 3 z )

    The check that f 2 , 3 ∘ ι is the identity map on ℝ 2 is easy.

  13. Exercise 4.24 Worked answer

    If a matrix has infinitely many right-inverses, can it have infinitely many left-inverses? Must it have?

    Back to Exercise 4.24

    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).

  14. Exercise 4.25 Worked answer

    Assume that g : V → W is linear. One of these is true, the other is false. Which is which?

    1. If f : W → V is a left inverse of g then f must be linear.

    2. If f : W → V is a right inverse of g then f must be linear.

    Back to Exercise 4.25

    Answer.

    1. True, It must be linear, as the proof from Theorem II.2.20 shows.

    2. False. It may be linear, but it need not be. Consider the projection map π : ℝ 3 → ℝ 2 described at the start of this subsection. Define η : ℝ 2 → ℝ 3 in this way.

      ( x y ) ↦ ( x y 1 )

      It is a right inverse of π because π ∘ η does this.

      ( x y ) ↦ ( x y 1 ) ↦ ( x y )

      It is not linear because it does not map the zero vector to the zero vector.

  15. Exercise 4.26 Worked answer

    Recommended. Assume that H is invertible and that H G is the zero matrix. Show that G is a zero matrix.

    Back to Exercise 4.26

    Answer. The associativity of matrix multiplication gives H − 1 ( H G ) = H − 1 Z = Z and also H − 1 ( H G ) = ( H − 1 H ) G = I G = G .

  16. Exercise 4.27 Worked answer

    Prove that if H is invertible then the inverse commutes with a matrix G H − 1 = H − 1 G if and only if H itself commutes with that matrix G H = H G .

    Back to Exercise 4.27

    Answer. Multiply both sides of the first equation by H .

  17. Exercise 4.28 Worked answer

    Recommended. Show that if T is square and if T 4 is the zero matrix then ( I − T ) − 1 = I + T + T 2 + T 3 . Generalize.

    Back to Exercise 4.28

    Answer. Checking that when I − T is multiplied on both sides by that expression (assuming that T 4 is the zero matrix) then the result is the identity matrix is easy. The obvious generalization is that if T n is the zero matrix then ( I − T ) − 1 = I + T + T 2 + ⋯ + T n − 1 ; the check again is easy.

  18. Exercise 4.29 Worked answer

    Recommended. Let D be diagonal. Describe D 2 , D 3 , …, etc. Describe D − 1 , D − 2 , …, etc. Define D 0 appropriately.

    Back to Exercise 4.29

    Answer. The powers of the matrix are formed by taking the powers of the diagonal entries. That is, D 2 is all zeros except for diagonal entries of d 1 , 1 2 , d 2 , 2 2 , etc. This suggests defining D 0 to be the identity matrix.

  19. Exercise 4.30 Worked answer

    Prove that any matrix row-equivalent to an invertible matrix is also invertible.

    Back to Exercise 4.30

    Answer. Assume that B is row equivalent to A and that A 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, A can change by row operations to B as B = R n ⋯ R 1 A . This equation gives B as a product of invertible matrices and by Lemma 4.4 then, B is also invertible.

  20. Exercise 4.31 Worked answer

    The first question below appeared as Exercise 2.30.

    1. Show that the rank of the product of two matrices is less than or equal to the minimum of the rank of each.

    2. Show that if T and S are square then T S = I if and only if S T = I .

    Back to Exercise 4.31

    Answer.

    1. See the answer to Exercise 2.30.

    2. We will show that both conditions are equivalent to the condition that the two matrices be nonsingular.

      As T and S are square and their product is defined, they are equal-sized, say n × n . Consider the T S = I half. By the prior item the rank of I is less than or equal to the minimum of the rank of T and the rank of S . But the rank of I is n , so the rank of T and the rank of S must each be n . Hence each is nonsingular.

      The same argument shows that S T = I implies that each is nonsingular.

  21. Exercise 4.32 Worked answer

    Show that the inverse of a permutation matrix is its transpose.

    Back to Exercise 4.32

    Answer. Inverses are unique, so we need only show that it works. The check appears above as Exercise 3.38.

  22. Exercise 4.33 Worked answer

    1. Show that ( G H ) 𝖳 = H 𝖳 G 𝖳 .

    2. A square matrix is symmetric if each i , j entry equals the j , i entry (that is, if the matrix equals its transpose). Show that the matrices H H 𝖳 and H 𝖳 H are symmetric.

    3. Show that the inverse of the transpose is the transpose of the inverse.

    4. Show that the inverse of a symmetric matrix is symmetric.

    Back to Exercise 4.33

    Answer.

    1. See the answer for Exercise 2.27.

    2. See the answer for Exercise 2.27.

    3. Apply the first part to I = A A − 1 to get I = I 𝖳 = ( A A − 1 ) 𝖳 = ( A − 1 ) 𝖳 A 𝖳 .

    4. Apply the prior item with A 𝖳 = A , as A is symmetric.

  23. Exercise 4.34 Worked answer

    Recommended.

    1. Prove that the composition of the projections π x , π y : ℝ 3 → ℝ 3 is the zero map despite that neither is the zero map.

    2. Prove that the composition of the derivatives d 2 / d x 2 , d 3 / d x 3 : 𝒫 4 → 𝒫 4 is the zero map despite that neither map is the zero map.

    3. 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.

    Back to Exercise 4.34

    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 A is a zero divisor so there is a nonzero matrix B with A B = Z (or else B A = Z ; this case is similar), If A is invertible then A − 1 ( A B ) = ( A − 1 A ) B = I B = B but also A − 1 ( A B ) = A − 1 Z = Z , contradicting that B is nonzero.

  24. 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 2 × 2 matrix equation T 2 = I has more than two solutions.

    Back to Exercise 4.35

    Answer. There are infinitely many 2 × 2 matrices T that square to the identity. Here are four.

    ( 1 0 0 1 ) ( − 1 0 0 − 1 ) ( 1 0 0 − 1 ) ( − 1 0 0 1 )

    Two more are

    ( 0 1 1 0 ) ( 0 − 1 − 1 0 )

    and here is another

    1 5 ( 3 4 4 − 3 )

    (in this last one the pattern involves Pythagorean triples, numbers r , s , t ∈ ℝ such that r 2 + s 2 = t 2 ). Remark: see also https://en.wikipedia.org/wiki/Square_root_of_a_2_by_2_matrix.

  25. Exercise 4.36 Worked answer

    Is the relation ‘is a two-sided inverse of’ transitive? Reflexive? Symmetric?

    Back to Exercise 4.36

    Answer. It is not reflexive since, for instance,

    H = ( 1 0 0 2 )

    is not a two-sided inverse of itself. The same example shows that it is not transitive. That matrix has this two-sided inverse

    G = ( 1 0 0 1 / 2 )

    and while H is a two-sided inverse of G and G is a two-sided inverse of H , we know that H is not a two-sided inverse of H . However, the relation is symmetric: if G is a two-sided inverse of H then G H = I = H G and therefore H is also a two-sided inverse of G .

  26. 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 k , then the sum of the elements in each row of the inverse matrix is 1 / k .

    Back to Exercise 4.37

    Answer. This is how the answer was given in the cited source. Let A be m × m , non-singular, with the stated property. Let B be its inverse. Then for n ≤ m ,

    1 = ∑ r = 1 m δ n r = ∑ r = 1 m ∑ s = 1 m b n s a s r = ∑ s = 1 m ∑ r = 1 m b n s a s r = k ∑ s = 1 m b n s

    ( A is singular if k = 0 ).

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.