Geometry & trigonometry · AI HL
Matrix and affine transformations
Represent rotations, reflections, stretches and translations, and track composition order and area changes.
Course focus: AI HL · First-assessment-2021 course. The sections distinguish the mathematical idea, the calculation and its interpretation.
Before you start: Coordinates, matrix products, determinants and angle units.
Build it from the beginning
HL contentA matrix transformation acts on the coordinates of a point; an affine transformation can then add a translation. Apply the matrix first when the formula has the form Ax+b. Track vertices to understand the effect on a whole shape.
A first walkthrough
Apply \(\begin{pmatrix}2&0\\0&1\end{pmatrix}\) to (3,4), then translate by (1,-2).
- The matrix doubles the first coordinate and keeps the second: (6,4).
- Add the translation to obtain (7,2).
- The order is matrix then translation; translating first would give a different point.
The foundations behind the method
Understand what the symbols mean
A transformation changes positions according to a rule. Matrices capture linear changes because the images of basis directions determine the image of every vector. Translations require an additional vector. This distinction explains why a 2 by 2 linear matrix always fixes the origin, whereas an affine rule may move it.
How the ideas connect
Composition joins coordinate journeys. The rightmost matrix acts first on a column vector, and undoing a journey reverses that order. The determinant checks what happens to signed area, while direct vertex images check locations. A correct area factor is useful evidence but does not establish that every vertex was transformed correctly.
Start with the idea
Build your understanding
Basis images
Two columns specify how the coordinate directions move, so they determine every transformed vector.
Linear plus translation
An affine map separates shape change from displacement; the translation moves all outputs equally.
Compare the approaches
Choose by the information in the question, rather than the formula you recognise first.
Vertex mapping
When it helpsUse it to construct or check the transformed figure.
Check before using itA sketch alone may conceal an incorrect order; calculate at least one labelled vertex.
Determinant check
When it helpsUse it for area scaling and orientation.
Check before using itDeterminant one does not guarantee that lengths or angles are preserved.
Your method plan
- Identify each action and its centre or translation vector.
- Compose the actions in the correct column-vector order.
- Check vertex images, area scale and reversibility.
Learn the methods
Learn step by step
1. Transform a position vector
A linear transformation sends \(\mathbf x\) to \(A\mathbf x\) and fixes the origin. Its matrix columns are the images of the two standard basis vectors. This gives a constructive method: transform (1,0) and (0,1), then place the outputs in columns. An affine transformation adds a translation vector, \(A\mathbf x+\mathbf b\), and need not fix the origin. A translation alone cannot be represented by multiplying a 2 by 2 matrix by a two-component position vector.
2. Read familiar transformations
A diagonal matrix scales horizontal and vertical coordinates independently. A negative factor also reverses direction. Reflection in the x-axis changes the y sign; reflection in y=x swaps coordinates. A counterclockwise rotation by theta has columns given by the rotated basis vectors. The trigonometric entries use the same angle unit consistently. State the centre and direction of a rotation: the standard matrix rotates about the origin, not an arbitrary point.
Counterclockwise rotation
Why this formula works
Rotating the unit horizontal vector gives cosine and sine as coordinates. Rotating the unit vertical vector gives negative sine and cosine. These two output vectors become the columns of the rotation matrix, so the formula follows from basis images rather than memorising four separate signs.
\(R_\theta=\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}\).
Quick example
At \(\theta=\pi/2\), \(R=\begin{pmatrix}0&-1\\1&0\end{pmatrix}\); it sends (2,1) to (−1,2).
3. Compose in the correct order
With column vectors, applying B first and A second gives AB. An input passes through the rightmost matrix first. Rotations about the origin can commute with some transformations, but general transformations do not. Test a simple point if the verbal order feels confusing. For affine maps, translations also change under later linear operations: applying a matrix after a translation transforms that translation vector as well as the original point.
Worked example: A stretch followed by a rotation
Apply a horizontal stretch factor 2, then a counterclockwise quarter-turn, to (1,2).
- First \(S(1,2)^T=(2,2)^T\), where S has diagonal entries 2 and 1.
- Rotate that output to (−2,2).
- The composite is RS, not SR. The product is \(\begin{pmatrix}0&-1\\2&0\end{pmatrix}\).
- Reversing the actions gives (−4,1), demonstrating that verbal order is mathematical information.
4. Area and orientation
The determinant’s magnitude is the factor multiplying areas. A negative determinant reverses orientation, as a reflection does. A determinant of zero collapses the plane into a lower-dimensional image. Area preservation does not imply length or angle preservation: a shear has determinant one but changes shapes. A stretch by 2 horizontally and 3 vertically multiplies area by 6, while individual lengths change according to direction.
Affine inverse and area scale
Why this formula works
Translation changes position but not area. The linear part changes a unit square into the parallelogram spanned by its columns; its signed area is the determinant. Inversion reverses the last translation before undoing the linear map, provided the determinant is nonzero.
\(\mathbf x=A^{-1}(\mathbf y-\mathbf b)\) \(\text{new area}=|\det A|\,\text{old area}\).
Quick example
For diagonal A with entries 2 and 3, a triangle of area 5 becomes area 30. A later translation leaves that area unchanged.
Worked example: Area and orientation under a reflection-stretch
A map sends (x,y) to (x,−3y). Describe the image of (2,1) and the area scale.
- The matrix is diagonal with entries 1 and −3.
- The point maps to (2,−3).
- Its determinant is −3, so area magnitudes multiply by 3 and orientation reverses.
- Horizontal lengths are unchanged while vertical ones triple; the area multiplier is not a common length multiplier.
5. Reverse a transformation
For an invertible affine map \(\mathbf y=A\mathbf x+\mathbf b\), subtract the translation first, then apply \(A^{-1}\): \(\mathbf x=A^{-1}(\mathbf y-\mathbf b)\). Reversing a composite also reverses the order, because the last action must be undone first. If the determinant is zero, a unique inverse does not exist; many original points may share one image. Use this to distinguish a transformation of a figure from a one-to-one repositioning.
Worked example: Undo a translated stretch
An affine map is \((x,y)\mapsto(2x+3,3y-1)\). Find the preimage of (7,5).
- Subtract the translation (3,−1) to get (4,6).
- Apply the inverse stretch, dividing coordinates by 2 and 3, to get (2,2).
- Substitute: (2·2+3,3·2−1)=(7,5).
- Dividing the output first and then subtracting the unchanged translation would undo actions in the wrong order.
6. Connect algebra to a sketch
Plot original and transformed vertices with labels and join the corresponding sides. Check origin behaviour, parallel edges, area and expected orientation. Draw arrows for a translation rather than describing it as a stretch. If a figure is rotated about a point c, translate c to the origin, rotate, then translate back. A perspective or schematic sketch can illustrate order but should not be used to read an exact angle unless the coordinates or scales justify it.
A horizontal stretch doubles the area
- Original triangle
- Horizontal stretch ×2
Quick formula reference
For revision once you understand the methods above. Check the conditions before using a formula.
Counterclockwise rotation
\(R_\theta=\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}\).
Return to the explanation →Affine inverse and area scale
\(\mathbf x=A^{-1}(\mathbf y-\mathbf b)\), \(\text{new area}=|\det A|\,\text{old area}\).
Return to the explanation →Learn to diagnose an error
Spot the mistake
The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.
A matrix with determinant 1 preserves every length and angle.
Explain and repair the mistake
The shear \(\begin{pmatrix}1&1\\0&1\end{pmatrix}\) has determinant 1 but sends (0,1) to (1,1), changing that vector’s length from 1 to \(\sqrt2\). It preserves area, not all distances.
Connect and apply
Put the ideas together
A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.
Rotate about a point away from the origin
Rotate (3,1) a quarter-turn counterclockwise about (1,1).
- Subtract the centre to express the point as displacement (2,0).
- Rotate the displacement to (0,2).
- Add the centre back, giving (1,3).
- The original and final distances from the centre are both 2, verifying the rotation.
Why does direct multiplication of (3,1) by the standard rotation matrix fail?
Check your reasoning
That matrix rotates about the origin. Subtracting and restoring the chosen centre is necessary; the appropriate affine transformation contains a translation as well as the rotation.
Common mistakes and how to avoid them
- The shear \(\begin{pmatrix}1&1\\0&1\end{pmatrix}\) has determinant 1 but sends (0,1) to (1,1), changing that vector’s length from 1 to \(\sqrt2\). It preserves area, not all distances.
- A sketch alone may conceal an incorrect order; calculate at least one labelled vertex.
- Determinant one does not guarantee that lengths or angles are preserved.
Practise independently
Build confidence, then apply it
Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.
- 1
Build confidence
HL extensionApply the same transformation to (0,0).
Need a starting point?
The matrix leaves the zero vector unchanged.
Show the worked solution
- After the matrix the point is still (0,0).
- The translation sends it to (1,-2).
- 2
Apply and explain
HL extensionWhat happens to the area of a triangle under this transformation?
Need a starting point?
Use the matrix determinant; translation does not affect area.
Show the worked solution
- The determinant is 2.
- Area doubles, while the later translation preserves it.
- 3
Check your understanding
A planar linear map has determinant −2. How does it change area?
Show the worked solution
The area magnitude is multiplied by 2 and orientation reverses. It does not follow that every length doubles; the determinant controls area rather than a universal length scale.
- 4
Use the method
What matrix reflects points in the y-axis?
Show the worked solution
\(\begin{pmatrix}-1&0\\0&1\end{pmatrix}\), because x changes sign and y stays fixed. The determinant is −1, so areas keep their magnitude while orientation reverses.
Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.
Using these methods in exam questions
AI Paper 1
GDC requiredShort-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.
AI Paper 2
GDC requiredExtended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.
For this topic: Sketch and label the relevant triangle or curve. Show which angle and radius a formula uses, check degree or radian mode, and give length, area and volume in the correct units.
Paper 3: build a connected argument
Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.
- Identify what the first part establishes and record the conditions under which it holds.
- When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
- Check the conclusion against an earlier numerical case and explain its meaning or limitation.
For the first-assessment-2021 courses. IB assessment reference ↗
Find a specific method or formula
Now practise the method
If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.
Practise this subtopic →Want a broader practice session? Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →
Original Arc Practice teaching notes for Maths AI. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.