Vector equation of a line
Lines in 2D and 3D in vector, parametric and Cartesian form; checking whether a point lies on a line; the angle between lines; motion along a line with constant velocity; and the shortest distance from a point to a line.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Write a line as , in parametric form and in Cartesian formAHL 3.14
- Convert between the three formsAHL 3.14
- Decide whether a point lies on a lineAHL 3.14
- Find the angle between two linesAHL 3.14
- Model motion with : position, velocity, speed, closest approachAHL 3.15
- Find the shortest distance from a point to a lineAHL 3.14
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
To describe a line you need one point on it and a direction. Start at the point and walk any multiple of the direction : every point you can reach, , is on the line. If is time and is a velocity, the same equation describes a moving object.
2.1 Three forms of a line
Vector form, parametric form and Cartesian form. is the direction vector.
A line through two points and has direction . The equation of a line is not unique: any point on it and any multiple of the direction will do.
2.2 Is a point on the line?
2.3 The angle between two lines
The angle between two lines is the angle between their direction vectors. Take the acute angle, using .
2.4 Motion along a line
An object moving with constant velocity from position has position at time . Its speed is . To find the closest approach to a fixed point , make the vector from to the object perpendicular to .
2.5 Shortest distance from a point to a line
The shortest distance from to a line is along the perpendicular. Let be a general point on the line (in terms of ), set to find , then find .
For closest approach on Paper 2, write as a function of and find its minimum on a Graphs page. This avoids the algebra but still needs the expression written down.
3Explore it
The line is . Move to walk along it. The green point is the foot of the perpendicular from : the closest point on the line.
4Common mistakes & exam tips
Common mistakes
- Reading the direction from a Cartesian equation without first making each coefficient of , , equal to 1.
- Using a different value of for each component when checking a point.
- Giving an obtuse angle between lines when the acute angle is wanted.
- Confusing position and velocity in motion problems: speed is , not .
- Using the same parameter letter for two different lines.
Exam tips
- Use different parameters (, ) for different lines from the start.
- If a Cartesian equation is missing a variable (e.g. ), that component of the direction is 0.
- For closest approach, the condition " is perpendicular to the direction" earns the method mark.
- Check your foot of perpendicular by substituting it back into the line equation.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.
The line passes through and .
- (a)Find a vector equation of .[2]
- (b)Show that lies on .[2]
- (c)Write down a Cartesian equation of .[2]
| (a) | |
| A1 | |
| A1 | |
| (b) | |
| from one component | M1 |
| checks the other two components | A1 |
| (c) | |
| A2 | |
Two boats move with constant velocities. At time hours their positions, in km, are and .
- (a)Find the speed of boat .[2]
- (b)Show that the distance between the boats at time is .[2]
- (c)Find the minimum distance between the boats and the time at which it occurs.[4]
| (a) | |
| M1 | |
| 5.10 km h | A1 |
| (b) | |
| M1A1 | |
| (c) | |
| minimise or | M1 |
| hours | A1 |
| 1.86 km | A2 |
The line has equation and the point has coordinates .
- (a)Find the coordinates of the point on closest to .[4]
- (b)Hence find the shortest distance from to .[2]
| (a) | |
| A1 | |
| M1 | |
| A1 | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2025 · TZ2 · Paper 1 | Q2 | Cartesian to vector form, and intersecting lines | ★★ |
| Nov 2025 · TZ3 · Paper 1 | Q10 | Vector equations of two lines | ★★ |
| Nov 2024 · Paper 2 | Q11 | Minimum distance from the origin to a line | ★★★ |
| May 2022 · TZ2 · Paper 2 | Q11 | Two aircraft moving along lines: closest approach | ★★★ |
