Intuition
Doing one linear map and then another is again a linear map, so it has a matrix of its own. That matrix is called the product of the two, and it is defined so that this is true.
Two currency conversions done one after the other are a single conversion at a combined rate. The combined rate is not invented; it is worked out from the two.
The product of two matrices
If maps into the space maps out of, then applying and then is a linear map, and its matrix is written . Its column j is what the pair does to , which is applied to column j of . The order is right to left, because that is the order the maps are applied in.
What the definition forces
- exists only when the columns of number the same as the rows of .
- If is and is , then is .
turns a quarter turn, and then stretches what it gets to twice the width. The product is the single matrix carrying the blue arrow to the green one in one step, which is what it was defined to do. It is written right to left because acts first.
The product does the two maps in turn
Unfold the left side as a weighted sum of the columns of , which are the images under of the columns of . Because is linear, those weights can be moved back inside, gathering the columns of into with waiting outside.
Proof steps
Unfold the product with the vector, using the definition of the columns of .
The map of is linear, so a weight may be moved through it in either direction.
Linearity again, this time gathering a sum of images into the image of the sum.
The bracket on the right is by definition, which is the statement.
Applications
Practice
The inner counts must agree
The two threes meet in the middle and disappear.
Try it
is and is . What is the shape of ?
Right to left
is nearest to , so reaches it first.
Try it
In applied to a vector, which map acts first?
Column by column
Nothing about the other columns of is needed.
Try it
Let and . What is the first column of ?
Order is not free
is , is
exists and does not, since 4 and 2 do not agree.
Try it
Which statement about and is correct in general?
Try it
Let and let be any matrix. What is ?