Matrix multiplication keeps some habits from ordinary numbers — and breaks one famous one.
The good news first. It is associative,
The shock: matrix multiplication is not commutative. In general
Order matters! That's not a defect — it's the whole point. "Rotate then stretch" really is a different motion from "stretch then rotate", and the matrices remember the difference.
Here
A few special pairs do commute — any matrix with the