☰ IB Maths AI HL · course menu
Topics
IB Maths AI HL · free cheatsheet
Affine Transformations cheatsheet (IB Maths AI HL)
Every plane-transformation skill for IB Mathematics Applications & Interpretation HL — the reflection, rotation, enlargement and stretch matrices, transforming a point or a whole shape, the determinant as area scale factor, composing transformations and the full affine map. Written by an IB-certified teacher.
What this cheatsheet covers
Affine transformations turn geometry into arithmetic in IB Mathematics Applications & Interpretation HL. AI treats a transformation less as an abstract map and more as a modelling tool: one $2\times2$ matrix rotates, reflects, enlarges or stretches an entire shape at once — which is exactly what computer graphics, animation and robotics do to every sprite, photo and joint on the screen. Because a calculator is always allowed, the marks live in choosing the right matrix and reading the GDC's output correctly — not in grinding the multiplication by hand.
This cheatsheet condenses the whole of AHL 3.9 — the standard transformation matrices, transforming a point or a whole shape, the determinant as area scale factor, composing transformations (order matters), inverses and the full affine map $x'=Mx+b$ — onto one page, and flags the traps that quietly cost method marks.
Transformations as 2×2 matrices
AHL 3.9Row × column:the new $x$ uses the top row, the new $y$ the bottom row — never entry-by-entryReading $M$:column 1 is the image of $\begin{pmatrix}1\\0\end{pmatrix}$, column 2 the image of $\begin{pmatrix}0\\1\end{pmatrix}$
A linear transformation of the plane sends each point to a new point by one fixed rule, carried out by multiplying the point's position vector by a single $2\times2$ matrix $M$.
$$\begin{pmatrix}x'\\y'\end{pmatrix}=M\begin{pmatrix}x\\y\end{pmatrix},\qquad\begin{pmatrix}a&b;\\c&d;\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}ax+by\\cx+dy\end{pmatrix}$$
Enlargements & stretches
AHL 3.9Enlargement:centre $O$, factor $k$: $\begin{pmatrix}k&0\\0&k;\end{pmatrix}$ — multiplies both coordinates by $k$Horizontal stretch:factor $p$: $\begin{pmatrix}p&0\\0&1\end{pmatrix}$ (leaves $y$ unchanged)Vertical stretch:factor $q$: $\begin{pmatrix}1&0\\0&q;\end{pmatrix}$ (leaves $x$ unchanged)Two-way stretch:$\begin{pmatrix}p&0\\0&q;\end{pmatrix}$ — stretch $p$ across, $q$ up; area factor $pq$
Scaling maps stretch the plane along the axes. They are diagonal matrices, so their action — and their determinant — is easy to read off.
Reflections in the axes & y = x
AHL 3.9
A reflection flips the plane in a mirror line through the origin. Only the coordinate measured across the mirror changes sign.
| Mirror line | Coordinate map | Matrix |
|---|---|---|
| $x$-axis | $(x,y)\mapsto(x,-y)$ | $\begin{pmatrix}1&0\\0&-1\end{pmatrix}$ |
| $y$-axis | $(x,y)\mapsto(-x,y)$ | $\begin{pmatrix}-1&0\\0&1\end{pmatrix}$ |
| $y=x$ | $(x,y)\mapsto(y,x)$ | $\begin{pmatrix}0&1\\1&0\end{pmatrix}$ |
| $y=-x$ | $(x,y)\mapsto(-y,-x)$ | $\begin{pmatrix}0&-1\\-1&0\end{pmatrix}$ |
Rotations about the origin
AHL 3.9Any angle $\theta$:$R_\theta=\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}$ (anticlockwise; use $-\theta$ for clockwise)
An anticlockwise rotation through angle $\theta$ about $O$ has one master matrix; the quarter-turns are just special cases worth memorising.
| Angle (anticlockwise) | Coordinate map | Matrix |
|---|---|---|
| $90^\circ$ | $(x,y)\mapsto(-y,x)$ | $\begin{pmatrix}0&-1\\1&0\end{pmatrix}$ |
| $180^\circ$ | $(x,y)\mapsto(-x,-y)$ | $\begin{pmatrix}-1&0\\0&-1\end{pmatrix}$ |
| $270^\circ$ | $(x,y)\mapsto(y,-x)$ | $\begin{pmatrix}0&1\\-1&0\end{pmatrix}$ |
Transforming a whole shape
AHL 3.9All vertices at once:$M\begin{pmatrix}x_1&x;_2&x;_3\\y_1&y;_2&y;_3\end{pmatrix}=\begin{pmatrix}x_1'&x;_2'&x;_3'\\y_1'&y;_2'&y;_3'\end{pmatrix}$
To transform a polygon, apply $M$ to every vertex. Stack the vertices as the columns of one matrix and multiply once — the GDC returns all the image vertices together.
Area scale factor = |det M|
AHL 3.9Determinant:$\det M=ad-bc$ for $M=\begin{pmatrix}a&b;\\c&d;\end{pmatrix}$Image area:$=|\det M|\times(\text{original area})$
The determinant of the transformation matrix is exactly the factor by which every area is multiplied.
Composing transformations — order matters
AHL 3.9Compose:"$P$ then $Q$" is the matrix $QP$ — the second transformation sits on the leftArea of a composite:$\det(QP)=\det Q\,\det P$, so the separate area factors multiply
Doing one transformation and then another is a single transformation, given by the product of their matrices. The catch is the order.
Inverses & invariant lines
AHL 3.9Inverse (undo it):$M^{-1}=\dfrac{1}{ad-bc}\begin{pmatrix}d&-b\\-c&a;\end{pmatrix}$ — swap the diagonal, negate $b,c$, divide by $\det M$Invariant directions:solve $\det(M-\lambda I)=\lambda^2-(\operatorname{tr}M)\lambda+\det M=0$ for the eigenvalues $\lambda$
To reverse a transformation, apply the inverse matrix; the original point is $M^{-1}$ times the image. A few special directions survive a transformation unturned — the invariant lines — and those are the eigenvectors of $M$.
The full affine map: adding a translation
AHL 3.9Translation alone:$M=I$, so $x'=x+e,\;y'=y+f$ — a pure shift with no rotation or scaling
An affine transformation is a linear part (the matrix $M$) followed by a translation (the vector $b$). This is the general form behind every real image transform.
$$\begin{pmatrix}x'\\y'\end{pmatrix}=M\begin{pmatrix}x\\y\end{pmatrix}+\begin{pmatrix}e\\f\end{pmatrix}$$
Exam attack plan
All sections
| Question cue | What to do | Watch for |
|---|---|---|
| "Reflect / rotate a point" | Apply the standard map or matrix from §3–§4 | Track $(1,0)$ to check the direction and signs |
| "Rotate by angle $\theta$" | $R_\theta=\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}$ | Keep GDC accuracy; clockwise uses $-\theta$ |
| "Transform a shape" | Stack vertices as columns, multiply once | $O$ stays fixed; join images in the same order |
| "Area after a transformation" | Multiply the area by $|\det M|$ | Take the modulus; not the linear factor |
| "Single matrix for '$P$ then $Q$'" | Compute $C=QP$ (second map on the left) | Don't reverse the product; $QP\ne PQ$ |
| "Area after a composition" | Multiply the $|\det|$ of each transformation | Enlargement gives $k^2$, not $k$ |
| "Undo it / invariant line" | $M^{-1}=\tfrac{1}{\det M}\begin{pmatrix}d&-b\\-c&a;\end{pmatrix}$; eigen-directions from $\lambda^2-(\operatorname{tr}M)\lambda+\det M=0$ | Divide by $\det M$; $\lambda$ is the linear stretch, $\det M$ the area factor |
| "Includes a shift / translation" | Use the affine map $x'=Mx+b$ | Translation isn't a matrix; it moves $O$ |
Worked Example — AI HL-Style Composite Transformation
Question (AI HL Paper 2 style — 8 marks)
A mobile-game studio transforms a triangular sprite using matrices. Transformation $A$ is an anticlockwise rotation of $90^\circ$ about the origin; transformation $B$ is an enlargement, centre the origin, scale factor $2$.
(a) Write down the matrix representing $A$ and the matrix representing $B$.
(b) Find the single matrix $M$ representing transformation $A$ followed by transformation $B$.
(c) The sprite is the triangle with vertices $O(0,0)$, $P(4,0)$ and $Q(0,3)$. Find the coordinates of its image under $M$.
(d) Find the area of the image triangle.
Solution
- (a) $A=\begin{pmatrix}0&-1\\1&0\end{pmatrix}$ (rotation $90^\circ$), $B=\begin{pmatrix}2&0\\0&2\end{pmatrix}$ (enlargement $k=2$). (A1)(A1)
- (b) "$A$ then $B$" is $M=BA$ — the second transformation on the left: $M=\begin{pmatrix}2&0\\0&2\end{pmatrix}\begin{pmatrix}0&-1\\1&0\end{pmatrix}=\begin{pmatrix}0&-2\\2&0\end{pmatrix}$. (M1)(A1)
- (c) Stack the vertices as columns and multiply once: $\begin{pmatrix}0&-2\\2&0\end{pmatrix}\begin{pmatrix}0&4&0\\0&0&3\end{pmatrix}=\begin{pmatrix}0&0&-6\\0&8&0\end{pmatrix}$, so the images are $O'(0,0)$, $P'(0,8)$, $Q'(-6,0)$. (M1)(A1)
- (d) $\det M=(0)(0)-(-2)(2)=4$. The original area is $\tfrac12(4)(3)=6$, so the image area $=|\det M|\times6=4\times6=\mathbf{24}$ square units. (M1)(A1)
Examiner's note: write "$A$ followed by $B$" as $BA$ — the second map on the left — even though the words read left-to-right; reversing it is the classic slip. Transforming all three vertices in one matrix product is quicker and cleaner on the GDC than three separate multiplications. For the area, use $|\det M|=4$ (the rotation's factor $1$ times the enlargement's $k^2=4$) rather than re-deriving from the image coordinates, and remember the origin is fixed, so $O$ maps to itself.
Common Student Questions
- Do I write "$A$ then $B$" as $AB$ or $BA$?
- Why does area scale by the determinant, and why is an enlargement $k^2$?
- Does the order of two transformations really change the result?
- How do I build a transformation matrix I can't remember?
- Why can't a $2\times2$ matrix carry out a translation?
Do I write "$A$ then $B$" as $AB$ or $BA$?
Why does area scale by the determinant, and why is an enlargement $k^2$?
Does the order of two transformations really change the result?
How do I build a transformation matrix I can't remember?
Why can't a $2\times2$ matrix carry out a translation?
Your next step




