Skip to content
IB Diploma ProgrammeSL & HL

Matrix transformations

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Matrix transformations notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Matrix transformations notes as text: skim, search, and jump between subtopics.

~15 min read

1. The form of a matrix transformation

Write each point (x,y) as a column vector. A matrix transformation maps it to its image (x', y') using a 2 × 2 matrix.

Multiply first, then add the vector. The added vector beginpmatrixe fendpmatrix is a translation.

A 2 × 2 matrix on its own always leaves the origin fixed, so it can never give a translation. The next three blocks give the matrix for each type of transformation.

beginpmatrixx' y'endpmatrix = beginpmatrixa & b c & dendpmatrixbeginpmatrixx yendpmatrix + beginpmatrixe fendpmatrix

translation by beginpmatrixe fendpmatrix: beginpmatrixx' y'endpmatrix = beginpmatrixx yendpmatrix + beginpmatrixe fendpmatrix

Worked example 13 marks

A transformation maps (x,y) to (x', y') using

beginpmatrixx' y'endpmatrix = beginpmatrix2 & 0 0 & 3endpmatrixbeginpmatrixx yendpmatrix + beginpmatrix1 -4endpmatrix.

Find the image of the point A(3, 2) and of the point B(-1, 5).

  1. 1

    M1: multiply by the matrix, then add the vector: beginpmatrix2 & 0 0 & 3endpmatrixbeginpmatrix3 2endpmatrix + beginpmatrix1 -4endpmatrix = beginpmatrix6 6endpmatrix + beginpmatrix1 -4endpmatrix [1]

  2. 2

    A1: the image of A is (7, 2) [1]

  3. 3

    A1: beginpmatrix-2 15endpmatrix + beginpmatrix1 -4endpmatrix, so the image of B is (-1, 11) [1]

2. Reflections, stretches and enlargements

Each of these keeps the origin fixed, so the matrix is the whole transformation. To reflect, enlarge or stretch a point, multiply its column vector by the matrix.

A reflection in a line reverses the sign of one coordinate, or swaps the two. A horizontal stretch with scale factor k multiplies every x coordinate by k and leaves y alone. A vertical stretch does the same to y.

An enlargement with scale factor k and centre the origin multiplies both coordinates by k. Always name the line of a reflection and the centre of an enlargement. The stretch and enlargement matrices are in the formula booklet; the four reflections below come from its reflection in y = (tanθ)x with θ = 0, π/2, π/4 and -π/4.

reflection in the x-axis: beginpmatrix1 & 0 0 & -1endpmatrix reflection in the y-axis: beginpmatrix-1 & 0 0 & 1endpmatrix

reflection in y = x: beginpmatrix0 & 1 1 & 0endpmatrix reflection in y = -x: beginpmatrix0 & -1 -1 & 0endpmatrix

horizontal stretch, factor k: beginpmatrixk & 0 0 & 1endpmatrix vertical stretch, factor k: beginpmatrix1 & 0 0 & kendpmatrix

enlargement, factor k , centre the origin: beginpmatrixk & 0 0 & kendpmatrix

Worked example 13 marks

The point P has coordinates (4, -3).

(a) Write down the matrix that represents a reflection in the line y = x.

(b) Hence find the image of P under this reflection.

  1. 1

    A1:(a) beginpmatrix0 & 1 1 & 0endpmatrix, because a reflection in y = x swaps the two coordinates [1]

  2. 2

    M1:(b) multiply: beginpmatrix0 & 1 1 & 0endpmatrixbeginpmatrix4 -3endpmatrix [1]

  3. 3

    A1: the image of P is (-3, 4) [1]

3. Rotations about the origin

A rotation about the origin through angle θ anticlockwise has the matrix below. For a clockwise rotation, replace θ by -θ. Both matrices are in the formula booklet.

To describe a rotation, give three things: that it is a rotation, the angle with its direction, and the centre. Set the GDC to the mode, radians or degrees, that matches the angle.

rotation through θ anticlockwise about the origin: beginpmatrixcosθ & -sinθ sinθ & cosθendpmatrix

rotation through θ clockwise: beginpmatrixcosθ & sinθ -sinθ & cosθendpmatrix

Worked example 13 marks

A rotation of 90° clockwise about the origin maps Q(2, 5) to Q'.

(a) Write down the matrix of this rotation.

(b) Find the coordinates of Q'.

  1. 1

    A1:(a) clockwise, so use -90° with cos 90° = 0 and sin 90° = 1: beginpmatrix0 & 1 -1 & 0endpmatrix [1]

  2. 2

    M1:(b) beginpmatrix0 & 1 -1 & 0endpmatrixbeginpmatrix2 5endpmatrix [1]

  3. 3

    A1: Q' = (5, -2). Check: both points are √29 from the origin [1]

4. Compositions of transformations

Apply A first and then B. The image of v is B(Av) = (BA)v. The first transformation is the matrix nearest the vector, on the right.

The order matters, because AB ≠ BA in general. A composition is one matrix: the product of the two. On the GDC, store both matrices and type the product.

The formula booklet gives the matrix below as a reflection in the line y = (tanθ)x. To find the line, compare elements to get tan 2θ.

A then B: v' = BAv

beginpmatrixcos 2θ & sin 2θ sin 2θ & -cos 2θendpmatrix is a reflection in y = (tanθ) x

tan 2θ = (sin 2θ)/(cos 2θ)

Worked example 17 marks

The points R(-2, 2), S(3, -5), and T(5, 1) are the vertices of a triangle. The triangle goes through a sequence of transformations in the following order:

I. a transformation using the matrix A = beginpmatrixcosπ/3 & -sinπ/3 sinπ/3 & cosπ/3endpmatrix

II. a transformation using the matrix B = beginpmatrix-0.8 & 0.6 0.6 & 0.8endpmatrix.

(a) Describe the nature of the transformation represented by A.

Instead of using this sequence of transformations, the image of triangle RST can be found using only a reflection of triangle RST in line y = ax.

(b) Given that a > 0, find the value of a.

  1. 1

    A1A1:(a) an anticlockwise rotation of π/3 about the origin. One mark for rotation, one for the angle and direction [2]

  2. 2

    (M1):(b) attempt to multiply A and B in the correct order: BA = beginpmatrix-0.8 & 0.6 0.6 & 0.8endpmatrixbeginpmatrix0.5 & -0.866025 0.866025 & 0.5endpmatrix [1]

  3. 3

    (A1): BA = beginpmatrix0.119615 & 0.992820 0.992820 & -0.119615endpmatrix [1]

  4. 4

    (M1): attempt to create an expression with tan 2θ, sin 2θ or cos 2θ: tan 2θ = 0.992820/0.119615 [1]

  5. 5

    (A1): θ = 0.725446 radians, and the line is y = (tanθ)x [1]

  6. 6

    A1: a = 0.887 (0.886751). The markscheme awards at most (M1)(A1)(M1)(A1)A0 in(b) if the extraneous value of a is given alongside the correct one [1]

5. Repeating a transformation: fractals

A fractal is built by applying a transformation to a shape, then applying it again to the image, and so on. This is an iterative technique: each output is the next input.

For a transformation v mapsto Mv + t, a point that does not move satisfies v = Mv + t. Solve this for the fixed point.

When M is an enlargement with a scale factor between 0 and 1, each step shrinks the distance from the fixed point by the same factor. The distances form a geometric sequence, which links to infinite geometric series (AHL 1.11).

vn₊₁ = Mvn + t

fixed point: v = Mv + t iff (I - M)v = t

Worked example 15 marks

A transformation T maps v to beginpmatrix0.5 & 0 0 & 0.5endpmatrixv + beginpmatrix4 2endpmatrix. Let v₀ = beginpmatrix0 0endpmatrix and vn₊₁ = T(vn).

(a) Find v₁, v₂ and v₃.

(b) Find the point that T leaves unchanged.

  1. 1

    M1:(a) apply T to the previous image each time [1]

  2. 2

    A1: v₁ = beginpmatrix4 2endpmatrix and v₂ = 0.5beginpmatrix4 2endpmatrix + beginpmatrix4 2endpmatrix = beginpmatrix6 3endpmatrix [1]

  3. 3

    A1: v₃ = 0.5beginpmatrix6 3endpmatrix + beginpmatrix4 2endpmatrix = beginpmatrix7 3.5endpmatrix [1]

  4. 4

    M1:(b) a fixed point satisfies v = 0.5v + beginpmatrix4 2endpmatrix, so 0.5v = beginpmatrix4 2endpmatrix [1]

  5. 5

    A1: v = beginpmatrix8 4endpmatrix. Check: the points vn move towards (8, 4), halving the gap each time [1]

6. The determinant as an area factor

A transformation matrix A changes every area by the same factor. The area of the image equals |det A| times the area of the object.

Use the modulus. An area cannot be negative. A reflection in y = (tanθ)x has determinant -cos² 2θ - sin² 2θ = -1, yet it leaves every area unchanged.

A translation moves a shape without changing its size, so the added vector has no effect on area. The sketch shows the example below: the triangle with area 6 becomes the triangle with area 30.

area of image = |det A| × area of object

detbeginpmatrixa & b c & dendpmatrix = ad - bc

Worked example 14 marks

Triangle OBC has vertices O(0, 0), B(4, 0) and C(0, 3). It is transformed by the matrix M = beginpmatrix2 & 1 1 & 3endpmatrix.

(a) Find the area of triangle OBC.

(b) Hence find the area of the image of triangle OBC.

  1. 1

    A1:(a) 1/2 × 4 × 3 = 6 [1]

  2. 2

    A1:(b) det M = 2 × 3 - 1 × 1 = 5 [1]

  3. 3

    M1: area of image = |det M| × area of object = 5 × 6 [1]

  4. 4

    A1: the area of the image is 30. Check: the image vertices are (0, 0), (8, 4) and (3, 9), and 1/2|8 × 9 - 3 × 4| = 30 [1]

Recap

  • A matrix transformation is beginpmatrixx' y'endpmatrix = Abeginpmatrixx yendpmatrix + beginpmatrixe fendpmatrix. Multiply first, then add the translation.
  • The formula booklet gives the matrices for stretches, enlargements, rotations and the reflection in y = (tanθ)x. A rotation anticlockwise through θ is beginpmatrixcosθ & -sinθ sinθ & cosθendpmatrix.
  • A then B is the product BA. Repeating a transformation builds a fractal, and a fixed point solves v = Mv + t.
  • Area of image = |det A| × area of object.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the matrix that represents a reflection in the x-axis.1 mark
    Answer
    1. beginpmatrix1 & 0 0 & -1endpmatrix. The y coordinate changes sign and the x coordinate stays the same.

    Trap: Writing beginpmatrix-1 & 0 0 & 1endpmatrix, which is the reflection in the y-axis.

  2. A transformation is given by beginpmatrixx' y'endpmatrix = beginpmatrix1 & 0 0 & 2endpmatrixbeginpmatrixx yendpmatrix + beginpmatrix3 -1endpmatrix. Find the image of the point (4, 5).2 marks
    Answer
    1. Multiply first: beginpmatrix1 & 0 0 & 2endpmatrixbeginpmatrix4 5endpmatrix = beginpmatrix4 10endpmatrix.
    2. Then add: beginpmatrix4 10endpmatrix + beginpmatrix3 -1endpmatrix = beginpmatrix7 9endpmatrix. The image is (7, 9).

    Trap: Adding the translation before multiplying. That gives (7, 8).

  3. A rotation of 90° anticlockwise about the origin is represented by the matrix R. Write down R and hence find the image of the point (2, -3).3 marks
    Answer
    1. cos 90° = 0 and sin 90° = 1, so R = beginpmatrix0 & -1 1 & 0endpmatrix.
    2. Rbeginpmatrix2 -3endpmatrix = beginpmatrix0 × 2 + (-1)(-3) 1 × 2 + 0 × (-3)endpmatrix = beginpmatrix3 2endpmatrix. The image is (3, 2).

    Trap: Using the clockwise matrix beginpmatrix0 & 1 -1 & 0endpmatrix. That gives (-3, -2).

  4. A quadrilateral has area 7 cm². It is transformed by the matrix (beginsmallmatrix1 & 3 2 & 1endsmallmatrix). Determine the area of the image.3 marks
    Answer
    1. det = 1 × 1 - 3 × 2 = -5.
    2. The area factor is |det| = 5.
    3. Area of image = 5 × 7 = 35 cm².

    Trap: Giving -35 cm². The area factor is the modulus of the determinant.

  5. An enlargement with scale factor 3 and centre the origin maps triangle XYZ to a triangle of area 54 cm². Determine the area of triangle XYZ.3 marks
    Answer
    1. The matrix is beginpmatrix3 & 0 0 & 3endpmatrix, so det = 9.
    2. Area of image = 9 × area of object, so 54 = 9 × area of XYZ.
    3. Area of XYZ = 6 cm².

    Trap: Dividing by the scale factor 3 to get 18 cm². Lengths scale by 3 but areas scale by 3² = 9.

  6. P is a rotation of 90° anticlockwise about the origin and Q is a horizontal stretch with scale factor 3. Find the single matrix for P followed by Q, and hence the image of (2, 1).4 marks
    Answer
    1. P = beginpmatrix0 & -1 1 & 0endpmatrix and Q = beginpmatrix3 & 0 0 & 1endpmatrix. P is first, so the matrix is QP.
    2. QP = beginpmatrix3 & 0 0 & 1endpmatrixbeginpmatrix0 & -1 1 & 0endpmatrix = beginpmatrix0 & -3 1 & 0endpmatrix.
    3. beginpmatrix0 & -3 1 & 0endpmatrixbeginpmatrix2 1endpmatrix = beginpmatrix-3 2endpmatrix. The image is (-3, 2). Check: P(2, 1) = (-1, 2), then Q gives (-3, 2).

    Trap: Writing the product as PQ = beginpmatrix0 & -1 3 & 0endpmatrix. That gives (-1, 6).

  7. A rotation of 30° anticlockwise about the origin has matrix R. Write down R in exact form and hence find the exact image of (2√3, 2).4 marks
    Answer
    1. cos 30° = (√3)/2 and sin 30° = 1/2, so R = beginpmatrix(√3)/2 & -1/2 1/2 & (√3)/2endpmatrix.
    2. x' = (√3)/2(2√3) - 1/2(2) = 3 - 1 = 2.
    3. y' = 1/2(2√3) + (√3)/2(2) = 2√3. The image is (2, 2√3). Check: both points are 4 from the origin.

    Trap: A sign slip in the matrix, which turns the rotation clockwise. The point then moves to (4, 0).

  8. An enlargement with scale factor 0.5 and centre the origin is applied to a triangle of area 64 cm², and then again to each new image, so the triangle shrinks at every stage. (a) Find the area after 3 enlargements. (b) Use your GDC to determine the least number of enlargements for which the area is less than 0.01 cm².5 marks
    Answer
    1. (a)
    2. detbeginpmatrix0.5 & 0 0 & 0.5endpmatrix = 0.5 × 0.5 - 0 = 0.25, so the area is multiplied by 0.25 each time: 64 × 0.25³ = 1 cm².
    3. (b)
    4. Solve 64 × 0.25ⁿ < 0.01. On the GDC, n > 6.32, so the least whole number is n = 7.
    5. Check: 64 × 0.25⁶ = 0.0156, which is too big, and 64 × 0.25⁷ = 0.0039, which is less than 0.01.

    Trap: Multiplying the area by 0.5 at each step. The area factor is the determinant, 0.25.

  9. A designer draws a spiral of squares. The first square has area 25 cm². Each new square is the image of the one before under the matrix M = beginpmatrix0.48 & -0.64 0.64 & 0.48endpmatrix, and the pattern continues indefinitely. (a) Show that M = 0.8R, where R is the matrix of a rotation about the origin, and describe fully the rotation R. (b) Find the total area of all the squares in the pattern.7 marks
    Answer
    1. (a)
    2. M = 0.8beginpmatrix0.6 & -0.8 0.8 & 0.6endpmatrix, because 0.8 × 0.6 = 0.48 and 0.8 × 0.8 = 0.64.
    3. This is beginpmatrixcosθ & -sinθ sinθ & cosθendpmatrix with cosθ = 0.6 and sinθ = 0.8, so tanθ = 0.8/0.6 and θ = 53.1° (53.1301°).
    4. R is an anticlockwise rotation of 53.1° about the origin.
    5. (b)
    6. det M = 0.48 × 0.48 - (-0.64)(0.64) = 0.64, so each square has 0.64 times the area of the one before. Check: 0.8² = 0.64.
    7. The areas form a geometric sequence with first term 25 and ratio 0.64: total = 25/(1 - 0.64) = 69.4 cm² (69.444…).

    Trap: Using the length factor 0.8 as the ratio, which gives 25/0.2 = 125 cm², or naming the rotation without its direction, which loses the angle and direction mark.

  10. In a game, a sprite is turned by a rotation of π/6 radians anticlockwise about the origin, and the result is then reflected in the line y = x. (a) Find the single matrix T that represents the rotation followed by the reflection, with its elements in exact form. T represents a reflection in the line y = ax. (b) Determine the exact value of a.7 marks
    Answer
    1. (a)
    2. R = beginpmatrix(√3)/2 & -1/2 1/2 & (√3)/2endpmatrix and the reflection in y = x is S = beginpmatrix0 & 1 1 & 0endpmatrix.
    3. The rotation is first, so T = SR = beginpmatrix1/2 & (√3)/2 (√3)/2 & -1/2endpmatrix.
    4. (b)
    5. Compare with beginpmatrixcos 2θ & sin 2θ sin 2θ & -cos 2θendpmatrix: cos 2θ = 1/2 and sin 2θ = (√3)/2.
    6. tan 2θ = √3 gives 2θ = π/3 or 4π/3, so θ = π/6 or 2π/3.
    7. Reject 2θ = 4π/3: there cos 2θ = -1/2, not 1/2. So θ = π/6.
    8. a = tanπ/6 = 1/(√3) (0.577) only. Check: T maps (2, 0) to (1, √3), the reflection of (2, 0) in the line at 30° to the x-axis.

    Trap: Giving the extraneous value a = -√3 beside the correct one, which the markscheme penalises, or multiplying in the wrong order, RS, which gives a = √3.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
a rotation, with no angle or directionan anticlockwise rotation of π/3 about the origin. The markscheme gives one mark for rotation and one for the angle and direction
AB for A then BBA for A then B: the first transformation is nearest the vector, on the right
area of image = det A × area of objectarea of image = |det A| × area of object, so a negative determinant never gives a negative area
a = 0.887 and a second, extraneous value of a beside ita = 0.887 only. The markscheme withholds the last mark if an extraneous value is given alongside the correct one

Frequently asked questions

What is a matrix transformation and how is it written?
A matrix transformation maps a point (x, y) to its image (x', y'). Write the point as a column vector and multiply it by a 2 × 2 matrix, then add the vector: beginpmatrixx' y'endpmatrix = Abeginpmatrixx yendpmatrix + beginpmatrixe fendpmatrix. The added vector is a translation.
How do you write the matrix for a reflection, a stretch or an enlargement?
Each of these keeps the origin fixed, so the matrix is the whole transformation. A reflection in the x-axis is beginpmatrix1 & 0 0 & -1endpmatrix, and a reflection in y = x is beginpmatrix0 & 1 1 & 0endpmatrix. An enlargement with scale factor k and centre the origin is beginpmatrixk & 0 0 & kendpmatrix.
What is the matrix for a rotation anticlockwise through an angle θ about the origin?
It is beginpmatrixcosθ & -sinθ sinθ & cosθendpmatrix, and the formula booklet gives it. For a clockwise rotation, replace θ by -θ. Describe a rotation with three things: the word rotation, the angle with its direction, and the centre.
How do you find the single matrix for two transformations applied one after the other?
Apply the first transformation, then the second, and multiply their matrices with the first matrix on the right. If A is applied first and then B, the single matrix is BA. The order matters, because AB ≠ BA in general, so write the product carefully.
How does the determinant show the change in area under a matrix transformation?
The area of the image equals |det A| times the area of the object. Use the modulus, because an area cannot be negative. For a 2 × 2 matrix, detbeginpmatrixa & b c & dendpmatrix = ad - bc. A translation does not change the area, so the added vector has no effect on it.
Why do I get the wrong image when I add a translation to a matrix transformation?
Students add the translation before they multiply, which is wrong. Multiply by the matrix first, then add the vector. For the point (4, 5) with the matrix beginpmatrix1 & 0 0 & 2endpmatrix and the translation beginpmatrix3 -1endpmatrix, the correct image is (7, 9), and adding first gives (7, 8).

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters