1.4 - Composing and reversing transformations
A sequence of transformations is represented by a matrix product, with the first transformation acting from the right. Use that order to build composite matrices, reverse a sequence, and recover an unknown transformation from its overall effect.
Transformation order
Does stretching a shape and then rotating it give the same result as rotating it and then stretching it? Track one point before multiplying any matrices.
Let be a stretch parallel to the -axis of factor , and let be a rotation through anticlockwise about the origin. The stretch affects the horizontal coordinate at the moment it is applied; the rotation changes which direction that is.
Composite transformation
A composite transformation is the overall transformation obtained by applying two or more transformations in a specified order.
For an input vector , applying first gives . Applying next gives .
Order in a composite matrix
The rightmost factor acts first. For three steps, first , then , then gives . Not in the formula booklet: learn it.
Read the words in time order, then build the product from the last step back towards the first.
Worked example 1: stretch, then rotate
Question. Find the matrix for the stretch followed by the rotation above, and find the image of .
Plan. Write , since the stretch acts first, then multiply.
Answer. The composite matrix is , and .
Check. Apply the geometry directly: under the stretch, then under the rotation.
Change only the order. The matrices and the original point stay the same.
Worked example 2: rotate, then stretch
Question. Find the matrix for followed by , and find the image of .
Plan. Put the stretch on the left because it now acts last.
Answer. The matrix is , and .
Check. Directly, under the rotation, then under the stretch.
The two images differ, so the opening question has answer “not in general”. Some pairs do commute, such as two rotations about the origin, but you must not assume this for an arbitrary pair.
[DIAGRAM: asset_name: The same two transformations in opposite orders; asset_slug: cam9231-transformation-order; caption: Stretching then rotating and rotating then stretching produce different images of the same triangle; description: Two exact coordinate plots compare the blue original triangle with vertices (0,0), (2,0), (2,1) and its sage image. A horizontal stretch of factor 3 followed by an anticlockwise right-angle rotation gives image vertices (0,0), (0,6), (-1,6). Reversing the order gives (0,0), (0,2), (-3,2). The point (2,1) and its two final images are labelled.]

Watch out
For “ followed by ”, writing reverses the requested sequence. Check a point through the two separate steps if you are unsure.
Build the product from a new verbal order.
Undoing a transformation
An inverse transformation recovers each original point by undoing the last step first.
For a rotation through anticlockwise, rotate through clockwise to undo it. For a nonzero stretch factor, use its reciprocal along the same direction. For a shear of factor , use a shear of factor with the same fixed axis. A reflection is its own inverse.
You already know
If is non-singular, . For non-singular factors, . The reversed order makes the factors that cancel adjacent.
The geometry gives the same order. If , the original sequence is stretch, then rotate. Its reversal is inverse rotation, then inverse stretch, represented by .
Worked example 3: reversing a composite
Question. For and , write as a product of two non-identity matrices and as a single matrix. Describe the reversing sequence.
Plan. Invert both steps and reverse their time order, retaining the requested product form.
Answer. The displayed product gives the reversal: rotate through clockwise about the origin, then stretch parallel to the -axis with factor .
Check. The earlier image first rotates to , then stretches to , the original point. Also the two-by-two inverse of , with determinant , gives the same matrix.
Change only the stretch factor from to . The collapse changes whether any reversing transformation can exist.
Worked example 4: a sequence that cannot be undone
Question. Let and keep the same . Determine whether has an inverse, explaining the geometry.
Plan. Find the composite and test whether different inputs can have the same image.
The image depends on , but has lost all information about . For example, and both map to .
Answer. No inverse exists. The zero-factor stretch collapses the plane to the -axis; the rotation then takes that axis to the -axis, without recovering the lost information.
Check. . Algebraically, the nonzero vector maps to , just as the zero vector does.
A singular transformation can sometimes have a unique preimage for a specially restricted input set, but it has no inverse transformation on the whole plane. Here a proposed inverse would have to decide which of infinitely many horizontal coordinates to recover.
Exam tip
If an inverse is requested as a product, display the inverse factors in their correct order. Giving only the single multiplied-out matrix does not show that requested form.
Use geometric reversal as a check on the inverse factors.
Finding a composite matrix
An unknown step in a sequence is found by turning the time order into a matrix equation before rearranging it.
Suppose a known transformation acts first, an unknown acts next, and the total matrix is . Then , so multiply on the right by . If the unknown acts first instead, the equation and the side of cancellation both change.
Recovering an unknown step
For non-singular known ,
The known step must be invertible for this cancellation. Not in the formula booklet: learn it.
The two formulae differ because the unknown has a different position, not because matrix multiplication has changed.
Worked example 5: recovering the last step
Question. A stretch is followed by an unknown transformation . The overall matrix is . Find and describe .
Plan. Write and cancel the stretch on the right.
Its coordinate rule is .
Answer. is a shear parallel to the -axis, fixing the -axis, of factor .
Check. On a general point, the two steps give
which is precisely the rule represented by .
Keep the known stretch and the overall effect unchanged, but put the unknown step first. Its matrix must change.
Worked example 6: recovering the first step
Question. An unknown transformation is followed by the same stretch , giving the same total matrix . Find and describe .
Plan. Use , cancelling from the left.
Answer. A shear parallel to the -axis, fixing the -axis, of factor .
Check. The coordinate sequence is
It again gives , whereas using the previous factor- shear first would give .
For an unknown step between two known steps, the same reasoning gives , hence , provided both known steps are non-singular. An unfamiliar transformation needs no special name when its point-image information determines its columns.
If a known step is singular, do not use a nonexistent inverse: the available data may leave several possible unknown transformations or be inconsistent. Write the matrix equation and examine its entries instead.
Problem-solving
First write a correct equation for the entire sequence. Then put each inverse next to the factor it cancels, keeping the unknown's position visible.
The opening order question matters here: swapping steps changes both the image and the matrix needed to obtain a given image.
Quick Recap
- In , acts first.
- Reverse a non-singular sequence by undoing its last step first.
- A singular transformation loses information and has no inverse on the whole plane.
- Recover an unknown step by writing the sequence equation and cancelling from the correct side.
Stretching then rotating need not equal rotating then stretching: the same two matrices can give different overall transformations.