Write the equation of a line in vector, parametric and Cartesian form, check whether points lie on it, find the angle between two lines and model straight-line motion with r = a + tv.
Each is in the Maths AA glossary, with every other term in the subject.
The equations
With a free account, Augment remembers where you stopped and what you have practiced.
A non-zero vector parallel to a line, written in . Any non-zero multiple of it is also a direction vector of the same line.
A variable such as or whose value picks out one point of a line or curve. Each real value of the parameter gives exactly one point.
An equation giving the position vector of every point on a line, where is the position vector of a known point, a direction vector and a real parameter.
In two dimensions a straight line has an equation such as , built from its gradient. In three dimensions a single gradient cannot describe a direction, because a line can tilt in two independent ways. Vectors solve the problem: a line is fixed completely by one point on it and a vector giving its direction.
This description works the same way in two and three dimensions, and it has a natural reading as motion: start at a point and move steadily in a fixed direction. Straight-line paths of ships, aircraft, light rays and robot arms are all modelled in this way.
Let be a fixed point on a line, with position vector , and let be a non-zero vector parallel to the line. A point , with position vector , lies on the line exactly when the displacement

The vector equation of a line is a rule for producing points. Each real value of the parameter gives the position vector of one point: gives itself, positive values give points on one side of in the direction of , and negative values give points on the other side. The direction vector fixes which way the line points, and
The letter always stands for the position vector of a general point on the line. Writing the answer as "" is part of the equation; an expression such as
A line through two points and has direction
With this equation, gives , gives , and values of between 0 and 1 give the points of the line segment
A line has infinitely many vector equations. Any point on the line can play the role of , and any non-zero multiple of is also a direction vector. The line through and in the last example could equally be written
To decide whether two equations describe the same line, check two things: the direction vectors must be parallel, and a point of one line must lie on the other.
Writing the vector equation one component at a time gives three ordinary equations. If the line passes through with direction vector
These are the parametric equations of the line. They are the most convenient form for substituting into other equations, for example to find where a line crosses a coordinate plane or another line.
Making the subject of each parametric equation and setting the results equal removes the parameter. When , and are all non-zero this gives the Cartesian equations of the line.
The Cartesian equations are really two equations (the first fraction equals the second, and the second equals the third), because a line in space needs two conditions to pin it down. The point can be read from the numerators and the direction from the denominators, but only once each numerator has the form , ,
If one component of the direction vector is zero, that coordinate never changes along the line. For the line through with direction
Form | Line through with direction |
|---|
Everything works in two dimensions with two components instead of three. The line
A direction vector with corresponds to a gradient of
A point lies on a line if one value of the parameter produces it. Set the general point of the line equal to the given point, find from one component, then check that the same works in the remaining components. If any component fails, the point is not on the line.
On the -plane every point has , on the -plane , and on the
The angle between two lines is defined as the angle between their direction vectors. It is found with the scalar product, exactly as for two vectors. Since a line has no preferred direction (both and are direction vectors of it), two lines make two angles, and , and the angle between the lines is taken to be the acute one.

Taking the modulus of the scalar product makes the cosine non-negative, which always gives the acute angle (or a right angle):
The same formula applies whether or not the lines meet. Two lines in space can miss each other completely (skew lines, 3.15), but they still have directions, and so still have an angle between them.
Two lines are perpendicular when their direction vectors have a zero scalar product. For example, lines with directions
An object moving with constant velocity travels in a straight line. If its position vector at time is , then after time it has moved , and its position vector is
This is the vector equation of a line with the time as the parameter. The direction vector is the velocity, and its magnitude is the speed. Units follow the situation: with positions in kilometres and time in hours, is in .
Unlike a general line, the parameter now has a physical meaning, so only some values make sense. Times before the motion began, or after it ends, are outside the model. The model also assumes the velocity never changes, which is a simplification: a real ship is pushed by currents and a real aircraft turns and climbs.
When two positions and the times at which they are reached are known, the velocity is the displacement divided by the time taken. For example, an object at at and at at
so its speed is and its position is
The distance between a moving object and a fixed point changes with time. It is smallest when the line from the fixed point to the object is perpendicular to the direction of motion, since a perpendicular is the shortest route from a point to a line. There are two equivalent ways to find this moment:
write the square of the distance as a quadratic in and find its minimum (by completing the square, or with a GDC or calculus);
use the scalar product: at closest approach, , where is the position vector of the fixed point.
Two objects collide only if they are at the same place at the same time. Their paths may cross without a collision, because each object can pass through the crossing point at a different time. For this reason the two position vectors are compared using the same value of , which is different from finding where two lines meet (3.15), where each line has its own parameter.
The second question models two aircraft. It is a calculator question, and the GDC is used to minimise a distance that would be slow to minimise by hand.
I can write a vector equation of a line through a point with a given direction, or through two points.
I can explain why a line has many vector equations, and decide whether two equations represent the same line.
I can convert between vector, parametric and Cartesian forms, including Cartesian equations with coefficients and minus signs.
I can show whether a point lies on a line by checking every component with one value of the parameter.
I can find the acute angle between two lines using only their direction vectors.
I can find position, velocity and speed from .
67 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
A drone is launched from a point on level ground. Points are given by coordinates relative to , where the -axis is vertical and all distances are in metres.
The drone flies in a straight line from to the point , then in a straight line from to the point .
Find and
The points , and
The line passes through the points and .
Find a vector equation of
One of 30 short multiple-choice questions on 3.14. Pick an answer to see why it's right or wrong.
A boat's position after hours is km. What is its speed?
The entries of the mathematics: analysis and approaches formula booklet that 3.14 uses. Each opens in the explained booklet.
The vector is a direction vector of the line, and is a parameter.
(b) Find the points on the line given by and .
(c) Write down a vector equation of the line through parallel to the -axis.
(a) Use the position vector of as and the given vector as .
(b) Substitute each value of .
The points are and .
(c) The -axis has direction .
The midpoint is halfway from to , so take .
The midpoint is , which agrees with averaging the coordinates of and .
Directions: , so the direction vectors are parallel.
Common point: check whether lies on the first line. The -component gives
With , the -component is and the -component is
Two parallel lines with a common point are the same line, so the equations represent the same line.
Each fraction equals the parameter .
Most useful for |
|---|
Vector | Reading the point and direction; angles; motion |
Parametric | , , | Substituting into other equations |
Cartesian | A compact form with no parameter |
(b) Find a vector equation of the line .
(a) Read off one component at a time.
Make the subject of each equation and set the results equal.
(b) First rewrite each fraction so that , and have coefficient 1 in the numerator.
So the line passes through with direction
Check: with the point is , and
(a) Determine whether the points and lie on .
(b) The point lies on . Find and .
(a) For , the -component gives
Check the other components with : and . Both match, so lies on .
For , the -component gives , so . Then
(b) The -coordinate is the one that is known, so use it to find .
Use only the direction vectors; the position vectors play no part in the angle.
Without the modulus, the cosine would be negative and give , the obtuse angle between the lines.
(a) Write down the boat's initial position and its velocity.
(b) Find its speed.
(c) Find its position after 2 hours and its distance from the harbour at that time.
(d) Find when the boat is due east of the harbour.
(a) At the boat is at , which is 2 km east and 1 km south of the harbour. The velocity is the vector multiplied by : .
(b) Speed is the magnitude of the velocity:
(c) Substitute .
The distance from the harbour is
(d) Due east of the harbour means the northward component is .
After a quarter of an hour (15 minutes), the boat is at , due east of the harbour.
The vector from the lighthouse to the ship is
At closest approach this vector is perpendicular to the velocity.
The ship is closest after 1.45 hours (1 hour 27 minutes). Its position is then , and

Check with the quadratic method: the squared distance is
(a) Show that the paths of the two boats cross at .
(b) Determine whether the boats collide.
(a) Boat always has . Boat has when , so , and then . So 's path passes through . Boat reaches when , at , so 's path also passes through , and the paths cross there.
(b) is at at (3 pm), but is there at
(a) Find a vector equation of . [2 marks]
(b) Write down the Cartesian equations of . [2 marks]
(c) Show that the point lies on . [2 marks]
(d) The line has equation . Find the cosine of the acute angle between and . [3 marks]
(a) Direction , through :
(b) Point from the numerators, direction from the denominators.
(c) Set the general point equal to . The -component gives , so . Then
(d) Use the direction vectors and the modulus of their scalar product.
(a) Find the speed of aircraft in . [2 marks]
(b) Find the acute angle between the flight paths. [3 marks]
(c) Show that the aircraft do not collide. [3 marks]
(d) Find the minimum distance between the aircraft and the time at which it occurs. [3 marks]
(a) , which is .
(b) Use the velocities as direction vectors.
(c) To collide, the aircraft must be at the same point at the same time . Equate the -components:
At ,
(d) The vector between them is
Graph on the GDC and find its minimum: km at minutes (about 12:04:40).
I can find the time and distance of closest approach of a moving object to a fixed point.
I can decide whether two moving objects collide, using the same time in both equations.
2 marks
A1
Find the total distance flown by the drone from to .
3 marks
attempt to find the magnitude of either vector (M1)
, (A1)
total m A1
Find the straight-line distance from to .
2 marks
(M1)
m A1
Find a unit vector in the direction of .
1 mark
A1
On the second stage of its flight the drone flies from towards at a constant speed of m s. Find the coordinates of the drone seconds after it leaves .
3 marks
distance travelled m (A1)
The top of a mast is at the point . Find the length of time for which the drone is within metres of during its flight from to .
4 marks
position after seconds is
Find and .
2 marks
Show that .
2 marks
ABCD is a rectangle. Find the coordinates of D.
2 marks
Find the cosine of the acute angle between the diagonals [AC] and [BD].
4 marks
The point P lies on [AC] such that [BP] is perpendicular to [AC].
Find the coordinates of P.
4 marks
Find the exact length of [BP].
2 marks
2 marks
Determine whether the point lies on .
2 marks
A1
(M1)
, (both less than ) (A1)
time s A1
Note: Accept an equation in written as for the second (M1).