Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Applications and Interpretation
  3. ›3 Geometry and trigonometry
  4. ›3.11 Vector equation of a line

IB Mathematics: Applications and Interpretation · Topic 3 · Geometry and trigonometry

3.11 Vector equation of a line

Write the vector equation of a line in three dimensions, find points on it, and interpret its position and direction vectors.

  • 4 min read
  • 6 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/6A line is a starting point plus a direction
  1. 1A line is a starting point plus a direction
  2. 2A parameter moves a point along the line
  3. 3Two points on a line fix its direction
  4. 4Substituting parameter values gives points on the line
  5. 5A point lies on the line if one parameter fits
  6. 6Position and direction vectors have meaning in context
  7. Check your recall
  8. Practice: 10 questions
1

Part 1 of 6: A line is a starting point plus a direction

Imagine walking along a straight path that begins at a gate. Two facts describe the walk: where you began and which way you went. A line in space needs the same two facts.

The start is any known point on the line. Its position vector points from the origin to that point. The way you walk is a direction vector. It points along the line.

Any non-zero scalar multiple of a direction vector also points along the line. So a line has many valid direction vectors.

Key terms · tap one for its definition

position vector

A position vector is the vector from the origin to a given point.

direction vector

A direction vector of a line is a non-zero vector parallel to the line; any non-zero scalar multiple of it also works.

Part 1 done

2

Part 2 of 6: A parameter moves a point along the line

Now combine the two facts. Start at point AAA with position vector a\mathbf{a}a, then move some multiple of the direction vector d\mathbf{d}d. Any point RRR on the line has position vector r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}r=a+λd. This is the vector equation of the line. Setting λ=0\lambda=0λ=0 gives the known point AAA itself.

The letter λ\lambdaλ is a parameter. It can be any real number, and each value gives one point. As λ\lambdaλ grows, the point moves along the line in the direction of d\mathbf{d}d. In components, (xyz)=(a1a2a3)+λ(d1d2d3)\begin{pmatrix}x\\ y\\ z\end{pmatrix}=\begin{pmatrix}a_1\\ a_2\\ a_3\end{pmatrix}+\lambda\begin{pmatrix}d_1\\ d_2\\ d_3\end{pmatrix}​xyz​​=​a1​a2​a3​​​+λ​d1​d2​d3​​​.

Figure 1. The position vector a locates point A. The direction vector d points along the line. Point R is reached from A by moving 2d.

Key terms · tap one for its definition

vector equation

A vector equation of a line is r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}r=a+λd, where a\mathbf{a}a is the position vector of a point on the line and d\mathbf{d}d is a direction vector.

parameter

A parameter is a variable, here λ\lambdaλ, whose value selects one point on the line and which can be any real number.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the direction vector of r=(14−2)+λ(305)\mathbf{r}=\begin{pmatrix}1\\4\\-2\end{pmatrix}+\lambda\begin{pmatrix}3\\0\\5\end{pmatrix}r=​14−2​​+λ​305​​.
Show answer and explanation

Answer: D · Worked explanation

In r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}r=a+λd, the vector multiplied by λ\lambdaλ is the direction vector, here (3,0,5)(3,0,5)(3,0,5). The vector (1,4,−2)(1,4,-2)(1,4,−2) is the position vector of a point on the line. Adding the two vectors gives (4,4,3)(4,4,3)(4,4,3), which is the position of another point, not a direction.
3

Part 3 of 6: Two points on a line fix its direction

Often a question gives two points instead of a direction vector. Use them to build one. If AAA and BBB lie on the line, then AB⃗=b−a\vec{AB}=\mathbf{b}-\mathbf{a}AB=b−a is parallel to the line. Use it as d\mathbf{d}d, and use either point for a\mathbf{a}a.

Worked example

Writing a line equation

Write a vector equation of the line through A(2,−1,3)A(2,-1,3)A(2,−1,3) and B(5,1,9)B(5,1,9)B(5,1,9).
  1. 1
    Find the direction: d=b−a=(5−2, 1−(−1), 9−3)=(3,2,6)\mathbf{d}=\mathbf{b}-\mathbf{a}=(5-2,\ 1-(-1),\ 9-3)=(3,2,6)d=b−a=(5−2, 1−(−1), 9−3)=(3,2,6).
  2. 2
    Use AAA as the known point: a=(2,−1,3)\mathbf{a}=(2,-1,3)a=(2,−1,3).

Answer: r=(2−13)+λ(326)\mathbf{r}=\begin{pmatrix}2\\-1\\3\end{pmatrix}+\lambda\begin{pmatrix}3\\2\\6\end{pmatrix}r=​2−13​​+λ​326​​

Using BBB as the known point, or the direction 2d2\mathbf{d}2d, would be equally correct.

Common mistake

A line has many correct equations. If two equations look different, compare their directions and test a point before deciding they are different lines.

Part 3 done

4

Part 4 of 6: Substituting parameter values gives points on the line

Once the equation is known, each value of λ\lambdaλ gives a point. Take r=(10−2)+λ(231)\mathbf{r}=\begin{pmatrix}1\\0\\-2\end{pmatrix}+\lambda\begin{pmatrix}2\\3\\1\end{pmatrix}r=​10−2​​+λ​231​​. With λ=0\lambda=0λ=0 the point is the start, (1,0,−2)(1,0,-2)(1,0,−2).

Points on the line for chosen values of the parameter

Parameter λ\lambdaλPoint
0(1,0,−2)(1,0,-2)(1,0,−2)
1(3,3,−1)(3,3,-1)(3,3,−1)
2(5,6,0)(5,6,0)(5,6,0)
-1(−1,−3,−3)(-1,-3,-3)(−1,−3,−3)
Parameter $\lambda$
0
Point
(1,0,−2)(1,0,-2)(1,0,−2)
Parameter $\lambda$
1
Point
(3,3,−1)(3,3,-1)(3,3,−1)
Parameter $\lambda$
2
Point
(5,6,0)(5,6,0)(5,6,0)
Parameter $\lambda$
-1
Point
(−1,−3,−3)(-1,-3,-3)(−1,−3,−3)

A negative value of λ\lambdaλ moves backwards from the start. Values of λ\lambdaλ between 0 and 1 give points between the start and the point with position vector a+d\mathbf{a}+\mathbf{d}a+d. Each time λ\lambdaλ rises by 1, the point moves by one copy of d\mathbf{d}d. You can also choose λ\lambdaλ to meet a condition, such as a required zzz-coordinate.

Part 4 done

Quick check

One question on the part you just read

Easy

State which point of the line r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}r=a+λd is given by λ=0\lambda=0λ=0.
Show answer and explanation

Answer: D · Worked explanation

Substituting λ=0\lambda=0λ=0 removes the direction term, leaving r=a\mathbf{r}=\mathbf{a}r=a. The point with position vector a+d\mathbf{a}+\mathbf{d}a+d is given by λ=1\lambda=1λ=1. The origin lies on the line only for special choices of a\mathbf{a}a and d\mathbf{d}d, so it is not given by λ=0\lambda=0λ=0 in general.
5

Part 5 of 6: A point lies on the line if one parameter fits

To test whether a given point is on the line, work backwards. Set the point’s coordinates equal to the three components of r\mathbf{r}r. Solve for λ\lambdaλ using one component, then check the other two. A single matching component is not enough, because all three must give the same λ\lambdaλ. If the components give different values, the point is not on the line.

Worked example

Testing points

The line is r=(10−2)+λ(231)\mathbf{r}=\begin{pmatrix}1\\0\\-2\end{pmatrix}+\lambda\begin{pmatrix}2\\3\\1\end{pmatrix}r=​10−2​​+λ​231​​. Decide whether P(7,9,1)P(7,9,1)P(7,9,1) and Q(5,5,0)Q(5,5,0)Q(5,5,0) lie on it.
  1. 1
    For PPP: 1+2λ=71+2\lambda=71+2λ=7 gives λ=3\lambda=3λ=3. Also 3λ=93\lambda=93λ=9 gives λ=3\lambda=3λ=3, and −2+λ=1-2+\lambda=1−2+λ=1 gives λ=3\lambda=3λ=3.
  2. 2
    All three agree, so PPP lies on the line.
  3. 3
    For QQQ: 1+2λ=51+2\lambda=51+2λ=5 gives λ=2\lambda=2λ=2. But 3λ=53\lambda=53λ=5 gives λ=53\lambda=\frac{5}{3}λ=35​.
  4. 4
    The values differ, so QQQ does not lie on the line.

Answer: PPP lies on the line, with λ=3\lambda=3λ=3. QQQ does not.

Exam tip

State the value of the parameter. Then conclude in words that the point lies on the line, or that it does not.

Part 5 done

6

Part 6 of 6: Position and direction vectors have meaning in context

Lines often model straight-line motion, so each part of the equation has a physical meaning. Replace λ\lambdaλ with time ttt. Then a\mathbf{a}a is the starting position, and d\mathbf{d}d is the velocity, which is the displacement per unit of time. The magnitude ∣d∣|\mathbf{d}|∣d∣ is the speed. At t=0t=0t=0 the position is a\mathbf{a}a, so ttt counts time from the start. This model assumes constant velocity, so the path is a straight line.

Worked example

A drone in flight

A drone starts at (10,20,5)(10,20,5)(10,20,5) metres and has velocity (3−40) m s−1\begin{pmatrix}3\\-4\\0\end{pmatrix}\,\mathrm{m\,s^{-1}}​3−40​​ms−1. Its position is r=(10205)+t(3−40)\mathbf{r}=\begin{pmatrix}10\\20\\5\end{pmatrix}+t\begin{pmatrix}3\\-4\\0\end{pmatrix}r=​10205​​+t​3−40​​. Find its position after 2 s and its speed.
  1. 1
    Substitute t=2t=2t=2: r=(10+2×3, 20+2×(−4), 5+2×0)=(16,12,5)\mathbf{r}=(10+2\times3,\ 20+2\times(-4),\ 5+2\times0)=(16,12,5)r=(10+2×3, 20+2×(−4), 5+2×0)=(16,12,5).
  2. 2
    Speed is ∣d∣=32+(−4)2+02=25=5|\mathbf{d}|=\sqrt{3^2+(-4)^2+0^2}=\sqrt{25}=5∣d∣=32+(−4)2+02​=25​=5.

Answer: The position is (16,12,5)(16,12,5)(16,12,5) metres and the speed is 5 m s−15\,\mathrm{m\,s^{-1}}5ms−1.

Doubling d\mathbf{d}d would give the same path, but the drone would move twice as fast.

Note read

Check your recall[14 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.State[2 marks]

    State the vector equation of the line through the point with position vector a\mathbf{a}a with direction vector d\mathbf{d}d.

    Show mark schemeHide mark scheme

    Model answer

    r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}r=a+λd, where λ\lambdaλ is a real parameter.

    • 1 mark for writing r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}r=a+λd
    • 1 mark for stating that λ\lambdaλ can be any real number
  2. 2.Determine[3 marks]

    Determine a vector equation of the line through A(1,4,−2)A(1,4,-2)A(1,4,−2) and B(3,1,4)B(3,1,4)B(3,1,4).

    Show mark schemeHide mark scheme

    Model answer

    d=b−a=(2,−3,6)\mathbf{d}=\mathbf{b}-\mathbf{a}=(2,-3,6)d=b−a=(2,−3,6). So r=(14−2)+λ(2−36)\mathbf{r}=\begin{pmatrix}1\\4\\-2\end{pmatrix}+\lambda\begin{pmatrix}2\\-3\\6\end{pmatrix}r=​14−2​​+λ​2−36​​.

    • 1 mark for using d=b−a\mathbf{d}=\mathbf{b}-\mathbf{a}d=b−a
    • 1 mark for obtaining (2,−3,6)(2,-3,6)(2,−3,6)
    • 1 mark for writing a correct equation using a point on the line
  3. 3.Calculate[2 marks]

    Calculate the coordinates of the point on r=(3−12)+λ(12−2)\mathbf{r}=\begin{pmatrix}3\\-1\\2\end{pmatrix}+\lambda\begin{pmatrix}1\\2\\-2\end{pmatrix}r=​3−12​​+λ​12−2​​ when λ=−2\lambda=-2λ=−2.

    Show mark schemeHide mark scheme

    Model answer

    (3−2, −1−4, 2+4)=(1,−5,6)(3-2,\ -1-4,\ 2+4)=(1,-5,6)(3−2, −1−4, 2+4)=(1,−5,6).

    • 1 mark for substituting λ=−2\lambda=-2λ=−2 into each component
    • 1 mark for obtaining (1,−5,6)(1,-5,6)(1,−5,6)
  4. 4.Deduce[3 marks]

    Deduce whether the point (9,11,−4)(9,11,-4)(9,11,−4) lies on the line r=(3−12)+λ(24−3)\mathbf{r}=\begin{pmatrix}3\\-1\\2\end{pmatrix}+\lambda\begin{pmatrix}2\\4\\-3\end{pmatrix}r=​3−12​​+λ​24−3​​.

    Show mark schemeHide mark scheme

    Model answer

    From 3+2λ=93+2\lambda=93+2λ=9, λ=3\lambda=3λ=3. From −1+4λ=11-1+4\lambda=11−1+4λ=11, λ=3\lambda=3λ=3. From 2−3λ=−42-3\lambda=-42−3λ=−4, λ=2\lambda=2λ=2. The values differ, so the point is not on the line.

    • 1 mark for finding λ=3\lambda=3λ=3 from the first component
    • 1 mark for finding λ=2\lambda=2λ=2 from the third component
    • 1 mark for concluding that the point is not on the line
  5. 5.Explain[2 marks]

    Explain why 2d2\mathbf{d}2d can be used in place of d\mathbf{d}d in the equation of a line.

    Show mark schemeHide mark scheme

    Model answer

    The vector 2d2\mathbf{d}2d is a scalar multiple of d\mathbf{d}d, so it is parallel to the line. The same points are reached, with a different value of λ\lambdaλ for each.

    • 1 mark for stating that a scalar multiple of the direction vector is still parallel to the line
    • 1 mark for stating that the same line is described
  6. 6.Describe[2 marks]

    Describe what a\mathbf{a}a and d\mathbf{d}d represent when r=a+td\mathbf{r}=\mathbf{a}+t\mathbf{d}r=a+td gives the position of a drone at time ttt.

    Show mark schemeHide mark scheme

    Model answer

    The vector a\mathbf{a}a is the starting position. The vector d\mathbf{d}d is the velocity, and its magnitude is the speed.

    • 1 mark for identifying a as the starting position
    • 1 mark for identifying d as the velocity

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.

3.

Easy·Calculate[1 mark]

Calculate the coordinates of the point on r=(210)+λ(134)\mathbf{r}=\begin{pmatrix}2\\1\\0\end{pmatrix}+\lambda\begin{pmatrix}1\\3\\4\end{pmatrix}r=​210​​+λ​134​​ when λ=2\lambda=2λ=2.
Show answer and explanation

Answer: B · Worked explanation

Compute (2+2×1, 1+2×3, 0+2×4)=(4,7,8)(2+2\times1,\ 1+2\times3,\ 0+2\times4)=(4,7,8)(2+2×1, 1+2×3, 0+2×4)=(4,7,8). The point (3,4,4)(3,4,4)(3,4,4) is given by λ=1\lambda=1λ=1. The vector (2,6,8)(2,6,8)(2,6,8) is 2d2\mathbf{d}2d without the starting point added. The point (5,5,4)(5,5,4)(5,5,4) swaps the roles of the two vectors. Always substitute the parameter into every component, not only the first one.
4.

Medium·Determine[2 marks]

Determine a direction vector for the line through A(1,2,−1)A(1,2,-1)A(1,2,−1) and B(4,6,3)B(4,6,3)B(4,6,3).
Show answer and explanation

Answer: B · Worked explanation

Subtract the position vector of AAA from that of BBB: (4−1, 6−2, 3−(−1))=(3,4,4)(4-1,\ 6-2,\ 3-(-1))=(3,4,4)(4−1, 6−2, 3−(−1))=(3,4,4). Adding the coordinates gives (5,8,2)(5,8,2)(5,8,2), which is not parallel to the line. The vector (4,6,3)(4,6,3)(4,6,3) is the position vector of BBB, which points from the origin and not along the line.
5.

Medium·Identify[1 mark]

Identify the vector equation of the line through P(1,0,2)P(1,0,2)P(1,0,2) that is parallel to (2−13)\begin{pmatrix}2\\-1\\3\end{pmatrix}​2−13​​.
Show answer and explanation

Answer: C · Worked explanation

A line through a point with position vector a\mathbf{a}a and direction d\mathbf{d}d has equation r=a+λd\mathbf{r}=\mathbf{a}+\lambda\mathbf{d}r=a+λd. Here a=(1,0,2)\mathbf{a}=(1,0,2)a=(1,0,2) and d=(2,−1,3)\mathbf{d}=(2,-1,3)d=(2,−1,3). Swapping the two vectors gives a line through a different point with a different direction. Without a parameter, the expression gives only one point.
6.

Medium·Determine[2 marks]

Determine the value of λ\lambdaλ at which r=(1−1−1)+λ(232)\mathbf{r}=\begin{pmatrix}1\\-1\\-1\end{pmatrix}+\lambda\begin{pmatrix}2\\3\\2\end{pmatrix}r=​1−1−1​​+λ​232​​ passes through (5,5,3)(5,5,3)(5,5,3).
Show answer and explanation

Answer: C · Worked explanation

Set 1+2λ=51+2\lambda=51+2λ=5, so λ=2\lambda=2λ=2. Check the others: −1+3(2)=5-1+3(2)=5−1+3(2)=5 and −1+2(2)=3-1+2(2)=3−1+2(2)=3. All three agree, so λ=2\lambda=2λ=2. The value 3 would give the point (7,8,5)(7,8,5)(7,8,5), which is a different point on the line. Checking every component is the reliable method.
7.

Medium·Calculate[2 marks]

A drone has position r=(0010)+t(680)\mathbf{r}=\begin{pmatrix}0\\0\\10\end{pmatrix}+t\begin{pmatrix}6\\8\\0\end{pmatrix}r=​0010​​+t​680​​, with r\mathbf{r}r in metres and ttt in seconds. Calculate its speed.
Show answer and explanation

Answer: D · Worked explanation

The speed is the magnitude of the direction vector: 62+82+02=100=10 m s−1\sqrt{6^2+8^2+0^2}=\sqrt{100}=10\,\mathrm{m\,s^{-1}}62+82+02​=100​=10ms−1. Adding the components gives 14, and 100 is the sum of squares without the square root. The starting height of 10 m10\,\mathrm{m}10m does not affect the speed. Speed is a magnitude, so it is never negative.
8.

Hard·Determine[2 marks]

The line r=(2−14)+λ(12−3)\mathbf{r}=\begin{pmatrix}2\\-1\\4\end{pmatrix}+\lambda\begin{pmatrix}1\\2\\-3\end{pmatrix}r=​2−14​​+λ​12−3​​ passes through (5,k,m)(5,k,m)(5,k,m). Determine kkk and mmm.
Show answer and explanation

Answer: B · Worked explanation

From 2+λ=52+\lambda=52+λ=5, λ=3\lambda=3λ=3. Then k=−1+2(3)=5k=-1+2(3)=5k=−1+2(3)=5 and m=4−3(3)=−5m=4-3(3)=-5m=4−3(3)=−5. Giving m=5m=5m=5 ignores the negative component in the direction vector. Using a different λ\lambdaλ for kkk, such as λ=2\lambda=2λ=2, gives k=3k=3k=3, but every component must use the same λ\lambdaλ. Always use the same value of λ\lambdaλ for all three components.
9.

Hard·Deduce[2 marks]

Line 1 is r=(111)+λ(246)\mathbf{r}=\begin{pmatrix}1\\1\\1\end{pmatrix}+\lambda\begin{pmatrix}2\\4\\6\end{pmatrix}r=​111​​+λ​246​​ and line 2 is r=(357)+μ(123)\mathbf{r}=\begin{pmatrix}3\\5\\7\end{pmatrix}+\mu\begin{pmatrix}1\\2\\3\end{pmatrix}r=​357​​+μ​123​​. Deduce the relationship between the two lines.
Show answer and explanation

Answer: A · Worked explanation

The direction vectors are parallel, because (2,4,6)=2(1,2,3)(2,4,6)=2(1,2,3)(2,4,6)=2(1,2,3). The point (3,5,7)(3,5,7)(3,5,7) lies on line 1 when λ=1\lambda=1λ=1, since 1+2=31+2=31+2=3, 1+4=51+4=51+4=5 and 1+6=71+6=71+6=7. A shared direction and a shared point mean the lines coincide. Parallel but distinct lines would share no point.
10.

Hard·Calculate[2 marks]

A drone starts at (4,−2,10)(4,-2,10)(4,−2,10) metres with velocity (2−1−2) m s−1\begin{pmatrix}2\\-1\\-2\end{pmatrix}\,\mathrm{m\,s^{-1}}​2−1−2​​ms−1. It flies in a straight line until its zzz-coordinate is 0. Calculate the distance it travels.
Show answer and explanation

Answer: B · Worked explanation

The height gives 10−2t=010-2t=010−2t=0, so t=5 st=5\,\mathrm{s}t=5s. The speed is 22+(−1)2+(−2)2=3 m s−1\sqrt{2^2+(-1)^2+(-2)^2}=3\,\mathrm{m\,s^{-1}}22+(−1)2+(−2)2​=3ms−1, so the distance is 3×5=15 m3\times5=15\,\mathrm{m}3×5=15m. The value 5 is the time, not a distance. Multiplying 9 by 5 gives 45, but 9 is the speed squared, not the speed.

Keep going

Next topic3.12 Vectors in kinematicsPrevious topic3.10 Vector concepts

More in Topic 3 · Geometry and trigonometry

  1. 3.7Radian measureNotes · 10 questions· HL only
  2. 3.8Unit circle and identitiesNotes · 10 questions· HL only
  3. 3.9Matrix transformationsNotes · 10 questions· HL only
  4. 3.10Vector conceptsNotes · 10 questions· HL only
  5. 3.11Vector equation of a lineNotes · 10 questions· HL only
  6. 3.12Vectors in kinematicsNotes · 10 questions· HL only
  7. 3.13Scalar and vector productsNotes · 10 questions· HL only
  8. 3.14Graph theoryNotes · 10 questions· HL only
  9. 3.15Adjacency matricesNotes · 10 questions· HL only

All IB Mathematics: Applications and Interpretation topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/6 read

  1. 1A line is a starting point plus a direction
  2. 2A parameter moves a point along the line
  3. 3Two points on a line fix its direction
  4. 4Substituting parameter values gives points on the line
  5. 5A point lies on the line if one parameter fits
  6. 6Position and direction vectors have meaning in context
  7. Check your recall
  8. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe