IB Maths AI HL Matrix Transformations Paper 1 & 2 Rotations & reflections ~9 min read

Matrices of Geometric Transformations

Each geometric transformation — rotation, reflection, enlargement, stretch — has its own 2×2 matrix. Most are given in the formula booklet, but you can always derive any matrix yourself by tracking where the basis vectors (1, 0) and (0, 1) get sent. Those two images become the columns of T. If the transformation also moves the origin, the extra shift is the translation vector (e, f).

📘 What you need to know

Building the matrix from the images of (1, 0) and (0, 1)

This is the cleanest way to find any transformation matrix. The point (1, 0) ends up at whatever the first column of T says; the point (0, 1) ends up at whatever the second column says. So if you know where these two unit vectors get sent, you can read T off directly. If the origin moves too, the image of (0, 0) gives the translation vector — subtract that off the other images before extracting the columns.

Columns of T = images of (1, 0) and (0, 1) x y O −2 −1 1 2 1 2 (1,0) (0,1) (−1,0) e₁ e₂ T(e₁) T(e₂) T = 90° CCW about origin read the columns from the images T = ( 0 −1 ; 1 0 ) = (T(e₁) | T(e₂)) column 1 = (0, 1) is image of e₁ · column 2 = (−1, 0) is image of e₂ Deriving T from points ① No translation case T = (T(e₁) | T(e₂)) columns are images of (1,0) & (0,1)② With translation image of (0,0) = (e, f) subtract from other images then read columns of T③ General case 3 object→image pairs → 6 equations in a,b,c,d,e,f solve simultaneouslytrick: use (0,0), (1,0), (0,1) if you can it’s the fastest derivation
Under a 90° anticlockwise rotation about the origin, (1, 0) → (0, 1) and (0, 1) → (−1, 0). These images are the columns of T = (0−110) — first column is image of e1, second is image of e2.
Matrix from basis vector images T = (abcd) where (1, 0) → (a, c) and (0, 1) → (b, d) with translation: (0, 0) → (e, f) — subtract from other images before extracting T

Standard transformation matrices

Most of the matrices below are in the formula booklet; the translation is the only one you need to remember separately, since it’s added as a column vector rather than multiplied. For a reflection in y = mx, you first convert m to an angle by solving tan θ = m, then plug θ into the reflection formula. Notice the double-angle: the reflection matrix uses 2θ, while rotations use just θ.

TransformationMatrix T (apply to (x, y)T)
Rotation anticlockwise by angle θ about origin(cos θ−sin θsin θcos θ)
Rotation clockwise by angle θ about origin(cos θsin θ−sin θcos θ)
Reflection in the line y = (tan θ)x(cos 2θsin 2θsin 2θ−cos 2θ)
Enlargement, scale factor k, centre origin(k00k)
Horizontal stretch parallel to x-axis, scale factor k(k001)
Vertical stretch parallel to y-axis, scale factor k(100k)
Translation by vector (p, q) — not in bookletadd (pq) after T
Self-check exercise: try deriving each formula yourself by working out where (1, 0) and (0, 1) get sent under the named transformation. For instance, a 90° anticlockwise rotation sends (1, 0) → (0, 1) and (0, 1) → (−1, 0); plug θ = 90° into the rotation formula and check the columns match.

🧭 Recipe — finding the matrix of a transformation

  1. Named transformation (rotation, reflection, enlargement, stretch)? — use the formula booklet entry directly. For reflection in y = mx, find θ from tan θ = m first.
  2. Given object & image points? — check what the origin maps to first.
  3. Origin fixed (no translation) — the images of (1, 0) and (0, 1) become the columns of T directly.
  4. Origin moves — image of (0, 0) = (e, f) is the translation. Subtract it from the other images, then read off T.
  5. No nice points given? — substitute three object/image pairs into the general equation and solve the 6 simultaneous equations for a, b, c, d, e, f.

Worked examples

WE 1

Find T from images of (1, 0) and (0, 1) — no translation

Under a transformation T about the origin (no translation), (1, 0) maps to (3, −1) and (0, 1) maps to (5, 0). Find the matrix T.

images of the basis vectors → columns of T column 1 = image of (1,0) = (3, −1) column 2 = image of (0,1) = (5, 0) stack them as a matrix T = (35−10) no need to solve equations — just read the images off into columns.
WE 2

Find T and the translation vector together

A transformation sends (0, 0) → (2, 5), (1, 0) → (3, −1) and (0, 1) → (5, 0). Find the matrix T and the translation vector (e, f).

(0, 0) → (e, f), so translation (e, f) = (2, 5) subtract translation from other images image of (1,0) without translation: (3−2, −1−5) = (1, −6) image of (0,1) without translation: (5−2, 0−5) = (3, −5) these are now the columns of T T = (13−6−5),  (e, f) = (2, 5) image of origin gives the translation — always do that subtraction first.
WE 3

Write the matrix for a 90° anticlockwise rotation

Find the matrix T that represents a rotation of 90° anticlockwise about the origin. Use T to find the image of the point P(4, 1).

use formula with θ = 90° T = (cos 90°−sin 90°sin 90°cos 90°) = (0−110) apply to P(4, 1) top: 0(4) + (−1)(1) = −1 bot: 1(4) + 0(1) = 4 T = (0−110);  P′ = (−1, 4) 90° CCW: (x, y) → (−y, x) — quick sanity check.
WE 4

Reflection in y = x√3

Triangle PQR has coordinates P(−1, 4), Q(5, 4), R(2, −1). Find the matrix T that represents a reflection in the line y = x√3, then find the image of P under T.

find θ from tan θ = √3 tan θ = √3 → θ = 60° use formula with 2θ = 120° T = (cos 120°sin 120°sin 120°−cos 120°) = (−½√3/2√3/2½) apply to P(−1, 4) top: −½(−1) + (√3/2)(4) = ½ + 2√3 bot: (√3/2)(−1) + ½(4) = 2 − √3/2 P′ = (½ + 2√3,  2 − √3/2) reflection uses 2θ in the formula — common slip is to use θ.
WE 5

Enlargement and image of a triangle

Write the matrix that represents an enlargement of scale factor 3 about the origin. Use it to find the image of the triangle with vertices A(1, 2), B(4, 0), C(2, 5).

enlargement scale 3, centre origin T = (3003) multiply each coordinate by 3 A → (3, 6) B → (12, 0) C → (6, 15) A′(3, 6), B′(12, 0), C′(6, 15) enlargement about origin: every coordinate scaled by k.
WE 6

Identify the transformation from its matrix

The matrix T = (0110) represents a transformation about the origin. Describe the geometric transformation T fully.

check images of basis vectors T(1,0) = (0, 1) → up the y-axis T(0,1) = (1, 0) → along the x-axis basis vectors swap → reflection in y = x verify with formula: y = (tan θ)x with tan θ = 1 θ = 45°, so 2θ = 90° T = (cos 90°sin 90°sin 90°−cos 90°) = (0110) reflection in the line y = x reading the columns + comparing to the formula table identifies any standard transformation.

💡 Top tips

⚠ Common mistakes

Next up — Matrices of Composite Transformations. When two transformations are applied one after another, the combined effect is captured by multiplying the matrices in the right order: ST for “T first, then S”. Order matters — rotation-then-reflection is not the same as reflection-then-rotation.

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 →