Starting at the point a and adding any multiple of the direction b moves you along the line. Different values of λ give different points. In two dimensions this carries the same information as y = mx + c, with the gradient hidden in the direction vector.
To find the line through two points, use one as a and take the direction to be the vector between the points. Two lines are parallel when their direction vectors are multiples of each other.
You can convert to Cartesian form by eliminating λ, and use the line to find where it meets a plane (see intersection of a line and a plane).
What is it used for?
A vector equation describes every point of a line with one formula. It works in two or three dimensions, where a single y = mx + c equation is not enough.
Describing the path of a moving object such as an aircraft or a drone.
Finding where two paths cross (see skew lines for paths that do not).
Writing the line through two points for later work with planes.
How to use vector equation of a line
Choose a point on the line as a.
Find a direction vector b (subtract two points if needed).
Write r=a+λb.
Test a point by solving for λ in each component.
Graph
Each value of λ moves the same distance along the direction vector (2, 1), so equal steps in λ give equally spaced points.
Worked examples
These examples are worked by hand, step by step, so you can compare your own working.
Example 1: a point at λ = 2
The line r=(1,2,3)+λ(2,−1,4). Find the point with λ=2.
Worked example
Answer
(5,0,11)
Substitute λ = 2
(1+4,2−2,3+8)
Example 2: a line through two points
Find a vector equation of the line through P(1,0,2) and Q(3,4,−2), and check that R(5,8,−6) is on it.
Worked example
Answer
r=(1,0,2)+λ(2,4,−4)
Direction PQ
(2,4,−4)
Equation
r=(1,0,2)+λ(2,4,−4)
R is at λ = 2
(1+4,0+8,2−8)=(5,8,−6)
Example 3: is a point on the line?
Does (4,7,9) lie on r=(1,1,0)+λ(1,2,3)?
Worked exampleAnswer checked
Answer
yes, at λ=3
x-component
1+λ=4⇒λ=3
Check y and z
1+2(3)=7,0+3(3)=9
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
r = (1, 2, 3) + λ(2, −1, 4), λ = 2
x
5.
same
y
0.
same
z
11.
direction (2, −1, 4)
|b|
4.5826.
Word problems
r = a + λb: a is a point on the line, b a direction vector and λ a real parameter. Each value of λ gives one point.
x at λ = 2
1 + 2λ.
1 + 4
Check: ✓5
y at λ = 2
2 − λ.
2 − 2
Check: ✓0
z at λ = 2 Higher
3 + 4λ.
3 + 8
Check: ✓11
Length of b Higher
√(4 + 1 + 16).
√21
Check: ✓4.5826
Common mistakes
Using a as the direction
wrong ✗
b is the direction ✓
Roles.
Adding λ to the point only
a + λ ✗
a + λb ✓
Multiply by b.
One unique form
unique ✗
many equivalent forms ✓
Any point and any multiple.
Direction needs unit length
unit ✗
any length ✓
Scale is free.
Exam tips
Point + λ × direction.
Direction from two points: B − A.
Substitute λ to get points.
Many equivalent forms.
Check by solving for λ.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. x at λ = 3: (2, 0, 1) + λ(1, 2, 0) Foundation
5
2. y at λ = 3: same Foundation
6
3. |b| for b = (2, 3, 6) Foundation
7
4. z at λ = −1: (1, 1, 4) + λ(0, 1, 2) Higher
2
5. x at λ = 0.5: (0, 4, 1) + λ(6, 0, 2) Higher
3
6. |b| for b = (1, 2, 2) Higher
3
Practice generator
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.