3.9 · AHL · HL onlyPaper 1Paper 2

Matrix transformations

In a minute

A moves every point of a shape at once: x′=Ax+b\boldsymbol{x}' = A\boldsymbol{x} + \boldsymbol{b} can stretch, enlarge, rotate, reflect and translate. Multiplying matrices combines moves, repeating them builds , and ∣det⁡A∣\lvert\det A\rvert scales areas.

You'll be able to

  • Transform points with x′=Ax+b\boldsymbol{x}' = A\boldsymbol{x} + \boldsymbol{b}: stretches, enlargements and .
  • Write down and describe matrices for rotations and .
  • Combine transformations into one , in the right order.
  • Repeat transformations to make spirals and fractals.
  • Use ∣det⁡A∣\lvert\det A\rvert to find the area of an image or of the original shape.
Before you start3 quick questions on what this builds on
Check yourself
Find (3−214)(52)\begin{pmatrix}3 & -2\\1 & 4\end{pmatrix}\begin{pmatrix}5\\2\end{pmatrix}.
Check yourself
Find det⁡(5−32−1)\det \begin{pmatrix}5 & -3\\2 & -1\end{pmatrix}.
Check yourself
Find the of 36+27+20.25+…36 + 27 + 20.25 + \dots

Revise first: 1.3 Geometric sequences and series, 1.11 Infinite geometric series, 1.14 Matrices, determinants and inverses and 2.8 Transformations of graphs

Transforming points with a matrix

In 2.8 you transformed graphs. Now you move points. Write each point (x,y)(x, y) as a column (xy)\begin{pmatrix}x\\y\end{pmatrix}, and one matrix moves every point of a shape at once.

For example, (3002)(xy)=(3x2y)\begin{pmatrix}3 & 0\\0 & 2\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix} = \begin{pmatrix}3x\\2y\end{pmatrix}. Every xx-coordinate is tripled and every yy-coordinate doubled.

The matrix acts first, then the translation slides every point ee across and ff up.

The columns of AA are the images of (1,0)(1, 0) and (0,1)(0, 1): A(10)=(ac)A\begin{pmatrix}1\\0\end{pmatrix} = \begin{pmatrix}a\\c\end{pmatrix} and A(01)=(bd)A\begin{pmatrix}0\\1\end{pmatrix} = \begin{pmatrix}b\\d\end{pmatrix}. To find a matrix, ask where those two points go.

With no translation, A(00)=(00)A\begin{pmatrix}0\\0\end{pmatrix} = \begin{pmatrix}0\\0\end{pmatrix}: the origin is . So every booklet matrix acts relative to the origin.

In the formula booklet
(k001): horizontal stretch, scale factor k\begin{pmatrix}k & 0\\0 & 1\end{pmatrix}:\ \text{horizontal stretch, scale factor } k
In the formula booklet
(100k): vertical stretch, scale factor k\begin{pmatrix}1 & 0\\0 & k\end{pmatrix}:\ \text{vertical stretch, scale factor } k
In the formula booklet
(k00k): enlargement, scale factor k, centre (0,0)\begin{pmatrix}k & 0\\0 & k\end{pmatrix}:\ \text{enlargement, scale factor } k,\ \text{centre } (0, 0)

These are in the booklet. A multiplies each xx-coordinate by kk and fixes the yy-axis. A does the same to yy and fixes the xx-axis.

Worked exampleA photo app stores a sticker's corner at (6,4)(6, 4). The app moves every point by (x′y′)=(1.5001.5)(xy)+(−23)\begin{pmatrix}x'\\y'\end{pmatrix} = \begin{pmatrix}1.5 & 0\\0 & 1.5\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix} + \begin{pmatrix}-2\\3\end{pmatrix}. Describe the transformation, and find the new position of the corner.

Try it first, then reveal one step at a time.

  1. The matrix is the enlargement form with k=1.5k = 1.5: an enlargement, scale factor 1.51.5, centre (0,0)(0, 0). The vector then translates every point by (−23)\begin{pmatrix}-2\\3\end{pmatrix}.
Worked exampleA design tool uses x′=Ax+b\boldsymbol{x}' = A\boldsymbol{x} + \boldsymbol{b}. It maps (0,0)(0, 0) to (−2,5)(-2, 5), (1,0)(1, 0) to (1,5)(1, 5) and (0,1)(0, 1) to (−2,5.5)(-2, 5.5). Find b\boldsymbol{b} and AA, describe AA, and find the image of (4,−2)(4, -2).

Try it first, then reveal one step at a time.

  1. The origin maps to b\boldsymbol{b}, so b=(−25)\boldsymbol{b} = \begin{pmatrix}-2\\5\end{pmatrix}.
Check yourself
Under the matrix (4−123)\begin{pmatrix}4 & -1\\2 & 3\end{pmatrix}, what is the image of (0,1)(0, 1)?
Check yourself
The matrix (2111)\begin{pmatrix}2 & 1\\1 & 1\end{pmatrix} maps a point PP to (7,4)(7, 4). Find PP.

Rotations and reflections

Turn (1,0)(1, 0) anticlockwise through θ\theta about the origin: it lands on (cos⁡θ,sin⁡θ)(\cos\theta, \sin\theta). (0,1)(0, 1) lands on (−sin⁡θ,cos⁡θ)(-\sin\theta, \cos\theta). These images are the columns of the rotation matrix.

In the formula booklet
(cos⁡θ−sin⁡θsin⁡θcos⁡θ): anticlockwise rotation of angle θ about the origin (θ>0)\begin{pmatrix}\cos\theta & -\sin\theta\\\sin\theta & \cos\theta\end{pmatrix}:\ \text{anticlockwise rotation of angle } \theta \text{ about the origin } (\theta > 0)
In the formula booklet
(cos⁡θsin⁡θ−sin⁡θcos⁡θ): clockwise rotation of angle θ about the origin (θ>0)\begin{pmatrix}\cos\theta & \sin\theta\\-\sin\theta & \cos\theta\end{pmatrix}:\ \text{clockwise rotation of angle } \theta \text{ about the origin } (\theta > 0)

The two rotation matrices differ only in the signs of sin⁡θ\sin\theta. A clockwise turn of θ\theta is an anticlockwise turn of −θ-\theta.

In the formula booklet
(cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ): reflection in the line y=(tan⁡θ)x\begin{pmatrix}\cos 2\theta & \sin 2\theta\\\sin 2\theta & -\cos 2\theta\end{pmatrix}:\ \text{reflection in the line } y = (\tan\theta)x

The mirror line passes through the origin, and θ\theta is its angle with the positive xx-axis. The matrix uses 2θ2\theta, not θ\theta.

For the xx-axis, θ=0∘\theta = 0^{\circ} gives (100−1)\begin{pmatrix}1 & 0\\0 & -1\end{pmatrix}. For the line y=xy = x, θ=45∘\theta = 45^{\circ} gives (0110)\begin{pmatrix}0 & 1\\1 & 0\end{pmatrix}. For the yy-axis, θ=90∘\theta = 90^{\circ} gives (−1001)\begin{pmatrix}-1 & 0\\0 & 1\end{pmatrix}, even though tan⁡90∘\tan 90^{\circ} is undefined. All four rotation and reflection formulas are in the booklet.

Worked exampleThe tip of a wind-turbine blade is at (0,42)(0, 42), in metres, relative to the hub at the origin. The blade turns 50∘50^{\circ} clockwise about the hub. Find the new position of the tip, to 3 s.f.

Try it first, then reveal one step at a time.

  1. Clockwise, so use (cos⁡θsin⁡θ−sin⁡θcos⁡θ)\begin{pmatrix}\cos\theta & \sin\theta\\-\sin\theta & \cos\theta\end{pmatrix} with θ=50∘\theta = 50^{\circ}. Set the GDC to degrees.
Worked exampleA garden is symmetric about a straight path along the line y=3xy = 3x. A tree stands at (10,5)(10, 5). Use a reflection matrix to find where its mirror image stands.

Try it first, then reveal one step at a time.

  1. The path makes angle θ\theta with the xx-axis, with tan⁡θ=3\tan\theta = 3. So θ=tan⁡−13=71.565…∘\theta = \tan^{-1} 3 = 71.565\ldots^{\circ} and 2θ=143.130…∘2\theta = 143.130\ldots^{\circ}.
Check yourself
Describe fully the transformation with matrix (01−10)\begin{pmatrix}0 & 1\\-1 & 0\end{pmatrix}.
Check yourself
Which matrix reflects points in the line y=−xy = -x?

Combining and repeating transformations

Apply AA to a point, then apply BB to its image. The result is B(Ax)=(BA)xB(A\boldsymbol{x}) = (BA)\boldsymbol{x}, so the single matrix BABA does both.

Worked exampleA drawing app rotates a shape 90∘90^{\circ} anticlockwise about the origin, then reflects the result in the xx-axis. Find the single matrix for the combined transformation, and describe it fully.

Try it first, then reveal one step at a time.

  1. Rotation, θ=90∘\theta = 90^{\circ} anticlockwise: R=(0−110)R = \begin{pmatrix}0 & -1\\1 & 0\end{pmatrix}. Reflection in the xx-axis: M=(100−1)M = \begin{pmatrix}1 & 0\\0 & -1\end{pmatrix}.
Check yourself
A shape is reflected using matrix YY, then stretched using matrix SS. Which single matrix gives the combined transformation?

Now repeat one transformation. With x1=Ax0\boldsymbol{x}_{1} = A\boldsymbol{x}_{0}, x2=Ax1=A2x0\boldsymbol{x}_{2} = A\boldsymbol{x}_{1} = A^{2}\boldsymbol{x}_{0} and so on, the point after nn steps is xn=Anx0\boldsymbol{x}_{n} = A^{n}\boldsymbol{x}_{0}. Your GDC's matrix power jumps straight there.

A rotation of 30∘30^{\circ} applied 1212 times is a full turn of 360∘360^{\circ}, so its 12th power is the II.

Worked exampleAn animation moves a dot by the matrix C=0.9(cos⁡30∘−sin⁡30∘sin⁡30∘cos⁡30∘)C = 0.9\begin{pmatrix}\cos 30^{\circ} & -\sin 30^{\circ}\\\sin 30^{\circ} & \cos 30^{\circ}\end{pmatrix} once every frame. The dot starts at P0(10,0)P_{0}(10, 0). (a) Describe CC fully. (b) Use your GDC to find its position P8P_{8} after 88 frames, to 3 s.f.

Try it first, then reveal one step at a time.

  1. (a) An enlargement, scale factor 0.90.9, centre (0,0)(0, 0), and an anticlockwise rotation of 30∘30^{\circ} about the origin. An enlargement kIkI commutes with every matrix, so their order doesn't matter.
x y -10 -10 -5 -5 5 5 10 10 P0 P8 P12
Each frame turns the dot 30∘30^{\circ} and multiplies its distance from the origin by 0.90.9.

Then multiply C8C^{8} by (100)\begin{pmatrix}10\\0\end{pmatrix}, or take its first column times 1010.

Check yourself
In the animation, the dot is first back on the positive xx-axis after 1212 frames. How far from the origin is it then? Give 3 s.f.

A repeats a set of transformations for ever. Each stage replaces every piece with smaller transformed copies, giving detail at every scale.

Stage 0 Stage 1 Stage 2
Stages 00, 11 and 22: each triangle is replaced by its images under three maps.
Worked exampleA fractal starts with the triangle with vertices (0,0)(0, 0), (16,0)(16, 0) and (0,16)(0, 16), in cm. Each stage applies T1:x′=0.5xT_{1}: \boldsymbol{x}' = 0.5\boldsymbol{x}, T2:x′=0.5x+(80)T_{2}: \boldsymbol{x}' = 0.5\boldsymbol{x} + \begin{pmatrix}8\\0\end{pmatrix} and T3:x′=0.5x+(08)T_{3}: \boldsymbol{x}' = 0.5\boldsymbol{x} + \begin{pmatrix}0\\8\end{pmatrix} to every triangle, and keeps only the images. (a) Find the image of the starting triangle under T2T_{2}. (b) Find the shaded area after 55 stages.

Try it first, then reveal one step at a time.

  1. (a) T2T_{2} halves each vertex, then adds 88 to xx: (0,0)↦(8,0)(0, 0) \mapsto (8, 0), (16,0)↦(16,0)(16, 0) \mapsto (16, 0), (0,16)↦(8,8)(0, 16) \mapsto (8, 8). That is the bottom-right copy.
Check yourself
Each stage of a fractal replaces every square with 88 non-overlapping copies, each enlarged by scale factor 13\frac{1}{3}. What fraction of the area is left after 44 stages? Give 3 s.f.

The determinant and area

Under A=(3112)A = \begin{pmatrix}3 & 1\\1 & 2\end{pmatrix}, the unit square becomes a parallelogram with sides along the columns (3,1)(3, 1) and (1,2)(1, 2).

x y 1 2 3 4 1 2 3 1 area 5 (3, 1) (1, 2) (4, 3)
The unit square's image has area det⁡A=3(2)−1(1)=5\det A = 3(2) - 1(1) = 5.

So the 's size, ∣det⁡A∣\lvert\det A\rvert, is the area scale factor. Rotations and reflections keep area: ∣det⁡A∣=1\lvert\det A\rvert = 1. An enlargement kIkI has det⁡=k2\det = k^{2}; a stretch has det⁡=k\det = k.

If det⁡A<0\det A < 0, the image is also flipped over. If det⁡A=0\det A = 0, the shape is squashed onto a line (or a single point), and AA has no inverse.

Two transformations in turn multiply their area factors: det⁡(BA)=det⁡B×det⁡A\det(BA) = \det B \times \det A.

Worked exampleA logo of area 15 cm215\text{ cm}^{2} is transformed by (2−131.5)\begin{pmatrix}2 & -1\\3 & 1.5\end{pmatrix}. Find the area of the image.

Try it first, then reveal one step at a time.

  1. det⁡=2(1.5)−(−1)(3)=3+3=6\det = 2(1.5) - (-1)(3) = 3 + 3 = 6.
Worked exampleA design of area 8 m28\text{ m}^{2} is transformed by M=(k23k)M = \begin{pmatrix}k & 2\\3 & k\end{pmatrix}, where k>0k > 0. The image has area 40 m240\text{ m}^{2}. Find the possible values of kk.

Try it first, then reveal one step at a time.

  1. det⁡M=k2−6\det M = k^{2} - 6, so ∣k2−6∣×8=40\lvert k^{2} - 6\rvert \times 8 = 40, which gives ∣k2−6∣=5\lvert k^{2} - 6\rvert = 5.
Check yourself
A triangle is transformed by (4−123)\begin{pmatrix}4 & -1\\2 & 3\end{pmatrix}, and its image has area 54 cm254\text{ cm}^{2}. Find the area of the original triangle, in cm2\text{cm}^{2}, to 3 s.f.
Check yourself
A shape of area 12 cm212\text{ cm}^{2} is enlarged by scale factor 33, centre O, then rotated 40∘40^{\circ} about O. Find the area of the final image, in cm2\text{cm}^{2}.

Common mistakes

  • Multiplying in the wrong order. AA followed by BB is BABA; the right matrices in the wrong order lose the accuracy mark.
  • Using the anticlockwise matrix for a clockwise turn. Check the direction, then test the point (1,0)(1, 0).
  • Putting θ\theta instead of 2θ2\theta into the reflection matrix. Here θ\theta is the mirror line's angle with the positive xx-axis.
  • Forgetting the modulus in area =∣det⁡A∣×= \lvert\det A\rvert \times area. An equation in ∣det⁡A∣\lvert\det A\rvert has two cases; give only the values the question allows.
  • Rounding entries such as cos⁡30∘\cos 30^{\circ} before taking powers. Enter exact entries, in the right angle mode, and round only the final answer.

Exam tips

  • "Describe fully" a transformation: name it and give every detail. Rotation: angle, direction, centre. Enlargement or stretch: scale factor, and centre or direction. Reflection: the mirror line.
  • "Write down" a matrix: substitute into the booklet form, with the angle and direction the question gives.
  • "Find" with the GDC: write down the product or power you entered, such as C8x0C^{8}\boldsymbol{x}_{0}, then the answer to 3 s.f. A bare GDC answer can lose the method marks.

Key takeaways

In booklet(k001): horizontal stretch, scale factor k\begin{pmatrix}k & 0\\0 & 1\end{pmatrix}:\ \text{horizontal stretch, scale factor } k
In booklet(100k): vertical stretch, scale factor k\begin{pmatrix}1 & 0\\0 & k\end{pmatrix}:\ \text{vertical stretch, scale factor } k
In booklet(k00k): enlargement, scale factor k, centre (0,0)\begin{pmatrix}k & 0\\0 & k\end{pmatrix}:\ \text{enlargement, scale factor } k,\ \text{centre } (0, 0)
In booklet(cos⁡θ−sin⁡θsin⁡θcos⁡θ): anticlockwise rotation of angle θ about the origin (θ>0)\begin{pmatrix}\cos\theta & -\sin\theta\\\sin\theta & \cos\theta\end{pmatrix}:\ \text{anticlockwise rotation of angle } \theta \text{ about the origin } (\theta > 0)
In booklet(cos⁡θsin⁡θ−sin⁡θcos⁡θ): clockwise rotation of angle θ about the origin (θ>0)\begin{pmatrix}\cos\theta & \sin\theta\\-\sin\theta & \cos\theta\end{pmatrix}:\ \text{clockwise rotation of angle } \theta \text{ about the origin } (\theta > 0)
In booklet(cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ): reflection in the line y=(tan⁡θ)x\begin{pmatrix}\cos 2\theta & \sin 2\theta\\\sin 2\theta & -\cos 2\theta\end{pmatrix}:\ \text{reflection in the line } y = (\tan\theta)x
Learn thisx′=Ax+b\boldsymbol{x}' = A\boldsymbol{x} + \boldsymbol{b}: the matrix acts first, then the translation b\boldsymbol{b}. The columns of AA are the images of (1,0)(1, 0) and (0,1)(0, 1) under AA alone, before the translation.
Learn thisThe booklet's rotations are about the origin, with θ>0\theta > 0. Its reflection matrix uses 2θ2\theta, where the mirror line y=(tan⁡θ)xy = (\tan\theta)x passes through the origin.
Learn thisTransformation AA followed by transformation BB has the single matrix BABA: the first one goes on the right.
Learn thisWith no translation, applying AA nn times gives xn=Anx0\boldsymbol{x}_{n} = A^{n}\boldsymbol{x}_{0}.
Learn thisArea of image =∣det⁡A∣×= \lvert\det A\rvert \times area of object for x′=Ax+b\boldsymbol{x}' = A\boldsymbol{x} + \boldsymbol{b}; translations don't change area. For AA then BB, det⁡(BA)=det⁡B×det⁡A\det(BA) = \det B \times \det A.
Learn thisA fractal stage making mm non-overlapping copies of each piece, each with area factor ∣det⁡A∣\lvert\det A\rvert, multiplies the area by m∣det⁡A∣m\lvert\det A\rvert: a geometric sequence.

Practise this

14 past-paper questions on Matrix transformations in the AI HL bank, each with a mark scheme and a worked explanation.

Practise Matrix transformations →