0% found this document useful (0 votes)
42 views16 pages

Matrix Transformations Explained

Uploaded by

Bashir
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views16 pages

Matrix Transformations Explained

Uploaded by

Bashir
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Matrix Transformations

Prerequisites
You should be familiar with matrix multiplication, determinants and the concepts of linear
dependence and independence.

Matrices as transformations of the plane


The 2 × 2 square matrix
In the matrix

a c 
M  
b d 

a  c  1  0
the vectors   and   represent the images of   and   under M respectively.
b
  d
  0
  1 
Example (1)

 4 3
Find the image of 1,0  and  0,1 under the matrix M   
 2 1
Solution

4 3  1   4 
     
2 1  0   2 
4 3  0   3 
     
2 1 1  1

a 
You can see that this result does not depend on the specific form of the matrix. That is,   is the
b 

1  a c  c  0 a c 
image of   under M    and   is the image of   under M    . This means that
0 b d  d  1  b d 
any 2  2 matrix transforms a parallelogram, OXYZ, with one vertex at the origin to another
parallelogram. The position of the origin is fixed – that is, it is not moved.

Example (2)
Sketch the image of the square with vertices at the origin, and at  0,1 , 1,0  and 1,1

4 3
under the matrix M   .
2 1

© [Link]

1
Solution
We have already seen that the image of 1,0  under M is  4,2 and the image of  0,1

under M is 3,1 . We can find the image of 1,1 as

4 3   1  4  3   7 
      
2 1   1  2  1   3 

This gives sketch

(7,3)

(4,2)

(3,1)
x

We can see once again that the image forms a parallelogram regardless of what numbers are

a c 
substituted in the matrix M    . This is because the image of 1,1 under this matrix is
b d 

 a c   1  a  c 
     
 b d   1  b  d 
a  c 
  
b   d 
 a c  1   a c   0 
      
 b d   0   b d  1 
So the fourth corner of the parallelogram is always the vector sum of the coordinates of the other
two corners (assuming the parallelogram has one corner at the origin). However, we must include
the case of the “degenerate” parallelogram – that is, the case were the parallelogram OXYZ
collapses into a line under the matrix transformation. This occurs with the matrix is not singular.

Example (3)
(a) Sketch the image of the square with vertices at the origin, and at  0,1 ,
 4 2
1,0  and 1,1 under the matrix M   .
 2 1
(b) What is the determinant of M?

© [Link]

2
Solution

4 2   1   4   4 2   0   2   4 2   1  6 
(a)       ,       ,      
2 1   0   2   2 1   1   1   2 1   1  3 

The points  4,2 , 2,1 and  6,3 all lie on the same line y  12 x .

(6,3)

(4,2)

(2,1)

O
x

42
(b) det M  440
21

So M is a singular matrix.

We know that every singular matrix has row (and column) vectors that are linear combinations of
each other, so if M is singular, then the image of 1,1 under M is a linear combination of the

images of 1,0  and  0,1 . This means that the image of a parallelogram with one vertex at the

origin of a singular matrix is a line. Conversely, if the image of a parallelogram collapses into a
line under a matrix M then that matrix must be singular. There are some special cases of 2  2
matrices.

Enlargement by a factor k
This has matrix representation

k 0
M  
0 k 
Example (4)
Sketch the image of the square with vertices at the origin, and at  0,1 , 1,0  and 1,1

 2 0
under the matrix M   
 0 2

© [Link]

3
Solution

 2 0  1   2   2 0 0 0  2 0   1  2 
                 
 0 2  0  0  0 2  1   2   0 2   1  2 

2

x
O

Stretches
A stretch parallel to the x-axis is represented by the matrix

k 0
M  
0 1
A stretch parallel to the y-axis is represented by the matrix

1 0
M  
0 k 

Example (5)
Find the matrix corresponding to a stretch of size 4 in the horizontal direction, followed

by a stretch of size 1 in the vertical direction. What is the image of the point 2, 3
2
under the combined transformation?

Solution
This invites us to compose matrices – that is, determine the effect of one matrix is
followed by another. Firstly, the horizontal stretch of size 4 has matrix

 4 0
M  
0 1

© [Link]

4
and the vertical stretch of size 1 has matrix
2
1 0 
N  
0 1 
 2
The combined matrix is
 1 0   4 0  4 0 
NM     
 0 1   0 1   0 1 
 2  2
The expression NM means M followed by N, because we operate on points to the right of
the matrix as the image of 2, 3 under this shows

4 0  2   8 
   
 0 1   3   3 
 2  2
In this case it does not matter which way around we operate – that is NM  MN for
stretches. However, as you should know, matrix multiplication is not usually
commutative (as it is in this case) so the order in which transformations take place is
important. When the stretch factor is  1 a stretch is also called a dilation.

Shears
A shear parallel to the x-axis is represented by the matrix

1 k 
M  
 0 1
A shear parallel to the y-axis is represented by the matrix

 1 0
M  
k 1

Example (6)
Sketch the image of the square with vertices at the origin, and at  0,1 , 1,0  and 1,1

 1 3
under the shear M   .
 0 1

Solution
The image of 1,0  is the first column of M, which is 1,0  . The image of  0,1 is the

second column of M, which is 3,1 . The point 1,1 maps to

 1 3   1  4 
     
 0 1   1  1 

© [Link]

5
and the sketch is
y

(3,1) (4,1)

x
O

Example (7)
Is a shear parallel to the yaxis of factor k1 followed by a horizontal stretch of factor k2

the same as a stretch of factor l followed by a shear of factor k?

Solution
A shear parallel to the yaxis of factor k is represented by the matrix

 1 0
M  
 k1 1 
A horizontal stretch of factor l has matrix

k 0
N  2 
 0 1
We are being asked to find out whether these two matrices are commutative; that is,
whether NM = MN.
1 0   k2 0   k2 0 
MN     
 k1 1   0 1   k1k2 1 
k 0   1 0   k2 0 
NM   2   
0 1   k1 1   k1 1 

So they are not commutative.

Rotations
A rotation about the origin through the angle  anticlockwise has a special matrix form. This is

 cos  sin  
R   
 sin  cos 

© [Link]

6
To show this we employ trigonometry. Imagine a square with vertices at the origin, and at  0,1 ,

1,0  and 1,1 rotated about the origin through an angle . As the diagram shows, the image of

1,0  under this transformation would be  cos , sin  , and the image of  0,1 under this

transformation would be   sin  , cos  . Since in the matrix

(0, 1)

(-sin, cos)
(cos, sin)

cos 
sin

-sin cos (1, 0) x

a c  a  1  a c  c 
In the matrix M    we have   as the image of   under M    and   as the image
b d  b  0 b d  d 

0
of   . This gives the rotation matrix as
1 

 cos  sin  
R   
 sin  cos 

Example (7)
Write down the matrices corresponding to the following rotations: (a) an anticlockwise

rotation through  , (b) a clockwise rotation through  .


2 6

Solution
 1 1 
 cos
  2   sin  2     2  2 
a R   
2  sin
  2  cos  2    12 12 
 

© [Link]

7
(b) A clockwise rotation is equivalent to a negative anticlockwise rotation, so we are

being asked to find the rotation matrix of   . To do this recall that sin is and
6


odd function sin      sin   
and cosine is an even function cos     cos . 
 3 1 
 cos  

R  

6
 sin   
6      cos  6  sin  6    2 
2 
  
6  sin  
 
6
cos  
6      sin  6  cos  6    13

 2 2 

Reflections
The reflection in the line with angle  has matrix representation

 cos2 sin 2 
Q   
 sin 2  cos2 
To show this we must again apply geometric intuition and use some trigonometry.

B (0, 1)

cos

1
A

O  cos
(1, 0) x
y
D C
x (sin2, -cos2)

In this diagram the line represents the line of reflection with angle  to the x-axis. The arrows

represent the process of reflecting the point  0,1 about this line. OAB is a right-angled triangle,

with hypotenuse of length 1 and angle  so the length AB is cos . BC is twice this length, so it

is 2cos . We need to find the lengths x and y. In the triangle BCD we have
x
sin  
2cos

© [Link]

8
Hence x  2cos sin   sin 2

This being an application of the trigonometric identity, 2cos sin   sin 2 . Also in the triangle
BCD we have
1 y
cos 
2cos
y  2cos2   1  cos2   sin 2   cos2

This also requires knowledge of trigonometric identities. This value of y gives the size of the
ycoordinate of the point C, but this point lies below the x axis, and hence the coordinates of C
are

C   sin 2 ,  cos2 

That is the image of  0,1 under the reflection through the line with angle  is  sin 2 ,  cos2  .

By a similar argument we can show that the image of 1,0  under this reflection is

 cos2 , sin 2  , so the matrix representing this transformation is


 cos2 sin 2 
Q   
 sin 2  cos2 

Example (8)
Find the matrix corresponding to a reflection in the line y  3x .

Solution
Let us sketch the line y  3x
y

(1,3)

x
1

From the sketch we see that the angle  is such that

© [Link]

9
3
sin  
10
1
cos  
10
3 1 3
sin 2  2sin  cos   2   
10 10 5
1 9 4
cos 2  cos2   sin 2    
10 10 5

The matrix representing this matrix is therefore

 4 3

 cos2 sin 2   5 
5
Q   
 sin 2  cos2   3 4
 
 5 5

Combinations of rotations and reflections


We can show that a rotation followed by a rotation is a reflection; a reflection followed by a
reflection is a rotation, and that a rotation followed by a rotation is a reflection. We can represent
this relationship as follows

Rotation Reflection

Rotation Rotation Reflection

Reflection Reflection Rotation

Example (9)

Find the image of 1,0  (a) under a rotation through  followed by a reflection in the
2
line y  3x , and (b) the other way around. Sketch the effect of both on the point 1,0  on

a single diagram.

Solution

We saw above that the matrix representing a rotation through  was


2

© [Link]

10
 1 1 
  
2 2
R  
2  1 1 
 
 2 2

And a reflection in the line y  3x had matrix representation

 4 3
 
5 5
Q  
 3 4
 
 5 5
(a) Rotation followed by reflection; this is

 4 3 1

1   4 3 1   1 
5       
5   2 2   1  5 5   2  5 2
Q  R       
2  3 4 1 1   0  3 4 1   7 
       
 5 5 2 2   5 5 2  5 2

(b) Reflection followed by rotation


 1 1  4 3  1 1  4  7 
          
2 2 5 
5  
1 2 2 5 5 2 
R  Q         
2  1 1  3 4   0  1 1  3  1 
        
 2 2 5 5  2 2  5  5 2

And the sketch is

y = 3x

(52, 72 )

(, ) ( )

 
x

(, 2 )

Note, in this question we use the small circle  to represent the combination of one
transformation by another. This combination is called composition of transformations (or
composition of matrices representing them). It is sometimes convenient to have a symbol

© [Link]

11
to show this, though on other occasions, when there is no ambiguity or confusion, the
symbol is left out.

Translations
The transformations considered so far are of the type

a c   x 
  x , y   ax  by ,cx  dy     
b d   y 

where  is a transformation of the plane (which is the same as a mapping from  2   2 ) and a,

b, c, d are fixed real numbers. One point about these transformations is that every one of them
leaves the origin fixed – they do not move the origin. In two dimensions a translation is normally

a  x 
represented by the addition of a fixed vector   to the point   .
b
  y 

 x   x  a   x  a 
    
 y   y  b   y  b 
This moves every point of the plain along by a and up by b. Translations do not leave the origin
fixed.

Example (10)
Find the image of  x , y  after a translation by 2, 1 and a clockwise rotation through

 .
6

Solution
The translation is given by

x   x   2   x  2
t :     
y
   y   1  y  1
The clockwise rotation was found above to be

 3 1 
 
2 2 
R  
6  1 3
  
 2 2 
So

 3 1   3 1   3 1 1
    x  2   y  1   x  y  3 
2 2   x  2  2 2  2 2 2
R  t   
6  1 3   y  1  1 3   1 3 
      x  2   y  1    x  y  1  3 
 2 2   2 2   2 2 

© [Link]

12
The representation of translations by 3 × 3 matrices

It would be useful to be able to represent translations by square matrices and operate with
transformations using matrix multiplication. We cannot do this using 2  2 matrices because they
all leave the origin fixed, whereas a translation moves the origin. However, there is a useful 3  3
representation of a translation, which does allow us to substitute matrix multiplication for matrix
addition, so we can represent the process of composition of transformations by the single matrix
operation of matrix multiplication.

Let the 2  2 matrix

a c 
 
b d 
be represented by the 3  3 matrix

a c 0
 
b d 0 
 0 0 1
 
Let a point in the plane be represented by the column matrix

x 
 
y 
 1
 
Then the translation

 x   x  h   x  h 
    
 y   y  k   y  k 
is represented by the 3  3 matrix

1 0 h
 
0 1 k 
 0 0 1
 

Example (11)
Find the single 3  3 matrix representing a translation by 2, 1 followed by a

anticlockwise rotation through  . To what point does this matrix move the origin?
2
What is the fixed point of this combined transformation?

© [Link]

13
Solution
The translation by 2, 1 has 3  3 matrix

1 0 2 
 
t :  0 1 1
0 0 1 
 

The rotation anticlockwise by  is represented by


2

 cos   sin  0   0 1 0 
 2 2 
   
R   sin  cos  0   1 0 0
2 2
  
2

 0 0 1  0 0 1
 
Hence the single 3  3 representing the translation followed by the rotation is

 0 1 0   1 0 2   0 1 1
    
R  t   1 0 0   0 1 1   1 0 2
2  0 0 1   0 0 1   0 0 1
    

0
 
The origin is represented by the column vector  0  and this transformation maps this
 1
 

 1
 
point to  2 which corresponds to the point 1, 2 in the plane. Let  x , y  be the fixed
 1
 
point of this transformation. Then

 x   0 1 1  x 
    
 y    1 0 2  y 
 1   0 0 1  1 
    
Uncoupling this gives two simultaneous equations
x  y  1
y x 2
y    y  1  2
2y  3
y 3
2
x  1
2

 1 3
So the fixed point is   , 
 2 2

© [Link]

14
Example (12)
The transformations, T1, T2 and T3 in the plane are defined by:

T1 : A reflection in the line x  y  0.

T2 : A translation in which the point  x , y  is transformed to the point


 x  2, y  1 .

T3 : A clockwise rotation through


 about the origin.
2

The single transformation T is equivalent to T1 followed by T2 followed by T3 .

a  Find the 3  3 matrix representing T .

b  Find the equation of the image under T of the line y  2x  1.

[WJEC June 2004]

Solution

(a) A reflection in the line x y 0 maps 1, 0  to  0,  1 and  0,1 to  1,0  , so

 0 1 
its 2  2 matrix is   . Alternatively, the angle of x  y  0 is  and on
 1 0  4

substitution into the general formula for a reflection matrix

 cos2 sin 2 
Q    Q 
 
 cos  
2 
sin  
2      0 1 .
    
 sin 2  cos2    
4
 sin 
 
2 
 cos  
2     1 0 
 0 1 0  1 0 2 
   
Its 3  3 matrix is T1   1 0 0  . The 3  3 matrix of T2 is T2   0 1 1 which
 0 0 1 0 0 1 
   

 1 0 2   x   x  2
    
can be seen by  0 1 1  y    y  1 . The rotation through 
 (minus because
 0 0 1  1  1  2
    
it is clockwise) about the origin has matrix

 cos  

R  

2 
 sin  2     0 1  or T  0 1 0 
 
  1 0 0 .
  
       1 0 
3
2
 sin  cos  0 0 1
 2 2  
The matrix T is

© [Link]

15
T  T3 T2 T1

 0 1 0   1 0 2   0 1 0 
   
  1 0 0   0 1 1   1 0 0 
 0 0 1  0 0 1   0 0 1
   

 0 1 0   0 1 2 
  
  1 0 0   1 0 1
 0 0 1  0 0 1 
  

 1 0 1
 
  0 1 2 
0 0 1
 
(b) The line y  2x  1 has vector equation

0 1  t 
r    t     
1
  2
   1  2t 
The matrix T acts on this as

 1 0 1  t   1  t   1  t 
      
 0 1  2  1  2t 
  1  2t   2    2t  1 
 0 0 1  1  1  1 
      
So it transforms this line to the line

 1  1
r    t 
 1 2 
with Cartesian equation
 x   1  1 
     t 
 y   1 2 
x  1  t

y  1  2t
y  1  2  1  x 
y  2x  3  0

© [Link]

16

Common questions

Powered by AI

Linear dependence in rows or columns of a matrix is directly related to the matrix being singular, characterized by a determinant of zero. In such cases, the vectors represented by the rows or columns are linear combinations of each other, leading to rank deficiency. This results in transformations that map all points to a line or point, effectively collapsing areas or volumes, highlighting degeneracy in transformations .

A 2x2 matrix transforms a unit square in the plane into a parallelogram. The vertices of the original square, which are (0,0), (1,0), (0,1), and (1,1), are mapped to new points depending on the matrix. For instance, when the matrix \(M = \begin{pmatrix} 4 & 3 \\ 2 & 1 \end{pmatrix}\) is applied, (1,0) maps to (4,2) and (0,1) maps to (3,1), resulting in the image parallelogram with vertices (0,0), (4,2), (3,1), and (7,3).

A shear transformation skews a shape in the plane, slanting it while keeping one set of its sides parallel to the original orientation. For a shear parallel to the x-axis, the matrix is \(M = \begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}\), where \(k\) is the shear factor, altering the y-coordinate based on the x-coordinate .

The determinant of a matrix determines the area scale factor because it quantifies how a transformation applies a linear mapping, effectively scaling original areas. With 2x2 matrices, the determinant directly scales the area of transformed shapes like parallelograms, maintaining or collapsing them based on its value or sign (positive, negative, or zero).

The relationship between rotations followed by reflections is characterized by alternating transformation outcomes. A rotation followed by a reflection typically results in another overall rotation, dependent on angular relations and axis alignments. Conversely, reflecting before rotating can invert angular relationships, yielding distinctive transformations, emphasizing order's significance in resultant orientations .

Matrix multiplication is used to represent a combination of transformations by multiplying the matrices that correspond to each individual transformation in the order they are applied. For example, a horizontal stretch by factor 4 followed by a vertical stretch by factor 0.5 can be represented by matrices \(M = \begin{pmatrix} 4 & 0 \\ 0 & 1 \end{pmatrix}\) and \(N = \begin{pmatrix} 1 & 0 \\ 0 & 0.5 \end{pmatrix}\). The combined transformation is \(NM = \begin{pmatrix} 4 & 0 \\ 0 & 0.5 \end{pmatrix}\), which when applied to a point, yields a new transformed point .

A 2x2 matrix transformation results in a degenerate image, such as a line, when the matrix is singular. This is characterized by a determinant of zero, indicating that the rows (or columns) of the matrix are linear combinations of each other. When such a matrix, e.g., \(M = \begin{pmatrix} 4 & 2 \\ 2 & 1 \end{pmatrix}\) with determinant zero, is applied to a shape like a square, it collapses the square into a line .

Applying a reflection matrix to a point effectively mirrors the point across the specified line. For example, if a point \((x, y)\) is reflected over the line with angle \(\theta\), represented by matrix \(Q = \begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix}\), the new coordinates will be the mirrored positions about that line's orientation .

Matrix multiplication generally is not commutative; however, in the case of stretches, it becomes commutative. A horizontal stretch followed by a vertical stretch results in the same transformation as the vertical followed by the horizontal, due to scalar factor multiplication along independent axes. The exception occurs with rotation and reflection, which vary in order-dependent outcomes .

A rotation matrix is constructed using trigonometric functions of the angle of rotation. For an angle \(\theta\), the matrix is \(R = \begin{pmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{pmatrix}\). Its significance lies in transforming a shape by rotating it around the origin by that angle, maintaining the shape's dimensions and angles .

You might also like