Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Analysis and Approaches
  3. ›3 Geometry and trigonometry
  4. ›3.14 Vector equations of lines

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.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/5A line needs a known point and a direction
  1. 1A line needs a known point and a direction
  2. 2The vector equation combines the point and the direction
  3. 3Two points on a line fix its equation
  4. 4Substituting a value of the parameter gives a point
  5. 5The parameter can represent time along a path
  6. Check your recall
  7. Practice: 10 questions
1

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\mathbf{a}a.

A direction vector gives the line’s tilt. Call it b\mathbf{b}b. Any non-zero multiple of b\mathbf{b}b points along the same line, so a line has many direction vectors.

Figure 1. The position vector a reaches one point on the line. The direction vector b lies along the line, and r reaches any point R.

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 1 done

2

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 λ\lambdaλ times b\mathbf{b}b from a\mathbf{a}a reaches every point of the line.

This gives r=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}r=a+λb, where r\mathbf{r}r is the position vector of a general point on the line. The number λ\lambdaλ is a parameter. It can take any real value.

Reading off the components gives three equations: x=a1+λb1x=a_1+\lambda b_1x=a1​+λb1​, y=a2+λb2y=a_2+\lambda b_2y=a2​+λb2​ and z=a3+λb3z=a_3+\lambda b_3z=a3​+λb3​. Each value of λ\lambdaλ gives one point (x,y,z)(x,y,z)(x,y,z). One free number therefore describes a whole line.

Worked example

Writing a line from a point and a direction

A line passes through (2,−1,4)(2,-1,4)(2,−1,4) with direction vector (13−2)\begin{pmatrix}1 \\ 3 \\ -2\end{pmatrix}​13−2​​. Write its vector equation and its component equations.
  1. 1
    Take the position vector of the point: a=(2−14)\mathbf{a}=\begin{pmatrix}2 \\ -1 \\ 4\end{pmatrix}a=​2−14​​.
  2. 2
    Use r=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}r=a+λb with the given direction.
  3. 3
    Read off the components: x=2+λx=2+\lambdax=2+λ, y=−1+3λy=-1+3\lambday=−1+3λ, z=4−2λz=4-2\lambdaz=4−2λ.

Answer: r=(2−14)+λ(13−2)\mathbf{r}=\begin{pmatrix}2 \\ -1 \\ 4\end{pmatrix}+\lambda\begin{pmatrix}1 \\ 3 \\ -2\end{pmatrix}r=​2−14​​+λ​13−2​​, λ∈R\lambda\in\mathbb{R}λ∈R.

Key term

parameter

A parameter is a variable, here λ\lambdaλ, whose real value selects one particular point on the line.

Part 2 done

Quick check

One question on the part you just read

Easy

A line has equation r=(2−15)+λ(30−2)\mathbf{r}=\begin{pmatrix}2 \\ -1 \\ 5\end{pmatrix}+\lambda\begin{pmatrix}3 \\ 0 \\ -2\end{pmatrix}r=​2−15​​+λ​30−2​​. Identify a direction vector of the line.
Show answer and explanation

Answer: A · Worked explanation

In r=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}r=a+λb, the vector multiplied by λ\lambdaλ is the direction vector, so it is (3,0,−2)(3,0,-2)(3,0,−2). The vector (2,−1,5)(2,-1,5)(2,−1,5) is the position vector of a point on the line, not its direction. Always check which vector is multiplied by λ\lambdaλ, because that one carries the direction.
3

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 AAA and BBB, it is AB→\overrightarrow{AB}AB, found as the position vector of BBB minus that of AAA.

So use AAA as the known point and AB→\overrightarrow{AB}AB as the direction. The equation becomes r=a+λAB→\mathbf{r}=\mathbf{a}+\lambda\overrightarrow{AB}r=a+λAB. The vector BA→\overrightarrow{BA}BA points the opposite way, but it is also a valid direction vector.

Worked example

Line through two points

Find a vector equation of the line through A(1,−2,3)A(1,-2,3)A(1,−2,3) and B(4,0,−1)B(4,0,-1)B(4,0,−1).
  1. 1
    Find the direction: AB→=(40−1)−(1−23)=(32−4)\overrightarrow{AB}=\begin{pmatrix}4 \\ 0 \\ -1\end{pmatrix}-\begin{pmatrix}1 \\ -2 \\ 3\end{pmatrix}=\begin{pmatrix}3 \\ 2 \\ -4\end{pmatrix}AB=​40−1​​−​1−23​​=​32−4​​.
  2. 2
    Use AAA as the known point.

Answer: r=(1−23)+λ(32−4)\mathbf{r}=\begin{pmatrix}1 \\ -2 \\ 3\end{pmatrix}+\lambda\begin{pmatrix}3 \\ 2 \\ -4\end{pmatrix}r=​1−23​​+λ​32−4​​.

Common mistake

A line has many correct equations. A different known point or a scaled direction gives a different-looking equation for the same line.

Part 3 done

4

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 λ\lambdaλ gives exactly one point. When λ=0\lambda=0λ=0, you get the known point itself.

Testing a point is the reverse process. In one direction you choose λ\lambdaλ and find a point. In the other, you choose a point and look for λ\lambdaλ.

Positive and negative values of λ\lambdaλ move forwards or backwards along the direction. To test a given point, solve for λ\lambdaλ from one coordinate. Then check that the other two coordinates agree.

Worked example

Finding and testing points

A line has equation r=(1−23)+λ(32−4)\mathbf{r}=\begin{pmatrix}1 \\ -2 \\ 3\end{pmatrix}+\lambda\begin{pmatrix}3 \\ 2 \\ -4\end{pmatrix}r=​1−23​​+λ​32−4​​. Find the point when λ=2\lambda=2λ=2. Determine whether (10,4,−9)(10,4,-9)(10,4,−9) lies on the line.
  1. 1
    Substitute λ=2\lambda=2λ=2: (1−23)+2(32−4)=(72−5)\begin{pmatrix}1 \\ -2 \\ 3\end{pmatrix}+2\begin{pmatrix}3 \\ 2 \\ -4\end{pmatrix}=\begin{pmatrix}7 \\ 2 \\ -5\end{pmatrix}​1−23​​+2​32−4​​=​72−5​​.
  2. 2
    For (10,4,−9)(10,4,-9)(10,4,−9), use xxx: 1+3λ=101+3\lambda=101+3λ=10, so λ=3\lambda=3λ=3.
  3. 3
    Check yyy: −2+2(3)=4-2+2(3)=4−2+2(3)=4. This agrees.
  4. 4
    Check zzz: 3−4(3)=−93-4(3)=-93−4(3)=−9. This also agrees.

Answer: The point for λ=2\lambda=2λ=2 is (7,2,−5)(7,2,-5)(7,2,−5). The point (10,4,−9)(10,4,-9)(10,4,−9) lies on the line, at λ=3\lambda=3λ=3.

Exam tip

All three coordinates must give the same value of λ\lambdaλ. One disagreement means the point is not on the line.

Part 4 done

Quick check

One question on the part you just read

Easy

In r=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}r=a+λb, state what λ=0\lambda=0λ=0 gives.
Show answer and explanation

Answer: B · Worked explanation

Substituting λ=0\lambda=0λ=0 gives r=a\mathbf{r}=\mathbf{a}r=a, the known point on the line. It gives the origin only when a\mathbf{a}a is the zero vector. The vector b\mathbf{b}b gives a direction, not a point. The point a\mathbf{a}a is where the parameter is zero, which is why it is called the known point.
5

Part 5 of 5: The parameter can represent time along a path

The equation also describes motion. Let the parameter be time ttt in seconds. Then r\mathbf{r}r gives the position in metres of a moving object, and b\mathbf{b}b is its velocity in m s−1\mathrm{m\,s^{-1}}ms−1.

The speed is the length ∣b∣|\mathbf{b}|∣b∣. Two lines are parallel when their direction vectors are scalar multiples of each other.

At t=0t=0t=0 the object is at the known point. Increasing ttt 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

A drone has position r=(210)+t(3412)\mathbf{r}=\begin{pmatrix}2 \\ 1 \\ 0\end{pmatrix}+t\begin{pmatrix}3 \\ 4 \\ 12\end{pmatrix}r=​210​​+t​3412​​, in metres, with ttt in seconds. Find its speed and its position at t=2t=2t=2.
  1. 1
    Speed =∣b∣=32+42+122=169=13=|\mathbf{b}|=\sqrt{3^2+4^2+12^2}=\sqrt{169}=13=∣b∣=32+42+122​=169​=13.
  2. 2
    Position at t=2t=2t=2: (210)+2(3412)=(8924)\begin{pmatrix}2 \\ 1 \\ 0\end{pmatrix}+2\begin{pmatrix}3 \\ 4 \\ 12\end{pmatrix}=\begin{pmatrix}8 \\ 9 \\ 24\end{pmatrix}​210​​+2​3412​​=​8924​​.

Answer: The speed is 13 m s−113\,\mathrm{m\,s^{-1}}13ms−1 and the position is (8,9,24)(8,9,24)(8,9,24) metres.

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 general vector equation of a line through the point with position vector a\mathbf{a}a and with direction vector b\mathbf{b}b, and name the parameter.

    Show mark schemeHide mark scheme

    Model answer

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

    • 1 mark for writing r=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}r=a+λb
    • 1 mark for identifying λ\lambdaλ as a real-valued parameter
  2. 2.Determine[3 marks]

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

    Show mark schemeHide mark scheme

    Model answer

    AB→=(32−2)\overrightarrow{AB}=\begin{pmatrix}3 \\ 2 \\ -2\end{pmatrix}AB=​32−2​​, so r=(2−14)+λ(32−2)\mathbf{r}=\begin{pmatrix}2 \\ -1 \\ 4\end{pmatrix}+\lambda\begin{pmatrix}3 \\ 2 \\ -2\end{pmatrix}r=​2−14​​+λ​32−2​​.

    • 1 mark for finding the direction vector AB→\overrightarrow{AB}AB
    • 1 mark for obtaining (32−2)\begin{pmatrix}3 \\ 2 \\ -2\end{pmatrix}​32−2​​
    • 1 mark for writing a correct equation using a known point
  3. 3.Determine[2 marks]

    A line has equation r=(103)+λ(2−14)\mathbf{r}=\begin{pmatrix}1 \\ 0 \\ 3\end{pmatrix}+\lambda\begin{pmatrix}2 \\ -1 \\ 4\end{pmatrix}r=​103​​+λ​2−14​​. Determine the point where λ=−2\lambda=-2λ=−2.

    Show mark schemeHide mark scheme

    Model answer

    (103)−2(2−14)=(−32−5)\begin{pmatrix}1 \\ 0 \\ 3\end{pmatrix}-2\begin{pmatrix}2 \\ -1 \\ 4\end{pmatrix}=\begin{pmatrix}-3 \\ 2 \\ -5\end{pmatrix}​103​​−2​2−14​​=​−32−5​​, so the point is (−3,2,−5)(-3,2,-5)(−3,2,−5).

    • 1 mark for substituting λ=−2\lambda=-2λ=−2
    • 1 mark for obtaining (−3,2,−5)(-3,2,-5)(−3,2,−5)
  4. 4.Determine[3 marks]

    Determine whether the point (7,−3,11)(7,-3,11)(7,−3,11) lies on the line r=(103)+λ(2−14)\mathbf{r}=\begin{pmatrix}1 \\ 0 \\ 3\end{pmatrix}+\lambda\begin{pmatrix}2 \\ -1 \\ 4\end{pmatrix}r=​103​​+λ​2−14​​.

    Show mark schemeHide mark scheme

    Model answer

    From xxx, 1+2λ=71+2\lambda=71+2λ=7 gives λ=3\lambda=3λ=3. The yyy value is -3, which agrees. The zzz value is 3+12=153+12=153+12=15, not 11, so the point is not on the line.

    • 1 mark for finding λ=3\lambda=3λ=3 from one coordinate
    • 1 mark for checking the other coordinates
    • 1 mark for concluding that the point is not on the line because zzz disagrees
  5. 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. 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.

3.

Easy·Identify[1 mark]

Identify the correct statement about direction vectors of a line.
Show answer and explanation

Answer: D · Worked explanation

Multiplying a direction vector by a non-zero number keeps it parallel to the line, so it is still a direction vector. A line therefore has many direction vectors. Direction vectors need not start at the origin or have length 1.
4.

Medium·Determine[1 mark]

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

Answer: C · Worked explanation

The direction is AB→=(4−1,−2−2,0−(−3))=(3,−4,3)\overrightarrow{AB}=(4-1,-2-2,0-(-3))=(3,-4,3)AB=(4−1,−2−2,0−(−3))=(3,−4,3), and AAA is a known point. The direction (5,0,−3)(5,0,-3)(5,0,−3) comes from adding coordinates instead of subtracting. The direction (3,−4,−3)(3,-4,-3)(3,−4,−3) has a sign error in the last component. Always subtract the position vector of the start point from that of the end point.
5.

Medium·Determine[1 mark]

A line has equation r=(2−10)+λ(14−2)\mathbf{r}=\begin{pmatrix}2 \\ -1 \\ 0\end{pmatrix}+\lambda\begin{pmatrix}1 \\ 4 \\ -2\end{pmatrix}r=​2−10​​+λ​14−2​​. Determine the point when λ=3\lambda=3λ=3.
Show answer and explanation

Answer: D · Worked explanation

Compute (2,−1,0)+3(1,4,−2)=(2+3,−1+12,0−6)=(5,11,−6)(2,-1,0)+3(1,4,-2)=(2+3,-1+12,0-6)=(5,11,-6)(2,−1,0)+3(1,4,−2)=(2+3,−1+12,0−6)=(5,11,−6). The point (3,3,−2)(3,3,-2)(3,3,−2) is the point for λ=1\lambda=1λ=1. The point (5,11,−2)(5,11,-2)(5,11,−2) multiplies the first two components by 3 but not the third. Each component is found separately, with λ=3\lambda=3λ=3 substituted into every row. Writing the rows apart reduces slips.
6.

Medium·Identify[2 marks]

Identify which point lies on r=(30−1)+λ(21−1)\mathbf{r}=\begin{pmatrix}3 \\ 0 \\ -1\end{pmatrix}+\lambda\begin{pmatrix}2 \\ 1 \\ -1\end{pmatrix}r=​30−1​​+λ​21−1​​.
Show answer and explanation

Answer: A · Worked explanation

From xxx, 3+2λ=73+2\lambda=73+2λ=7 gives λ=2\lambda=2λ=2. Then y=0+2=2y=0+2=2y=0+2=2 and z=−1−2=−3z=-1-2=-3z=−1−2=−3, so (7,2,−3)(7,2,-3)(7,2,−3) is on the line. The point (7,2,−2)(7,2,-2)(7,2,−2) has the wrong zzz value, and each other point fails on at least one coordinate. Always test all three coordinates, because matching two of them is not enough.
7.

Medium·Determine[2 marks]

The point (5,k,−3)(5,k,-3)(5,k,−3) lies on r=(123)+λ(2−1−3)\mathbf{r}=\begin{pmatrix}1 \\ 2 \\ 3\end{pmatrix}+\lambda\begin{pmatrix}2 \\ -1 \\ -3\end{pmatrix}r=​123​​+λ​2−1−3​​. Determine kkk.
Show answer and explanation

Answer: B · Worked explanation

From xxx, 1+2λ=51+2\lambda=51+2λ=5 gives λ=2\lambda=2λ=2. The zzz value 3−6=−33-6=-33−6=−3 agrees. Then k=2−2=0k=2-2=0k=2−2=0. The value k=4k=4k=4 comes from adding 2λ2\lambda2λ to the yyy value, ignoring the minus sign in the direction. Check: with k=0k=0k=0 the point is (5,0,−3)(5,0,-3)(5,0,−3), which matches y=2−2=0y=2-2=0y=2−2=0.
8.

Hard·Determine[2 marks]

The line r=(102)+λ(2p6)\mathbf{r}=\begin{pmatrix}1 \\ 0 \\ 2\end{pmatrix}+\lambda\begin{pmatrix}2 \\ p \\ 6\end{pmatrix}r=​102​​+λ​2p6​​ is parallel to r=(011)+μ(1−33)\mathbf{r}=\begin{pmatrix}0 \\ 1 \\ 1\end{pmatrix}+\mu\begin{pmatrix}1 \\ -3 \\ 3\end{pmatrix}r=​011​​+μ​1−33​​. Determine ppp.
Show answer and explanation

Answer: C · Worked explanation

Parallel lines have direction vectors that are multiples. Since 2=2×12=2\times12=2×1 and 6=2×36=2\times36=2×3, the multiple is 2. So p=2×(−3)=−6p=2\times(-3)=-6p=2×(−3)=−6. The value -3 copies the second direction vector without applying the multiple. Only one multiple is needed, so a single pair of matching components fixes the unknown.
9.

Hard·Determine[2 marks]

An object has position r=(120)+t(2−12)\mathbf{r}=\begin{pmatrix}1 \\ 2 \\ 0\end{pmatrix}+t\begin{pmatrix}2 \\ -1 \\ 2\end{pmatrix}r=​120​​+t​2−12​​ in metres, with ttt in seconds. Determine the distance it moves between t=1t=1t=1 and t=4t=4t=4.
Show answer and explanation

Answer: A · Worked explanation

The speed is ∣b∣=4+1+4=3 m s−1|\mathbf{b}|=\sqrt{4+1+4}=3\,\mathrm{m\,s^{-1}}∣b∣=4+1+4​=3ms−1. Over 3 seconds the distance is 3×3=9 m3\times3=9\,\mathrm{m}3×3=9m. The value 12 m12\,\mathrm{m}12m uses 4 seconds, which is the time at the end, not the elapsed time. The time elapsed is 4−1=34-1=34−1=3 seconds, not either individual time.
10.

Hard·Determine[2 marks]

Points A(1,1,1)A(1,1,1)A(1,1,1), B(2,3,5)B(2,3,5)B(2,3,5) and C(4,7,k)C(4,7,k)C(4,7,k) lie on one line. Determine kkk.
Show answer and explanation

Answer: D · Worked explanation

AB→=(1,2,4)\overrightarrow{AB}=(1,2,4)AB=(1,2,4) and AC→=(3,6,k−1)\overrightarrow{AC}=(3,6,k-1)AC=(3,6,k−1). For the points to be on one line, AC→=3AB→\overrightarrow{AC}=3\overrightarrow{AB}AC=3AB. So k−1=12k-1=12k−1=12 and k=13k=13k=13. The value k=12k=12k=12 gives the change in zzz but forgets the starting height of 1. Check with another coordinate: yyy gives 1+2×3=71+2\times3=71+2×3=7, which matches.

Keep going

Next topic3.15 Intersecting and skew linesPrevious topic3.13 Scalar product

More in Topic 3 · Geometry and trigonometry

  1. 3.10Compound angle identitiesNotes · 10 questions· HL only
  2. 3.11Symmetry of trig graphsNotes · 10 questions· HL only
  3. 3.12Introduction to vectorsNotes · 10 questions· HL only
  4. 3.13Scalar productNotes · 10 questions· HL only
  5. 3.14Vector equations of linesNotes · 10 questions· HL only
  6. 3.15Intersecting and skew linesNotes · 10 questions· HL only
  7. 3.16Vector productNotes · 10 questions· HL only
  8. 3.17Vector equations of planesNotes · 10 questions· HL only
  9. 3.18Lines and planes: intersections and anglesNotes · 10 questions· HL only

All IB Mathematics: Analysis and Approaches 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/5 read

  1. 1A line needs a known point and a direction
  2. 2The vector equation combines the point and the direction
  3. 3Two points on a line fix its equation
  4. 4Substituting a value of the parameter gives a point
  5. 5The parameter can represent time along a path
  6. Check your recall
  7. 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