Matrix Transformations (DP IB Maths: AI HL)

Revision Note

Paul

Author

Paul

Last updated

Transformation by a Matrix

What is a transformation matrix?

  • A transformation matrix is used to determine the coordinates of an image from the transformation of an object
    • Commonly used transformation matrices include
      • reflections, rotations, enlargements and stretches
  • (In 2D) a multiplication by any 2x2 matrix could be considered a transformation (in the 2D plane)
  • An individual point in the plane can be represented as a position vector, open parentheses table row x row y end table close parentheses
    • Several points, that create a shape say, can be written as a position matrix space open parentheses table row cell x subscript 1 end cell cell x subscript 2 end cell cell x subscript 3 end cell cell... end cell row cell y subscript 1 end cell cell y subscript 2 end cell cell y subscript 3 end cell cell... end cell end table close parentheses
  • A matrix transformation will be of the form open parentheses table row a b row c d end table close parentheses open parentheses table row x row y end table close parentheses plus open parentheses table row e row f end table close parentheses
    • where open parentheses table row x row y end table close parentheses represents any point in the 2D plane
    •  open parentheses table row a b row c d end table close parentheses and open parentheses table row e row f end table close parentheses are given matrices

How do I find the coordinates of an image under a transformation?

  • The coordinates (x’, y’) - the image of the point (x, y) under the transformation with matrices open parentheses table row a b row c d end table close parentheses and open parentheses table row e row f end table close parentheses - are given by

open parentheses table row cell x apostrophe end cell row cell y apostrophe end cell end table close parentheses equals open parentheses table row a b row c d end table close parentheses open parentheses table row x row y end table close parentheses plus open parentheses table row e row f end table close parentheses

  • Similarly, for a position matrix

open parentheses table row cell x apostrophe subscript 1 end cell cell x apostrophe subscript 2 end cell cell x apostrophe subscript 3 end cell cell... end cell row cell y apostrophe subscript 1 end cell cell y apostrophe subscript 2 end cell cell y apostrophe subscript 3 end cell cell... end cell end table close parentheses equals open parentheses table row a b row c d end table close parentheses open parentheses table row cell x subscript 1 end cell cell x subscript 2 end cell cell x subscript 3 end cell cell... end cell row cell x subscript 1 end cell cell x subscript 2 end cell cell x subscript 3 end cell cell... end cell end table close parentheses plus open parentheses table row e e e cell... end cell row f f f cell... end cell end table close parentheses 

    • If you use this method then remember to add e and f to each column
  • A GDC can be used for matrix multiplication
    • If matrices involved are small, it may be as quick to do this manually 

  • STEP 1
    Determine the transformation matrix (T) and the position matrix (P)
    The transformation matrix, if uncommon, will be given in the question
    The position matrix is determined from the coordinates involved, it is best to have the coordinates in order, to avoid confusion 

  • STEP 2
    Set up and perform the matrix multiplication and addition required to determine the image position matrix, P’
    P’
    = TP 

  • STEP 3
    Determine the coordinates of the image from the image position matrix, P’

How do I find the coordinates of the original point given the image under a transformation?

  •  To ‘reverse’ a transformation we would need the inverse transformation matrix
    • i.e. T-1
    • For a 2x2 matrix open parentheses table row a b row c d end table close parentheses the inverse is given by fraction numerator 1 over denominator det bold italic T end fraction open parentheses table row d cell negative b end cell row cell negative c end cell a end table close parentheses
      • where det bold italic T equals a d minus b c
    • A GDC can be used to work out inverse matrices
  • You would rearrange open parentheses table row cell x apostrophe end cell row cell y apostrophe end cell end table close parentheses equals open parentheses table row a b row c d end table close parentheses open parentheses table row x row y end table close parentheses plus open parentheses table row e row f end table close parentheses

Examiner Tip

  • The formula for the determinant and inverse of a 2x2 matrix can be found in the Topic 1: Number and Algebra section of the formula booklet

Worked example

A quadrilateral, Q, has the four vertices A(2, 5), B(5, 9), C(11, 9) and D(8, 5).

Find the coordinates of the image of Q under the transformation bold italic T equals open parentheses table row 3 cell negative 1 end cell row cell negative 1 end cell 2 end table close parentheses.

3-6-1-ib-hl-ai-only-we1a-soltn

Matrices of Geometric Transformations

What is meant by a geometric transformation?

  • The following transformations can be represented (in 2D) using multiplication of a 2x2 matrix
    • rotations (about the origin)
    • reflections
    • enlargements
    • (horizontal) stretches parallel to the x-axis
    • (vertical) stretches parallel to the y-axis
  • The following transformations can be represented (in 2D) using addition of a 2x1 matrix
    • translations

What are the matrices for geometric transformations?

  • All of the following transformation matrices are given in the formula booklet
  • Rotation
    • Anticlockwise (or counter-clockwise) through angle θ about the origin
      • open parentheses table row cell cos theta end cell cell negative sin theta end cell row cell sin theta end cell cell cos theta end cell end table close parentheses
    • Clockwise through angle θ about the origin
      • open parentheses table row cell cos theta end cell cell sin theta end cell row cell negative sin theta end cell cell cos theta end cell end table close parentheses
    • In both cases
      • θ > 0
      • θ may be measured in degrees or radians
  • Reflection
    • In the line y equals left parenthesis tan theta right parenthesis x
      • open parentheses table row cell cos 2 theta end cell cell sin 2 theta end cell row cell sin 2 theta end cell cell negative cos 2 theta end cell end table close parentheses
    • θ may be measured in degrees or radians
    • for a reflection in the x-axis, θ = 0° (0 radians)
    • for a reflection in the y-axis, θ = 90° (π/2 radians)
  • Enlargement
    • Scale factor k, centre of enlargement at the origin (0, 0)
      • open parentheses table row k 0 row 0 k end table close parentheses
  • Horizontal stretch (or stretch parallel to the x-axis)
    • Scale factor k
      • open parentheses table row k 0 row 0 1 end table close parentheses
  • Vertical stretch (or stretch parallel to the y-axis)
    • Scale factor k
      • open parentheses table row 1 0 row 0 k end table close parentheses
  • Translation (vector)
    • p units in the (positive) x-direction
    • q units in the (positive) y direction
      • open parentheses table row p row q end table close parentheses
      • This is not given in the formula booklet

How do I solve problems involving geometric transformations?

  • The matrix equations involved in problems will be of the form
    • P’=AP or
    • P’=AP+b where b is a translation vector
      • (sometimes called an affine transformation)
    • where
      • P is the position vector of the object coordinates
      • P’ is the position vector of the image coordinates
      • A is the transformation matrix
      • b is a translation vector
  • Problems may ask you to
    • find the coordinates of point(s) on the image
    • find the coordinates of point(s) on the object using an inverse matrix (A-1)
    • deduce/identify a matrix corresponding to one of the common geometric transformations
      • E.g. Find the matrix of a rotation of 45° clockwise about the origin

Examiner Tip

  • The formulae for the all of the transformation matrices can be found in the Topic 3: Geometry and Trigonometry section of the formula booklet

Worked example

Triangle PQR has coordinates P(-1, 4), Q(5, 4) and R(2, -1).


The transformation T is a reflection in the line space y equals x square root of 3.

a)
Find the matrix that represents a reflection in the line space y equals x square root of 3.

3-6-1-ib-hl-ai-only-we2a-soltn

b)
Find the position matrix, P’, representing the coordinates of the images of points P, Q and R under the transformation T.

3-6-1-ib-hl-ai-only-we2b-soltn

Matrices of Composite Transformations

The order in which transformations occur can lead to different results – for example a reflection in the x-axis followed by clockwise rotation of 90°  is different to rotation first, followed by the reflection.


Therefore, when one transformation is followed by another order is critical.

What is a composite transformation?

  • A composite function is the result of applying more than one function to a point or set of points
    • e.g.  a rotation, followed by an enlargement
  • It is possible to find a single composite function matrix that does the same job as applying the individual transformation matrices

How do I find a single matrix representing a composite transformation?

  • Multiplication of the transformation matrices
  • However, the order in which the matrices is important
    • If the transformation represented by matrix M is applied first, and is then followed by another transformation represented by matrix N
      • the composite matrix is NM
        e. P’ = NMP
        (NM is not necessarily equal to MN)
      • The matrices are applied right to left
      • The composite function matrix is calculated left to right
    • Another way to remember this is, starting from P, always pre-multiply by a transformation matrix
      • This is the same as applying composite functions to a value
      • The function (or matrix) furthest to the right is applied first

How do I apply the same transformation matrix more than once?

  • If a transformation, represented by the matrix T, is applied twice we would write the composite transformation matrix as T2
    • T2 = TT
  • This would be the case for any number of repeated applications
    • T5 would be the matrix for five applications of a transformation
  • A GDC can quickly calculate T2, T5, etc
  • Problems may involve considering patterns and sequences formed by repeated applications of a transformation
    • The coordinates of point(s) follow a particular pattern
      • (20, 16) – (10, 8) – (5, 4) – (2.5, 2) …
    • The area of a shape increases/decreases by a constant factor with each application

e.g. if one transformation doubles the area then three applications will increase the (original) area eight times (23)

Examiner Tip

  • When performing multiple transformations on a set of points, make sure you put your transformation matrices in the correct order, you can check this in an exam but sketching a diagram and checking that the transformed point ends up where it should
  • You may be asked to show your workings but you can still check that you have performed you matrix multiplication correctly by putting it through your GDC

Worked example

The matrix E represents an enlargement with scale factor 0.25, centred on the origin. 
The matrix R represents a rotation, 90° anticlockwise about the origin.  

a)
Find the matrix, C, that represents a rotation, 90° anticlockwise about the origin followed by an enlargement of scale factor 0.25, centred on the origin.

3-6-1-ib-hl-ai-only-we3a-soltn

b)
A square has position matrix bold italic T subscript bold 0 equals open parentheses table row 0 0 256 256 row 0 256 256 0 end table close parenthesesTn represents the position matrix of the image square after it has been transformed n times by matrix C.  Find T4

3-6-1-ib-hl-ai-only-we3b-soltn

c)
Find the single transformation matrix that would map T4 to T0.

3-6-1-ib-hl-ai-only-we3c-soltn

You've read 0 of your 5 free revision notes this week

Sign up now. It’s free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Paul

Author: Paul

Expertise: Maths

Paul has taught mathematics for 20 years and has been an examiner for Edexcel for over a decade. GCSE, A level, pure, mechanics, statistics, discrete – if it’s in a Maths exam, Paul will know about it. Paul is a passionate fan of clear and colourful notes with fascinating diagrams – one of the many reasons he is excited to be a member of the SME team.