Professional Documents
Culture Documents
Chapter 5: Transformations With Matrices: Xy X' Y'
Chapter 5: Transformations With Matrices: Xy X' Y'
Introduction
In this chapter we are interested in transforming an object into an image, denoted x' y' ,
where the dashes indicate that a transformation has occurred.
Our imagination tells us there are many ways to transform an object into an image. As a simple
example, consider your current position to be the object and your home to be the image. There
are many ways in which you can travel from your current position to home.
Applying a transformation to an object can be described by a matrix equation. The matrix
transformation equations we consider will be of the form
x' = a b x
y' c d y
where x represents the object, x' the image, and a b the transformation matrix, where
y y' c d
1
Chapter 5
Transformation Types
P x y
Here the point P x y (the object) has been reflected in the x axis (transformed) to the point
x' = 1 0 x
y' 0 –1 y
2
Chapter 5
P x y
P' x' y'
x' = – 1 0 x
y' 0 1 y
y y = x
P x y
3
Chapter 5
x' = 0 1 x
y' 1 0 y
Consider the following diagram which illustrates the reflection of the object in a line y = mx .
You should recall that m is the gradient of the line and is related to the angle ( ) that the line
m = tan
Also, note that such a line passes through the origin.
y y=mx
P x y
O x
4
Chapter 5
Consider the following diagram which illustrates an anticlockwise rotation about the origin by
an angle .
y
O
x
Example 1
Use a matrix method to rotate the unit square --- radians anticlockwise about the origin. Sketch
2
both the object and the image.
5
Chapter 5
Solution
y
B 1 1
C 0 1
Object
O A 1 0 x
to OABC we get
O 0 0 : x' = 0 – 1 0 = 0 O O
y' 1 0 0 0
A 1 0 : x' = 0 – 1 1 = 0 A 1 0 A 0 1
y' 1 0 0 1
B 1 1 : x' = 0 – 1 1 = – 1 B 1 1 B – 1 1
y' 1 0 1 1
C 0 1 : x' = 0 – 1 0 = – 1 C 0 1 C – 1 0
y' 1 0 1 0
y
B – 1 1 A 1 1
Image
C – 1 0 O x
6
Chapter 5
Note that the resulting image has the same shape and size as the object. Transformations which
preserve shape and size are called isometries. Each of the transformations studied so far are
isometries.
P x y P' kx y
Here the y coordinate is unchanged but the x coordinate is stretched by a factor k to a new
x' = kx
y' = y
which may be represented by the matrix equation
x' = k 0 x
y' 0 1 y
7
Chapter 5
P x y
x' = 1 0 x
y' 0 k y
ky y P' k x x k y y
P x y
kx x x
x' = k x 0 x
y' 0 ky y
where k x and k y are the dilation (or contraction) factors parallel to the x and y axes, respec-
tively.
8
Chapter 5
Example 2
Transform the unit square by a dilation of factor 3 parallel to the x axis and a factor 2 parallel to
the y axis. Sketch both the object and the image.
Solution
y
C 0 1 B 1 1
Object
O A 1 0 x
x' = 3 0 x
y' 0 2 y
to OABC we get
O 0 0 : x' = 3 0 0 = 0 O O
y' 0 2 0 0
A 1 0 : x' = 3 0 1 = 3 A 1 0 A 3 0
y' 0 2 0 0
B 1 1 : x' = 3 0 1 = 3 B 1 1 B 3 2
y' 0 2 1 2
C 0 1 : x' = 3 0 0 = 0 C 0 1 C 0 2
y' 0 2 1 2
y
B 3 2
C 0 2
Image
O A 3 0 x
9
Chapter 5
Note that the resulting image in Example 2 does not have the same size as the original object.
Thus, in general, a dilation mapping is not an isometry.
The following table summarises the different kinds of transformations learned so far.
Note that a transformation is not required to fall into one of the above categories, as illustrated
in the following example.
10
Chapter 5
Example 3
Solution
1
Rearranging x' = 1 4 x we get x = --------- 2 – 4 x
y' 3 2 y y – 10 – 3 1 y
or
1 1
x = --------- 2x – 4y and y = --------- – 3x + y .
– 10 – 10
Substituting into y – 2x – 1 = 0 gives
1- 2
-------- – 3x + y + ------ 2x – 4y – 1 = 0
– 10 10
– 3x + y – 4x + 8y + 10 = 0
9 y – 7x + 10 = 0
Therefore, y – 2x – 1 = 0 9y – 7x + 10 = 0
Combined Transformations
x'' = BA x
y'' y
11
Chapter 5
Note that we have used double dashes in our notation to denote that two transformations have
occurred.
Example 4
Find the image of the point (2,3) under
(a) a rotation of --- radians followed by a reflection in the x axis.
2
(b) a reflection in the x axis followed by a rotation of --- radians.
2
Solution
(a) Second First
transformation transformation
(reflection) (rotation)
= 1 0 0 –1 2 = 1 0 –3 = –3
0 –1 1 0 3 0 –1 2 –2
-3 O 2 x
-2
P – 3 – 2
12
Chapter 5
x = 0 – 1 1 0 2 = 0 – 1 2 = 3
y 1 0 0 –1 3 1 0 –3 2
O 2 3 x
-3 P 2 – 3
Note that changing the order of transformations has resulted in a different image.
Degenerate Transformations
In Example 3 (b) we saw that the image of the given line was another line. This is not always
the case.
Example 5
13
Chapter 5
Solution
Here we have x = 2 1 x
y 4 2 y
Note that the transformation matrix is singular ( = 0 ), meaning we cannot solve for x , as
y
That is, x = 2 1 x = 2
y 4 2 – 2x + 2 4
Therefore, y = – 2x + 2 2 4
Note that the object is a line, but the image is a point.
Example 6
Determine whether or not the following matrices represent degenerate transformations. Give a
reason for your answer.
(a) 1 2 (b) 1 1
36 1 2
Solution
(a) = 0 . Therefore, we have a degenerate transformation.
14
Chapter 5
Example 7
In example 5 we saw a line map onto a point under a degenerate mapping. Are there other lines
that degenerate into points under the same mapping?
Solution
Let’s substitute the equation of a line, y = mx + c , into the matrix transformation equation
x = 2 1 x
y 4 2 mx + c
Therefore,
x = 2 + m x + c
y = 2 2 + m x + 2c
References
• Elementary Linear Algebra (Fourth Edition), S. Venit and W. Bishop (Brooks/Cole 1996).
• Linear Algebra and its applications, D. C. Lay (Addison-Wesley 1994).
• The MacTutor History of Mathematics Archive, www-groups.dcs.st-and.ac.uk/~history/
• Elementary Linear Algebra, S.I. Grossman (Saunders 1994).
15