Salam Academy
Vectors · Subtopic 3 of 5

The Vector Equation of a Line

One point and one direction pin down a line. Write it as r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}, slide along it by changing λ\lambda, test whether points lie on it, and find the angle between two lines from their directions alone.

Cambridge 9709 Paper 3Edexcel YMA01 WMA14AQA 7367 Paper 1≈ 35 minRevision 5 · updated 2026-10-27
Section 1 of 14

Learning objectives

  • Write the vector equation of a line through a point with a given direction, or through two points.
  • Find points on a line, and decide whether a given point lies on it.
  • Recognise when two lines are parallel.
  • Find the acute angle between two lines.
Pause and think

A laser starts at (1,2,3)(1,2,3) and every second its beam front moves (3,−2,2)(3,-2,2). Where is it after 22 seconds? After tt seconds?

Section 2 of 14

Core idea

Start hereStart here, go that way

A ship leaves port (1,2,0)(1,2,0) heading in direction (2,−3,0)(2,-3,0). Where is it after "λ\lambda units of travel"? At (1,2,0)+λ(2,−3,0)(1,2,0)+\lambda(2,-3,0). Every point on its path is a starting point plus some multiple of a direction: that's the vector equation of a line.

The big idea

r=a+λd\mathbf r=\mathbf a+\lambda\mathbf d: a\mathbf a a point on the line, d\mathbf d its direction, λ\lambda any real number. The angle between lines uses only their directions (take the acute angle).

1. The vector equation

r = (1, 1) + λ(2, 1): each λ is one point
−2246−112340xyaλdr
Positive λ\lambda moves forwards along d\mathbf d, negative λ\lambda moves backwards. All of them together make the whole line.
r=a+λd\mathbf r=\mathbf a+\lambda\mathbf d
where
r\mathbf r
position vector of a general point on the line.
a\mathbf a
position vector of a known point.
d\mathbf d
direction vector.
λ\lambda
parameter: each value gives one point.
Worked exampleLine through A(1,2,−1)A(1,2,-1), B(3,−1,4)B(3,-1,4)

Find its equation; is (7,−7,14)(7,-7,14) on it?

Goal
Equation; yes/no.
Strategy
Direction AB→\overrightarrow{AB}; solve for λ\lambda in one component, check the others.
  1. d=(2,−3,5)\mathbf d=(2,-3,5)
    b−a\mathbf b-\mathbf a.
  2. r=(1,2,−1)+λ(2,−3,5)\mathbf r=(1,2,-1)+\lambda(2,-3,5)
    Equation.
  3. 1+2λ=7⇒λ=31+2\lambda=7\Rightarrow\lambda=3
    xx-component.
  4. y=2−9=−7 ✓,z=−1+15=14 ✓y=2-9=-7\ \checkmark,\quad z=-1+15=14\ \checkmark
    Check the others.
AnswerYes, at λ=3\lambda=3.
✓ CheckAll three components agree ✓.
Edge caseNot unique Any point on the line and any non-zero multiple of the direction give the same line.

2. Angle between lines

Worked exampleDirections (1,−1,2)(1,-1,2) and (1,1,−1)(1,1,-1)

Find the acute angle between the lines.

Goal
Angle.
Strategy
Scalar product of directions; take modulus for acute.
  1. 1−1−2=−21-1-2=-2
    Dot product.
  2. cos⁡θ=∣−2∣63=0.471\cos\theta=\frac{|-2|}{\sqrt6\sqrt3}=0.471
    Modulus gives the acute angle.
Answer61.9∘61.9^\circ.
✓ CheckObtuse version 118.1∘118.1^\circ; acute requested ✓.
Pause and think

Line through (0,0,5)(0,0,5) parallel to the xx-axis?

Summary

  • r=a+λd\mathbf r=\mathbf a+\lambda\mathbf d.
  • Angle from directions only, acute.
Key words
Direction vector
Gives the line's direction.
HistoryAhead of his time. In 1844 Hermann Grassmann, a German schoolteacher, published a book describing lines, planes and higher-dimensional spaces with what we now call vectors. Almost nobody understood it, and he never got the university post he hoped for. Decades later mathematicians realised he had laid the foundations of linear algebra.
Keep reading for free

Create a free account to read the rest of this lesson: key formulae, worked examples, explore the graph, common mistakes, exam tip, guided practice and more. Your answers are checked and your progress is saved.