Skip to content

Linear Algebra

Matrix Multiplication Is Composition

8 min+75 XPStep 1/11

One product, two transformations

Multiply matrix A by matrix B and you're not doing arithmetic — you're doing composition. The product is a single new matrix that performs B's transformation and then A's, in one step.

Try it mentally: rotate 90°, then mirror the plane — the combined warp is some skewed flip, and the product matrix encodes it exactly. The entries are just bookkeeping for where the basis arrows land after both moves.

One catch: A×B reads right-to-left — B happens first. And it matters.

warning

Matrix multiplication is not commutative: A×B ≠ B×A in general. Rotate-then-stretch and stretch-then-rotate are genuinely different transformations — order carries meaning.