IB Diploma Mathematics AI · Geometry and trigonometry
Matrix transformations (HL)
1Matrices as transformations
A $2 \times 2$ matrix moves every point in the plane. Write the point as a column vector and multiply:
$\begin{pmatrix}a & b\\c & d\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix} = \begin{pmatrix}ax + by\\cx + dy\end{pmatrix}$
- The origin never moves under a matrix alone.
- A quick way to find or read a matrix: the first column is where $(1, 0)$ goes, and the second column is where $(0, 1)$ goes.
- A translation cannot be done by a $2 \times 2$ matrix. Add a vector instead: $\mathbf{x}' = A\mathbf{x} + \mathbf{b}$.
Finding a matrix from two images
- A transformation sends $(1, 0)$ to $(3, 1)$ and $(0, 1)$ to $(1, 2)$.
- The matrix is $\begin{pmatrix}3 & 1\\1 & 2\end{pmatrix}$.
- The point $(2, 1)$ goes to $(3 \times 2 + 1,\ 2 + 2) = (7, 4)$.
Check yourself
A matrix sends (1, 0) to (0, 1) and (0, 1) to (−1, 0). What is its first column?
Show the answer
(0, 1)
The first column is the image of (1, 0).
2The standard transformations
These are given in the formula booklet; learn how to recognise them.
- Rotation anticlockwise by $\theta$ about the origin: $\begin{pmatrix}\cos\theta & -\sin\theta\\\sin\theta & \cos\theta\end{pmatrix}$
- Reflection in the line $y = (\tan\theta)x$: $\begin{pmatrix}\cos 2\theta & \sin 2\theta\\\sin 2\theta & -\cos 2\theta\end{pmatrix}$
- Enlargement, scale factor $k$, centre the origin: $\begin{pmatrix}k & 0\\0 & k\end{pmatrix}$
- Horizontal stretch by factor $k$: $\begin{pmatrix}k & 0\\0 & 1\end{pmatrix}$. Vertical stretch: $\begin{pmatrix}1 & 0\\0 & k\end{pmatrix}$.
a rotation of 90° anticlockwise is $\begin{pmatrix}0 & -1\\1 & 0\end{pmatrix}$, and sends $(3, 1)$ to $(-1, 3)$. Reflection in $y = x$ ($\theta = 45°$) is $\begin{pmatrix}0 & 1\\1 & 0\end{pmatrix}$, and sends $(3, 1)$ to $(1, 3)$.
Check yourself
Which transformation does the matrix with rows (1, 0) and (0, −1) represent?
Show the answer
Reflection in the x-axis
(x, y) goes to (x, −y).
3Composite transformations
To do transformation $A$ and then $B$, use the matrix $BA$. The first transformation sits on the right, next to the point, because it acts first.
- Matrix multiplication is not commutative, so $BA$ and $AB$ are usually different transformations.
- Doing $A$ $n$ times is $A^n$.
- The inverse matrix $A^{-1}$ undoes $A$.
Rotate, then reflect
- $A$ = rotation 90° anticlockwise $= \begin{pmatrix}0 & -1\\1 & 0\end{pmatrix}$. $B$ = reflection in the $x$-axis $= \begin{pmatrix}1 & 0\\0 & -1\end{pmatrix}$.
- $BA = \begin{pmatrix}0 & -1\\-1 & 0\end{pmatrix}$.
- Check with $(3, 1)$: rotate to $(-1, 3)$, reflect to $(-1, -3)$. And $BA$ sends $(3, 1)$ to $(-1, -3)$ ✓.
- $BA$ is a single reflection, in the line $y = -x$.
Check yourself
Transformation P is applied first, then Q. Which matrix represents the combination?
Show the answer
QP
The first transformation sits next to the point.
4The determinant and area
The determinant $\det\begin{pmatrix}a & b\\c & d\end{pmatrix} = ad - bc$ is the area scale factor.
- Image area $= |\det A| \times$ original area.
- A negative determinant means the shape is also flipped (the orientation is reversed), as in a reflection.
- A determinant of 0 squashes everything onto a line, so the transformation cannot be undone.
- For a composite, $\det(BA) = \det B \times \det A$.
The unit square becomes a parallelogram five times its area
Area of an image
- $A = \begin{pmatrix}3 & 1\\1 & 2\end{pmatrix}$, so $\det A = 6 - 1 = 5$.
- A triangle of area 4 becomes a triangle of area $5 \times 4 = 20$.
- The unit square becomes a parallelogram with corners $(0, 0), (3, 1), (4, 3), (1, 2)$ and area 5.
Check yourself
A shape of area 6 is transformed by a matrix with determinant −3. What is the area of the image?
Show the answer
18
Area uses |det|; the minus sign only means a flip.
5Transformations in context
Matrices model real motions, for example in computer graphics and robotics.
- A rotation matrix has determinant $\cos^2\theta + \sin^2\theta = 1$, so area is kept.
- A reflection matrix has determinant $-1$.
- A combined move such as "rotate, then shift" is $\mathbf{x}' = A\mathbf{x} + \mathbf{b}$.
- Repeated affine moves can be iterated with technology: $\mathbf{x}_{n+1} = A\mathbf{x}_n + \mathbf{b}$.
Rotate then translate
- Rotate $(2, 0)$ by 90° anticlockwise: $(0, 2)$.
- Then translate by $\begin{pmatrix}5\\1\end{pmatrix}$: $(5, 3)$.
Check yourself
What is the determinant of any rotation matrix?
Show the answer
1
cos²θ + sin²θ = 1.
6Rotations and reflections as matrices
Standard matrices in 2D:
- Rotation by $\theta$ anticlockwise about the origin: $\begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}$.
- Reflection in the $x$-axis: $\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$.
- Reflection in $y = x$: $\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$.
- Enlargement by scale factor $k$: $\begin{pmatrix} k & 0 \\ 0 & k \end{pmatrix}$.
Rotate $(3, 1)$ by 90° anticlockwise
- Matrix: $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$.
- Result: $\begin{pmatrix} 0(3) - 1(1) \\ 1(3) + 0(1) \end{pmatrix} = \begin{pmatrix} -1 \\ 3 \end{pmatrix}$.
Check yourself
What does $\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$ represent?
Show the answer
Reflection in the line $y = x$
Swaps x and y.
7Area scale factor
The determinant gives the area scale factor of a transformation.
Worked example
- Matrix $\begin{pmatrix} 3 & 1 \\ 2 & 2 \end{pmatrix}$ has determinant $6 - 2 = 4$.
- A shape of area 5 becomes area $5 \times 4 = 20$.
- A negative determinant means the shape's orientation is reversed (as in a reflection); use its absolute value for area.
Check yourself
A transformation has determinant $-3$. A shape of area 4 becomes what area?
Show the answer
12
Absolute value.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera