Vector Equation of a Line

A2 · P3 · 4 min

A line in space is fixed by one point on it and a direction. The vector equation packages both, and a single parameter tt moves you along the line. Every question about two lines comes down to comparing their direction vectors and then, if they are not parallel, trying to solve for the parameters.

The equation

Key result
r=a+tb\mathbf{r} = \mathbf{a} + t\mathbf{b}
  • a\mathbf{a} is the position vector of a point on the line.
  • b\mathbf{b} is a direction vector (any non-zero multiple of it gives the same line).
  • tt is a scalar parameter; each value of tt gives one point on the line.
  • r\mathbf{r} is the position vector of a general point on the line.

Through two points AA and BB: r=a+t(b−a)\mathbf{r} = \mathbf{a} + t(\mathbf{b} - \mathbf{a}).

Line through two points

Find a vector equation of the line through A(1,−2,4)A(1, -2, 4) and B(3,1,0)B(3, 1, 0), and determine whether C(7,7,−8)C(7, 7, -8) lies on it.

Solution

Direction AB→=(23−4)\overrightarrow{AB} = \begin{pmatrix} 2 \\ 3 \\ -4 \end{pmatrix}, so r=(1−24)+t(23−4)\mathbf{r} = \begin{pmatrix} 1 \\ -2 \\ 4 \end{pmatrix} + t\begin{pmatrix} 2 \\ 3 \\ -4 \end{pmatrix}.

For CC: 1+2t=7⇒t=31 + 2t = 7 \Rightarrow t = 3; check −2+3(3)=7-2 + 3(3) = 7 ✓ and 4−4(3)=−84 - 4(3) = -8 ✓. So CC is on the line (at t=3t = 3).

Parallel, intersecting or skew

Method

Given r=a1+sb1\mathbf{r} = \mathbf{a}_1 + s\mathbf{b}_1 and r=a2+tb2\mathbf{r} = \mathbf{a}_2 + t\mathbf{b}_2:

  1. If b1\mathbf{b}_1 is a multiple of b2\mathbf{b}_2, the lines are parallel (or the same line, if a1\mathbf{a}_1 lies on the second line).
  2. Otherwise set the lines equal and write the three component equations in ss and tt.
  3. Solve two of the equations for ss and tt.
  4. Substitute into the third. If it holds, the lines intersect at that point. If not, they are skew: not parallel and never meeting.
Do the lines meet?

l1:r=(123)+s(1−12)l_1: \mathbf{r} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} + s\begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix} and l2:r=(401)+t(21−1)l_2: \mathbf{r} = \begin{pmatrix} 4 \\ 0 \\ 1 \end{pmatrix} + t\begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix}. Determine whether they intersect, and find the point if they do.

Solution

Directions are not multiples, so not parallel. Equate components:

1+s=4+2t,2−s=t,3+2s=1−t.1 + s = 4 + 2t, \qquad 2 - s = t, \qquad 3 + 2s = 1 - t.

From the second, t=2−st = 2 - s. First: 1+s=4+4−2s⇒3s=7⇒s=731 + s = 4 + 4 - 2s \Rightarrow 3s = 7 \Rightarrow s = \tfrac{7}{3}, t=−13t = -\tfrac{1}{3}.

Third: LHS =3+143=233= 3 + \tfrac{14}{3} = \tfrac{23}{3}; RHS =1+13=43= 1 + \tfrac{1}{3} = \tfrac{4}{3}. Not equal, so the lines are skew.

Intersecting lines

Show that r=(21−1)+s(121)\mathbf{r} = \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} + s\begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix} and r=(055)+t(31−2)\mathbf{r} = \begin{pmatrix} 0 \\ 5 \\ 5 \end{pmatrix} + t\begin{pmatrix} 3 \\ 1 \\ -2 \end{pmatrix} intersect, and find the point.

Solution

2+s=3t2 + s = 3t, 1+2s=5+t1 + 2s = 5 + t, −1+s=5−2t-1 + s = 5 - 2t.

From the first, s=3t−2s = 3t - 2. Second: 1+6t−4=5+t⇒5t=8⇒t=851 + 6t - 4 = 5 + t \Rightarrow 5t = 8 \Rightarrow t = \tfrac{8}{5}, so s=145s = \tfrac{14}{5}.

Third: LHS =−1+145=95= -1 + \tfrac{14}{5} = \tfrac{9}{5}; RHS =5−165=95= 5 - \tfrac{16}{5} = \tfrac{9}{5}. Consistent, so the lines intersect.

Point: (21−1)+145(121)=(24533595)\begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} + \tfrac{14}{5}\begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix} = \begin{pmatrix} \tfrac{24}{5} \\ \tfrac{33}{5} \\ \tfrac{9}{5} \end{pmatrix}.

Watch out

Use different letters for the two parameters. Writing tt for both lines forces the two points to be "at the same time", which is meaningless and gives wrong answers.

Cartesian form

Eliminating tt from x=a1+tb1x = a_1 + tb_1, y=a2+tb2y = a_2 + tb_2, z=a3+tb3z = a_3 + tb_3 gives

x−a1b1=y−a2b2=z−a3b3.\frac{x - a_1}{b_1} = \frac{y - a_2}{b_2} = \frac{z - a_3}{b_3}.

You are not required to use this in P3, but recognising it lets you read off a point and a direction if a line is given this way.

Exam tip

When asked to "find the point of intersection", give it as coordinates or a position vector, not as the values of ss and tt. The parameter values are working, not the answer.

Practice

Question
  1. Write a vector equation of the line through (2,0,−3)(2, 0, -3) parallel to i−2j+2k\mathbf{i} - 2\mathbf{j} + 2\mathbf{k}, and find where it meets the plane z=5z = 5 (i.e. the point with zz-coordinate 55).
  2. Determine whether r=(111)+s(2−13)\mathbf{r} = \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} + s\begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix} and r=(5−17)+t(−42−6)\mathbf{r} = \begin{pmatrix} 5 \\ -1 \\ 7 \end{pmatrix} + t\begin{pmatrix} -4 \\ 2 \\ -6 \end{pmatrix} are the same line.
  3. Find the point of intersection of r=(312)+s(110)\mathbf{r} = \begin{pmatrix} 3 \\ 1 \\ 2 \end{pmatrix} + s\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} and r=(042)+t(2−10)\mathbf{r} = \begin{pmatrix} 0 \\ 4 \\ 2 \end{pmatrix} + t\begin{pmatrix} 2 \\ -1 \\ 0 \end{pmatrix}.
Answers
  1. r=(20−3)+t(1−22)\mathbf{r} = \begin{pmatrix} 2 \\ 0 \\ -3 \end{pmatrix} + t\begin{pmatrix} 1 \\ -2 \\ 2 \end{pmatrix}; −3+2t=5⇒t=4-3 + 2t = 5 \Rightarrow t = 4, point (6,−8,5)(6, -8, 5).
  2. Directions are parallel (−2-2 times). (5−17)=(111)+2(2−13)\begin{pmatrix} 5 \\ -1 \\ 7 \end{pmatrix} = \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} + 2\begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix}, so the point lies on the first line: same line.
  3. 3+s=2t3 + s = 2t, 1+s=4−t1 + s = 4 - t: t=2t = 2, s=1s = 1; third component 2=22 = 2 ✓; point (4,2,2)(4, 2, 2).

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action