Matrix transformations AI HL
A matrix transformation sends every point to its image by multiplying the point, written as a column, on the left by a two by two matrix, and a translation is added afterwards. The columns of the matrix are the images of the points one unit along each axis, the determinant gives the area scale factor, and two transformations in a row make one matrix with the first transformation on the right. The calculator in matrix mode does the multiplying, so the marks are for choosing the right matrix, the right order and the right reading of the result. Work through the two sections in order, because the second uses the first.
Formulas at a glance
The booklet gives the matrices for stretches, enlargements and rotations about the origin, and the determinant of a matrix. The matrices for reflections, the translation form, the area scale factor and the order of composition are not in it, so learn them.
Applying a matrix to a point
Not in the bookletA matrix transformation followed by a translation
Not in the bookletHorizontal stretch, vertical stretch and enlargement, scale factor
In the bookletAnticlockwise rotation about the origin
In the bookletReflections in the -axis, the -axis and the line
Not in the bookletDeterminant of a matrix
In the bookletArea scale factor of a transformation
Not in the bookletTwo transformations in a row: the matrix of the first goes on the right
Not in the bookletThe same transformation applied times
Not in the bookletWhich method to use
Decide first whether the question gives you a matrix or asks you to find one, and whether one transformation or several are involved. A single transformation needs one matrix; a list of transformations needs a product of matrices in the right order.
| The question has | Use | Notes |
|---|---|---|
| A transformation described in words: a reflection, stretch, enlargement or rotation | The matrix from the booklet, or the images of the two unit points as its columns | Reflections are not in the booklet, so build them from the images of and |
| A matrix and a point, or the vertices of a shape | Write each point as a column and multiply on the left by the matrix | In matrix mode the calculator does each multiplication; give each image as coordinates |
| A transformation followed by a translation | Multiply by the matrix first, then add the translation vector | A translation has no matrix of its own in this form |
| The area of an image, or an area scale factor | the area of the object | A negative determinant still gives a positive area scale factor |
| One transformation after another | The single matrix , where is applied first | Check the order on one point: apply the two matrices one at a time |
| The area scale factor of two or more transformations together | The product of the individual area scale factors | The same as |
| The same transformation applied several times | The matrix power | Raise the matrix to the power on the calculator, then apply it to the point |
Section 1 of 2 AHL3.9
Matrix transformations
A matrix transformation maps each point to a new point by multiplying its column vector on the left by a matrix. The columns of the matrix are the images of and , which is how the matrices for reflections, rotations, stretches and enlargements are built. A translation is added after the multiplication, and the determinant gives the area scale factor.
Building and applying the matrix
The rule below is not in the formula booklet: it is a shortcut for building a matrix, and it follows from how a matrix multiplies a column vector.
Building the matrix from basis images
Image of is column 1; image of is column 2
If a question tells you where sends and , stack those images as the columns of - no multiplying required.
Ready to combine more than one of these? See Composite transformations.
Key terms
What is the matrix for a rotation about the origin?
A rotation of angle anticlockwise about the origin has matrix . A clockwise rotation uses a negative angle.
e.g. For the matrix is , which maps to .
What is the matrix for a reflection in the line ?
Reflection in swaps the coordinates, so its matrix is .
e.g. This matrix maps to .
How is a stretch written as a matrix?
A horizontal stretch with scale factor has matrix , and a vertical stretch has matrix . The sits in the position that scales the relevant coordinate.
e.g. The matrix maps to , a horizontal stretch with scale factor .
What does the determinant tell you about area?
The area of the image equals times the area of the object. A negative determinant does not give a negative area because the absolute value is used.
e.g. The matrix has determinant , so a shape of area maps to a shape of area .
Worked example, step by step
The question Calculator needed (matrix mode) [6 marks]
A designer plots a triangular logo on a grid with units of 1 cm. Its vertices are , and . A software package transforms every point of the logo using the matrix .
(a) Find the coordinates of , the image of .
(b) Find .
(c) Hence find the area of the image of triangle .
Worked solution: worked example
Answer: (a) (b) (c)
Step 1 - Write the point as a column.
Write as and multiply it on the left by : M1 - Multiply by the column vector for
Why? The matrix goes on the left of the column, because the matrix acts on the point. Written the other way round the product is not defined.
Step 2 - Multiply.
In matrix mode, store as a matrix and as a matrix, then enter the product . The calculator shows and . By hand, and , so A1 -
Why? Each entry of the answer is a row of multiplied by the column. Give the image as coordinates, not as a column, if the question asks for coordinates.
Step 3 - Find the determinant.
The determinant command in matrix mode gives the same value. A1 -
Why? The determinant of is , which is in the booklet. It is the factor by which the transformation changes area, apart from the sign.
Step 4 - Find the area of the object.
Triangle has a horizontal side of length and a vertical side of length , so A1 - Area of triangle is
Why? The rule for the image needs the area of the original, so find it first. Here the two sides meeting at are perpendicular, which makes the base and height easy to read.
Step 5 - Use the determinant.
M1 - Multiply the area of the object by A1 -
Why? The absolute value matters when the determinant is negative, because an area cannot be negative. Here is positive, so the area is multiplied by .
M1 Multiply by the column vector for
A1
A1
A1 Area of triangle is
M1 Multiply the area of the object by
A1
Now you try: enter your answers to be marked
These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.
Apply the rotation matrix to find the image of each vertex.
Worked solution: practice question 1
Worked solution: practice question 2
Let be the matrix of
Worked solution: practice question 3
Your score so far: 0 out of 17 marks
Calculator steps: Matrix operations and solving systems
Common mistakes
- Writing the point as a row vector instead of a column vector. Always multiply the transformation matrix by the point written as a column vector, - multiplying the other way round gives a different, incorrect result.
- Swapping the columns when building a matrix from basis images. The image of is always column 1 and the image of is always column 2 - putting them in the wrong order produces the transpose of the correct matrix.
- Giving a negative area. A matrix with determinant multiplies areas by , not by : an area is never negative, so use the absolute value of the determinant.
Section 2 of 2 AHL3.9
Composite transformations
A composite transformation applies one matrix transformation after another, and the combined effect is a single matrix equal to the product of the individual matrices. If is applied first and second, the single matrix is , so the first transformation is written on the right. Because matrix multiplication is not commutative, and usually give different results.
Need the individual transformation matrices first? See Matrix transformations.
Key terms
What is a composite transformation?
A composite transformation is two or more transformations carried out one after another. The final image is the result of applying each transformation to the image of the one before.
e.g. Reflecting a point in the -axis and then enlarging with scale factor about the origin is a composite transformation.
Why is the first transformation written on the right?
A matrix multiplies a point's column vector from the left, so the matrix next to the point acts first. In , the point is multiplied by , and is then applied to the result.
e.g. If is a rotation and is a reflection, rotates first and reflects second.
How do you multiply two matrices?
Each entry is the sum of products of a row of the left matrix with a column of the right matrix. Take rows from the left matrix and columns from the right one.
e.g. , the single matrix for a rotation of followed by an enlargement of scale factor .
How does the determinant behave for a composite?
The determinant of a product is the product of the determinants, so . The area of the final image is times the area of the object.
e.g. An enlargement of scale factor has determinant and a rotation has determinant , so the composite has determinant and multiplies areas by .
Worked example, step by step
The question Calculator needed (matrix mode, degrees) [6 marks]
A game moves points on a screen in two stages. Stage 1 is a horizontal stretch with scale factor , with matrix . Stage 2 is a rotation through anticlockwise about the origin, with matrix .
(a) Write down the matrix , giving each entry to 3 significant figures.
(b) Find the single matrix that carries out stage 1 and then stage 2, giving each entry to 3 significant figures.
(c) Find the image of the point after both stages.
(d) Find the area scale factor of the two stages together.
Worked solution: worked example
Answer: (a) (b) (c) (d)
Step 1 - Write down the rotation matrix.
The calculator must be in degree mode for this step. A1 -
Why? The rotation matrix is in the booklet, and a positive angle means anticlockwise. A calculator in radian mode would give the sine and cosine of radians, which is wrong.
Step 2 - Choose the order of the product.
Stage 1 is applied first, so is the matrix next to the point, and stage 2 is applied to the result: M1 - Multiply the matrices in the order
Why? The point is a column on the right, so the matrix next to it acts first. Writing would stretch after rotating, which is a different transformation.
Step 3 - Multiply in matrix mode.
Store and , keeping the unrounded entries of , and enter : A1 -
Why? Each entry is a row of times a column of ; for example the top left entry is . Rounding is left until the end.
Step 4 - Apply to the point.
The image is . M1 - Multiply by the column A1 -
Why? One multiplication by does both stages at once. As a check, stretching gives , and rotating that through gives the same point.
Step 5 - Find the area scale factor.
This is the same as , because the area scale factor of two stages together is the product of the two scale factors. A1 - Area scale factor
Why? Rotating does not change area, so only the stretch does: areas are multiplied by . The determinant is positive, so as well.
A1
M1 Multiply the matrices in the order
A1
M1 Multiply by the column
A1
A1 Area scale factor
Now you try: enter your answers to be marked
Worked solution: practice question 1
= reflection in -axis (), = rotation anticlockwise ().
The transformation is applied to the rectangle.
Worked solution: practice question 2
Find the single matrix for "first , then ".
Worked solution: practice question 3
Your score so far: 0 out of 14 marks
Calculator steps: Matrix operations and solving systems
Common mistakes
- Multiplying composed transformations in the wrong order. "Rotation followed by enlargement " is the matrix , with on the left - not . Matrix multiplication is not commutative, so getting the order backwards gives the wrong combined transformation entirely.
- Composing three or more matrices in the wrong sequence. If is applied first, then , then , the single matrix is , with the first transformation on the right. Writing the matrices in the order they are applied, , gives a different matrix.
- Assuming the determinant of a composite is the sum, not the product. For a combined matrix , , so the overall area scale factor is the product of the two individual scale factors, not their sum.
Using your GDC
The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.
Matrix operations and solving systems
Used in: Matrix transformations, Composite transformations
How to use matrices on a TI-84 Plus CE
Enter a matrix | |
Press 2nd x⁻¹ (MATRIX), press ▶ twice to reach EDIT, choose 1:[A] and press enter. Type the size, 2 enter 2 enter for 2 rows and 2 columns, then type the numbers row by row, pressing enter after each one. Use (−) for a negative number. |
MATRIX[A] 2 ×2 [[2 1] [1 3]] |
Enter the second matrix the same way in 2:[B] and the right-hand side as a 2 by 1 matrix in 3:[C]. Press 2nd mode (QUIT) when you have finished. |
MATRIX[C] 2 ×1 [[5] [10]] |
Add, multiply, determinant and inverse | |
On the home screen press 2nd x⁻¹ (MATRIX), choose 1:[A] from the NAMES list and press enter. Then press +, paste [B] in the same way, and press enter. A matrix name can only be pasted from this menu, not typed. Use × instead of + to multiply. and . |
[A]+[B] [[3 3] [4 7]] [A]*[B] [[5 8] [10 14]] |
For the determinant, press 2nd x⁻¹ (MATRIX), press ▶ to reach MATH, choose 1:det(, paste [A] from NAMES, type ) and press enter. . |
det([A]) 5 |
For the inverse, paste [A], press x⁻¹, then enter. The answer is in decimals. To see fractions, press math, choose 1:▶Frac and press enter. , which is in decimal form. |
[A]-1 [[0.6 −0.2] [−0.2 0.4]] Ans▶Frac [[3/5 −1/5] [−1/5 2/5]] |
Solve a system with the inverse | |
To solve , paste [A], press x⁻¹, then ×, paste [C] and press enter. The inverse must come first: is not the same as . and . |
[A]-1*[C] [[1] [3]] |
Paste matrix names from the MATRIX menu rather than typing them, and put the inverse on the left when you solve a system.
The full guide: Matrix operations and solving systems
See the full list of GDC guides for every calculator task.
Syllabus content covered
| Code | Syllabus content |
|---|---|
| AHL3.9 | Geometric transformations of points in two dimensions using matrices: reflections, horizontal and vertical stretches, enlargements, translations and rotations. Matrix transformations of the form . Compositions of the above transformations. Geometric interpretation of the determinant of a transformation matrix: area of image area of object. |
Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).
Quick questions
How do you apply a transformation matrix to a point?
Write the point as a column vector and multiply it on the left by the transformation matrix:
How do you find the matrix for a composite transformation?
Multiply the individual matrices in the order , where is the transformation applied first and is applied second. The matrix applied first goes on the right of the product.
How do you find the matrix of a transformation from where it sends the basis vectors?
The image of becomes the first column of the matrix and the image of becomes the second column.
Does the order of composing transformations matter?
Yes. Matrix multiplication is not commutative, so and generally give different combined transformations unless the two transformations happen to commute.
What is the matrix for an enlargement about the origin?
An enlargement with scale factor has matrix . For , the point maps to .
How do I find the image of a point after a composite transformation?
Either apply the transformations to the point one at a time in order, or multiply the point by the single matrix . For example, rotating by anticlockwise gives , and reflecting that in the -axis gives .
How do I include a translation with a matrix transformation?
Multiply by the matrix first, then add the translation vector: . For example, a anticlockwise rotation followed by a translation of maps to and then to .
How do I combine three transformations?
Write the matrices in reverse order of application. If is applied first, then , then , the single matrix is .
How can I tell an enlargement from a stretch by its matrix?
An enlargement has the same number in both diagonal positions with zeros elsewhere, so it scales every direction equally. A stretch has a in one diagonal position, so it scales only one direction.
How can I check that I multiplied in the right order?
Test the matrix on one point. With a rotation of anticlockwise followed by a reflection in the -axis, the point goes to and then to . That is twice the first column of , so the first column must be .
Ready to practise properly?
Practice questions on every section, marked instantly like the real exam.