Lesson 6 of 8 · 20 min

Vector equations of lines and curves

Write vector, parametric and Cartesian equations of lines and line segments in two and three dimensions, decide whether lines meet, and turn a parametric curve in the plane into a Cartesian equation.

What you will be able to do

  • Write r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d}, the parametric equations and the Cartesian equation of a line from two points or a point and a direction.
  • Describe a line segment by restricting the parameter, and test whether a point lies on a line.
  • Decide whether two lines in space intersect, are parallel or are skew.
  • Find a Cartesian equation for a curve given by a vector equation in two dimensions.

In the plane, y=mx+ky = mx + k describes a line, but in space there is no single equation like that for a line. Instead, think of a line as a journey: start at a point AA and walk in a fixed direction d\mathbf{d}. After "time" tt you are at a+td\mathbf{a} + t\mathbf{d}. Every value of tt, positive, negative or zero, gives a point on the line.

Key idea

Three ways to write a line

Through the point with position vector a\mathbf{a}, parallel to the direction vector d\mathbf{d}:

  • Vector equation: r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d}, t∈Rt \in \mathbb{R}.
  • Parametric equations: x=a1+td1x = a_1 + td_1, y=a2+td2y = a_2 + td_2, z=a3+td3z = a_3 + td_3.
  • Cartesian equation: solve each for tt and set them equal,
x−a1d1=y−a2d2=z−a3d3.\frac{x - a_1}{d_1} = \frac{y - a_2}{d_2} = \frac{z - a_3}{d_3}.

Through two points AA and BB, use d=AB→=b−a\mathbf{d} = \overrightarrow{AB} = \mathbf{b} - \mathbf{a}.

Interactive

Walking along a line

Slide the point along LL by changing tt. Which value of tt gives the starting point? Which gives a point on the far side of it?

Worked example

Equations of the line through two points

  • Simple familiar
  • Technology free

AA is (2,−1,3)(2, -1, 3) and BB is (4,2,−1)(4, 2, -1).

(a) Find vector, parametric and Cartesian equations of the line ABAB.

(b) Determine whether C(8,8,−9)C(8, 8, -9) and D(6,5,−4)D(6, 5, -4) lie on the line.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. d=b−a\mathbf{d} = \mathbf{b} - \mathbf{a}; r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d}.

  2. Read the parametric equations from the components.

  3. Cartesian: solve each for tt and equate.

  4. To test a point, find tt from one coordinate and check the other two.

Watch out for

  • Stopping after two coordinates match. All three must agree.

  • Writing z+3−4\frac{z + 3}{-4}: the numerator is z−a3=z−3z - a_3 = z - 3.

A line has vector equation r=(i^−2j^+3k^)+t(3i^+2j^−2k^)\mathbf{r} = (\hat{\mathbf{i}} - 2\hat{\mathbf{j}} + 3\hat{\mathbf{k}}) + t(3\hat{\mathbf{i}} + 2\hat{\mathbf{j}} - 2\hat{\mathbf{k}}). Find the point where it crosses the xyxy-plane.

Tip

A zero in the direction vector

If a component of d\mathbf{d} is zero you cannot divide by it. For r=(1,4,−2)+t(3,0,5)\mathbf{r} = (1, 4, -2) + t(3, 0, 5), the yy-coordinate never changes, so write

x−13=z+25,y=4.\frac{x - 1}{3} = \frac{z + 2}{5}, \quad y = 4.

Definition

Line segments

r=a+t(b−a)\mathbf{r} = \mathbf{a} + t(\mathbf{b} - \mathbf{a}) with 0≤t≤10 \le t \le 1 is the segment from AA (t=0t = 0) to BB (t=1t = 1). The midpoint is at t=12t = \frac{1}{2}.

Which is a direction vector of the line x−23=y+1−1=z4\dfrac{x - 2}{3} = \dfrac{y + 1}{-1} = \dfrac{z}{4}?

Choose one answer

Key idea

Do two lines meet?

Give the lines different parameters, say r=a+sd1\mathbf{r} = \mathbf{a} + s\mathbf{d}_1 and r=b+td2\mathbf{r} = \mathbf{b} + t\mathbf{d}_2. Then:

  1. If d2=kd1\mathbf{d}_2 = k\mathbf{d}_1 the lines are parallel (or the same line).
  2. Otherwise equate the components, solve two of the three equations for ss and tt, and substitute into the third.
  3. If the third equation is satisfied the lines intersect; if not, they are skew: not parallel, yet they never meet.

Worked example

Do two lines in space intersect?

  • Complex familiar
  • Technology free

L1L_1: r=(i^+2k^)+s(i^+2j^−k^)\mathbf{r} = (\hat{\mathbf{i}} + 2\hat{\mathbf{k}}) + s(\hat{\mathbf{i}} + 2\hat{\mathbf{j}} - \hat{\mathbf{k}}) and L2L_2: r=(5i^+2j^−2k^)+t(−i^+j^+k^)\mathbf{r} = (5\hat{\mathbf{i}} + 2\hat{\mathbf{j}} - 2\hat{\mathbf{k}}) + t(-\hat{\mathbf{i}} + \hat{\mathbf{j}} + \hat{\mathbf{k}}).

Show that the lines intersect, find the point of intersection, and find the angle between the lines.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Rule out parallel lines.

  2. Equate components with different parameters.

  3. Solve two equations; test the third (consistent means they meet, inconsistent means skew).

  4. Substitute back for the point; use the direction vectors for the angle.

Watch out for

  • Using the same parameter for both lines.

  • Solving two equations and forgetting to check the third.

Lines are not the only things a parameter can trace. As tt varies, r(t)=x(t)i^+y(t)j^\mathbf{r}(t) = x(t)\hat{\mathbf{i}} + y(t)\hat{\mathbf{j}} traces a curve. In two dimensions you can usually eliminate tt to get a Cartesian equation linking xx and yy: make tt the subject of one equation, or use an identity such as cos⁡2(t)+sin⁡2(t)=1\cos^2(t) + \sin^2(t) = 1.

r(t)=(t+1)i^+(t2−3)j^\mathbf{r}(t) = (t + 1)\hat{\mathbf{i}} + (t^2 - 3)\hat{\mathbf{j}} traces the parabola y=(x−1)2−3y = (x - 1)^2 - 3.

Worked example

A Cartesian equation from a vector equation

  • Simple familiar
  • Technology free

A curve has vector equation r(t)=(t+1)i^+(t2−3)j^\mathbf{r}(t) = (t + 1)\hat{\mathbf{i}} + (t^2 - 3)\hat{\mathbf{j}}, t∈Rt \in \mathbb{R}. Find its Cartesian equation and describe the curve. What part of the curve is traced if only t≥0t \ge 0 is allowed?

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Write xx and yy in terms of tt.

  2. Eliminate tt: make it the subject, or use an identity like cos⁡2(t)+sin⁡2(t)=1\cos^2(t) + \sin^2(t) = 1.

  3. Translate any restriction on tt into a restriction on xx or yy.

Watch out for

  • Ignoring the domain of tt, which can cut the graph down to part of a curve.

A curve has vector equation r(t)=(2t−1)i^+4t2 j^\mathbf{r}(t) = (2t - 1)\hat{\mathbf{i}} + 4t^2\,\hat{\mathbf{j}}. Find its Cartesian equation, giving yy in terms of xx.

Reads asYour answer shows here as maths.
Curves in three dimensions

In space, r(t)=cos⁡(t) i^+sin⁡(t) j^+t k^\mathbf{r}(t) = \cos(t)\,\hat{\mathbf{i}} + \sin(t)\,\hat{\mathbf{j}} + t\,\hat{\mathbf{k}} is a helix, a spring shape. Its xx- and yy-coordinates satisfy x2+y2=1x^2 + y^2 = 1, so it winds around a cylinder of radius 1, rising 2π2\pi for each turn. The syllabus asks you to use 3D curves like this, but to find Cartesian equations only in two dimensions.

Common mistake

One parameter for two lines

Writing both lines with the same tt looks for a point both lines reach at the same "time", which is a different question. Two lines can cross even when s≠ts \neq t. Use ss and tt.

Summary

  • r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d}; through AA and BB, use d=b−a\mathbf{d} = \mathbf{b} - \mathbf{a}.

  • Parametric: x=a1+td1x = a_1 + td_1, and so on. Cartesian: x−a1d1=y−a2d2=z−a3d3\frac{x - a_1}{d_1} = \frac{y - a_2}{d_2} = \frac{z - a_3}{d_3}, with a zero component written separately.

  • A segment restricts the parameter: 0≤t≤10 \le t \le 1 from AA to BB.

  • Two lines with different parameters: parallel, intersecting (all three equations agree) or skew.

  • For a curve in the plane, eliminate tt to find its Cartesian equation.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 6 of 80% read

Save your progress with a free account