M5.6.7 Chapter 7
Matrices that move shapes
Can one small matrix turn, flip or stretch a whole shape?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Find the matrix for a rotation, reflection or enlargement
- Use the determinant to find how an area changes
In the last chapter a 2 × 2 matrix acted on a column vector to give a new vector. Treat the vector as a point. The matrix with rows (a, b) and (c, d) sends the point (x, y) to the point (ax + by, cx + dy). Do this to every corner of a shape, and the corners of the image appear.
Look at the points (1, 0) and (0, 1), the ends of the unit vectors i and j. The matrix sends (1, 0) to (a, c), which is the first column. It sends (0, 1) to (b, d), which is the second column. So the columns of a matrix are the images of i and j. This one fact is the key to everything in this chapter.
Worked example
Find the matrix for a clockwise quarter turn about the origin, and use it on the point (2, 3).
- A clockwise quarter turn sends (1, 0) to (0, −1), which is straight down.
- It sends (0, 1) to (1, 0), which is to the right.
- Write these as the columns. The first column is (0, −1) and the second is (1, 0). So the matrix has rows (0, 1) and (−1, 0).
- Use it on (2, 3). The top number is 0 × 2 + 1 × 3 = 3.
- The bottom number is −1 × 2 + 0 × 3 = −2. So (2, 3) goes to (3, −2).
Answer: The matrix has rows (0, 1) and (−1, 0). The point (2, 3) goes to (3, −2).
The same method gives the standard matrices. For a turn of 90° anticlockwise, (1, 0) goes up to (0, 1) and (0, 1) goes left to (−1, 0). For a reflection in the line y = x, the point (1, 0) goes to (0, 1) and (0, 1) goes to (1, 0). For an enlargement with scale factor 2 and centre the origin, (1, 0) goes to (2, 0) and (0, 1) goes to (0, 2).
The figures show what to expect of the area. The turn and the reflection keep the area. The enlargement of 2 multiplies it by 4. The first figure stretched a square by 2 across and 3 up, and the area grew by 6. In every case the area is multiplied by the same number, whatever the shape. That number is given by the determinant.
For the matrix with rows (a, b) and (c, d), the determinant is ad − bc. It is the area scale factor with a sign. The image of any shape has |ad − bc| times the area of the shape. If the determinant is negative, the image has been flipped over, like a reflection. If it is 0, the shape is squashed flat.
Worked example
Find the determinant of the matrix with rows (3, 1) and (2, 4), and say what it does to the area of the unit square.
- The determinant is ad − bc. Here a = 3, b = 1, c = 2 and d = 4.
- ad = 3 × 4 = 12, and bc = 1 × 2 = 2.
- So the determinant is 12 − 2 = 10.
- The unit square has area 1, so its image has area 10. The picture shows a parallelogram that covers 10 unit squares.
Answer: The determinant is 10, so the image has area 10.
When the determinant is 0, the two columns point the same way or one is zero, so the image of the unit square has no area. The whole plane is squashed onto one line or one point. Such a matrix is called singular, and it cannot be undone. The next chapter shows why.
To do one transformation and then another, multiply the matrices. If A is done first and B second, the combined matrix is BA. The order looks backwards, but it comes from the rule: B(Av) means do A to v, then do B to the result. The determinant of BA is the product of the two determinants, because the areas change one after the other.
Worked example
A is the quarter turn anticlockwise, with rows (0, −1) and (1, 0). B is the reflection in the x axis, with rows (1, 0) and (0, −1). Find the matrix for A followed by B, and check it on the point (1, 0).
- A is done first and B second, so the combined matrix is BA, with B on the left.
- Top left of BA: row 1 of B times column 1 of A, 1 × 0 + 0 × 1 = 0. Top right: 1 × (−1) + 0 × 0 = −1.
- Bottom left: 0 × 0 + (−1) × 1 = −1. Bottom right: 0 × (−1) + (−1) × 0 = 0.
- So BA has rows (0, −1) and (−1, 0). This is a reflection in the line y = −x.
- Check on (1, 0). A sends it to (0, 1) and then B sends that to (0, −1). The first column of BA is (0, −1), which agrees.
Answer: BA has rows (0, −1) and (−1, 0).
A rotation through any angle θ anticlockwise follows the same method. The point (1, 0) moves along the unit circle to (cos θ, sin θ). The point (0, 1) is a quarter turn ahead, so it goes to (−sin θ, cos θ). The columns give the matrix with rows (cos θ, −sin θ) and (sin θ, cos θ). Its determinant is cos² θ + sin² θ = 1, so a rotation never changes an area.
Worked example
Write the matrix for an anticlockwise turn of 30° about the origin, to 3 decimal places.
- The columns are (cos 30°, sin 30°) and (−sin 30°, cos 30°).
- cos 30° ≈ 0.866 and sin 30° = 0.5.
- So the matrix has rows (0.866, −0.5) and (0.5, 0.866).
Answer: The matrix has rows (0.866, −0.5) and (0.5, 0.866).
See it three ways
With things
Draw a square on a piece of stretchy cloth. Hold two opposite edges and pull the cloth to twice its height. The width stays as it was. The square becomes a tall rectangle, twice as big in area.
As a picture
In words
A matrix moves every point of a shape in the same way. Its columns say where the two unit points go. The determinant says how much the area grows.
In symbols
The matrix with rows (1, 0) and (0, 2) has determinant 1 × 2 − 0 × 0 = 2.
Try it
Draw the image of a square
You need: squared paper, a ruler, a pencil.
- Draw axes on squared paper and mark the corners of the unit square (0, 0), (1, 0), (1, 1) and (0, 1), one square apart.
- The matrix has rows (2, 1) and (0, 1). The first column is (2, 0), so (1, 0) goes to (2, 0). The second column is (1, 1), so (0, 1) goes to (1, 1).
- The corner (1, 1) goes to (3, 1), the sum of the two columns. Mark these corners.
- Join the four image corners to make a parallelogram. Count the squares it covers, joining part squares in pairs.
What you will see: The parallelogram covers 2 squares. The determinant of the matrix is 2 × 1 − 1 × 0 = 2, the same number.
A wrong idea many people have
A negative determinant means that the image has a negative area.
Why it feels right: The determinant is a number, and the area is found by multiplying by it, so a negative number seems to give a negative area.
The test that breaks it: Take the reflection in the x axis, with rows (1, 0) and (0, −1). Its determinant is 1 × (−1) − 0 × 0 = −1. But the reflected triangle has the same area as before, which cannot be negative.
What is true: An area is never negative. The image has |det| times the area. A negative sign shows that the shape has been flipped over, as in a mirror, so its order of corners has reversed.
A wrong idea many people have
To do A and then B, multiply AB.
Why it feels right: We read from left to right, so the matrix that is done first should be written first.
The test that breaks it: Take A as the quarter turn and B as the reflection in the x axis. BA has rows (0, −1) and (−1, 0), which sends (1, 0) to (0, −1). Turning (1, 0) to (0, 1) and then reflecting gives (0, −1), which agrees. But AB has rows (0, 1) and (1, 0), which sends (1, 0) to (0, 1). That is the result of reflecting first.
What is true: The matrix next to the point acts first. In BAv, A acts on v first. So A followed by B is BA, with the matrix that is done first on the right.
Key words
- image
- the shape or point that results from a transformation.
- determinant
- ad − bc for the matrix with rows (a, b) and (c, d). Its size is the area scale factor.
- area scale factor
- the number that multiplies every area. For a matrix, it is the size of the determinant.
- singular
- a matrix with determinant 0, which squashes the plane onto a line or a point.
Back to your guess
The answer is B: The matrix with rows (2, 0) and (0, 3) moves the unit square, which has area 1, to a shape with area 6.
The matrix sends (1, 0) to (2, 0) and (0, 1) to (0, 3). So the unit square becomes a rectangle 2 across and 3 up, with area 2 × 3 = 6. The number 6 is the determinant of the matrix, and it tells how areas change.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
Which matrix gives a reflection in the y axis? Remember that the columns are the images of (1, 0) and (0, 1).
See the answer
rows (−1, 0) and (0, 1)
A reflection in the y axis sends (1, 0) to (−1, 0), which is the first column. It leaves (0, 1) where it is, so the second column is (0, 1). The matrix has rows (−1, 0) and (0, 1).
- If you chose A: This is the reflection in the x axis. It sends (1, 0) to (1, 0), but a reflection in the y axis sends (1, 0) to (−1, 0). Read this page again.
- If you chose B: This is a quarter turn anticlockwise. A reflection in the y axis leaves (0, 1) where it is. Read this page again.
- If you chose C: This sends (0, 1) to (0, −1), so it turns the plane through 180°. A reflection in the y axis keeps (0, 1) where it is. Read this page again.
The picture shows a triangle and its image under a matrix. Which matrix made the image?
See the answer
rows (1, 0) and (0, 2)
The corner C, (1, 2), went to C′, (1, 4), and B, (3, 0), stayed at (3, 0). So the x numbers are unchanged and the y numbers are doubled. The first column is (1, 0) and the second is (0, 2).
- If you chose B: This doubles the x numbers and keeps the y numbers. In the picture the heights doubled, not the widths. Read this page again.
- If you chose C: This swaps x and y and doubles one of them. The corner B stays on the x axis in the picture, so x and y have not been swapped. Read this page again.
- If you chose D: This is an enlargement, which doubles both x and y. In the picture the base of the triangle did not get longer. Read this page again.
What is the determinant of the matrix with rows (6, 1) and (2, 3)?
See the answer
16
ad = 6 × 3 = 18 and bc = 1 × 2 = 2. So ad − bc = 16. The unit square becomes a parallelogram with area 16.
- If you chose A: You added the two products. The determinant is ad − bc, a subtraction. Read this page again.
- If you chose B: You subtracted the wrong way, bc − ad. The determinant is ad − bc. Read this page again.
- If you chose D: You found ad only. Take away bc as well. Read this page again.
A shape has an area of 5 cm². A matrix with determinant −3 moves it. What is the area of the image?
See the answer
15 cm²
The image has |−3| × 5 = 3 × 5 = 15 cm². The minus sign means that the image is flipped over.
- If you chose A: An area cannot be negative. The negative sign shows that the shape is flipped, but the area is the size of the determinant times the area. Read this page again.
- If you chose B: You added. The area is multiplied by the size of the determinant. Read this page again.
From an earlier chapter
A has rows (1, 4) and (2, −1) and B has rows (3, 1) and (2, 5). What is the top left entry of AB?
See the answer
11
Row 1 of A is (1, 4) and column 1 of B is (3, 2). 1 × 3 + 4 × 2 = 11.
- If you chose A: You multiplied the top left entries only. Use row 1 of A times column 1 of B, and add the two products. Go to M5.6.6.
- If you chose C: That is the top left entry of BA. AB has A first, so use row 1 of A. Go to M5.6.6.
- If you chose D: You added the entries. A product multiplies row by column. Go to M5.6.6.
Find the determinant of the matrix with rows (5, 2) and (3, 4).
See the answer
14
ad − bc = 5 × 4 − 2 × 3 = 20 − 6 = 14.
The matrix with rows (2, 1) and (−1, 3) moves the point (3, 2). Where does the point go? Give it as (x, y).
See the answer
(8, 3)
Top: 2 × 3 + 1 × 2 = 8. Bottom: −1 × 3 + 3 × 2 = 3.
The matrix with rows (3, 1) and (−1, 2) moves a triangle with area 4 cm². Find the area of the image in cm².
See the answer
28
The determinant is 3 × 2 − 1 × (−1) = 7. The image has 7 × 4 = 28 cm².
A is a quarter turn anticlockwise, with rows (0, −1) and (1, 0). B is a reflection in the y axis, with rows (−1, 0) and (0, 1). A is done first and then B. Give the combined matrix as its four entries, row by row.
See the answer
rows (0, 1) and (1, 0)
A first and then B gives BA. Row 1 of B times the columns of A: −1 × 0 + 0 × 1 = 0 and −1 × (−1) + 0 × 0 = 1. Row 2: 1 and 0. Doing B first would give AB, with rows (0, −1) and (−1, 0), which is not the same.
A matrix has determinant 0. What does it do to a shape?
See the answer
It squashes the shape onto a line or a point.
The area is multiplied by the size of the determinant, which is 0. A shape with area 0 is a line or a point, so the matrix squashes the shape flat.
- If you chose B: A flip has determinant −1. A determinant of 0 means that the area becomes 0. Read this page again.
- If you chose C: Doubling the area needs a determinant of 2 (or −2). A determinant of 0 multiplies the area by 0. Read this page again.
Keep it
Copy this into your exercise book.
The columns of a matrix are the images of (1, 0) and (0, 1). Determinant ad − bc = area scale factor, in size. Negative: flipped. Zero: squashed flat. A then B is BA.
Draw: The unit square and its image, with the two columns drawn as arrows from the origin.