How to find the matrix of a composition of linear transformations
A composition applies one transformation and then uses its output as the input to another. Matrix multiplication lets us combine those two steps. Let’s keep track of which map acts first and then check the result on a vector.
Write a matrix for each transformation
Use and . Their matrices are
Apply the first map on the right
For , the vector first becomes and then becomes . Grouping gives , so multiply by .
Check the combined matrix on a vector
With , the first map gives . Applying the second gives . The combined matrix gives the same output.
The intermediate output space of the first map must match the input space of the second for the composition to be defined.