Matrix multiplication as composition
Notes from Matrix multiplication as composition by 3Blue1Brown from the Essence of linear algebra series
Sometimes we want to describe the effects of applying one Matrix Transformation than another. For example, we may rotate then apply a shear.
We call this a "composition" of 2 transformations.
One way to think of this, is that we first apply the rotation, then apply the shear:
It turns out to be the same as taking the 2 Matrix Transformation product, then applying that to a vector.
We can think of multiplying two matrices, like applying one transformation then another.
We read transformations from right to left, mirroring function notation. For example, we first apply g to x, then f to that result.
- apply the right matrix, then the left.
Another example:
The total effect of applying and then gives us a new matrix:
Note that Matrix Multiplication is not commutative: . Order matters.
It is however associative: