IB Maths AI HL Matrix Transformations Paper 1 & 2 Composite ST ~9 min read

Matrices of Composite Transformations

Two transformations T then S applied to a point v give S(Tv) = (ST)v. So the single matrix for the composite is the product ST — second matrix on the left, first matrix on the right. Order matters: in general ST ≠ TS. Same transformation applied n times is Tn.

📘 What you need to know

Order matters — ST means “T first”

Reading right-to-left, the matrix closest to the vector acts first. So in (ST)v = S(Tv), T grabs v first, then S transforms the result. Swap the order and the answer changes — check with a quick example: rotation R by 90° anticlockwise, reflection F in the x-axis.

Composite matrix rule v T Tv S S(Tv) = (ST)v order of matrices reads left-to-right (S, T), order of action reads right-to-left (T first, S second)
Order matters: same R and F, different final image Path A:  R first, then F  →  matrix = FR object R 90° CCW after R F reflect x-axis final A Path B:  F first, then R  →  matrix = RF object F reflect x-axis after F R 90° CCW final B final A ≠ final B  ⇒  FR ≠ RF  â‡’  ST ≠ TS in general
Top: R first then F lands the triangle in Q3 (final A). Bottom: F first then R lands it in Q1 (final B). Same two transformations, different order, different image — the matrix product reflects this: FR ≠ RF.

Powers Tn and the identity trick

If you apply the same T n times, the combined matrix is Tn = T · T · … · T (n copies). Two useful periodicity facts:

Periodicity identities S2 = I   (any reflection S applied twice)
Rn = I   when nθ = 360°   (rotation R by angle θ about origin) e.g. θ = 30°  ⇒  n = 12, so R12 = I; θ = 90°  ⇒  R4 = I
Why this helps: T50 looks scary, but if T4 = I then T50 = T4·12 + 2 = (T4)12 · T2 = I · T2 = T2. Reduce the exponent mod the period first.

🧭 Recipe — composite transformations

  1. List the steps in order — T1 first, T2 second, …, Tn last.
  2. Get each matrix from the formula booklet (or derive from images of (1, 0) and (0, 1)).
  3. Multiply in reverse order: composite C = Tn · … · T2 · T1.
  4. Apply to the object: C · P gives the position matrix of the image.
  5. Repeated application: use Tk (GDC). Reduce the exponent mod the period if Tperiod = I.
  6. Reverse (image back to object): use C−1 — the GDC inverts in one step.

Worked examples

WE 1

Composite of two given matrices

T = (2001), S = (1101). Find the single matrix C for “T then S”.

T first, S second → C = ST C = (1101)(2001) row × column (1,1): 1·2 + 1·0 = 2 (1,2): 1·0 + 1·1 = 1 (2,1): 0·2 + 1·0 = 0 (2,2): 0·0 + 1·1 = 1 C = (2101)
WE 2

Rotation then enlargement (formula booklet)

R = rotation 90° anticlockwise about origin. E = enlargement scale factor 0.25, centre origin. Find C = matrix for “R then E”.

write each matrix R = (cos 90°−sin 90°sin 90°cos 90°) = (0−110) E = (0.25000.25) R first, E second → C = ER C = (0.25000.25)(0−110) C = (0−0.250.250) scalar 0.25 multiplies every entry of R — quick shortcut here.
WE 3

Show ST ≠ TS

S = (100−1) (reflection in x-axis), T = (0−110) (rotation 90° CCW). Compute ST and TS, and confirm they differ.

ST ST = (100−1)(0−110) = (0−1−10) TS TS = (0−110)(100−1) = (0110) ST ≠ TS ✓ ST is reflection in y = −x; TS is reflection in y = x. Same pieces, different result.
WE 4

Apply T four times — power of a matrix

C = (0−0.250.250). A square has position matrix P0 = (0025625602562560). Find P4 = C4P0.

C2 first C2 = (0−0.250.250)2 = (−1/1600−1/16) C4 = (C2)2 C4 = (1/256001/256) P4 = C4 · P0: scale each entry by 1/256 P4 = (00110110) GDC: type C^4 · P0 in one calculation — avoids step-by-step slips.
WE 5

Reduce a large power using periodicity

R is rotation 60° anticlockwise about origin. Find R50.

period: 6 × 60° = 360°, so R6 = I reduce exponent mod 6 50 = 8 · 6 + 2 → 50 ≡ 2 (mod 6) R50 = (R6)8 · R2 = I · R2 = R2 R2 = rotation 120° CCW R2 = (cos 120°−sin 120°sin 120°cos 120°) R50 = (−½−√3/2√3/2−½) never compute R50 by 49 multiplications — use periodicity.
WE 6

Map image back to object — inverse of a composite

Using C and P0, P4 from WE 4, find the single matrix M that maps P4 back to P0.

P4 = C4 P0, so P0 = (C4)−1 P4 M = (C4)−1: invert C4 = (1/256001/256) det(C4) = (1/256)2 = 1/65 536 (C4)−1 = 65 536 · (1/256001/256) M = (25600256) M = enlargement scale 256 about origin — undoes a 1/256 shrink. Note: (C4)−1 ≠ C−4.

💡 Top tips

âš  Common mistakes

Next up — Determinant of a Transformation Matrix. The area scale factor of any transformation is |det T| — so the image of a shape has area |det T| × (original area). A negative det T means the orientation flips (a reflection happened).

Need help with Matrix Transformations?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →