Lesson 5 of 8 · 15 min
One transformation after another
Find the single matrix for a sequence of transformations as a product in the right order, see why the order changes the result, and combine rotations by adding angles.
What you will be able to do
- Explain why " followed by " has matrix .
- Find and describe the single transformation equivalent to a sequence of two or three.
- Show with an example that changing the order usually changes the result.
- Use to combine rotations and find powers of a rotation matrix.
A photo app rotates your picture and then flips it. Could one transformation have done both at once? Follow a point through.
Apply to to get . Then apply to that: . Matrix multiplication is associative, so . The single matrix does both jobs in one step.
Key idea
Composition is a matrix product
The transformation followed by has matrix .
The first transformation sits on the right, next to the point it acts on, just like means "do first". For three transformations, then then is .
Here is the reflection in the -axis and is the rotation of anticlockwise. Compare with : each is a reflection, but in different lines.
Worked example
Reflect then rotate, or rotate then reflect?
Let be the reflection in the -axis and the rotation of anticlockwise about the origin.
(a) Find the single matrix for followed by , and describe the transformation.
(b) Find the single matrix for followed by , and describe it.
Step 1: Write the two matrices
and .
Step 2: then is
: the first transformation is next to the point.
Step 3: Describe it
This is the reflection in the line : it swaps the coordinates. Check: reflects to , then rotates to , the first column. ✓
Step 4: then is
Step 5: Describe it
This is the reflection in the line . The two orders give different transformations, so .
Try it yourself first, then check the working one step at a time.
Answer
(a) , the reflection in . (b) , the reflection in .
Method
Write the words in order, then the matrices in reverse order.
Multiply, then recognise the result from its pattern.
Check the first column by following through by hand.
Watch out for
Writing " then " as .
Calling a result with determinant a rotation.
The same two transformations in different orders. Reflect then rotate (blue) lands in a different place from rotate then reflect (amber).
Find the single matrix for a rotation of anticlockwise about the origin followed by a dilation of factor 3 parallel to the -axis.
Rotations about the origin are the friendly exception. Turning by and then by is a turn by , whichever comes first:
So rotations about the same centre commute, and repeating a rotation multiplies its angle: .
Proof that
By the angle sum identities, and , so
Swapping and gives the same matrix, so the two rotations commute.
Let be the matrix of the rotation of anticlockwise about the origin. Find the smallest positive integer for which .
Common mistake
Reading the product left to right
It is tempting to write the matrices in the order you read the words. "Reflect, then rotate" is , with the reflection on the right. A quick check: test your product on and follow the point through each transformation by hand.
A transformation has matrix . Which transformation is applied to a point first?
Summary
" followed by " has matrix ; " then then " has matrix .
Order usually matters: reflect-then-rotate and rotate-then-reflect are different transformations.
Rotations about the origin commute and add: , so .
Check a composition by following and through each step: their images are the columns of the product.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.