Home › Lectures › 3Blue1Brown — Essence of linear algebra

Matrix multiplication as composition

Learn how matrix products represent successive linear transformations, why order matters, and how this viewpoint explains associativity.

3Blue1Brown⏱ 10 minOpen on YouTube ↗
Take the full quiz — 6 questions →

Free, sign in with Google. A ready quiz does not use your hourly limit.

What the lecture covers

A linear transformation is determined by where it sends the basis vectors. In two dimensions, those destinations form the columns of its matrix, and multiplying the matrix by a vector applies the transformation. When one transformation is followed by another, their combined effect is itself a linear transformation, represented by a composition matrix. To find that matrix, track where each basis vector ends up after both steps.

The product of two matrices captures this combined effect: apply the matrix on the right first, then the one on the left. Each column of the product is found by applying the left matrix to the corresponding column of the right matrix. This geometric interpretation makes clear that matrix multiplication is generally not commutative: reversing the order of a shear and a rotation can produce a different result. It also explains associativity. Grouping three matrices in either way preserves the same order of transformations, so the overall result is unchanged.

Key ideas

Sample questions

A linear transformation in the plane sends each vector x(1,0) + y(0,1) to xT(1,0) + yT(0,1). If its matrix is written using columns, what does the first column contain?

  1. AThe coordinates of the image of (1,0) under T
  2. BThe coordinates of the image of every vector with x = y
  3. CThe coordinates of the original vector (1,0) before applying T
  4. DThe coordinates of the image of (0,1) under T
Show answer

Correct answer: A. The first column records where the first standard basis vector, (1,0), is sent; the second column records the image of (0,1).

A rotation and a shear are combined into one overall linear transformation of the plane. Which statement correctly describes the combined transformation?

  1. AIt must be represented by two separate matrices and cannot have a matrix of its own.
  2. BIt can be represented by a matrix only if the rotation and shear are identical.
  3. CIt is a linear transformation in its own right and can be represented by a matrix.
  4. DIt is not a linear transformation because it combines two different operations.
Show answer

Correct answer: C. Combining linear transformations produces another linear transformation, so the overall mapping can have its own matrix representation.

Take the full quiz — 6 questions →

A quiz for any lecture

Paste a video link — LearnReplay builds a comprehension quiz.

Create a quiz →