Matrix transformations
Multiplying a position vector by a 2 × 2 matrix moves the point. Choose the matrix well and every point of a shape is rotated, reflected, stretched or enlarged at once. Computer graphics, animation and fractals are built from exactly this.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Use the matrices for rotations, reflections, stretches and enlargementsAHL 3.9
- Find the image of a point or shape under a transformation , including translationsAHL 3.9
- Identify and describe the transformation a given matrix representsAHL 3.9
- Combine transformations, multiplying the matrices in the right orderAHL 3.9
- Use as the area scale factorAHL 3.9
- Use the inverse matrix to undo a transformation and find an original pointAHL 3.9
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
To see what a matrix does, look at where it sends the two unit vectors: goes to the first column and goes to the second. Everything else follows, because the transformation keeps straight lines straight and keeps the origin fixed.
2.1 The standard transformation matrices
Rotation anticlockwise through about and reflection in the line :
Horizontal stretch (factor , -axis invariant), vertical stretch (factor , -axis invariant) and enlargement (factor , centre ):
A clockwise rotation through is an anticlockwise rotation through . A translation by is done by adding the vector: .
2.2 Combining transformations
If is applied first and then , the point goes to . So the single matrix is : the first transformation is written on the right. Since in general, the order matters.
2.3 The determinant and area
Under the transformation with matrix , every area is multiplied by : area of image = |det A| × area of object. Rotations and reflections have , so they keep areas. A negative determinant means the shape has been flipped over (its orientation is reversed).
2.4 Undoing a transformation
If , then . For , subtract first: . To undo " then ", use : undo the last one first.
On the TI-Nspire, store the matrix (for example as m) and the points as the columns of another matrix p; then m·p transforms every point at once. Set the angle mode to match the question (degrees for 30°, radians for ) before typing cos and sin into a rotation matrix. det(m) gives the area factor and m^−1 undoes the transformation. For "smallest with ", try a^n for increasing .
3Explore it
Choose a transformation and change its angle (rotations and reflections) or scale factor k (stretches and enlargements). The red and green dots are the images of (1, 0) and (0, 1): they are the columns of the matrix. The grey dashed flag is the original; the blue flag is its image. The matrix and its determinant (the area scale factor) are shown below.
4Common mistakes & exam tips
Common mistakes
- Multiplying combined matrices in the order the transformations are listed. " then " is .
- Mixing up the rotation and reflection matrices: the reflection has and a in the bottom right.
- Putting the gradient of the mirror line in place of . The angle is .
- Forgetting the absolute value: an area scale factor of means an area 3 times as big.
- Describing a transformation incompletely. A rotation needs a centre, an angle and a direction.
Exam tips
- "Describe fully" for a rotation: rotation, centre , angle, anticlockwise (or clockwise).
- For a stretch, give the scale factor and the invariant line (or the direction of the stretch).
- Check a combined matrix by sending through each transformation by hand.
- For "smallest such that " with a rotation, find so that is a multiple of .
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
The matrix represents an anticlockwise rotation of 30° about the origin.
- (a)Write down , giving the elements to 3 significant figures.[1]
- (b)Find the smallest positive integer such that .[2]
- (c)Find the image of the point under .[2]
| (a) | |
| A1 | |
| (b) | |
| (M1) | |
| A1 | |
| (c) | |
| (M1) | |
| A1 | |
The matrices and represent two transformations. A shape is transformed by , and its image is then transformed by .
- (a)Find the single matrix that represents the combined transformation.[2]
- (b)The area of is 7.5 cm². Find the area of the final image.[2]
- (c)A point of is mapped to by the combined transformation. Find the coordinates of this point.[3]
| (a) | |
| (M1) | |
| A1 | |
| (b) | |
| (A1) | |
| cm² | A1 |
| (c) | |
| (M1) | |
| (A1) | |
| A1 | |
An animator makes a spinning logo shrink. Each frame, the logo is transformed by , a rotation of 40° anticlockwise about the origin followed by an enlargement with scale factor 0.9, centre the origin.
- (a)Find .[2]
- (b)Find and interpret its value in this context.[2]
- (c)The logo starts with an area of 50 cm². Find the number of frames after which its area is first less than 5 cm².[3]
- (d)Find the smallest number of frames after which the logo is first back in its original orientation.[2]
| (a) | |
| (M1) | |
| A1 | |
| (b) | |
| A1 | |
| each frame, the area is multiplied by 0.81 (reduced by 19%) | R1 |
| (c) | |
| (M1) | |
| (A1) | |
| frames | A1 |
| (d) | |
| (M1) | |
| A1 | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2023 · TZ2 · Paper 1 | Q13 | Combined transformation, its inverse and the area of the original | ★★☆ |
| Nov 2022 · Paper 1 | Q9 | Area of an image; finding a point from its image | ★★☆ |
| May 2025 · TZ1 · Paper 1 | Q13 | Describing a rotation matrix; a sequence of transformations | ★★☆ |
| Nov 2024 · Paper 2 | Q6 | Rotations and enlargements in an animation | ★★☆ |
| May 2022 · TZ1 · Paper 2 | Q7 | A transformation of the form | ★★★ |
