Matrices Transformation
Matrices Transformation
KESEKILE
MATRIX TRANSFORMATION
Rotation
Rotation involves turning a figure around a fixed point, usually the origin. Matrices can be
used to rotate 2D-shapes.
0 −1
Rotation by 900 in the anticlockwise direction about the origin (0,0)
1 0
0 1
Rotation by 900 in the clockwise direction about the origin (0,0)
−1 0
0 −1
Rotation by 1800 in the clockwise or anticlockwise direction about the
−1 0
origin (0,0)
0 1
Rotation by 2700 in the anticlockwise direction about the origin (0,0)
−1 0
(which is the same as 900 rotation in the clockwise direction).
0 1
Rotation by 2700 in the clockwise direction about the origin (0,0)
−1 0
(which is the same as 900 rotation in the anticlockwise direction).
To rotate a shape, multiply the coordinates of each vertex ( a point where two
straight lines or rays meet) by the corresponding rotation matrix.
Example 1
Given the triangle whose vertices are A(1,2) , B(1,4) and C(4,4) and label it A. Rotate
triangle A 900 clockwise about centre (0,0) and label the new coordinates A’, B’ and C’.
1 1 4
The coordinates of A = , B= , C=
2 4 4
Step 2: Multiply the coordinates of each vertex by the corresponding rotation matrix
For vertex A
0 1 1
−1 0 2
0 1 1 0×1+1× 2
=
−1 0 2 −1×1 +0× 2
2
=
−1
For vertex B
0 1 1
−1 0 4
0 1 1 0×1+1× 4
=
−1 0 4 −1×1 +0× 4
4
=
−1
For vertex C
0 1 4
−1 0 4
0 1 4 0×4+1× 4
=
−1 0 4 −1×4 +0× 4
4
=
−4
The vertices of the new triangle after 900 clockwise about centre (0,0) are:
Example 2
Construct a shape labelled N whose vertices are A(-5,5) , B(-3,5) , C(-1,3) and D(-5,3).
Rotate the shape B 1800 counterclockwise about centre (0,0). Label the new shape N’
and the new coordinates A’, B’, C’ and D’.
-5 -3 -1 -5
The coordinates of A = , B= , C= and D =
5 5 3 3
PREPARED BY MR K.K. KESEKILE
MR K.K. KESEKILE
Step 2: Multiply the coordinates of each vertex by the corresponding rotation matrix
For vertex A
−1 0 −5
0 −1 5
−1 0 −5 − 1 ×− 5 + 0 × 5
=
0 −1 5 0 ×− 5 + ( − 1 × 5)
5
=
−5
For vertex B
−1 0 −3
0 −1 5
−1 0 −3 −1 ×− 3 + 0 × 5
=
0 −1 5 0 ×− 3 + ( − 1 × 5)
3
=
−5
For vertex C
−1 0 −1
0 −1 3
−1 0 −1 −1 ×− 1 + 0 × 3
=
0 −1 3 0 ×− 1 + ( − 1 × 3)
1
=
−3
For vertex D
−1 0 −5
0 −1 3
−1 0 −5 −1 ×− 5 + 0 × 3
=
0 −1 3 0 ×− 5 + ( − 1 × 3)
5
=
−3
The vertices of the new shape ( N’) after rotation, 1800 counterclockwise about centre (0,0)
are:
Exercise 1
Question 1
a) Construct a shape labelled T whose vertices are A(1,2) , B(5,2) , C(1,4) and D(5,6).
Rotate the shape T 900 clockwise about centre (0,0). Label the new shape T’ and the
new coordinates A’, B’, C’ and D’.
b) Rotate the same shape 2700 clockwise about centre (0,0). Label the shape T’’ and the
new coordinates A’’, B’’, C’’ and D’’.
Question 2
a) Construct a triangle labelled R whose vertices are A(-2,1) , B(-2,3) , and C(-5,1).
Rotate the triangle R 1800 clockwise about centre (0,0). Label the new shape R’ and
the new coordinates A’, B’, C’ and D’.
b) Rotate the same shape 2700 counterclockwise about centre (0,0). Label the shape R’’
and the new coordinates A’’, B’’, C’’ and D’’.
Step 1 : Subtract the given centre from the coordinates of each vertex
Step 2: Multiply the corresponding rotation matrix with the answer from step 1
Step 3: Add the given centre to the answer from step 2 to get the new coordinates
Example 1
Given the triangle T whose vertices are A(1,2) , B(3,2) and C(1,5). Rotate triangle T 1800
clockwise about centre (1,0) and label the new triangle T’ and the new coordinates A’, B’
and C’.
Step 1 : Subtract the given centre from the coordinates of each vertex
1 1 3 1
− −
2 0 2 0
1 1 1−1 3 1 3−1
− = − =
2 0 2−0 2 0 2−0
0 2
= =
2 2
For vertex C
1 1
−
5 0
1 1 1−1
− =
5 0 5−0
0
=
5
Step 2: Multiply the corresponding rotation matrix with the answer from step 1
For vertex A
−1 0 0
0 −1 2
−1 0 0 −1 × 0 + 0 × 2
=
0 −1 2 0 × 0 + ( − 1 × 2)
0
=
−2
For vertex B
−1 0 2
0 −1 2
−1 0 2 −1 × 2 + 0 × 2
=
0 −1 2 0 × 2 + ( − 1 × 2)
−2
=
−2
For vertex C
−1 0 0
0 −1 5
−1 0 0 −1 × 0 + 0 × 5
=
0 −1 5 0 × 0 + ( − 1 × 5)
0
=
−5
Step 3: Add the given centre to the answer from step 2 to get the new coordinates
For vertex A For vertex B
0 1 −2 1
+ +
−2 0 −2 0
0 1 0+1 −2 1 −2+1
+ = + =
−2 0 −2+0 −2 0 −2+0
1 −1
= =
−2 −2
For vertex C
0 1
+
−5 0
0 1 0+1
+ =
−5 0 −5+0
1
=
−5
The vertices of the new shape ( T’) after rotation, 1800 clockwise about centre (1,0) are:
We can rotate a shape (with centre not equal to zero) in a more simplified fashion
by putting all the coordinates of each vertices in one matrix.
For example;
Step 1 : Subtract the given centre from the coordinates of each vertex
A B C A B C
1 3 1 1 1−1 3−1 1−1
− =
2 2 5 0 2−0 2−0 5−0
0 2 0
=
2 2 5
Step 2: Multiply the corresponding rotation matrix with the answer from step 1
−1 0 0 2 0
0 −1 2 2 5
−1 × 0 + 0 × 2 −1 × 2 + 0 × 2 −1 × 0 + 0 × 5
=
0 × 0 + ( − 1 × 2) 0 × 2 + ( − 1 × 2) 0 × 0 + ( − 1 × 5)
0 −2 0
=
−2 −2 −5
Step 3: Add the given centre to the answer from step 2 to get the new coordinates
1 −1 1
=
−2 −2 −5
The vertices of the new shape ( T’) after rotation, 1800 clockwise about centre (1,0) are:
Exercise 2
Question 1
a) Construct a shape labelled K whose vertices are A(1,1) , B(1,3), C(3,3) and D(4,1).
Rotate the shape K 900 counterclockwise about centre (-1,-1). Label the new shape
K’ and the new coordinates A’, B’, and C’.
c) Rotate the triangle K 1800 clockwise about centre (-1,-1). Label the shape K’’ and the
new coordinates A’’, B’’, C’’ and D’’.
Question 2
a) Construct a triangle labelled Q whose vertices are A(-2,-1) , B(-2,-3) , and C(-5,-1).
Rotate the triangle Q 1800 clockwise about centre (-3,2). Label the new shape Q’
and the new coordinates A’, B’, and C’ ’.
b) Rotate the triangle labelled Q 2700 counterclockwise about centre (-3,2). Label the
shape Q’’ and the new coordinates A’’, B’’, and C’’.
Enlargement
Enlargement changes the size of a figure by a scale factor. To enlarge a shape, a center of
enlargement is required as well as the scale factor.
k 0
, where k is the scale factor
0 k
Enlarge the triangle K whose vertices are A(1,2) , B(3,2) and C(1,5) by a factor of 2, using
the origin as the center of enlargement.
1 3 1
The coordinates of A = , B= , C=
2 2 5
Step 2: Multiply the enlargement matrix by coordinates of each vertex
For vertex A
2 0 1 2×1+0× 2
=
0 2 2 0×1 +2× 2
2
=
4
For vertex B
2 0 3 2×3+0× 2
=
0 2 2 0×3 +2× 2
6
=
4
For vertex C
2 0 1 2×1+0× 5
=
0 2 5 0×1 +2× 5
2
=
10
The new coordinates for the enlarged triangle by factor of 2 about the origin are:
Enlarge the triangle K whose vertices are A(1,2) , B(3,2) and C(1,5) by a factor of -2, using
the origin as the center of enlargement.
1 3 1
The coordinates of A = , B= , C=
2 2 5
For vertex A
−2 0 1 −2×1+0× 2
=
0 −2 2 0 × 1 + ( − 2 × 2)
−2
=
−4
For vertex B
−2 0 3 −2×3+0× 2
=
0 −2 2 0 × 3 + ( − 2 × 2)
−6
=
−4
For vertex C
−2 0 1 −2×1+0× 5
=
0 −2 5 0 × 1 + ( − 2 × 5)
−2
=
− 10
The new coordinates for the enlarged triangle by factor of -2 about the origin are:
Enlarge the triangle K whose vertices are A(1,2) , B(3,2) and C(1,5) by a factor of ½, using
the origin as the center of enlargement.
1 3 1
The coordinates of A = , B= , C=
2 2 5
For vertex A
½ 0 1 ½×1+0× 2
=
0 ½ 2 0 × 1 + (½ × 2)
0.5
=
1
For vertex B
½ 0 3 ½ ×3+0× 2
=
0 ½ 2 0 × 3 + (½ × 2)
1.5
=
1
For vertex C
½ 0 1 ½×1+0× 5
=
0 ½ 5 0 × 1 + (½ × 5)
0.5
=
2.5
The new coordinates for the enlarged triangle by factor of -2 about the origin are:
Exercise 3
1. Enlarge a shape labelled T whose vertices are A(1,2) , B(5,2) , C(1,4) and D(5,6)
2. Construct a triangle labelled Q whose vertices are A(-2,-1) , B(-2,-3) , and C(-5,-1)
Step 1 : Subtract the given centre from the coordinates of each vertex
Step 2: Multiply the enlargement matrix with the answer from step 1
Step 3: Add the given centre to the answer from step 2 to get the new coordinates
Example
Enlarge the triangle T whose vertices are A(1,2) , B(3,2) and C(2,5) by a scale factor of 2,
using (-1,-1) as centre of enlargement.
Step 1 : Subtract the given centre from the coordinates of each vertex
A B C A B C
1 3 2 −1 1 − ( − 1) 3 − ( − 1) 2 − ( − 1)
− =
2 2 5 −1 2 − ( − 1) 2 − ( − 1) 5 − ( − 1)
2 4 3
=
3 3 6
Step 2: Multiply the enlargement matrix with the answer from step 1
2 0 2 4 3
0 2 3 3 6
4 8 6
=
6 6 12
Step 3: Add the given centre to the answer from step 2 to get the new coordinates
3 7 5
=
5 5 10
The new coordinates for the enlarged triangle by factor of 2 about the centre (-1,-1) are:
Exercise 4
1. Enlarge a shape labelled O whose vertices are A(1,2) , B(5,2) , C(1,4) and D(5,6) about
the centre (2,2)
2. Construct a triangle labelled P whose vertices are A(-2,-1) , B(-2,-3) , and C(-5,-1)
about the centre (-1,1)