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

  1. B acts first: the point 𝐱 goes to Bx.
  2. Then A acts on that: 𝐀(Bx).
  3. Matrix multiplication is associative, so 𝐀(Bx)=(AB)𝐱.

\"B, then A\" is represented by AB

💡 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 fg(x), g acts first.

The method

  1. Write down the matrix for each transformation, using the images of (1, 0) and (0, 1).
  2. Multiply with the first transformation on the right.
  3. 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 writeWhy I do it
R = reflection in the x-axis = (100−1)(1, 0) stays; (0, 1) flips to (0, −1).
Q = rotation 90° = (0−110)Standard rotation matrix with θ = 90°.
"R, then Q" is QR.R acts first, so it goes on the right.
QR=(0−110)(100−1)=(0110)Row by column.
That is the reflection in y = x.Two transformations have become one.

A blue triangle reflected in the x-axis to a grey triangle, then rotated 90 degrees anticlockwise to a pink triangle, which is the reflection of the blue triangle in y = x

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: RQ=(0−1−10), the reflection in y = −x.
  • Different order, different answer. This is why AB≠BA matters so much.

📝 Right vs wrong

"R, then Q"
WrongRQ (written in the order you read the words)
RightQR (first transformation on the right)

✏️ YOUR TURN 1

Try this first:

H is the shear (1201) 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 QH=(0−110)(1201)=(0−112).
  • Image of (1, 1): (0−1,1+2)=(−1,3).
  • 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 2(β−α) 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 2(45∘−0)=90∘.
FirstThenResult
RotationRotationRotation (angles add)
ReflectionReflectionRotation (twice the angle between the mirrors)
RotationReflectionReflection
ReflectionRotationReflection

👀 Watch me do it: show that rotating by α then β is rotating by α + β

What I writeWhy I do it
(cosβ−sinβsinβcosβ)(cosα−sinαsinαcosα)α first, so it goes on the right.
Top left: cosβcosα−sinβsinα=cos(α+β)Compound angle formula.
Bottom left: sinβcosα+cosβsinα=sin(α+β)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 2(β−α)

What I writeWhy I do it
(cos2βsin2βsin2β−cos2β)(cos2αsin2αsin2α−cos2α)The mirror at angle α acts first, so its matrix goes on the right.
Top left: cos2βcos2α+sin2βsin2α=cos(2β−2α)The compound angle formula for cos(A−B).
Bottom left: sin2βcos2α−cos2βsin2α=sin(2β−2α)The formula for sin(A−B).
Right column: cos2βsin2α−sin2βcos2α=−sin(2β−2α) and sin2βsin2α+cos2βcos2α=cos(2β−2α)Exactly the pattern of a rotation matrix: equal diagonal, opposite signs off it.
So the product is the rotation through 2β−2α=2(β−α).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.

Log in · Subscribe · Start free trial

All notes in Matrices (1.4)

  1. Matrix Arithmetic: Adding, Multiplying and Powers of Matrices
  2. Matrices as 2-D Transformations: Rotations, Reflections, Stretches and Shears
  3. Combining Matrix Transformations: Why B Then A Is AB
  4. Invariant Points, Invariant Lines and Lines of Invariant Points
  5. Determinants: Area and Volume Scale Factors and Singular Matrices
  6. 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.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Matrices as 2-D Transformations: Rotations, Reflections, Stretches and Shears Next note: Invariant Points, Invariant Lines and Lines of Invariant Points

All Cambridge A Level Maths topics · A Level Maths