4 Linear algebra

4.20 Matrix of a composition

Suppose we have two composable linear maps, S and T. The composition TS is still linear, as you can check. There should be a connection between the matrix of TS with respect to some bases and the matrices for T and S.

Theorem 4.20.1.

Let S:UV and T:VW be linear maps. Let

  • =𝐛1,,𝐛l be a basis of U,

  • 𝒞=𝐜1,,𝐜m be a basis of V, and

  • 𝒟=𝐝1,,𝐝n be a basis of W.

Then [TS]𝒟=[T]𝒟𝒞[S]𝒞

Here is picture of this situation:

𝒞𝒟USVTW

This theorem provides some justification for our definition of matrix multiplication: composition of linear maps corresponds to multiplication of matrices.

Proof.

Let [T]𝒟𝒞=(tij) and [S]𝒞=(sij). We will work out [TS]𝒟 using the definition of the matrix of a linear map. For any 1cl,

(TS)(𝐛c) =T(S(𝐛j))
=T(k=1mskc𝐜k) as [S]𝒞=(sij)
=k=1mskcT(𝐜k) linearity of T
=k=1mskci=1ntik𝐝i as [T]𝒟𝒞=(tij)
=i=1n(k=1mtikskc)𝐝i for finite sums, ki=ik

so the r,c entry of [TS]𝒟 is k=1mtrkskc, which is the same as the r,c entry of [T]𝒟𝒞[S]𝒞 by the matrix multiplication formula. ∎