3.11 · AHL · HL onlyPaper 1Paper 2Paper 3

Vector equations of lines

Builds on 3.10 Vectors in 2D and 3D17 min read

In a minute

A straight line is fixed by one point on it and one direction. The , r=a+λb\boldsymbol{r} = \boldsymbol{a} + \lambda\boldsymbol{b}, gives every point on it, one for each value of λ\lambda. Split into , it gives each coordinate on its own, which is how you find where a path meets the ground, a wall or a given point.

You'll be able to

  • Write a vector equation of a line from a point and a direction, or from two points, in 2D and 3D.
  • Read the point, the direction and the parameter λ\lambda in context, and test whether a point lies on a line.
  • Convert between r=a+λb\boldsymbol{r} = \boldsymbol{a} + \lambda\boldsymbol{b} and parametric form, and use parametric form to find the point where a line meets a condition.
Before you start3 quick questions on what this builds on
Check yourself
The points A(4,−2,1)\mathrm{A}(4, -2, 1) and B(1,3,5)\mathrm{B}(1, 3, 5) are given. Find AB→\overrightarrow{\mathrm{AB}}.
Check yourself
Find ∣(2−69)∣\left\lvert\begin{pmatrix}2\\-6\\9\end{pmatrix}\right\rvert.
Check yourself
Which is parallel to (2−13)\begin{pmatrix}2\\-1\\3\end{pmatrix}?

Revise first: 3.10 Vectors in 2D and 3D

The vector equation of a line

In 2.1 you fixed a line in 2D by a point and a gradient. A line in 3D has no single gradient, so you give its direction as a instead. One point and one direction pin down exactly one line.

Picture standing at a point A on a straight path. You reach every other point on the path by walking some multiple of the path's direction, forwards or backwards. A says this in symbols.

In the formula booklet
r=a+λb\boldsymbol{r} = \boldsymbol{a} + \lambda\boldsymbol{b}

a\boldsymbol{a} is the OA→\overrightarrow{\mathrm{OA}} of a known point A on the line. b\boldsymbol{b} is a : any non-zero vector parallel to the line. r\boldsymbol{r} is the position vector of a general point on the line.

λ\lambda (lambda) is the parameter, a real number. Each value of λ\lambda gives one point: λ=0\lambda = 0 gives A, λ=1\lambda = 1 gives the point one step of b\boldsymbol{b} further on, and negative values go backwards. As λ\lambda takes every real value, the points fill the whole line.

The formula is in the booklet. Always start with r=\boldsymbol{r} =. Without it you have an expression, not an equation. The same equation works in 2D, with two components, and in 3D, with three.

For a line through two points P and Q, start at either point. For the direction, use the displacement PQ→=q−p\overrightarrow{\mathrm{PQ}} = \boldsymbol{q} - \boldsymbol{p}.

Learn this
r=p+λ(q−p)\boldsymbol{r} = \boldsymbol{p} + \lambda(\boldsymbol{q} - \boldsymbol{p})
Axes with origin O. A straight cycle path runs from the cafe C at (-20, 50) down to the gate G at (60, -10), and a dashed line continues it beyond both ends. A vector a runs from O to C. A bold vector b runs along the path from C to G. Points on the line are marked lambda equals 0 at C, lambda equals 0.5 halfway along, and lambda equals 1 at G. A dashed vector r runs from O to the point where lambda equals 0.5. x y O C (−20, 50) λ = 0 λ = 0.5 G (60, −10) λ = 1 a b r
With a=OC→\boldsymbol{a} = \overrightarrow{\mathrm{OC}} and b=CG→\boldsymbol{b} = \overrightarrow{\mathrm{CG}}, values 0≤λ≤10 \le \lambda \le 1 give the path itself. Here r=a+0.5b\boldsymbol{r} = \boldsymbol{a} + 0.5\boldsymbol{b} is its midpoint.
Worked exampleA park is mapped with its entrance at the origin O, xx metres east and yy metres north. A straight cycle path runs from a café at C(−20,50)\mathrm{C}(-20, 50) to a gate at G(60,−10)\mathrm{G}(60, -10). Find a vector equation of the line along the path, starting at C. Find and interpret the point given by λ=0.25\lambda = 0.25.

Try it first, then reveal one step at a time.

  1. Direction: CG→=(60−(−20)−10−50)=(80−60)\overrightarrow{\mathrm{CG}} = \begin{pmatrix}60 - (-20)\\-10 - 50\end{pmatrix} = \begin{pmatrix}80\\-60\end{pmatrix}.
Worked exampleA ski lift's cable runs in a straight line from the bottom station B(120,40,15)\mathrm{B}(120, 40, 15) to the top station T(−80,290,515)\mathrm{T}(-80, 290, 515). Coordinates are in metres: xx east, yy north and zz height above a reference level. (a) Write down a vector equation of the cable's line in the form r=OB→+λBT→\boldsymbol{r} = \overrightarrow{\mathrm{OB}} + \lambda\overrightarrow{\mathrm{BT}}. (b) The top of a support tower is at (40,140,215)(40, 140, 215). Show that it lies on the line, find the value of λ\lambda there and interpret it.

Try it first, then reveal one step at a time.

  1. Direction: BT→=(−80−120290−40515−15)=(−200250500)\overrightarrow{\mathrm{BT}} = \begin{pmatrix}-80 - 120\\290 - 40\\515 - 15\end{pmatrix} = \begin{pmatrix}-200\\250\\500\end{pmatrix}.

A line has many vector equations. You can start at any point on it, and any non-zero multiple of b\boldsymbol{b} is also a direction vector. Above, (−200250500)=50(−4510)\begin{pmatrix}-200\\250\\500\end{pmatrix} = 50\begin{pmatrix}-4\\5\\10\end{pmatrix}, so (−4510)\begin{pmatrix}-4\\5\\10\end{pmatrix} gives the same line.

The meaning of λ\lambda changes with the equation, though. With direction (−4510)\begin{pmatrix}-4\\5\\10\end{pmatrix}, λ=1\lambda = 1 is no longer the top station. So read λ\lambda from the equation you were given.

In 2D, the line y=mx+cy = mx + c passes through (0,c)(0, c) and rises mm for every 11 across. So r=(0c)+λ(1m)\boldsymbol{r} = \begin{pmatrix}0\\c\end{pmatrix} + \lambda\begin{pmatrix}1\\m\end{pmatrix} is a vector equation of it. Going back, a direction (pq)\begin{pmatrix}p\\q\end{pmatrix} with p≠0p \ne 0 gives the gradient qp\frac{q}{p}.

Check yourself
Which is a vector equation of the line through P(3,−1,2)\mathrm{P}(3, -1, 2) and Q(5,2,−2)\mathrm{Q}(5, 2, -2)?
Check yourself
Which is a vector equation of the line y=3x−2y = 3x - 2?

Parametric form

A holds two or three equations in one. Write r\boldsymbol{r} as (xyz)\begin{pmatrix}x\\y\\z\end{pmatrix}, the known point as (x0,y0,z0)(x_{0}, y_{0}, z_{0}) and the direction as (lmn)\begin{pmatrix}l\\m\\n\end{pmatrix}. Then each row gives one coordinate.

In the formula booklet
x=x0+λl,y=y0+λm,z=z0+λnx = x_{0} + \lambda l, \quad y = y_{0} + \lambda m, \quad z = z_{0} + \lambda n

This is the of the line, and it is in the booklet too. Each coordinate is written in terms of the parameter λ\lambda. In 2D you have only the xx and yy equations.

Parametric form is how you use a line. A condition such as “on the ground” (z=0z = 0) or “at the wall x=5x = 5” gives one equation in λ\lambda. Solve it, then put that λ\lambda into every coordinate. If that coordinate has no λ\lambda term, the line is parallel to the ground or wall: it never meets it, or lies in it.

Worked exampleRelative to a depot O, a delivery drone descends along the line r=(12−560)+λ(43−15)\boldsymbol{r} = \begin{pmatrix}12\\-5\\60\end{pmatrix} + \lambda\begin{pmatrix}4\\3\\-15\end{pmatrix}. Distances are in metres: xx east, yy north and zz height above flat ground. Write the line in parametric form, and find the coordinates of the point where the drone lands.

Try it first, then reveal one step at a time.

  1. Read off each row: x=12+4λx = 12 + 4\lambda, y=−5+3λy = -5 + 3\lambda and z=60−15λz = 60 - 15\lambda.

Going back from parametric to vector form is reading off. The constants give the point and the coefficients of λ\lambda give the direction. A coordinate with no λ\lambda term has direction component 00.

Worked exampleA zip line is modelled by x=25−8λx = 25 - 8\lambda, y=12+6λy = 12 + 6\lambda, z=30−5λz = 30 - 5\lambda, where distances are in metres and zz is the height above the ground. A rider starts at λ=0\lambda = 0. (a) Write down a vector equation of the zip line. (b) The zip line ends at a landing platform where x=−15x = -15. Find the length of the zip line. Give your answer to 3 s.f.

Try it first, then reveal one step at a time.

  1. (a) Constants give the start, coefficients of λ\lambda give the direction: r=(251230)+λ(−86−5)\boldsymbol{r} = \begin{pmatrix}25\\12\\30\end{pmatrix} + \lambda\begin{pmatrix}-8\\6\\-5\end{pmatrix}.
Check yourself
The point (7,k,26)(7, k, 26) lies on the line x=−1+2λx = -1 + 2\lambda, y=4−3λy = 4 - 3\lambda, z=6+5λz = 6 + 5\lambda. Find kk.
Check yourself
A line has parametric form x=1−4λx = 1 - 4\lambda, y=6y = 6, z=3+2λz = 3 + 2\lambda. Which is a vector equation of the line?

Common mistakes

  • Leaving out r=\boldsymbol{r} =. On its own, (21)+λ(34)\begin{pmatrix}2\\1\end{pmatrix} + \lambda\begin{pmatrix}3\\4\end{pmatrix} is an expression, not an equation, and can lose a mark.
  • Using a position vector as the direction. For the line through P and Q, the direction is q−p\boldsymbol{q} - \boldsymbol{p}, not q\boldsymbol{q}.
  • Testing a point with one coordinate only. Find λ\lambda from one coordinate, then show that the same λ\lambda gives the others too.
  • Mixing up the parts of parametric form: putting a constant into the direction, or forgetting that a coordinate with no λ\lambda term has direction component 00.
  • Rounding λ\lambda before substituting it. Keep the full value and round only the final coordinates or length.

Exam tips

  • “Write down” a vector equation: no working is needed, but give the whole equation, starting r=\boldsymbol{r} =. The point and the direction vector can earn separate marks.
  • “Show that” a point lies on a line: find λ\lambda from one coordinate, substitute it into the others, and state the conclusion. The reasoning mark needs evidence that every coordinate agrees.
  • “Find the coordinates” of a point on a line: write the equation you solve for λ\lambda, such as 60−15λ=060 - 15\lambda = 0, then substitute. Give coordinates, not a column vector, unless a position vector is asked for.
  • “Interpret” λ\lambda in context: say which points λ=0\lambda = 0 and λ=1\lambda = 1 are. In 3.12 the parameter is time and the direction vector is a velocity.

Key takeaways

In bookletr=a+λb\boldsymbol{r} = \boldsymbol{a} + \lambda\boldsymbol{b}
Learn thisIn r=a+λb\boldsymbol{r} = \boldsymbol{a} + \lambda\boldsymbol{b}, a\boldsymbol{a} is the position vector of any point on the line and b\boldsymbol{b} is any non-zero vector parallel to it. Through P and Q, use b=PQ→=q−p\boldsymbol{b} = \overrightarrow{\mathrm{PQ}} = \boldsymbol{q} - \boldsymbol{p}.
Learn thisFor r=OP→+λPQ→\boldsymbol{r} = \overrightarrow{\mathrm{OP}} + \lambda\overrightarrow{\mathrm{PQ}}: λ=0\lambda = 0 is P, λ=1\lambda = 1 is Q, and 0≤λ≤10 \le \lambda \le 1 is the segment PQ. With a different point or direction, λ\lambda means something different.
Learn thisA point lies on a line only if one value of λ\lambda gives every one of its coordinates.
In bookletx=x0+λl,y=y0+λm,z=z0+λnx = x_{0} + \lambda l, \quad y = y_{0} + \lambda m, \quad z = z_{0} + \lambda n
Learn thisFrom parametric form back to r=a+λb\boldsymbol{r} = \boldsymbol{a} + \lambda\boldsymbol{b}: the constants give the point, the coefficients of λ\lambda give the direction, and a coordinate with no λ\lambda term has direction component 00.
Learn thisTo find where a line meets a condition such as z=0z = 0: solve that coordinate's equation for λ\lambda, then substitute that λ\lambda into every coordinate. If that coordinate has no λ\lambda term, there is no single meeting point.

Practise this

13 past-paper questions on Vector equations of lines in the AI HL bank, each with a mark scheme and a worked explanation.

Practise Vector equations of lines →