Skip to content
IB Diploma ProgrammeSL & HL

Vector equation of a line

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Vector equation of a line notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Vector equation of a line notes as text: skim, search, and jump between subtopics.

~16 min read

1. The vector equation of a line

A line in two or three dimensions is fixed by one point on it and its direction. Its vector equation is boldsymbolr = boldsymbola + λboldsymbolb.

Here boldsymbola is the position vector of a known point on the line. boldsymbolb is a direction vector of the line. The parameter λ is any real number, and each value of λ gives one point on the line.

In two dimensions the vectors have two components. In three dimensions they have three. The command term *write down* needs the equation with boldsymbola and boldsymbolb filled in, and nothing more.

boldsymbolr = boldsymbola + λboldsymbolb

boldsymbolr = beginpmatrix x y z endpmatrix, boldsymbola = beginpmatrix x₀ y₀ z₀ endpmatrix, boldsymbolb = beginpmatrix l m n endpmatrix

Worked example 13 marks

A line l passes through the point A(3, -2, 5) and is parallel to the vector beginpmatrix 2 1 -4 endpmatrix.

(a) Write down a vector equation of l.

(b) Find the coordinates of the point on l where λ = 2.

  1. 1

    (a) A1: boldsymbolr = beginpmatrix 3 -2 5 endpmatrix + λbeginpmatrix 2 1 -4 endpmatrix [1]

  2. 2

    (b) M1: substitute λ = 2, so boldsymbolr = beginpmatrix 3 -2 5 endpmatrix + 2beginpmatrix 2 1 -4 endpmatrix [1]

  3. 3

    A1: boldsymbolr = beginpmatrix 7 0 -3 endpmatrix, so the point is (7, 0, -3) [1]

2. A line through two points

When a line is given by two points A and B, the direction vector is overrightarrowAB = overrightarrowOB - overrightarrowOA: the position vector of the end point minus the position vector of the start point.

Either point can be used as boldsymbola. Any non-zero multiple of overrightarrowAB can be used as boldsymbolb. So a line has many correct vector equations, and a different-looking answer can still be right.

Check an equation by substituting the other point. It must give a value of λ that works in every component.

overrightarrowAB = overrightarrowOB - overrightarrowOA

boldsymbolr = overrightarrowOA + λoverrightarrowAB

Worked example 13 marks

Find a vector equation of the line through the points P(1, 2, -3) and Q(4, -2, 9).

  1. 1

    M1: direction vector overrightarrowPQ = overrightarrowOQ - overrightarrowOP [1]

  2. 2

    A1: overrightarrowPQ = beginpmatrix 3 -4 12 endpmatrix [1]

  3. 3

    A1: boldsymbolr = beginpmatrix 1 2 -3 endpmatrix + λbeginpmatrix 3 -4 12 endpmatrix. Check: λ = 1 gives (4, -2, 9), which is Q [1]

3. Parametric form and testing a point

Reading boldsymbolr = boldsymbola + λboldsymbolb one component at a time gives the parametric form. Each coordinate has its own equation, and all of them use the same λ.

To test whether a point lies on a line, put its coordinates equal to the three parametric equations. Solve for λ from one equation, then check that value in the other two. The point is on the line only if one value of λ works for all three.

The command term *show that* needs every step and a conclusion. A value of λ found from one coordinate is not yet a proof: the R1 is for evidence of checking all three.

x = x₀ + λ l

y = y₀ + λ m

z = z₀ + λ n

Worked example 13 marks

A line l₂ in three-dimensional space has general vector boldsymbolr₂ = beginpmatrix 8 -5 3 endpmatrix + μbeginpmatrix -10 6 -2 endpmatrix.

Point B has coordinates (-17, 10, -2).

(c) Show that point B lies on l₂.

  1. 1

    A1: beginpmatrix -17 10 -2 endpmatrix = beginpmatrix 8 -5 3 endpmatrix + μbeginpmatrix -10 6 -2 endpmatrix [1]

  2. 2

    A1: μ = 2.5 (from -17 = 8 - 10μ) [1]

  3. 3

    R1: evidence of checking that μ = 2.5 works for all three coordinates: y: -5 + 6(2.5) = 10 and z: 3 - 2(2.5) = -2 [1]

4. A line as a path: describing it and finding speed

When a line models a moving object, the parameter is time. boldsymbola is the starting position and boldsymbolb is the change in position in one unit of time.

The speed is the magnitude of boldsymbolb. Give it with its unit, for example km min⁻¹. To *describe* the path, make statements about the path itself: it is a straight line, at a constant altitude, heading in a named direction. A statement that quotes a rate needs its units: the markscheme marks these "units required". A statement must be about the path, not the speed.

speed = |boldsymbolb| = √(l² + m² + n²)

Worked example 14 marks

A flock of birds has flight path boldsymbolr = beginpmatrix -11 30 6 endpmatrix + t₁beginpmatrix -0.40 -0.35 0.1 endpmatrix. A passenger airplane has flight path boldsymbolr = beginpmatrix 5 -2 7 endpmatrix + t₁beginpmatrix -1.4 1.65 0 endpmatrix. The x-coordinate is displacement east of the control tower, the y-coordinate is displacement north, and the z-coordinate is height above sea level. Distances are in kilometres and t₁ is the time, in minutes, since 10:00 am.

(a) Determine the speed, in kilometres per minute, at which the flock of birds is travelling.

(b) By making two statements, describe the path of the airplane in context.

  1. 1

    (a) (A1): speed = √((-0.40)² + (-0.35)² + (0.1)²) [1]

  2. 2

    A1: 0.541 km min⁻¹ (0.540832…) [1]

  3. 3

    (b) A1: flying in a straight line [1]

  4. 4

    A1: flying at a constant altitude of 7 kilometres, or parallel to the ground [1]

5. Changing the parameter

The same path can be written with a different starting time. If the new time t₂ is measured from a later moment, then t₁ = t₂ + 20 for a start 20 minutes later.

Substitute t₁ = t₂ + 20 into the equation. Then collect the constant vector and the multiple of t₂. The new boldsymbola is the position at the new start time. The direction vector boldsymbolb does not change, because the velocity has not changed.

Worked example 12 marks

A passenger airplane has flight path boldsymbolr = beginpmatrix 5 -2 7 endpmatrix + t₁beginpmatrix -1.4 1.65 0 endpmatrix, where t₁ is the time, in minutes, since 10:00 am. At 10:20 am a jet is detected. Its movement is given in terms of t₂, the time, in minutes, since 10:20 am.

(d) Find the vector equation of the motion of the passenger airplane in terms of t₂.

  1. 1

    (A1): beginpmatrix x y z endpmatrix = beginpmatrix 5 -2 7 endpmatrix + (t₂ + 20)beginpmatrix -1.4 1.65 0 endpmatrix [1]

  2. 2

    A1: beginpmatrix x y z endpmatrix = beginpmatrix -23 31 7 endpmatrix + t₂beginpmatrix -1.4 1.65 0 endpmatrix [1]

6. Position at a given time

To find where an object is at a given time, substitute the value of the parameter into the vector equation. To find the time when one coordinate has a given value, put that coordinate's equation equal to the value and solve.

Two objects are at the same place only if all three coordinates are equal at the same time. If any one coordinate differs, they are not at the same place. For *explain*, the markscheme needs a reference to the x- or y-coordinates being different. Simply referring to the two position vectors is not sufficient.

Worked example 16 marks

A flock of birds has flight path boldsymbolr = beginpmatrix -11 30 6 endpmatrix + t₁beginpmatrix -0.40 -0.35 0.1 endpmatrix. A passenger airplane has flight path boldsymbolr = beginpmatrix 5 -2 7 endpmatrix + t₁beginpmatrix -1.4 1.65 0 endpmatrix. Distances are in kilometres and t₁ is the time, in minutes, since 10:00 am.

(c)(i) Find the time at which the birds and the airplane will have the same height.

(ii) Using your answer to part (c)(i), explain why the birds will not collide with the airplane.

  1. 1

    (c)(i) (A1): 6 + 0.1t₁ = 7 [1]

  2. 2

    A1: t₁ = 10 minutes, which is 10:10 am [1]

  3. 3

    (ii) (M1): substitute t₁ = 10 into either vector equation [1]

  4. 4

    A1: airplane at beginpmatrix -9 14.5 7 endpmatrix [1]

  5. 5

    A1: birds at beginpmatrix -15 26.5 7 endpmatrix [1]

  6. 6

    R1: the x- or y-coordinates are different at the time the z-coordinates are equal, so the airplane and the birds will not collide [1]

Recap

  • A vector equation of a line is boldsymbolr = boldsymbola + λboldsymbolb. boldsymbola is the position vector of a point on the line and boldsymbolb is a direction vector.
  • Through two points A and B: use overrightarrowAB = overrightarrowOB - overrightarrowOA as the direction. Any point and any non-zero multiple of the direction give a correct equation.
  • Parametric form: x = x₀ + λ l, y = y₀ + λ m, z = z₀ + λ n. A point is on the line only if one λ works in all three coordinates.
  • For a moving object the parameter is time. The speed is |boldsymbolb|, quoted with its unit.
  • To change the start time, substitute for the old parameter in terms of the new one. The direction vector stays the same.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State a direction vector of the line with equation boldsymbolr = beginpmatrix 2 -1 5 endpmatrix + λbeginpmatrix 3 0 -4 endpmatrix.1 mark
    Answer
    1. beginpmatrix 3 0 -4 endpmatrix, or any non-zero multiple of it.

    Trap: Giving the position vector beginpmatrix 2 -1 5 endpmatrix, which is a point on the line and not its direction.

  2. Which is a vector equation of the line through the point (1, 2) with direction vector beginpmatrix 3 -1 endpmatrix? A. boldsymbolr = beginpmatrix 3 -1 endpmatrix + λbeginpmatrix 1 2 endpmatrix B. boldsymbolr = beginpmatrix 1 2 endpmatrix + λbeginpmatrix 3 -1 endpmatrix C. boldsymbolr = beginpmatrix 1 2 endpmatrix + λbeginpmatrix -1 3 endpmatrix D. boldsymbolr = beginpmatrix 1 2 endpmatrix + λbeginpmatrix -3 -1 endpmatrix1 mark
    Answer
    1. The answer is B: the point (1, 2) is boldsymbola and beginpmatrix 3 -1 endpmatrix is boldsymbolb.
    2. A swaps the point and the direction. C swaps the two components of the direction. D changes the sign of one component only.

    Trap: Choosing A, which puts the direction vector first and treats it as the point.

  3. Do not use a calculator. A line l has equation boldsymbolr = beginpmatrix 4 -3 1 endpmatrix + λbeginpmatrix 2 5 -1 endpmatrix. Write down the parametric equations of l.2 marks
    Answer
    1. x = 4 + 2λ
    2. y = -3 + 5λ
    3. z = 1 - λ

    Trap: Losing the sign in z and writing 1 + λ, or swapping the roles of the point and the direction and writing x = 2 + 4λ.

  4. Do not use a calculator. Find a vector equation of the line through the points A(1, 4, -2) and B(5, 1, 4).3 marks
    Answer
    1. overrightarrowAB = overrightarrowOB - overrightarrowOA = beginpmatrix 5 1 4 endpmatrix - beginpmatrix 1 4 -2 endpmatrix = beginpmatrix 4 -3 6 endpmatrix.
    2. boldsymbolr = beginpmatrix 1 4 -2 endpmatrix + λbeginpmatrix 4 -3 6 endpmatrix.
    3. Check: λ = 1 gives (5, 1, 4), which is B.

    Trap: Adding the position vectors, beginpmatrix 6 5 2 endpmatrix, instead of subtracting them to find the direction.

  5. Do not use a calculator. A line l has equation boldsymbolr = beginpmatrix 2 -1 3 endpmatrix + λbeginpmatrix 1 2 -2 endpmatrix. Determine whether the point P(5, 5, -2) lies on l.3 marks
    Answer
    1. x: 2 + λ = 5, so λ = 3.
    2. y: -1 + 2(3) = 5, which agrees.
    3. z: 3 - 2(3) = -3, but the point has z = -2.
    4. The z-coordinate does not agree, so P does not lie on l.

    Trap: Stopping after two coordinates agree and concluding that P is on the line. All three must agree for the same λ.

  6. Do not use a calculator. A line l in two dimensions has equation boldsymbolr = beginpmatrix 1 3 endpmatrix + λbeginpmatrix 2 -6 endpmatrix. (a) Find the coordinates of the point on l where x = 7. (b) Determine whether the point (-3, 15) lies on l.4 marks
    Answer
    1. (a)
    2. 1 + 2λ = 7, so λ = 3.
    3. y = 3 - 6(3) = -15, so the point is (7, -15).
    4. (b)
    5. 1 + 2λ = -3, so λ = -2.
    6. y = 3 - 6(-2) = 15, which agrees, so (-3, 15) lies on l.

    Trap: Treating x = 7 as the value of λ, which gives (15, -39). Solve for λ first.

  7. A drone flies along a straight path. Its position, in metres, relative to the pilot at time t seconds is given by boldsymbolr = beginpmatrix 0 2 10 endpmatrix + tbeginpmatrix 3 -4 0.5 endpmatrix. (a) Find the position of the drone when t = 6. (b) Calculate the speed of the drone. Give your answer to three significant figures, in m s⁻¹.4 marks
    Answer
    1. (a)
    2. boldsymbolr = beginpmatrix 0 2 10 endpmatrix + 6beginpmatrix 3 -4 0.5 endpmatrix = beginpmatrix 18 -22 13 endpmatrix.
    3. (b)
    4. Speed = |boldsymbolb| = √(3² + (-4)² + 0.5²) = √(25.25).
    5. Speed = 5.02 m s⁻¹.

    Trap: Taking the speed from the sum of the components, 3 - 4 + 0.5, or using the magnitude of the position vector. The speed is the magnitude of the direction vector.

  8. Do not use a calculator. A balloon moves so that its position, in kilometres, is given by boldsymbolr = beginpmatrix 2 1 4 endpmatrix + tbeginpmatrix 1 -2 2 endpmatrix, where t is the time in hours since 09:00. Find the vector equation of the motion of the balloon in terms of s, the time in hours since 11:00.3 marks
    Answer
    1. 11:00 is two hours after 09:00, so t = s + 2.
    2. boldsymbolr = beginpmatrix 2 1 4 endpmatrix + (s + 2)beginpmatrix 1 -2 2 endpmatrix.
    3. boldsymbolr = beginpmatrix 4 -3 8 endpmatrix + sbeginpmatrix 1 -2 2 endpmatrix.

    Trap: Using t = s - 2, which gives beginpmatrix 0 5 0 endpmatrix as the starting position. The later start has the larger t.

  9. A straight zip-line cable runs from the top of a tower at A(0, 0, 40) to an anchor at B(60, 80, 10). Distances are in metres and z is height above the ground. (a) Find a vector equation of the line of the cable. (b) A vertical post stands at the point where x = 45 and y = 60 on the ground. Find the height of the cable directly above the post. (c) A lamp is fixed at (20, 28, 30). Determine whether the lamp lies on the cable.8 marks
    Answer
    1. (a)
    2. overrightarrowAB = beginpmatrix 60 80 10 endpmatrix - beginpmatrix 0 0 40 endpmatrix = beginpmatrix 60 80 -30 endpmatrix, so boldsymbolr = beginpmatrix 0 0 40 endpmatrix + λbeginpmatrix 60 80 -30 endpmatrix.
    3. (b)
    4. x: 60λ = 45, so λ = 0.75. Check y: 80(0.75) = 60, which agrees, so the post is under the cable.
    5. z = 40 - 30(0.75) = 17.5, so the cable is 17.5 m above the ground there.
    6. (c)
    7. x: 60λ = 20, so λ = 1/3. z: 40 - 30(1/3) = 30, which agrees.
    8. y: 80(1/3) = 26.7 (26.666…), but the lamp has y = 28.
    9. One value of λ does not work for all three coordinates, so the lamp does not lie on the cable.

    Trap: Checking only x and z, which both agree at λ = 1/3, and concluding the lamp is on the cable: the markscheme's R1 needs evidence of checking all three coordinates.

  10. Two drones fly in straight lines. Distances are in metres. Drone P: boldsymbolr = beginpmatrix 5 0 20 endpmatrix + tbeginpmatrix 12 16 15 endpmatrix, where t is the time, in seconds, since 14:00:00. Drone Q is detected 4 seconds later. Drone Q: boldsymbolr = beginpmatrix 97 92 100 endpmatrix + sbeginpmatrix -10 2 5 endpmatrix, where s is the time, in seconds, since 14:00:04. (a) Calculate the speed of drone P, in m s⁻¹. (b) Find the vector equation of drone P in terms of s. (c) Determine whether the two drones collide. If they do, state the time and the coordinates of the collision.8 marks
    Answer
    1. (a)
    2. Speed = √(12² + 16² + 15²) = √(625) = 25 m s⁻¹.
    3. (b)
    4. t = s + 4, so boldsymbolr = beginpmatrix 5 0 20 endpmatrix + (s + 4)beginpmatrix 12 16 15 endpmatrix = beginpmatrix 53 64 80 endpmatrix + sbeginpmatrix 12 16 15 endpmatrix.
    5. (c)
    6. x: 53 + 12s = 97 - 10s, so 22s = 44 and s = 2.
    7. y: 64 + 16(2) = 96 and 92 + 2(2) = 96, which agree.
    8. z: 80 + 15(2) = 110 and 100 + 5(2) = 110, which agree.
    9. All three coordinates are equal at s = 2, so the drones collide at 14:00:06 at (77, 96, 110).

    Trap: Using drone P's equation unchanged with t = s: the x-coordinates then agree at s = 92/22 = 4.18, but the y-coordinates do not (66.9 and 100.4), which wrongly gives no collision. The markscheme penalises an equation not adjusted to the later start time.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The airplane is moving towards the east at -1.4 km min⁻¹.The airplane is flying towards the west at 1.4 km min⁻¹, with units. The markscheme does not accept a statement about moving east at -1.4.
The position vectors at t₁ = 10 are different, so they do not collide.At t₁ = 10 the z-coordinates are both 7, but the x-coordinates are different: -9 and -15. So they do not collide.
μ = 2.5 from the x-coordinate, so B is on the line.μ = 2.5 is checked in all three coordinates, then B is on the line.
Airplane in terms of t₂: beginpmatrix x y z endpmatrix = beginpmatrix 5 -2 7 endpmatrix + t₂beginpmatrix -1.4 1.65 0 endpmatrix, the old equation with t₁ renamed.Substitute t₁ = t₂ + 20: beginpmatrix x y z endpmatrix = beginpmatrix -23 31 7 endpmatrix + t₂beginpmatrix -1.4 1.65 0 endpmatrix. With no adjustment to the airplane's equation, the markscheme awards at most (M1)(A0)(M1)(A0)R1 in part (e).

Frequently asked questions

What is the vector equation of a line?
The vector equation of a line is boldsymbolr = boldsymbola + λboldsymbolb, where boldsymbola is the position vector of a known point on the line and boldsymbolb is a direction vector. The parameter λ is any real number, and each value gives one point. For A(3, -2, 5) with direction beginpmatrix 2 1 -4 endpmatrix, λ = 2 gives the point (7, 0, -3).
How do I find the vector equation of a line through two points?
Find the direction vector overrightarrowAB = overrightarrowOB - overrightarrowOA, which is end minus start. Either point can be used as boldsymbola, and any non-zero multiple of the direction can be used as boldsymbolb. For P(1, 2, -3) and Q(4, -2, 9), the direction is beginpmatrix 3 -4 12 endpmatrix, so boldsymbolr = beginpmatrix 1 2 -3 endpmatrix + λbeginpmatrix 3 -4 12 endpmatrix. Check that λ = 1 gives Q.
How do I show that a point lies on a line?
Write the line in parametric form, x = x₀ + λ l, y = y₀ + λ m, z = z₀ + λ n. Solve for λ from one coordinate, then check that the same value works in the other two. For B(-17, 10, -2) on the line with μ = 2.5, the y-coordinate gives -5 + 6(2.5) = 10 and the z-coordinate gives 3 - 2(2.5) = -2, so B is on the line.
How do I find the speed of an object moving along a line?
The speed is the magnitude of the direction vector boldsymbolb, so speed = √(l² + m² + n²). Give it with its unit. For the flock of birds with boldsymbolb = beginpmatrix -0.40 -0.35 0.1 endpmatrix, the speed is 0.541 km min⁻¹, where the coordinates are in kilometres and time is in minutes.
How do I change the start time of a line's parameter?
Substitute the old parameter in terms of the new one. If t₁ = t₂ + 20 for a start 20 minutes later, put t₁ = t₂ + 20 into the equation and collect the constant vector. The direction vector boldsymbolb does not change. For the passenger airplane, beginpmatrix 5 -2 7 endpmatrix + (t₂ + 20)beginpmatrix -1.4 1.65 0 endpmatrix gives beginpmatrix -23 31 7 endpmatrix + t₂beginpmatrix -1.4 1.65 0 endpmatrix.
Why is saying the position vectors are different not enough to show that two objects will not collide?
Two objects are at the same place only if all three coordinates are equal at the same time. The markscheme needs a reference to the x- or y-coordinates being different at the time the z-coordinates are equal. Simply referring to the two position vectors is not sufficient. At t₁ = 10 both z-coordinates are 7, but the x-coordinates are different: -9 and -15.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters