Lesson 4 of 8 · 15 min

Transforming polygons

Transform every vertex of a polygon in one matrix product, combine a linear transformation with a translation, and find an unknown matrix from points and their images.

What you will be able to do

  • Find the image of a polygon by multiplying the transformation matrix by a matrix of its vertices.
  • Find the image of a point under a linear transformation followed by a translation, and see why the order matters.
  • Find the matrix of a linear transformation from two points and their images.

A linear transformation sends straight lines to straight lines, so to transform a polygon you only need its corners. Transform each vertex, then join the images in the same order.

Better still, do all the vertices at once. Write them as the columns of one matrix: row by column multiplication treats each column separately, so

T[x1x2x3y1y2y3]=[x1′x2′x3′y1′y2′y3′]\bm{T}\begin{bmatrix} x_1 & x_2 & x_3 \\ y_1 & y_2 & y_3 \end{bmatrix} = \begin{bmatrix} x_1' & x_2' & x_3' \\ y_1' & y_2' & y_3' \end{bmatrix}

gives every image vertex in a single 2×32 \times 3 answer.

Interactive

Transform a triangle

Triangle PQRPQR has P(1,1)P(1, 1), Q(3,1)Q(3, 1) and R(1,2)R(1, 2). Predict where each vertex goes under [2−111]\begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix}, then play the animation to check.

Worked example

Transform a triangle with one matrix product

  • Simple familiar
  • Technology free

Triangle PQRPQR has vertices P(1,1)P(1, 1), Q(3,1)Q(3, 1) and R(1,2)R(1, 2). Find its image under T=[2−111]\bm{T} = \begin{bmatrix} 2 & -1 \\ 1 & 1 \end{bmatrix} and sketch both triangles.

Triangle PQRPQR (orange) and its image P′Q′R′P'Q'R' (blue).

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write the vertices as columns.

  2. Pre-multiply by T\bm{T}: (2×2)(2×3)=2×3(2 \times 2)(2 \times 3) = 2 \times 3.

  3. Read the image vertices from the columns and join them in order.

Watch out for

  • Writing the vertices as rows: (3×2)(3 \times 2) cannot be pre-multiplied by a 2×22 \times 2 matrix.

Triangle ABCABC has vertices A(1,0)A(1, 0), B(3,1)B(3, 1) and C(2,2)C(2, 2). Find the image of the triangle under T=[120−1]\bm{T} = \begin{bmatrix} 1 & 2 \\ 0 & -1 \end{bmatrix}, as a matrix whose columns are A′A', B′B' and C′C'.

Real transformations often mix a matrix with a slide. A transformation T\bm{T} followed by a translation by v\bm{v} sends X\bm{X} to

X′=TX+v\bm{X}' = \bm{T}\bm{X} + \bm{v}

Doing them the other way round, translating first, gives T(X+v)=TX+Tv\bm{T}(\bm{X} + \bm{v}) = \bm{T}\bm{X} + \bm{T}\bm{v}, which is usually a different point. Order matters as soon as transformations are combined.

Find the image of (3,1)(3, 1) under a rotation of 90°90° anticlockwise about the origin followed by a translation by [3−1]\begin{bmatrix} 3 \\ -1 \end{bmatrix}.

Now turn the problem round. Suppose you know that T\bm{T} sends two points PP and QQ to P′P' and Q′Q', and you want T\bm{T}. Put the points into matrices as columns:

T[PQ]=[P′Q′]\bm{T}\begin{bmatrix} P & Q \end{bmatrix} = \begin{bmatrix} P' & Q' \end{bmatrix}

This is a matrix equation TA=B\bm{TA} = \bm{B} from Unit 1. Post-multiply by A−1\bm{A}^{-1}: T=BA−1\bm{T} = \bm{BA}^{-1}. It works whenever A\bm{A} is non-singular, which means PP and QQ are not on the same line through the origin.

Worked example

Find a matrix from two points and their images

  • Complex familiar
  • Technology free

An image-editing app applies a linear transformation TT to a logo. Two reference points A(1,2)A(1, 2) and B(3,1)B(3, 1) move to A′(4,−1)A'(4, -1) and B′(7,2)B'(7, 2).

(a) Find the matrix of TT.

(b) Find the image of the point C(−2,1)C(-2, 1) on the logo.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Points as the columns of A\bm{A}, images as the columns of B\bm{B}: TA=B\bm{TA} = \bm{B}.

  2. Check det⁡(A)≠0\det(\bm{A}) \neq 0 and find A−1\bm{A}^{-1}.

  3. T=BA−1\bm{T} = \bm{BA}^{-1}, then check on a given point.

Watch out for

  • Calculating A−1B\bm{A}^{-1}\bm{B}, with the inverse on the wrong side.

  • Choosing two points on the same line through the origin: then det⁡(A)=0\det(\bm{A}) = 0 and TT cannot be found.

A linear transformation maps (1,1)(1, 1) to (3,1)(3, 1) and (1,−1)(1, -1) to (−1,5)(-1, 5). Find its matrix.

Simultaneous equations

Write T=[abcd]\bm{T} = \begin{bmatrix} a & b \\ c & d \end{bmatrix} and multiply out. Each point gives two equations, one for the top row and one for the bottom. Quick when the points are simple, like (1,1)(1, 1) and (1,−1)(1, -1).

The matrix equation

Solve TA=B\bm{TA} = \bm{B} as T=BA−1\bm{T} = \bm{BA}^{-1}. One inverse and one product, by hand in Paper 1 or on a calculator in Paper 2. Best when the points are awkward.

Common mistake

The inverse goes on the right

In TA=B\bm{TA} = \bm{B}, A\bm{A} is on the right of T\bm{T}, so you post-multiply: T=BA−1\bm{T} = \bm{BA}^{-1}. Writing A−1B\bm{A}^{-1}\bm{B} gives a different, wrong matrix. Always check your T\bm{T} on one of the given points.

Summary

  • To transform a polygon, write its vertices as the columns of a matrix and pre-multiply by T\bm{T}; join the images in the same order.

  • A transformation T\bm{T} followed by a translation by v\bm{v} sends X\bm{X} to TX+v\bm{TX} + \bm{v}. Translating first gives TX+Tv\bm{TX} + \bm{Tv}, usually different.

  • If T\bm{T} maps the columns of A\bm{A} to the columns of B\bm{B}, then T=BA−1\bm{T} = \bm{BA}^{-1} (or solve the simultaneous equations entry by entry).

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 4 of 80% read

Save your progress with a free account