AP® Precalculus · Unit 4 · Topic 4.13

Composing and Inverting Transformations

Applying one linear transformation then another is the same as multiplying by a single matrix, the product of the two matrices in the order you applied them. Reversing that order usually gives a different result.

A linear transformation moves every point in the plane by multiplying its coordinate vector by a matrix. If you apply transformation A first and then transformation B, you can find the combined effect by matrix multiplication: take a point, multiply by A to get the new point, then multiply that result by B. Because matrix multiplication is built to chain like this, doing B(Ax) for every point x is exactly the same as multiplying x by the single matrix BA. Notice A sits on the right, closest to x, because it acts first.

Order matters because the second transformation does not act on the original point, it acts on whatever the first transformation produced. Rotating a point and then stretching it sideways gives a different final location than stretching it first and then rotating it, since the stretch and the rotation each see a different starting shape to work on. That is why BA and AB are generally different matrices, even though both are built from the same two transformations.

This connects directly to inverses: if A takes a shape to a new position, A−1 undoes exactly that move, and undoing a composed transformation means undoing the steps in reverse order, so (BA)−1 = A−1B−1. Composing and inverting together let you build complicated motions, like rotating then scaling then reflecting, out of simple pieces, and then take any of it apart again step by step.

Key terms

composition
Applying one transformation to a point and then applying a second transformation to that result.
matrix product
The single matrix equivalent to performing two transformations in sequence, with the first one written on the right.
inverse transformation
A transformation that undoes another, corresponding to the inverse matrix.
noncommutative
A property meaning the order of multiplication changes the result, so AB and BA are generally not equal.

Watch it explained

  1. How it worksHow does the order of the matrix product match the order the transformations happen in?
  2. Worked exampleFind the single matrix for rotating 90 degrees and then scaling by 2 in the x direction.
  3. Ties togetherHow does the inverse transformation correspond to the inverse of its matrix?
  4. Common mistakeWhy isn't composing two transformations the same when you swap their order?

Check yourself

Your turn1 of 2
A point (5, 2) is first scaled (multiplying x by 4 and y by 4), then rotated by an angle of theta (in radians) counterclockwise. Write the x-coordinate of the final image, as a function of theta.

End of topic.