IB Mathematics: Analysis and Approaches · Topic 3 · Geometry and trigonometry
3.14 Vector equations of lines
Write the vector equation of a line in three dimensions, interpret its position and direction vectors, and find points on it.
1/5A line needs a known point and a direction
Part 1 of 5: A line needs a known point and a direction
Imagine walking in a straight line across a field. To describe the path, you need to know where you start and which way you head. A line in space is described in the same way.
A position vector fixes one known point. It runs from the origin to that point and has the same components as the point’s coordinates. Call the position vector of a point on the line .
A direction vector gives the line’s tilt. Call it . Any non-zero multiple of points along the same line, so a line has many direction vectors.
Key terms · tap one for its definition
position vector
The position vector of a point is the vector from the origin to that point.
direction vector
A direction vector of a line is any non-zero vector parallel to that line.
Part 2 of 5: The vector equation combines the point and the direction
Now join the two pieces. Start at the known point, then move some distance along the direction. Moving times from reaches every point of the line.
This gives , where is the position vector of a general point on the line. The number is a parameter. It can take any real value.
Reading off the components gives three equations: , and . Each value of gives one point . One free number therefore describes a whole line.
Worked example
Writing a line from a point and a direction
- Take the position vector of the point: .
- Use with the given direction.
- Read off the components: , , .
Answer: , .
Key term
parameter
A parameter is a variable, here , whose real value selects one particular point on the line.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 5: Two points on a line fix its equation
Often a question gives two points instead of a direction. The vector from one point to the other lies along the line. For points and , it is , found as the position vector of minus that of .
So use as the known point and as the direction. The equation becomes . The vector points the opposite way, but it is also a valid direction vector.
Worked example
Line through two points
- Find the direction: .
- Use as the known point.
Answer: .
Part 4 of 5: Substituting a value of the parameter gives a point
With an equation ready, you can generate points on the line. Each value of gives exactly one point. When , you get the known point itself.
Testing a point is the reverse process. In one direction you choose and find a point. In the other, you choose a point and look for .
Positive and negative values of move forwards or backwards along the direction. To test a given point, solve for from one coordinate. Then check that the other two coordinates agree.
Worked example
Finding and testing points
- Substitute : .
- For , use : , so .
- Check : . This agrees.
- Check : . This also agrees.
Answer: The point for is . The point lies on the line, at .

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 5 of 5: The parameter can represent time along a path
The equation also describes motion. Let the parameter be time in seconds. Then gives the position in metres of a moving object, and is its velocity in .
The speed is the length . Two lines are parallel when their direction vectors are scalar multiples of each other.
At the object is at the known point. Increasing moves it forwards along the line, and negative values give earlier positions. Velocity is a vector, while speed is a single number.
Worked example
Speed and position of a drone
- Speed .
- Position at : .
Answer: The speed is and the position is metres.
Check your recall[14 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.State[2 marks]
State the general vector equation of a line through the point with position vector and with direction vector , and name the parameter.
Show mark schemeHide mark scheme
Model answer
, where is a real parameter.
- 1 mark for writing
- 1 mark for identifying as a real-valued parameter
- 2.Determine[3 marks]
Determine a vector equation of the line through and .
Show mark schemeHide mark scheme
Model answer
, so .
- 1 mark for finding the direction vector
- 1 mark for obtaining
- 1 mark for writing a correct equation using a known point
- 3.Determine[2 marks]
A line has equation . Determine the point where .
Show mark schemeHide mark scheme
Model answer
, so the point is .
- 1 mark for substituting
- 1 mark for obtaining
- 4.Determine[3 marks]
Determine whether the point lies on the line .
Show mark schemeHide mark scheme
Model answer
From , gives . The value is -3, which agrees. The value is , not 11, so the point is not on the line.
- 1 mark for finding from one coordinate
- 1 mark for checking the other coordinates
- 1 mark for concluding that the point is not on the line because disagrees
- 5.Distinguish[2 marks]
Distinguish between a position vector and a direction vector.
Show mark schemeHide mark scheme
Model answer
A position vector runs from the origin to a point. A direction vector is any non-zero vector parallel to the line and has no fixed start.
- 1 mark for stating that a position vector runs from the origin to a point
- 1 mark for stating that a direction vector is parallel to the line
- 6.Explain[2 marks]
Explain why a line has more than one vector equation.
Show mark schemeHide mark scheme
Model answer
Any point on the line can be the known point. Any non-zero multiple of the direction vector can also be used, so many equations describe the same line.
- 1 mark for stating that any point on the line can be used as the position vector
- 1 mark for stating that any non-zero multiple of the direction vector can be used

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumIdentify[2 marks]
Show answer and explanation
Answer: A · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation