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
gives every image vertex in a single answer.
Triangle has , and . Predict where each vertex goes under , then play the animation to check.
Worked example
Transform a triangle with one matrix product
Triangle has vertices , and . Find its image under and sketch both triangles.
Triangle (orange) and its image (blue).
Step 1: Put the vertices in the columns of a matrix
, with columns , and .
Step 2: Pre-multiply by
Each column of the product is times the matching column, so one product transforms all three vertices.
Step 3: Join the images in order
Join in the same order as . The image is still a triangle, because straight sides map to straight sides. (Notice that happens to land on .)
Try it yourself first, then check the working one step at a time.
Answer
, and .
Method
Write the vertices as columns.
Pre-multiply by : .
Read the image vertices from the columns and join them in order.
Watch out for
Writing the vertices as rows: cannot be pre-multiplied by a matrix.
Triangle has vertices , and . Find the image of the triangle under , as a matrix whose columns are , and .
Real transformations often mix a matrix with a slide. A transformation followed by a translation by sends to
Doing them the other way round, translating first, gives , which is usually a different point. Order matters as soon as transformations are combined.
Find the image of under a rotation of anticlockwise about the origin followed by a translation by .
Now turn the problem round. Suppose you know that sends two points and to and , and you want . Put the points into matrices as columns:
This is a matrix equation from Unit 1. Post-multiply by : . It works whenever is non-singular, which means and are not on the same line through the origin.
Worked example
Find a matrix from two points and their images
An image-editing app applies a linear transformation to a logo. Two reference points and move to and .
(a) Find the matrix of .
(b) Find the image of the point on the logo.
Step 1: Write the information as one matrix equation
Pre-multiplying a matrix by transforms each of its columns, so the columns of (the points) become the columns of (the images).
Step 2: Invert
, so
Step 3: Post-multiply by
is on the right of , so the inverse must go on the right too.
Step 4: Check with a given point
. ✓
Step 5: Transform
Try it yourself first, then check the working one step at a time.
Answer
(a) (b)
Method
Points as the columns of , images as the columns of : .
Check and find .
, then check on a given point.
Watch out for
Calculating , with the inverse on the wrong side.
Choosing two points on the same line through the origin: then and cannot be found.
A linear transformation maps to and to . Find its matrix.
Simultaneous equations
Write 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 and .
The matrix equation
Solve as . 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 , is on the right of , so you post-multiply: . Writing gives a different, wrong matrix. Always check your on one of the given points.
Summary
To transform a polygon, write its vertices as the columns of a matrix and pre-multiply by ; join the images in the same order.
A transformation followed by a translation by sends to . Translating first gives , usually different.
If maps the columns of to the columns of , then (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.