Analytic Geometry › Chapter 4

Parametric Equations of Lines

Several ways to parametrize a line, a ray and a segment, and how to convert between parametric and Cartesian forms.

4.1Introduction to Parametrization of Lines

A parametrization describes a curve as the image of a map t\mapsto\mathbf r(t). Each value of the parameter gives one point, and moving t moves the point along the curve. For a line the map is affine:

\mathbf r(t)=\mathbf r_0+t\,\mathbf d,\qquad t\in\mathbb R.

In coordinates: x=x_0+at, y=y_0+bt, z=z_0+ct. A Cartesian equation tells you whether a point is on the line; a parametrization lets you generate the points.

Example

The line x=1+2t, y=3-t passes through (1,3) at t=0 and has direction (2,-1). At t=2 it passes through (5,1).

Parametrization of a line. Move A and B, choose line, ray or segment, then slide t or press Play. The point is \mathbf r(t)=A+t(B-A).

4.2General and Directional Parametrization of a Line

Two forms

General form. Any point P_0 on the line and any non-zero direction \mathbf d give a parametrization \mathbf r(t)=P_0+t\mathbf d. Different choices of P_0 and \mathbf d describe the same line with different speeds and origins.

Directional form. Use the unit vector \mathbf u=\mathbf d/|\mathbf d|. Then \mathbf r(s)=P_0+s\,\mathbf u, and |s| is the distance from P_0.

The line through two points A and B is \mathbf r(t)=A+t(B-A).

Example

For A(1,2,3) and B(4,6,15): \mathbf d=(3,4,12) and |\mathbf d|=13.

\text{General: }\mathbf r(t)=(1,2,3)+t(3,4,12),\qquad \text{Directional: }\mathbf r(s)=(1,2,3)+s\Bigl(\tfrac{3}{13},\tfrac{4}{13},\tfrac{12}{13}\Bigr).

The two forms agree when s=13t.

4.3Projective Parametrization of a Line

The affine form A+t(B-A) never reaches the point at infinity. A projective parametrization uses a ratio of linear functions in one parameter u and covers the whole projective line.

Projective form

\mathbf r(u)=\frac{A+u\,B}{1+u},\qquad u\in\mathbb R\cup\{\infty\}.

It gives A at u=0, B at u=\infty, and the point at infinity (the direction of the line) at u=-1. With weights w_A,w_B>0 the general form is \dfrac{w_AA+u\,w_BB}{w_A+u\,w_B}.

Setting t=\dfrac{u}{1+u} recovers the affine form A+t(B-A), with t\in[0,1] corresponding to u\ge0. The parametrization is the line version of the rational Bézier curve of degree one.

Example

For A(1,2) and B(3,6): u=1 gives \dfrac{(1,2)+(3,6)}{2}=(2,4), the midpoint. As u\to-1 the point runs off to infinity in the direction (2,4).

4.4Parametrization of a Line Segment

Segment

\mathbf r(t)=A+t(B-A)=(1-t)A+tB,\qquad 0\le t\le1.

The value t=0 gives A, t=1 gives B, and t=\tfrac12 gives the midpoint. The segment has length |B-A|. Restricting to t\ge0 gives the ray from A through B. The point dividing AB internally in the ratio m:n has t=\dfrac m{m+n}.

Example

Find the point dividing AB in the ratio 1:2, with A(1,2,3) and B(4,6,15).

Here t=\tfrac13:

\bigl(1+1,\ 2+\tfrac43,\ 3+4\bigr)=\bigl(2,\ \tfrac{10}{3},\ 7\bigr).

4.5Conversion from Parametric to Cartesian Equations of a Line

To convert, eliminate the parameter. Solve each coordinate equation for t and equate the results.

x=x_0+at,\ y=y_0+bt,\ z=z_0+ct\ \Longrightarrow\ \frac{x-x_0}{a}=\frac{y-y_0}{b}=\frac{z-z_0}{c}.

Example: in the plane

Plane: x=1+2t, y=3-t. From the first, t=\tfrac{x-1}{2}, so y=3-\tfrac{x-1}{2}, which is

x+2y-7=0.

Check at t=0: (1,3) gives 1+6-7=0.

Example: in space

Space: x=2+t, y=-1+2t, z=3-t. Then x-2=\dfrac{y+1}{2}=-(z-3), which gives two planes

2x-y=5,\qquad x+z=5.

Check at t=1: (3,1,2) gives 6-1=5 and 3+2=5.

4.6Relative Positions of Two Parametric Lines

Let L_1:\ P_1+s\,\mathbf d_1 and L_2:\ P_2+t\,\mathbf d_2.

  1. If \mathbf d_1\times\mathbf d_2=\mathbf 0, the lines are parallel. They coincide when \overrightarrow{P_1P_2}\times\mathbf d_1=\mathbf0.
  2. Otherwise compute \Delta=\overrightarrow{P_1P_2}\cdot(\mathbf d_1\times\mathbf d_2). If \Delta=0 the lines meet in exactly one point; solve P_1+s\mathbf d_1=P_2+t\mathbf d_2 for (s,t).
  3. If \Delta\neq0 the lines are skew, and their distance is |\Delta|/|\mathbf d_1\times\mathbf d_2|.

Example

L_1:\ s(1,1,1) and L_2:\ (1,0,0)+t(0,1,0).

\mathbf d_1\times\mathbf d_2=(1,1,1)\times(0,1,0)=(-1,0,1)\ne\mathbf0, and \Delta=(1,0,0)\cdot(-1,0,1)=-1\ne0.

The lines are skew, at distance \dfrac{1}{\sqrt2}.

Q4Chapter 4: Quiz and Problems

Common student mistakes

Common error\mathbf r(t)=A+t(B-A) with t\in\mathbb R is the segment AB

CorrectThe segment needs 0\le t\le1

With all real t you get the whole line.

Common errorThe line through A and B is \mathbf r(t)=A+tB

Correct\mathbf r(t)=A+t(B-A)

The direction is the difference B-A, not the point B.

Common errorTo intersect two lines, solve P_1+t\,\mathbf d_1=P_2+t\,\mathbf d_2

CorrectUse two parameters: P_1+s\,\mathbf d_1=P_2+t\,\mathbf d_2

The lines meet at different parameter values in general.

Common errorTwo equations in s,t solved, so the lines meet

CorrectCheck the third coordinate too

Three equations, two unknowns. If the third fails, the lines are skew.

Common errorParallel direction vectors mean the same line

CorrectThey mean parallel lines. Coincident only if \overrightarrow{P_1P_2}\times\mathbf d_1=\mathbf0

Parallel lines may be distinct.

Multiple-choice quiz

1 Which parametrization traces exactly the segment AB, with A(2,1) and B(5,5)?
2 Eliminating t from x=1+2t, y=3-t gives
3 In \mathbf r(u)=\dfrac{A+uB}{1+u} the point at infinity occurs at
4 The point dividing AB in the ratio 2:3, with A(0,0,0) and B(10,5,15), is
5 The lines L_1:(1,0,0)+s(1,1,0) and L_2:t(1,1,0) are
6 A line has the parametrization (1+2t,\ 3-t). Its direction vector is
7 The line x=2+3t,\ y=-1+t,\ z=4 is
8 L_1:s(1,0,0) and L_2:(0,0,1)+t(0,1,0) are
9 The length of the segment from A(1,2,3) to B(4,6,15) is
Answered 0 of 9 · Correct 0

Written problems

Problem 1. Give Cartesian equations for x=1+t, y=2-t, z=3+2t. (4 marks)

Show solution

Solve for t: x-1=2-y=\dfrac{z-3}{2}. This gives two planes

x+y=3,\qquad 2x-z=-1.

Check at t=1: (2,1,5) gives 3 and 4-5=-1.

Problem 2. Decide whether L_1:(1,2,3)+s(1,0,1) and L_2:(2,0,4)+t(0,1,0) intersect, and find any common point. (6 marks)

Show solution

\mathbf d_1\times\mathbf d_2=(1,0,1)\times(0,1,0)=(-1,0,1)\ne\mathbf0, so the lines are not parallel. With \overrightarrow{P_1P_2}=(1,-2,1), \Delta=-1+0+1=0, so they are coplanar and meet in one point.

At s=1, L_1 gives (2,2,4). At t=2, L_2 gives (2,2,4). The intersection is (2,2,4).

Problem 3. Parametrize the segment from A(1,-1,2) to B(5,3,-2), find the point at t=\tfrac34 and the length of the segment. (5 marks)

Show solution

B-A=(4,4,-4), so \mathbf r(t)=(1+4t,\,-1+4t,\,2-4t), 0\le t\le1.

At t=\tfrac34: (4,2,-1). The length is \sqrt{16+16+16}=4\sqrt3.

Problem 4. Find a Cartesian equation of the line x=3-2t, y=1+4t. (3 marks)

Show solution

t=\tfrac{3-x}{2}, so y=1+2(3-x)=7-2x, that is 2x+y=7. Check at t=0: (3,1) gives 7.

Short essay

Essay. Compare the affine, directional and projective parametrizations of a line. When would you use each? (about 150 words)

Show model answer

The affine form P_0+t\mathbf d is the general tool. Any point and any direction work, and t has no fixed meaning. The directional form uses a unit vector, so the parameter is the signed distance from P_0, which suits distance and arc-length problems. The projective form \dfrac{A+uB}{1+u} covers the whole projective line, including the point at infinity at u=-1, and extends to weighted rational curves. For segments, restrict the affine form to 0\le t\le1. A strong answer names what each parameter measures and gives one use for each form.