SlideShare a Scribd company logo
1 of 14
TARUN GEHLOTS

Introduction to transformations
   Matrices can be used to represent many transformations on a grid (such as reflections, rotations,
   enlargements, stretches and shears).
   To find the image of a point P, you multiply the matrix by the position vector of the point.

                                                                                             2 1
Example: A transformation is represented by the 2 by 2 matrix M =                                 .
                                                                                              1 1
To find the image of the point (3, 2) under this transformation, you need to find the result of the
following matrix multiplication
                                                 2 1  3                       8
                                                  1 1 2                        1
                                                  
                                                 
                                                  matrix       position
                                                                vector

So the coordinates of the image are (8, -1).

Example 2: A rectangle has coordinates (1, 1), (4, 1), (4, 3) and (1, 3). Find the coordinates of the
                                                                                                  3     1
image of the rectangle under the transformation represented by the matrix                                 .
                                                                                                   1   1


                                                                                             3     1 1        3     1   4
Solution: You could find the image of each vertex in turn by finding                                   ,
                                                                                              1   1 1          1   1    1
etc.
However, it is more efficient to multiply the transformation matrix by a rectangular matrix
containing the coordinates of each vertex:
                              3   1 1 4 4 1                               2 11          9 0
                                                                                             .
                               1 1  1 1 3 3                               0 3            1 2
                                
                                       
                             transformation     matrix containing
                                 matrix     coordinates of each vertex

So the image has coordinates (2, 0), (11, -3), (9, -1) and (0, 2).

The diagram below shows the object and the image:



                                        6

                                        4

                                        2

                                            0
                                 -2               2        4       6      8        10   12
                                       -2
a b
Any transformation that can be represented by a 2 by 2 matrix,                  , is called a linear
                                                                            c d
transformation.

1.1    Transforming the unit square
The square with coordinates O(0, 0), I(1, 0), J(0, 1) and K(1, 1) is called the unit square.

Suppose we consider the image of this square under a general linear transformation as represented
              a b
by the matrix        :
              c d
         a b      0 1 0 1          0 a b a b
                                             .
         c d      0 0 1 1          0 c d c d

We therefore can notice the following things:
  The origin O(0, 0) is mapped to itself;
  The image of the point I(1, 0) is (a, c), i.e. the first column of the transformation matrix;
  The image of the point J(0, 1) is (b, d), i.e. the second column of the transformation matrix;
  The image of the point K(1, 1) is (a + b, c+ d), i.e. the result of finding the sum of the entries in
  each row of the matrix.

Example: Find the image of the unit square under the transformation represented by the matrix
 1 2
      .
 0 1

Solution:
The image of (1, 0) is (1, 0) (i.e. the first column)
The image of (0, 1) is (2, 1) (i.e. the second column)
                                                                    3
The image of (1, 1) is (3, 1) (i.e. add the entries in the
top row and the bottom row together).
                                                                    2
We can show the unit square and its image in a
                                                                    1
diagram:

We notice that the points on the x-axis have not moved.                 0
                                                                              1     2    3
This type of transformation is called a shear. Here the
invariant line is the x-axis.
We can describe what transformation any matrix represents by seeing how it affects the unit square.

Example:
A transformation T is given by:
                                           x'        0        1   x
                                                                    .
                                           y'        1       0    y
a) Find the image of the point A(3, 2).
b) Describe fully the transformation represented by T.

Solution:
a) The image of A(3, 2) can be found by:
                                          0      1       3         2
                                          1     0        2        3
So the image of A is the point A (-2, 3).

Note: The image of a point A is often denoted A .

b) To describe the transformation we consider the image of the unit square:
The image of (1, 0) is (0, 1) (i.e. the first column)
The image of (0, 1) is (-1, 0) (i.e. the second column)         3
The image of (1, 1) is (-1, 1) (i.e. add the entries in the
top row and the bottom row together).                           2

                                                                             1 I'
                                                                               J
                                                                       J'                I
                                                                                 0
                                                                       -1               1        2   3


1.2    Finding the matrix to represent a transformation
To find the matrix that defines a transformation you find the images of the two points I(1, 0) and
J(0, 1).
The image of (1, 0) forms the first column of the matrix.
The image of (0, 1) forms the second column of the matrix.

Example:
Find the matrix that represents a reflection in the y-axis.

Solution:
When you reflect in the y-axis:                                                  y
  the image of I(1, 0) is (-1, 0)
  the image of J(0, 1) is (0, 1).
                                                                                     1 J
                                                                                       J'
Therefore the matrix is:                                                    I'               I
                 1 0                                                                                     x
                         .                                                  -1               1
                0 1
                                                                             reflect in y-axis
Example 2:
Find the matrix that represents an enlargement centre (0, 0), scale factor 3.

Solution:                                                                         y
The image of the point I(1, 0) is (3, 0).
The image of the point J(0, 1) is (0, 3).
                                                                         3 J'
                   3 0
So the matrix is       .                                                  2
                   0 3
                                                                          1 J
                                                                                          I             I'
                                                                             0                                      x
                                                                                          1       2     3

Example 3:
Find the matrix that represents a rotation centre (0, 0), 90 degrees clockwise.

Solution:                                                        y
The image of the point I(1, 0) is (0, -1).
The image of the point J(0, 1) is (1, 0).
                                                           2
                                                                                  rotation 90 deg clockwise
                   0 1
So the matrix is        .                                  1 J
                    1 0
                                                                         I J'
                                                            0                                               x
                                                                         1            2       3
                                                          -1 I'

1.3    Some special matrix transformations
Rotation θ° anticlockwise centre (0, 0).
                                                    cos          sin
The matrix that represents this transformation is                             .
                                                    sin         cos
This matrix is given in the OCR formula book.



                                               (-sin , cos )                      1
                                                                       – sin
                                                                                      cos                    (cos , sin )
                                                                     1
                                                                                              1
                                                                                                      sin
                                                                                      0
                                                                                              cos               1


Reflection in the line y = (tanθ)x
The general form for the matrix corresponding to a reflection in the line y = (tanθ)x is
                                         cos 2    sin 2
                                                            .
                                         sin 2     cos 2
This matrix is also given in the OCR formula book.
Example:
Find the matrix of an anticlockwise rotation about the origin through 60°.

Solution:
This matrix would be
                                         1      3
                 cos 60     sin 60       2     2     .
                 sin 60    cos 60         3    1
                                         2     2


Example 2:
Find the matrix that corresponds to a reflection in the line y = 2x.

Solution:
Comparing the line y = 2x with the form y = (tanθ)x, we see that tanθ = 2 so that θ = 63.43°.
Therefore the matrix is:

                 cos(2 63.43)        sin(2 63.43)         0.6 0.8
                                                                  .
                 sin(2 63.43)         cos(2 63.43)       0.8 0.6

Stretch, scale factor k parallel to the x-axis
                                       k 0
The matrix for this transformation is         .
                                       0 1

Note: A stretch is an enlargement is one direction only.                 J
                                                                       1 J'
                                                                              I            I'

                                                                              1            k


Stretch, scale factor k parallel to the y-axis
                                       1 0
The matrix for this transformation is         .
                                       0 k
                                                                           k J'



                                                                           1 J
                                                                                   I
                                                                                   I'
                                                                                  1


Shear parallel to the x-axis
              1 k                                                             points on the line y = 1
The matrix            corresponds to a shear parallel to the x-               are translated k units to
              0 1
                                                                              the right
axis. Points on the x-axis do not move, whilst points on the
line y = 1 are translated k units to the right.                        1
                                                                                      I
                                                                                      I'
                                                                                  1
Shear parallel to the y-axis
              1 0
The matrix            corresponds to a shear parallel to the
              k 1
y-axis. Points on the y-axis do not move, whilst points on
the line x = 1 are translated k units up.                                                   I'

                                                                                                 points on the line
                                                                             1                   x=1 are
                                                                                                 translated k units
                                                                                                 up
                                                                                            I
                                                                                        1

                                                1    1       3
The matrix M is given by M                      2   2            .
                                            1   3        1
                                            2            2
(i) Give a complete geometrical description of the transformation represented by M.
                                                                       1 0
(ii) Hence write down the smallest positive integer n for which M n          .
                                                                       0 1

Solution:
(i) When describing the transformation corresponding to a matrix, it is sensible to first compare the
given matrix to the general matrices for rotation and reflection (as quoted in the formula book).
The matrix for rotating through θ° anticlockwise centre (0, 0) is
                                              cos     sin
                                              sin    cos
The matrix for reflecting in the line y = (tanθ)x is
                                            cos 2    sin 2
                                                              .
                                            sin 2     cos 2

                           1    1       3
Our matrix M               2   2            is similar in structure to the matrix for rotation (since the entries on
                       1   3        1
                       2            2
the leading diagonal (from top left to bottom right) have the same signs and the entries on the other
diagonal have opposite signs).

We therefore have to find the correct value for θ. We do this by solving
       cos       1 and sin      1 3.
                 2              2
Since cosθ is negative and sinθ is positive, θ must be in the second quadrant (between 90° and
180°). Solving the equations, we find that θ = 120°.

So M represents a rotation centre (0, 0), through 120° in an anticlockwise direction.

(ii) Since M represents a rotation through one third of a turn, if you repeat this transformation 3
times you would end up where you started off. Therefore M3 would represent the identity
transformation (which is represented by the identity matrix). So n = 3
The transformation T is represented by the matrix M, where
       1       3
M      2      2    .
        3    1
       2     2
a) Give a geometrical interpretation of T.
b) Find the smallest positive value of n for which M n   I




                           1    1       3
The matrix M is M          2   2            .
                       1   3        1
                       2            2
a) Find
       (i) M 2          (ii) M3 .
b) The transformation T is given by:
         x         x
               M      .
         y         y
Describe fully the geometrical transformation represented by T.
a) The transformation T is defined by the matrix A, where
                                                  0    1
                                          A               .
                                                   1 0
       (i)     Describe the transformation T geometrically. (Hint: consider the unit square)
       (ii)    Calculate the matrix product A 2 .
       (iii) Explain why the transformation T followed by T is the identity transformation.
b) The matrix B is defined by
                                                   1 1
                                            B           .
                                                   0 1
       (i) Calculate B2 – A2.
       (ii) Calculate (B + A)(B – A).




 Combining transformations
Suppose we have two matrices M and N, each corresponding to a different transformation.
Then the matrix product NM corresponds to the combined transformation, where M is the first
transformation and N is the second transformation.

Note: Look carefully at the order.

Example: Find the matrix that represents the combined transformation:
  reflection in the x-axis;
  followed by enlargement scale factor 2 centre (0, 0).

Solution:
We first find the matrix that corresponds to each separate transformation.
Transformation 1: Refection in the x-axis



                                                                       1
                                                  reflect in x-axis
The image of (1, 0) is (1, 0)
       The image of (0, 1) is (0, -1)
                 1 0
So the matrix is         .
                 0 1



Transformation 2: Enlargement s.f. 2 centre (0, 0):
               2 0
This matrix is       .
               0 2

Combined transformation: Since we wish to reflect first then enlarge, the correct order to
multiply the matrices is:
                2 0 1 0       2 0
                           =
                0 2 0 1       0   2

Worked examination question (AQA 2002)
A transformation T1 is represented by the matrix:
                                                         3    1
                                              M1        2     2    .
                                                        1     3
                                                        2    2
a) Give a geometrical description of T1.
The transformation T2 is a reflection in the line y   3x .
b) Find the matrix M2 which represents the transformation T2.
c)     (i) Find the matrix representing the transformation T2 followed by T1.
       (ii) Give a geometrical description of this combined transformation.

Solution:
                                                                                 cos      sin
a) If you compare the matrix M1 with the general matrix for a rotation, i.e.                     , you
                                                                                 sin     cos
will see that it corresponds to a rotation, centre (0, 0) through 30 degrees in anticlockwise direction.

b) The matrix for reflecting in the line y = (tanθ)x is
                                           cos 2      sin 2
                                                                       .
                                           sin 2       cos 2
Here we want tanθ = √3, i.e. θ = 60°.
Therefore the matrix is
                                          1     3
                cos120     sin120         2    2
        M2                                          .
                sin120      cos120        3    1
                                         2     2


                                                               3            1    1    3         3   1
c) (i) The matrix for T2 followed by T1 is M1M2               2             2    2   2    =    2    2    .
                                                              1             3    3   1        1      3
                                                              2            2    2    2        2     2
  (ii) This matrix product has the form of a reflection.
The equation of the mirror line is y = (tanθ)x where θ is found by solving the equations:
                     3                1.
        cos 2       2
                      and sin 2       2
We find that 2θ = 150°, i.e. that θ = 75°.
So the combined transformation is equivalent to a reflection in the line y = (tan75)x.


a) The transformation T1 is defined by the matrix
                                               0 1
                                                      .
                                               1 0
Describe this transformation geometrically.
b) The transformation T2 is an anticlockwise rotation about the origin through an angle of 60°.
Find the matrix of the transformation T2. Use surds in your answer where appropriate.
c) Find the matrix of the transformation obtained by carrying out T1 followed by T2.




a) The transformation T1 represented by the matrix
                                                     3      1
                                          M1        2       2
                                                   1         3
                                                   2        2
is an anticlockwise rotation about the origin. Find the angle of rotation.

b) The transformation T2 represented by the matrix
                                                  1         1       3
                                        M2        2        2
                                                 1    3         1
                                                 2              2
is a reflection in the line y = mx. Find the value of m.
c)   (i)    The matrix M3 is given by M3 = M1M2. Find M3.
     (ii)   The matrix M3 represents a single transformation T3. Give a geometrical description
            of T3.
1      1
                                                        2      2
The transformation S is represented by the matrix A    1     1
                                                                   and the transformation T is
                                                        2     2
                                2 0
represented by the matrix B           .
                                0 1
(i)    Give geometrical descriptions of the transformations S and T.
(ii)   Find the single matrix, C, which represents transformation S followed by transformation T.
(iii)  Hence find matrices X and Y such that C-1 = XY, where neither X nor Y is a multiple of the
unit matrix.
Interpreting the determinant of the transformation matrix
Suppose that a transformation T is represented by the matrix M.
When a shape is transformed by this transformation matrix, the area of the image is related to the
area of the object according to this relationship:
                             area of image = |det(M)|        area of object .

Therefore |det(M)| represents the area scale factor for the transformation.
Note: If det(M) is negative, then the transformation will have involved some flipping over (i.e.
some reflection is involved).

Worked examination question (OCR)
                                 1        3
The matrix A is given by A                  .
                                  3     1
a) Describe fully a sequence of two geometrical transformations represented by A.
b) The triangle PQR is mapped by the transformation represented by A onto the triangle P’Q’R’.
Given that the area of PQR is 8, find the area of P’Q’R’.
Solution
a) Consider the image of the unit square under the transformation,
       The image of the point (1, 0) is (1, √3), i..e the first column of the matrix
       The image of the point (0, 1) is (-√3, 1), i.e. the second column of the matrix.
       The image of the point (1, 1) is (1-√3, √3+1), i.e. the sum of the entries


We can see that two transformations are involved:
      The unit square has been enlarged;
                                                                                3       I'
      The unit square has been rotated.
                                                                                    J
                                                        J'                      1



                                                                                        I
                                                         – 3                            1




The length of the sides of the enlarged square are 12 ( 3)2          2
So the scale factor of the enlargement must be 2.
The angle of rotation is the angle θ shown on the diagram above.
Using trigonometry we find that θ = 60°.

So the two transformations are:
  enlargement s.f. 2 centre (0, 0)
  rotation 60° (anticlockwise) centre (0, 0).

b) To find the area of the image, we need to find det(A). This determinant is 1 – (-3) = 4.
So the area of the image is 4 times the area of the object.
Therefore the area of P’Q’R’ is 4 × 8 = 32.
Mixed questions
a) Find the 2 × 2 matrix which represents a clockwise rotation through an angle of θ about the
origin.
b) Find the matrix which transforms
                               1        1               2          6
                                   to           and          to      .
                               0        2               2          6

Solution:
                 cos      sin
a) The matrix                    (as given in the formula book) represents a rotation through an
                 sin     cos
angle of θ in an anticlockwise direction.

A rotation of θ in a clockwise direction is the same as a rotation of –θ in an anticlockwise direction.

                                       cos(   )     sin( )         cos    sin
Therefore the required matrix is                                                .
                                       sin(   )    cos( )           sin   cos

b) We wish to find a matrix M such that
                                    1     1                        2   6
                                 M                   and      M      =   .
                                    0     2                        2   6
This can be written as a single equation:
                                                   1 2       1 6
                                              M                  .
                                                   0 2       2 6

                               1
                 1 6    1 2
Therefore M                        .
                 2 6    0 2

             1
    1 2          1 2     2
But                        .
    0 2          2 0    1

          1 6 1 2 2
So, M                      =0
          2 6 2 0 1
Find the matrix which transforms
                              4                9               2          5
                                 to                  and             to     .
                              3               10               1          6

More Related Content

What's hot

Grade 12 math differentiation-parametric functions
Grade 12 math  differentiation-parametric functionsGrade 12 math  differentiation-parametric functions
Grade 12 math differentiation-parametric functionssumanmathews
 
Graphs of trigonometry functions
Graphs of trigonometry functionsGraphs of trigonometry functions
Graphs of trigonometry functionslgemgnani
 
Integers, roots, powers, order of operations
Integers, roots, powers, order of operationsIntegers, roots, powers, order of operations
Integers, roots, powers, order of operationsmathn3rd
 
Finding the Percent in Percent Problems
Finding the Percent in Percent ProblemsFinding the Percent in Percent Problems
Finding the Percent in Percent ProblemsJim Olsen
 
SPECIAL PRODUCTS
SPECIAL PRODUCTSSPECIAL PRODUCTS
SPECIAL PRODUCTSPIA_xx
 
Use of cramer`s rule in word problem
Use of cramer`s rule in word problem Use of cramer`s rule in word problem
Use of cramer`s rule in word problem Nadeem Uddin
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbersswartzje
 
Equations of Straight Lines
Equations of Straight LinesEquations of Straight Lines
Equations of Straight Linesitutor
 
Combining Algebra Like Terms
Combining Algebra Like TermsCombining Algebra Like Terms
Combining Algebra Like TermsPassy World
 
Equation of the line
Equation of the lineEquation of the line
Equation of the lineEdgardo Mata
 
CLASS VII -operations on rational numbers(1).pptx
CLASS VII -operations on rational numbers(1).pptxCLASS VII -operations on rational numbers(1).pptx
CLASS VII -operations on rational numbers(1).pptxRajkumarknms
 
Absolute value functions
Absolute value functionsAbsolute value functions
Absolute value functionsAlexander Nwatu
 

What's hot (20)

Grade 12 math differentiation-parametric functions
Grade 12 math  differentiation-parametric functionsGrade 12 math  differentiation-parametric functions
Grade 12 math differentiation-parametric functions
 
Rotations
RotationsRotations
Rotations
 
Factor theorem
Factor theoremFactor theorem
Factor theorem
 
Graphs of trigonometry functions
Graphs of trigonometry functionsGraphs of trigonometry functions
Graphs of trigonometry functions
 
Integers, roots, powers, order of operations
Integers, roots, powers, order of operationsIntegers, roots, powers, order of operations
Integers, roots, powers, order of operations
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
 
Finding the Percent in Percent Problems
Finding the Percent in Percent ProblemsFinding the Percent in Percent Problems
Finding the Percent in Percent Problems
 
SPECIAL PRODUCTS
SPECIAL PRODUCTSSPECIAL PRODUCTS
SPECIAL PRODUCTS
 
Use of cramer`s rule in word problem
Use of cramer`s rule in word problem Use of cramer`s rule in word problem
Use of cramer`s rule in word problem
 
Basic algebra
Basic algebraBasic algebra
Basic algebra
 
Determinants. Cramer’s Rule
Determinants. Cramer’s RuleDeterminants. Cramer’s Rule
Determinants. Cramer’s Rule
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbers
 
Equations of Straight Lines
Equations of Straight LinesEquations of Straight Lines
Equations of Straight Lines
 
Ppt on trigonometric functions(For class XI 2020-21)
Ppt on trigonometric functions(For class XI 2020-21)Ppt on trigonometric functions(For class XI 2020-21)
Ppt on trigonometric functions(For class XI 2020-21)
 
Combining Algebra Like Terms
Combining Algebra Like TermsCombining Algebra Like Terms
Combining Algebra Like Terms
 
Stair on slope of a line
Stair on slope of a lineStair on slope of a line
Stair on slope of a line
 
Equation of the line
Equation of the lineEquation of the line
Equation of the line
 
Systems of 3 Equations in 3 Variables
Systems of 3 Equations in 3 VariablesSystems of 3 Equations in 3 Variables
Systems of 3 Equations in 3 Variables
 
CLASS VII -operations on rational numbers(1).pptx
CLASS VII -operations on rational numbers(1).pptxCLASS VII -operations on rational numbers(1).pptx
CLASS VII -operations on rational numbers(1).pptx
 
Absolute value functions
Absolute value functionsAbsolute value functions
Absolute value functions
 

Similar to Do you know matrix transformations

2001 transformations reflections etc
2001 transformations reflections etc2001 transformations reflections etc
2001 transformations reflections etcjbianco9910
 
2001 transformations reflections etc
2001 transformations reflections etc2001 transformations reflections etc
2001 transformations reflections etcjbianco9910
 
Geometry unit 9.5
Geometry unit 9.5Geometry unit 9.5
Geometry unit 9.5Mark Ryder
 
Geometry unit 9.1
Geometry unit 9.1Geometry unit 9.1
Geometry unit 9.1Mark Ryder
 
linear-transformations-2017-03-19-14-38-49.pdf
linear-transformations-2017-03-19-14-38-49.pdflinear-transformations-2017-03-19-14-38-49.pdf
linear-transformations-2017-03-19-14-38-49.pdfBinitAgarwala3
 
GATE - Physics - 2006
GATE - Physics - 2006GATE - Physics - 2006
GATE - Physics - 2006SNS
 
Parametric equations
Parametric equationsParametric equations
Parametric equationsTarun Gehlot
 
Integration
IntegrationIntegration
Integrationsuefee
 
2 d transformation
2 d transformation2 d transformation
2 d transformationAnkit Garg
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 dxyz120
 
Module 3 plane coordinate geometry
Module 3 plane coordinate geometryModule 3 plane coordinate geometry
Module 3 plane coordinate geometrydionesioable
 
PC8-8 3DTransformation Matrices Notes
PC8-8 3DTransformation Matrices NotesPC8-8 3DTransformation Matrices Notes
PC8-8 3DTransformation Matrices Notesvhiggins1
 
Transformations zambia
Transformations zambiaTransformations zambia
Transformations zambiaRasford Munga
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformationsNareek
 
Interpolation functions for linear triangle elements (very elementary)
Interpolation functions for linear triangle elements (very elementary)Interpolation functions for linear triangle elements (very elementary)
Interpolation functions for linear triangle elements (very elementary)Prashant K. Jha
 
The gradient of a straight line
The gradient of a straight lineThe gradient of a straight line
The gradient of a straight lineAwais Khan
 
Lecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdfLecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdfentesarkareem1
 

Similar to Do you know matrix transformations (20)

2001 transformations reflections etc
2001 transformations reflections etc2001 transformations reflections etc
2001 transformations reflections etc
 
2001 transformations reflections etc
2001 transformations reflections etc2001 transformations reflections etc
2001 transformations reflections etc
 
Geometry unit 9.5
Geometry unit 9.5Geometry unit 9.5
Geometry unit 9.5
 
Geometry unit 9.1
Geometry unit 9.1Geometry unit 9.1
Geometry unit 9.1
 
linear-transformations-2017-03-19-14-38-49.pdf
linear-transformations-2017-03-19-14-38-49.pdflinear-transformations-2017-03-19-14-38-49.pdf
linear-transformations-2017-03-19-14-38-49.pdf
 
GATE - Physics - 2006
GATE - Physics - 2006GATE - Physics - 2006
GATE - Physics - 2006
 
Parametric equations
Parametric equationsParametric equations
Parametric equations
 
Integration
IntegrationIntegration
Integration
 
2 d transformation
2 d transformation2 d transformation
2 d transformation
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 d
 
FEM 3 TwoD CST.ppt
FEM 3 TwoD CST.pptFEM 3 TwoD CST.ppt
FEM 3 TwoD CST.ppt
 
Em10 fl
Em10 flEm10 fl
Em10 fl
 
Module 3 plane coordinate geometry
Module 3 plane coordinate geometryModule 3 plane coordinate geometry
Module 3 plane coordinate geometry
 
PC8-8 3DTransformation Matrices Notes
PC8-8 3DTransformation Matrices NotesPC8-8 3DTransformation Matrices Notes
PC8-8 3DTransformation Matrices Notes
 
Transformations zambia
Transformations zambiaTransformations zambia
Transformations zambia
 
SinogramReconstruction
SinogramReconstructionSinogramReconstruction
SinogramReconstruction
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
 
Interpolation functions for linear triangle elements (very elementary)
Interpolation functions for linear triangle elements (very elementary)Interpolation functions for linear triangle elements (very elementary)
Interpolation functions for linear triangle elements (very elementary)
 
The gradient of a straight line
The gradient of a straight lineThe gradient of a straight line
The gradient of a straight line
 
Lecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdfLecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdf
 

More from Tarun Gehlot

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228Tarun Gehlot
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behaviorTarun Gehlot
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)Tarun Gehlot
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error methodTarun Gehlot
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysisTarun Gehlot
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functionsTarun Gehlot
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problemsTarun Gehlot
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statisticsTarun Gehlot
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabTarun Gehlot
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentialsTarun Gehlot
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximationTarun Gehlot
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functionsTarun Gehlot
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-trianglesTarun Gehlot
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadraturesTarun Gehlot
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theoryTarun Gehlot
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationTarun Gehlot
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theoryTarun Gehlot
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functionsTarun Gehlot
 

More from Tarun Gehlot (20)

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228
 
Binary relations
Binary relationsBinary relations
Binary relations
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behavior
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error method
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problems
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statistics
 
Matlab commands
Matlab commandsMatlab commands
Matlab commands
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-triangles
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theory
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functions
 

Do you know matrix transformations

  • 1. TARUN GEHLOTS Introduction to transformations Matrices can be used to represent many transformations on a grid (such as reflections, rotations, enlargements, stretches and shears). To find the image of a point P, you multiply the matrix by the position vector of the point. 2 1 Example: A transformation is represented by the 2 by 2 matrix M = . 1 1 To find the image of the point (3, 2) under this transformation, you need to find the result of the following matrix multiplication 2 1 3 8 1 1 2 1      matrix position vector So the coordinates of the image are (8, -1). Example 2: A rectangle has coordinates (1, 1), (4, 1), (4, 3) and (1, 3). Find the coordinates of the 3 1 image of the rectangle under the transformation represented by the matrix . 1 1 3 1 1 3 1 4 Solution: You could find the image of each vertex in turn by finding , 1 1 1 1 1 1 etc. However, it is more efficient to multiply the transformation matrix by a rectangular matrix containing the coordinates of each vertex: 3 1 1 4 4 1 2 11 9 0 . 1 1 1 1 3 3 0 3 1 2         transformation matrix containing matrix coordinates of each vertex So the image has coordinates (2, 0), (11, -3), (9, -1) and (0, 2). The diagram below shows the object and the image: 6 4 2 0 -2 2 4 6 8 10 12 -2
  • 2. a b Any transformation that can be represented by a 2 by 2 matrix, , is called a linear c d transformation. 1.1 Transforming the unit square The square with coordinates O(0, 0), I(1, 0), J(0, 1) and K(1, 1) is called the unit square. Suppose we consider the image of this square under a general linear transformation as represented a b by the matrix : c d a b 0 1 0 1 0 a b a b . c d 0 0 1 1 0 c d c d We therefore can notice the following things: The origin O(0, 0) is mapped to itself; The image of the point I(1, 0) is (a, c), i.e. the first column of the transformation matrix; The image of the point J(0, 1) is (b, d), i.e. the second column of the transformation matrix; The image of the point K(1, 1) is (a + b, c+ d), i.e. the result of finding the sum of the entries in each row of the matrix. Example: Find the image of the unit square under the transformation represented by the matrix 1 2 . 0 1 Solution: The image of (1, 0) is (1, 0) (i.e. the first column) The image of (0, 1) is (2, 1) (i.e. the second column) 3 The image of (1, 1) is (3, 1) (i.e. add the entries in the top row and the bottom row together). 2 We can show the unit square and its image in a 1 diagram: We notice that the points on the x-axis have not moved. 0 1 2 3 This type of transformation is called a shear. Here the invariant line is the x-axis.
  • 3. We can describe what transformation any matrix represents by seeing how it affects the unit square. Example: A transformation T is given by: x' 0 1 x . y' 1 0 y a) Find the image of the point A(3, 2). b) Describe fully the transformation represented by T. Solution: a) The image of A(3, 2) can be found by: 0 1 3 2 1 0 2 3 So the image of A is the point A (-2, 3). Note: The image of a point A is often denoted A . b) To describe the transformation we consider the image of the unit square: The image of (1, 0) is (0, 1) (i.e. the first column) The image of (0, 1) is (-1, 0) (i.e. the second column) 3 The image of (1, 1) is (-1, 1) (i.e. add the entries in the top row and the bottom row together). 2 1 I' J J' I 0 -1 1 2 3 1.2 Finding the matrix to represent a transformation To find the matrix that defines a transformation you find the images of the two points I(1, 0) and J(0, 1). The image of (1, 0) forms the first column of the matrix. The image of (0, 1) forms the second column of the matrix. Example: Find the matrix that represents a reflection in the y-axis. Solution: When you reflect in the y-axis: y the image of I(1, 0) is (-1, 0) the image of J(0, 1) is (0, 1). 1 J J' Therefore the matrix is: I' I 1 0 x . -1 1 0 1 reflect in y-axis
  • 4. Example 2: Find the matrix that represents an enlargement centre (0, 0), scale factor 3. Solution: y The image of the point I(1, 0) is (3, 0). The image of the point J(0, 1) is (0, 3). 3 J' 3 0 So the matrix is . 2 0 3 1 J I I' 0 x 1 2 3 Example 3: Find the matrix that represents a rotation centre (0, 0), 90 degrees clockwise. Solution: y The image of the point I(1, 0) is (0, -1). The image of the point J(0, 1) is (1, 0). 2 rotation 90 deg clockwise 0 1 So the matrix is . 1 J 1 0 I J' 0 x 1 2 3 -1 I' 1.3 Some special matrix transformations Rotation θ° anticlockwise centre (0, 0). cos sin The matrix that represents this transformation is . sin cos This matrix is given in the OCR formula book. (-sin , cos ) 1 – sin cos (cos , sin ) 1 1 sin 0 cos 1 Reflection in the line y = (tanθ)x The general form for the matrix corresponding to a reflection in the line y = (tanθ)x is cos 2 sin 2 . sin 2 cos 2 This matrix is also given in the OCR formula book.
  • 5. Example: Find the matrix of an anticlockwise rotation about the origin through 60°. Solution: This matrix would be 1 3 cos 60 sin 60 2 2 . sin 60 cos 60 3 1 2 2 Example 2: Find the matrix that corresponds to a reflection in the line y = 2x. Solution: Comparing the line y = 2x with the form y = (tanθ)x, we see that tanθ = 2 so that θ = 63.43°. Therefore the matrix is: cos(2 63.43) sin(2 63.43) 0.6 0.8 . sin(2 63.43) cos(2 63.43) 0.8 0.6 Stretch, scale factor k parallel to the x-axis k 0 The matrix for this transformation is . 0 1 Note: A stretch is an enlargement is one direction only. J 1 J' I I' 1 k Stretch, scale factor k parallel to the y-axis 1 0 The matrix for this transformation is . 0 k k J' 1 J I I' 1 Shear parallel to the x-axis 1 k points on the line y = 1 The matrix corresponds to a shear parallel to the x- are translated k units to 0 1 the right axis. Points on the x-axis do not move, whilst points on the line y = 1 are translated k units to the right. 1 I I' 1
  • 6. Shear parallel to the y-axis 1 0 The matrix corresponds to a shear parallel to the k 1 y-axis. Points on the y-axis do not move, whilst points on the line x = 1 are translated k units up. I' points on the line 1 x=1 are translated k units up I 1 1 1 3 The matrix M is given by M 2 2 . 1 3 1 2 2 (i) Give a complete geometrical description of the transformation represented by M. 1 0 (ii) Hence write down the smallest positive integer n for which M n . 0 1 Solution: (i) When describing the transformation corresponding to a matrix, it is sensible to first compare the given matrix to the general matrices for rotation and reflection (as quoted in the formula book). The matrix for rotating through θ° anticlockwise centre (0, 0) is cos sin sin cos The matrix for reflecting in the line y = (tanθ)x is cos 2 sin 2 . sin 2 cos 2 1 1 3 Our matrix M 2 2 is similar in structure to the matrix for rotation (since the entries on 1 3 1 2 2 the leading diagonal (from top left to bottom right) have the same signs and the entries on the other diagonal have opposite signs). We therefore have to find the correct value for θ. We do this by solving cos 1 and sin 1 3. 2 2 Since cosθ is negative and sinθ is positive, θ must be in the second quadrant (between 90° and 180°). Solving the equations, we find that θ = 120°. So M represents a rotation centre (0, 0), through 120° in an anticlockwise direction. (ii) Since M represents a rotation through one third of a turn, if you repeat this transformation 3 times you would end up where you started off. Therefore M3 would represent the identity transformation (which is represented by the identity matrix). So n = 3 The transformation T is represented by the matrix M, where 1 3 M 2 2 . 3 1 2 2 a) Give a geometrical interpretation of T.
  • 7. b) Find the smallest positive value of n for which M n I 1 1 3 The matrix M is M 2 2 . 1 3 1 2 2 a) Find (i) M 2 (ii) M3 . b) The transformation T is given by: x x M . y y Describe fully the geometrical transformation represented by T.
  • 8. a) The transformation T is defined by the matrix A, where 0 1 A . 1 0 (i) Describe the transformation T geometrically. (Hint: consider the unit square) (ii) Calculate the matrix product A 2 . (iii) Explain why the transformation T followed by T is the identity transformation. b) The matrix B is defined by 1 1 B . 0 1 (i) Calculate B2 – A2. (ii) Calculate (B + A)(B – A). Combining transformations Suppose we have two matrices M and N, each corresponding to a different transformation. Then the matrix product NM corresponds to the combined transformation, where M is the first transformation and N is the second transformation. Note: Look carefully at the order. Example: Find the matrix that represents the combined transformation: reflection in the x-axis; followed by enlargement scale factor 2 centre (0, 0). Solution: We first find the matrix that corresponds to each separate transformation. Transformation 1: Refection in the x-axis 1 reflect in x-axis
  • 9. The image of (1, 0) is (1, 0) The image of (0, 1) is (0, -1) 1 0 So the matrix is . 0 1 Transformation 2: Enlargement s.f. 2 centre (0, 0): 2 0 This matrix is . 0 2 Combined transformation: Since we wish to reflect first then enlarge, the correct order to multiply the matrices is: 2 0 1 0 2 0 = 0 2 0 1 0 2 Worked examination question (AQA 2002) A transformation T1 is represented by the matrix: 3 1 M1 2 2 . 1 3 2 2 a) Give a geometrical description of T1. The transformation T2 is a reflection in the line y 3x . b) Find the matrix M2 which represents the transformation T2. c) (i) Find the matrix representing the transformation T2 followed by T1. (ii) Give a geometrical description of this combined transformation. Solution: cos sin a) If you compare the matrix M1 with the general matrix for a rotation, i.e. , you sin cos will see that it corresponds to a rotation, centre (0, 0) through 30 degrees in anticlockwise direction. b) The matrix for reflecting in the line y = (tanθ)x is cos 2 sin 2 . sin 2 cos 2 Here we want tanθ = √3, i.e. θ = 60°. Therefore the matrix is 1 3 cos120 sin120 2 2 M2 . sin120 cos120 3 1 2 2 3 1 1 3 3 1 c) (i) The matrix for T2 followed by T1 is M1M2 2 2 2 2 = 2 2 . 1 3 3 1 1 3 2 2 2 2 2 2 (ii) This matrix product has the form of a reflection. The equation of the mirror line is y = (tanθ)x where θ is found by solving the equations: 3 1. cos 2 2 and sin 2 2 We find that 2θ = 150°, i.e. that θ = 75°.
  • 10. So the combined transformation is equivalent to a reflection in the line y = (tan75)x. a) The transformation T1 is defined by the matrix 0 1 . 1 0 Describe this transformation geometrically. b) The transformation T2 is an anticlockwise rotation about the origin through an angle of 60°. Find the matrix of the transformation T2. Use surds in your answer where appropriate. c) Find the matrix of the transformation obtained by carrying out T1 followed by T2. a) The transformation T1 represented by the matrix 3 1 M1 2 2 1 3 2 2 is an anticlockwise rotation about the origin. Find the angle of rotation. b) The transformation T2 represented by the matrix 1 1 3 M2 2 2 1 3 1 2 2 is a reflection in the line y = mx. Find the value of m.
  • 11. c) (i) The matrix M3 is given by M3 = M1M2. Find M3. (ii) The matrix M3 represents a single transformation T3. Give a geometrical description of T3.
  • 12. 1 1 2 2 The transformation S is represented by the matrix A 1 1 and the transformation T is 2 2 2 0 represented by the matrix B . 0 1 (i) Give geometrical descriptions of the transformations S and T. (ii) Find the single matrix, C, which represents transformation S followed by transformation T. (iii) Hence find matrices X and Y such that C-1 = XY, where neither X nor Y is a multiple of the unit matrix.
  • 13. Interpreting the determinant of the transformation matrix Suppose that a transformation T is represented by the matrix M. When a shape is transformed by this transformation matrix, the area of the image is related to the area of the object according to this relationship: area of image = |det(M)| area of object . Therefore |det(M)| represents the area scale factor for the transformation. Note: If det(M) is negative, then the transformation will have involved some flipping over (i.e. some reflection is involved). Worked examination question (OCR) 1 3 The matrix A is given by A . 3 1 a) Describe fully a sequence of two geometrical transformations represented by A. b) The triangle PQR is mapped by the transformation represented by A onto the triangle P’Q’R’. Given that the area of PQR is 8, find the area of P’Q’R’. Solution a) Consider the image of the unit square under the transformation, The image of the point (1, 0) is (1, √3), i..e the first column of the matrix The image of the point (0, 1) is (-√3, 1), i.e. the second column of the matrix. The image of the point (1, 1) is (1-√3, √3+1), i.e. the sum of the entries We can see that two transformations are involved: The unit square has been enlarged; 3 I' The unit square has been rotated. J J' 1 I – 3 1 The length of the sides of the enlarged square are 12 ( 3)2 2 So the scale factor of the enlargement must be 2. The angle of rotation is the angle θ shown on the diagram above. Using trigonometry we find that θ = 60°. So the two transformations are: enlargement s.f. 2 centre (0, 0) rotation 60° (anticlockwise) centre (0, 0). b) To find the area of the image, we need to find det(A). This determinant is 1 – (-3) = 4. So the area of the image is 4 times the area of the object. Therefore the area of P’Q’R’ is 4 × 8 = 32.
  • 14. Mixed questions a) Find the 2 × 2 matrix which represents a clockwise rotation through an angle of θ about the origin. b) Find the matrix which transforms 1 1 2 6 to and to . 0 2 2 6 Solution: cos sin a) The matrix (as given in the formula book) represents a rotation through an sin cos angle of θ in an anticlockwise direction. A rotation of θ in a clockwise direction is the same as a rotation of –θ in an anticlockwise direction. cos( ) sin( ) cos sin Therefore the required matrix is . sin( ) cos( ) sin cos b) We wish to find a matrix M such that 1 1 2 6 M and M = . 0 2 2 6 This can be written as a single equation: 1 2 1 6 M . 0 2 2 6 1 1 6 1 2 Therefore M . 2 6 0 2 1 1 2 1 2 2 But . 0 2 2 0 1 1 6 1 2 2 So, M =0 2 6 2 0 1 Find the matrix which transforms 4 9 2 5 to and to . 3 10 1 6