Vector Transformations 3
Vector Transformations of Straight Lines
IB Mathematics HL • Vectors and Matrices • Transformations • Straight Lines and Composite Matrices
Lesson Overview
This lesson focuses on transforming straight lines using matrices, and on expressing a single matrix as a composition of simpler transformations.
In this question, Nadia designs motion paths for a two-dimensional video game. She transforms a straight-line path using a matrix, then analyses how the same matrix can be built from a rotation, an enlargement, and a reflection.
⭐ Key Concepts
- A vector equation of a line can be written in the form
![]()
- This can be rewritten as parametric equations:
![]()
- A matrix transformation sends every point on a line to a new point on its image line.
- A rotation through angle
anticlockwise about the origin is represented by
![]()
- An enlargement with scale factor
, centre
, is represented by
![]()
- A reflection in the line
, where
, is represented by
![]()
📘 Clear IB-Style Explanation
When a matrix transforms a straight line, the easiest approach is usually to apply the matrix directly to the vector equation of the line.
For composite transformations, order matters. If a transformation is made up of a rotation, then an enlargement, then a reflection, the matrix product must respect that order.
In IB questions, once you find the matrix for each simpler transformation, you often multiply them together and compare the result with the given matrix to determine an unknown angle or parameter.
📌 Worked Example — Transforming a Straight Line
Nadia designs her game to take place in two dimensions, relative to an origin
. In one scene, an object travels on a straight line
with vector equation
![]()
(a) Write down
in the form
and
, where
.
Nadia uses the matrix
![]()
to transform
into a new straight line
.
(b) Find the vector equation of
.
Nadia knows that the transformation given by matrix
is made up of the following three separate transformations, in the order listed:
- a rotation of
, anticlockwise about the origin
, - an enlargement of scale factor
, centred at
, - a reflection in the straight line
, where
,
.
(c.i) Write down the matrix that represents the rotation.
(c.ii) Write down the matrix that represents the enlargement.
(d) The matrix
represents the reflection. Write down
in terms of
.
Given that
![]()
(e.i) use your answers to part (c) to find matrix
.
(e.ii) Hence, find the value of
.
Solution
(a) Write
in parametric form
From
![]()
we get
![]()
📊 Marks: A1
(b) Find the vector equation of ![]()
Apply the matrix
to the vector equation of
:
![]()
First transform the fixed vector:
![]()
Then transform the direction vector:
![]()
Therefore
![]()
📊 Marks: M1 A1
(c.i) Matrix for the rotation
A rotation of
anticlockwise about the origin is represented by
![Rendered by QuickLaTeX.com \[\begin{pmatrix} \cos\frac{\pi}{4} & -\sin\frac{\pi}{4} \\ \sin\frac{\pi}{4} & \cos\frac{\pi}{4} \end{pmatrix} = \begin{pmatrix} \frac{1}{\sqrt2} & -\frac{1}{\sqrt2} \\ \frac{1}{\sqrt2} & \frac{1}{\sqrt2} \end{pmatrix}\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-d3b6313847eaf14987f6b0193431c0a8_l3.png?resize=287%2C60&ssl=1)
Equivalent form:
![Rendered by QuickLaTeX.com \[\begin{pmatrix} \frac12\sqrt2 & -\frac12\sqrt2 \\ \frac12\sqrt2 & \frac12\sqrt2 \end{pmatrix}\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-821bdd332959f808f8020505137b928c_l3.png?resize=133%2C50&ssl=1)
📊 Marks: A1
(c.ii) Matrix for the enlargement
An enlargement of scale factor
, centred at
, is represented by
![Rendered by QuickLaTeX.com \[\begin{pmatrix} \frac52 & 0 \\ 0 & \frac52 \end{pmatrix}\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-e9ad68ce9b1aa3cb335f901d9b4faaee_l3.png?resize=65%2C50&ssl=1)
📊 Marks: A1
(d) Matrix
for the reflection
Reflection in the line
, where
, is represented by
![]()
📊 Marks: A1
(e.i) Find matrix ![]()
The first two transformations are the enlargement and the rotation, so
![Rendered by QuickLaTeX.com \[X= \begin{pmatrix} \frac52 & 0 \\ 0 & \frac52 \end{pmatrix} \begin{pmatrix} \cos\frac{\pi}{4} & -\sin\frac{\pi}{4} \\ \sin\frac{\pi}{4} & \cos\frac{\pi}{4} \end{pmatrix}\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-ae936a84bf21c67a5605859a10ea1e15_l3.png?resize=269%2C50&ssl=1)
This gives
![Rendered by QuickLaTeX.com \[X= \begin{pmatrix} \frac52 & 0 \\ 0 & \frac52 \end{pmatrix} \begin{pmatrix} \frac{1}{\sqrt2} & -\frac{1}{\sqrt2} \\ \frac{1}{\sqrt2} & \frac{1}{\sqrt2} \end{pmatrix} = \begin{pmatrix} \frac{5}{\sqrt2} & -\frac{5}{\sqrt2} \\ \frac{5}{\sqrt2} & \frac{5}{\sqrt2} \end{pmatrix}\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-604d0b1d5e8cb2abaa7a2c3c00ca55e4_l3.png?resize=375%2C60&ssl=1)
Using the form given in the mark scheme:
![]()
📊 Marks: M1 A1
(e.ii) Find ![]()
Since
![]()
we obtain
![]()
Multiplying by the inverse of
gives
![Rendered by QuickLaTeX.com \[\begin{pmatrix} \cos 2\alpha & \sin 2\alpha \\ \sin 2\alpha & -\cos 2\alpha \end{pmatrix} = \begin{pmatrix} -\frac35 & \frac45 \\ \frac45 & \frac35 \end{pmatrix}\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-19424b6ce6375e3cbc55f4b5e0b13ac4_l3.png?resize=279%2C50&ssl=1)
So
![]()
Hence
![]()
and therefore
![]()
In radians,
![]()
📊 Marks: M1 A1 A1
⚠ Common Mistakes
- Reading the direction vector incorrectly from the vector equation of the line.
- Applying the matrix only to the direction vector and forgetting to transform the position vector.
- Using the wrong order when multiplying matrices for composite transformations.
- Confusing the reflection matrix with the rotation matrix.
- Forgetting that the reflection matrix involves
, not
.
📘 IB Exam Tips
- When transforming a line, apply the matrix to both the fixed vector and the direction vector.
- Write composite transformations in the stated order before multiplying.
- Keep exact matrix forms until the final step whenever possible.
- Compare matrices entry by entry when solving for an unknown angle.
- Check that your final angle lies in the stated interval.
