Matrix Multiplication: Composing Transformations

Understanding how matrix multiplication combines multiple spatial transformations.

We've seen that a matrix transforms a vector. Now we ask the next logical question: what happens if we apply two transformations one after another?

This is the entire essence of matrix-matrix multiplication. It is not just an arbitrary set of rules for multiplying numbers in a grid; it is the act of composing functions—creating a single, new transformation that represents the combined effect of two separate transformations.

Visualizing Composed Transformations
[
]
[
]

Resulting Transformation (C = AB)

[1.001.001.001.00]\begin{bmatrix} 1.00 & -1.00 \\ 1.00 & 1.00 \end{bmatrix}

The "How": The Row-Column Rule Revisited

The Calculation Rule

The familiar "row-times-column" dot product rule is the computational shortcut for finding the columns of this new, combined transformation matrix.

If `C = AB`, then each column of `C` is the result of `A` transforming the corresponding column of `B`.

The "Why": AB ≠ BA

Summary: Matrix-Matrix Multiplication
  • The "Why": It is the process of composing two linear transformations into a single, equivalent transformation.
  • The "How": The dot product of the i-th row of the first matrix and the j-th column of the second matrix gives the (i, j) entry of the result.
  • `AB` means "apply transformation B, then apply transformation A." The order is critical.