Combining Matrix Transformations: Why B Then A Is AB | Cambridge A Level Maths notes
Free preview: Combining Matrix Transformations: Why B Then A Is AB
One Transformation After Another
9231 Paper 1: Further Pure Mathematics 1
Watch: common mistake (1-minute fix)
Watch: 1-minute explainer
Let's start with a question. If B moves a point, and then A moves the result, which single matrix does both? This is how a games engine turns, flips and resizes a character in one step instead of three.
Why the order looks backwards
- B acts first: the point goes to .
- Then A acts on that: .
- Matrix multiplication is associative, so .
💡 In plain words
- Read the product from right to left: the matrix next to the point acts first.
- It is like function notation from 9709 Paper 1: in , g acts first.
The method
- Write down the matrix for each transformation, using the images of (1, 0) and (0, 1).
- Multiply with the first transformation on the right.
- Read off what the single matrix does (and check with one point).
👀 Watch me do it: reflect in the x-axis, then rotate 90° anticlockwise about O
| What I write | Why I do it |
|---|---|
| R = reflection in the x-axis = | (1, 0) stays; (0, 1) flips to (0, −1). |
| Q = rotation 90° = | Standard rotation matrix with θ = 90°. |
| "R, then Q" is QR. | R acts first, so it goes on the right. |
| Row by column. | |
| That is the reflection in y = x. | Two transformations have become one. |

Following the diagram
- The blue triangle has a corner at (3, 0.5).
- Reflecting in the x-axis (R) sends it to (3, −0.5): the grey triangle.
- Rotating 90° anticlockwise (Q) sends (x, y) to (−y, x), so (3, −0.5) goes to (0.5, 3): the pink triangle.
- Compare blue and pink: (3, 0.5) and (0.5, 3) have swapped coordinates. That is the reflection in y = x, as QR said.
- Now do it the other way round: , the reflection in y = −x.
- Different order, different answer. This is why matters so much.
📝 Right vs wrong
| "R, then Q" | |
|---|---|
| Wrong | (written in the order you read the words) |
| Right | (first transformation on the right) |
✏️ YOUR TURN 1
Try this first:
H is the shear and Q is the rotation of 90° anticlockwise about O. Find the single matrix for "H, then Q", and the image of (1, 1). Check by doing the two steps separately.
Answer:
- "H, then Q" is .
- Image of (1, 1): .
- Check: H sends (1, 1) to (3, 1); then Q sends (3, 1) to (−1, 3). Same.
Useful Combinations in 2-D
Rotations and reflections combined
- Rotating by α, then by β, is a rotation by . Multiplying the two matrices proves the compound angle formulae from 9709 Paper 3.
- Reflecting in a line at angle α to the x-axis, then in a line at angle β, gives a rotation through about O.
- Check with the example on page 1: reflect in the x-axis (angle 0), then reflect in y = x (angle 45°). That gives a rotation of .
| First | Then | Result |
|---|---|---|
| Rotation | Rotation | Rotation (angles add) |
| Reflection | Reflection | Rotation (twice the angle between the mirrors) |
| Rotation | Reflection | Reflection |
| Reflection | Rotation | Reflection |
👀 Watch me do it: show that rotating by α then β is rotating by α + β
| What I write | Why I do it |
|---|---|
| α first, so it goes on the right. | |
| Top left: | Compound angle formula. |
| Bottom left: | Compound angle formula again. |
| The second column works the same way, so the product is the rotation through . | As expected: turn, then turn more. |
Why does the two-mirror rule work? Let's multiply two reflection matrices and watch the compound angle formulae appear again.
👀 Watch me do it: show that reflecting in the line at angle α, then in the line at angle β, is a rotation through
| What I write | Why I do it |
|---|---|
| The mirror at angle α acts first, so its matrix goes on the right. | |
| Top left: | The compound angle formula for . |
| Bottom left: | The formula for . |
| Right column: and | Exactly the pattern of a rotation matrix: equal diagonal, opposite signs off it. |
| So the product is the rotation through . | Twice the angle between the mirrors, measured from the first mirror to the second. |
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Matrices (1.4)
- Matrix Arithmetic: Adding, Multiplying and Powers of Matrices
- Matrices as 2-D Transformations: Rotations, Reflections, Stretches and Shears
- Combining Matrix Transformations: Why B Then A Is AB
- Invariant Points, Invariant Lines and Lines of Invariant Points
- Determinants: Area and Volume Scale Factors and Singular Matrices
- Inverse Matrices: Undoing a Transformation and Finding Pre-Images
Video
What's inside for this topic
6 teacher notes, 105 practice questions, 40 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: Matrices as 2-D Transformations: Rotations, Reflections, Stretches and Shears Next note: Invariant Points, Invariant Lines and Lines of Invariant Points