3.14 Vector equation of a line

3.14 Vector equation of a line

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • r=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}: a\mathbf{a} is a point on the line and b\mathbf{b} is a direction vector.
  • Parametric: x=x0+λlx=x_0+\lambda l, and so on. Cartesian: x−x0l=y−y0m=z−z0n\frac{x-x_0}{l}=\frac{y-y_0}{m}=\frac{z-z_0}{n}.
  • To test a point, find λ\lambda from one component and check it works for every component.
  • Angle between lines: cos⁡θ=∣b1⋅b2∣∣b1∣∣b2∣\cos\theta=\frac{|\mathbf{b}_1\cdot\mathbf{b}_2|}{|\mathbf{b}_1||\mathbf{b}_2|}.
  • Kinematics: r=a+tv\mathbf{r}=\mathbf{a}+t\mathbf{v}, with speed =∣v∣=|\mathbf{v}|.

The vector equation of a line

A point on the line plus a multiple of a direction vector gives every point on it.

If a\mathbf{a} is the position vector of a point on the line and b\mathbf{b} is a direction vector, every point has position vector r=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}, where λ∈R\lambda\in\mathbb{R}. Each value of the parameter λ\lambda gives one point. It works in two and three dimensions.

The equation is not unique: any point on the line and any non-zero multiple of b\mathbf{b} give the same line. For the line through PP and QQ, use r=p+λ(q−p)\mathbf{r}=\mathbf{p}+\lambda(\mathbf{q}-\mathbf{p}).

ab = (3, 2)OAB
The line r = (1, 1) + λ(3, 2): a locates a point, b gives the direction.

Worked example

Find a vector equation of the line through P(2,−1,3)P(2,-1,3) and Q(5,1,−1)Q(5,1,-1).

A line passes through P(1,2)P(1,2) and Q(4,6)Q(4,6). Which is a direction vector?

Parametric and Cartesian forms

The components give the parametric form; making λ\lambda the subject and equating gives the Cartesian form.

Write a=(x0,y0,z0)\mathbf{a}=(x_0,y_0,z_0) and b=(l,m,n)\mathbf{b}=(l,m,n). The components give the parametric form. Making λ\lambda the subject of each and equating gives the Cartesian form.

If a direction component is 0, that coordinate is constant (for example z=3z=3) and you write it separately. In 2D the Cartesian form rearranges to y=mx+cy=mx+c.

To go from Cartesian to vector form, read the point from the numerators (change the signs) and the direction from the denominators.

r = a + λbabOA
The line r = a + λb with a = (1, 2) and b = (3, 1): a reaches the line, b gives its direction, and λ moves along it.
  • Vectorr=a+λb\mathbf{r}=\mathbf{a}+\lambda\mathbf{b}
  • Parametricx=x0+λl, y=y0+λm, z=z0+λnx=x_0+\lambda l,\ y=y_0+\lambda m,\ z=z_0+\lambda n
  • Cartesianx−x0l=y−y0m=z−z0n\frac{x-x_0}{l}=\frac{y-y_0}{m}=\frac{z-z_0}{n}

Worked example

Write r=(1,−2,3)+λ(2,1,−2)\mathbf{r}=(1,-2,3)+\lambda(2,1,-2) in Cartesian form.

The line x−32=y+14=z−5−1\frac{x-3}{2}=\frac{y+1}{4}=\frac{z-5}{-1} has which point and direction?

Points on a line

Find λ\lambda from one component, then check the same λ\lambda gives the other components.

To test whether a point lies on a line, find λ\lambda from one component and check it gives the other components too.

To find where a line meets a condition (such as z=−5z=-5, or crossing the xx-axis where y=0y=0), set the relevant component equal to the value, solve for λ\lambda and substitute back.

  1. 1

    One component

    solve for λ

  2. 2

    Other components

    substitute the same λ

  3. 3

    Conclude

    on the line only if all match

Checking a point

Worked example

Does (5,1,−1)(5,1,-1) lie on r=(1,−2,3)+λ(2,1,−2)\mathbf{r}=(1,-2,3)+\lambda(2,1,-2)?

Where does r=(1,−2,3)+λ(2,1,−2)\mathbf{r}=(1,-2,3)+\lambda(2,1,-2) meet z=−5z=-5?

The angle between two lines

Use the direction vectors only, with a modulus to give the acute angle.

The angle between two lines is the angle between their direction vectors b1\mathbf{b}_1 and b2\mathbf{b}_2. The modulus gives the acute angle between lines. The position vectors play no part.

For the angle a line makes with the horizontal, compare its direction with the horizontal projection of that direction. For (6,3,−2)(6,3,-2) use (6,3,0)(6,3,0), or use sin⁡α=27\sin\alpha=\frac27 directly.

53.1°Ob₁b₂
The angle between two lines is the angle between their direction vectors b₁ = (3, 1) and b₂ = (1, 3): cos θ = 6/10, so θ ≈ 53.1°.
  • Acute anglecos⁡θ=∣b1⋅b2∣∣b1∣∣b2∣\cos\theta=\dfrac{|\mathbf b_1\cdot\mathbf b_2|}{|\mathbf b_1||\mathbf b_2|}

Worked example

Find the acute angle between lines with directions (1,2,2)(1,2,2) and (0,3,4)(0,3,4).

What is the angle between lines with directions (1,1,0)(1,1,0) and (1,0,1)(1,0,1)?

Kinematics: λ as time

With constant velocity, r=a+tv\mathbf{r}=\mathbf{a}+t\mathbf{v}: a\mathbf{a} is the start and v\mathbf{v} the velocity.

If an object moves with constant velocity, its position at time tt is r=a+tv\mathbf{r}=\mathbf{a}+t\mathbf{v}.

  • a\mathbf{a} is the initial position.
  • v\mathbf{v} is the velocity.
  • ∣v∣|\mathbf{v}| is the speed.

The closest approach to a fixed point HH happens when HS→\overrightarrow{HS} (from HH to the object) is perpendicular to v\mathbf{v}, so solve HS→⋅v=0\overrightarrow{HS}\cdot\mathbf{v}=0.

2468101214−8−6−4−22468xystart (2, 5)closest (8, -3)H (12, 0)path of the object
Path r = (2, 5) + t(3, −4): closest to H at t = 2, 5 km away.

Worked example

An object moves with r=(2,5)+t(3,−4)\mathbf{r}=(2,5)+t(3,-4) (km, hours). Find its closest distance to H(12,0)H(12,0).

A ship has velocity (2,3,6)(2,3,6) km/h. What is its speed?

Try an exam question

The line L1L_1 has equation r=(1−23)+λ(21−2)\mathbf{r}=\begin{pmatrix}1\\-2\\3\end{pmatrix}+\lambda\begin{pmatrix}2\\1\\-2\end{pmatrix}. (a) Show that the point (5,0,−1)(5,0,-1) lies on L1L_1. (b) Find the acute angle between L1L_1 and a line L2L_2 with direction (2−36)\begin{pmatrix}2\\-3\\6\end{pmatrix}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following points lies on LL?

1 mark, marked against the mark scheme

Revision notes