11 Vectors

11.5 Lines

To find the equation of a line in the x-y plane, we need two pieces of information: a point and the slope. The slope conveys direction information. As vertical lines have an undefined slope, the following statement is more accurate:

To define a line, one needs a point on the line and the direction of the line.

This holds true for lines in space.

Let P be a point in space, let p be the vector with initial point at the origin and terminal point at P (i.e., p “points” to P), and let d be a vector. Consider the points on the line through P in the direction of d.

Clearly one point on the line is P; we can say that the vector p lies at this point on the line. To find another point on the line, we can start at p and move in a direction parallel to d. For instance, starting at p and traveling one length of d places one at another point on the line. Consider Figure 11.5.1 where certain points along the line are indicated.

margin:
(fullscreen)
Figure 11.5.1: Defining a line in space. Λ

The figure illustrates how every point on the line can be obtained by starting with p and moving a certain distance in the direction of d. That is, we can define the line as a function of t:

(t)=p+td. (11.5.1)

In many ways, this is not a new concept. Compare Equation (11.5.1) to the familiar “y=mx+b” equation of a line:

y=b+mx(t)=p+td
Starting
Point
Direction
How Far To
Go In That
Direction
Figure 11.5.2: Understanding the vector equation of a line.

The equations exhibit the same structure: they give a starting point, define a direction, and state how far in that direction to travel.

Equation (11.5.1) is an example of a vector-valued function; the input of the function is a real number and the output is a vector. We will cover vector-valued functions extensively in the next chapter.

There are other ways to represent a line. Let p=x0,y0,z0 and let d=a,b,c. Then the equation of the line through p in the direction of d is:

(t) =p+td
=x0,y0,z0+ta,b,c
=x0+at,y0+bt,z0+ct.

The last line states the the x values of the line are given by x=x0+at, the y values are given by y=y0+bt, and the z values are given by z=z0+ct. These three equations, taken together, are the parametric equations of the line through p in the direction of d.

Finally, each of the equations for x, y and z above contain the variable t. We can solve for t in each equation:

x=x0+at t=x-x0a,
y=y0+bt t=y-y0b,
z=z0+ct t=z-z0c,

assuming a,b,c0. Since t is equal to each expression on the right, we can set these equal to each other, forming the symmetric equations of the line through p in the direction of d:

x-x0a=y-y0b=z-z0c.

Each representation has its own advantages, depending on the context. We summarize these three forms in the following definition, then give examples of their use.

Definition 11.5.1 Equations of Lines in Space

Consider the line in space that passes through (x0,y0,z0) in the direction of d=a,b,c.

  1. (a)

    The vector equation of the line is

    (t)=x0,y0,z0+td.
  2. (b)

    The parametric equations of the line are

    x=x0+at,y=y0+bt,z=z0+ct.
  3. (c)

    The symmetric equations of the line are

    x-x0a=y-y0b=z-z0c.
Example 11.5.1 Finding the equation of a line

Give all three equations, as given in Definition 11.5.1, of the line through P=(2,3,1) in the direction of d=-1,1,2. Does the point Q=(-1,6,6) lie on this line?

SolutionWe identify the point P=(2,3,1) with the vector p=2,3,1. Following the definition, we have

  • the vector equation of the line is (t)=2,3,1+t-1,1,2;

  • the parametric equations of the line are

    x=2-t,y=3+t,z=1+2t; and
  • the symmetric equations of the line are

    x-2-1=y-31=z-12.

The first two equations of the line are useful when a t value is given: one can immediately find the corresponding point on the line. These forms are good when calculating with a computer; most software programs easily handle equations in these formats. margin:
(fullscreen)
Figure 11.5.3: Graphing a line in Example 11.5.1. Λ

Does the point Q=(-1,6,6) lie on the line? The graph in Figure 11.5.3 makes it clear that it does not. We can answer this question without the graph using any of the three equation forms. Of the three, the symmetric equations are probably best suited for this task. Simply plug in the values of x, y and z and see if equality is maintained:

-1-2-1=?6-31=?6-123=32.5.

We see that Q does not lie on the line as it did not satisfy the symmetric equations.

Example 11.5.2 Finding the equation of a line through two points

Find the parametric equations of the line through the points P=(2,-1,2) and Q=(1,3,-1).

SolutionRecall the statement made at the beginning of this section: to find the equation of a line, we need a point and a direction. We have two points; either one will suffice. The direction of the line can be found by the vector with initial point P and terminal point Q: PQ=-1,4,-3.

The parametric equations of the line through P in the direction of PQ are:

:x=2-ty=-1+4tz=2-3t.
margin:
(fullscreen)
Figure 11.5.4: A graph of the line in Example 11.5.2. Λ

A graph of the points and line are given in Figure 11.5.4. Note how in the given parameterization of the line, t=0 corresponds to the point P, and t=1 corresponds to the point Q. This relates to the understanding of the vector equation of a line described in Figure 11.5.2. The parametric equations “start” at the point P, and t determines how far in the direction of PQ to travel. When t=0, we travel 0 lengths of PQ; when t=1, we travel one length of PQ, resulting in the point Q.

Parallel, Intersecting and Skew Lines

In the plane, two distinct lines can either be parallel or they will intersect at exactly one point. In space, given equations of two lines, it can sometimes be difficult to tell whether the lines are distinct or not (i.e., the same line can be represented in different ways). Given lines 1(t)=p1+td1 and 2(t)=p2+td2, we have four possibilities: 1 and 2 are

the same line

they share all points;

intersecting lines

share only 1 point;

parallel lines

d1d2, no points in common; or

skew lines

d1d2, no points in common.

The next two examples investigate these possibilities.

Example 11.5.3 Comparing lines

Consider lines 1 and 2, given in parametric equation form:

1:x=1+3ty=2-tz=t    2:x=-2+4sy=3+sz=5+2s.

Determine whether 1 and 2 are the same line, intersect, are parallel, or skew.

SolutionWe start by looking at the directions of each line. Line 1 has the direction given by d1=3,-1,1 and line 2 has the direction given by d2=4,1,2. It should be clear that d1 and d2 are not parallel, hence 1 and 2 are not the same line, nor are they parallel. Figure 11.5.5 verifies this fact (where the points and directions indicated by the equations of each line are identified).

margin:
(fullscreen)
Figure 11.5.5: Sketching the lines from Example 11.5.3. Λ

We next check to see if they intersect (if they do not, they are skew lines). To find if they intersect, we look for t and s values such that the respective x, y and z values are the same. (This is why it is important that we have different parameters for our lines.) That is, we want s and t such that:

1+3t=-2+4s2-t=3+st=5+2s.

This is a relatively simple system of linear equations. Since the last equation is already solved for t, substitute that value of t into the equation above it:

2-(5+2s)=3+ss=-2,t=1.

A key to remember is that we have three equations; we need to check if s=-2,t=1 satisfies the first equation as well:

1+3(1)-2+4(-2).

It does not. Therefore, we conclude that the lines 1 and 2 are skew.

Example 11.5.4 Comparing lines

Consider lines 1 and 2, given in parametric equation form:

1:x=-0.7+1.6ty=4.2+2.72tz=2.3-3.36t    2:x=2.8-2.9sy=10.15-4.93sz=-5.05+6.09s.

Determine whether 1 and 2 are the same line, intersect, are parallel, or skew.

SolutionIt is obviously very difficult to simply look at these equations and discern anything. This is done intentionally. In the “real world,” most equations that are used do not have nice, integer coefficients.

We again start by deciding whether or not each line has the same direction. The direction of 1 is given by d1=1.6,2.72,-3.36 and the direction of 2 is given by d2=-2.9,-4.93,6.09. When it is not clear through observation whether two vectors are parallel or not, we can rescale the vectors. We see that d1-2.91.6=d2, so that the lines are parallel (if we had many more digits after the decimal point, we might have to decide if the lines are “parallel enough”).

margin:
(fullscreen)
Figure 11.5.6: Graphing the lines in Example 11.5.4. Λ

Are they the same line? The parametric equations for a line describe one point that lies on the line, so we know that the point P1=(-0.7,4.2,2.3) lies on 1. To determine if this point also lies on 2, plug in the x, y and z values of P1 into the symmetric equations for 2:

(-0.7)-2.8-2.9=?(4.2)-10.15-4.93=?(2.3)-(-5.05)6.091.2069=1.2069=1.2069.

The point P1 lies on both lines, so we conclude they are the same line, just parameterized differently. Figure 11.5.6 graphs this line along with the points and vectors described by the parametric equations. Note how d1 and d2 are parallel, though point in opposite directions (as indicated by their unit vectors above).

Distances

margin: dQPhPQθ Figure 11.5.7: Establishing the distance from a point to a line. Λ

Given a point Q and a line (t)=p+td in space, it is often useful to know the distance from the point to the line. (Here we use the standard definition of “distance,” i.e., the length of the shortest line segment from the point to the line.) Identifying p with the point P, Figure 11.5.7 will help establish a general method of computing this distance h.

From trigonometry, we know h=PQsinθ. We have a similar identity involving the cross product: PQ×d=PQdsinθ. Divide both sides of this latter equation by d to obtain h:

h=PQ×dd. (11.5.2)
margin:
(fullscreen)
Figure 11.5.8: Establishing the distance between lines. Λ

It is also useful to determine the distance between lines, which we define as the length of the shortest line segment that connects the two lines (an argument from geometry shows that this line segments is perpendicular to both lines). Let lines 1(t)=p1+td1 and 2(t)=p2+td2 be given, as shown in Figure 11.5.8. To find the direction orthogonal to both d1 and d2, we take the cross product: c=d1×d2. The magnitude of the orthogonal projection of P1P2 onto c is the distance h we seek:

h =projcP1P2
=P1P2cccc
=|P1P2c|c2c
=|P1P2c|c.

Exercise 30. shows that this distance is 0 when the lines intersect. Note the use of the Scalar Triple Product: P1P2c=P1P2(d1×d2).

The following Key Idea restates these two distance formulas.

Key Idea 11.5.1 Distances to Lines


(a) Let P be a point on a line that is parallel to d. The distance h from a point Q to the line is: h=PQ×dd. (b) Let P1 be a point on line 1 that is parallel to d1, and let P2 be a point on line 2 parallel to d2, and let c=d1×d2, where lines 1 and 2 are not parallel. The distance h between the two lines is: h=|P1P2c|c.

Example 11.5.5 Finding the distance from a point to a line

Find the distance from the point Q=(1,1,3) to the line (t)=1,-1,1+t2,3,1.

SolutionThe equation of the line gives us the point P=(1,-1,1) that lies on the line, hence PQ=0,2,2. The equation also gives d=2,3,1. Following Key Idea 11.5.1, we have the distance as

h =PQ×dd
=-4,4,-414
=4314.

The point Q is approximately 1.852 units from the line (t).

Example 11.5.6 Finding the distance between lines

Find the distance between the lines

1:x=1+3ty=2-tz=t    2:x=-2+4sy=3+sz=5+2s.

SolutionThese are the sames lines as given in Example 11.5.3, where we showed them to be skew. The equations allow us to identify the following points and vectors:

P1=(1,2,0)P2=(-2,3,5)P1P2=-3,1,5.
d1=3,-1,1d2=4,1,2c=d1×d2=-3,-2,7.

From Key Idea 11.5.1 we have the distance h between the two lines is

h =|P1P2c|c
=4262.

The lines are approximately 5.334 units apart.

One of the key points to understand from this section is this: to describe a line, we need a point and a direction. Whenever a problem is posed concerning a line, one needs to take whatever information is offered and glean point and direction information. Many questions can be asked (and are asked in the exercises) whose answer immediately follows from this understanding.

Lines are one of two fundamental objects of study in space. The other fundamental object is the plane, which we study in detail in the next section. Many complex three dimensional objects are studied by approximating their surfaces with lines and planes.

Exercises 11.5

 

Terms and Concepts

  1. 1.

    To find an equation of a line, what two pieces of information are needed?

  2. 2.

    Two distinct lines in the plane can intersect or be             .

  3. 3.

    Two distinct lines in space can intersect, be              or be             .

  4. 4.

    Use your own words to describe what it means for two lines in space to be skew.

Problems

In Exercises 5–14., write the vector, parametric and symmetric equations of the lines described.

  1. 5.

    Passes through P=(2,-4,1), parallel to d=9,2,5.

  2. 6.

    Passes through P=(6,1,7), parallel to d=-3,2,5.

  3. 7.

    Passes through P=(2,1,5) and Q=(7,-2,4).

  4. 8.

    Passes through P=(1,-2,3) and Q=(5,5,5).

  5. 9.
    Passes through P=(0,1,2) and orthogonal to both d1=2,-1,7 and d2=7,1,3.
  6. 10.
    Passes through P=(5,1,9) and orthogonal to both d1=1,0,1 and d2=2,0,3.
  7. 11.
    Passes through the point of intersection of 1(t) and 2(t) and orthogonal to both lines, where 1(t)=2,1,1+t5,1,-2 and 2(t)=-2,-1,2+t3,1,-1.
  8. 12.
    Passes through the point of intersection of 1(t) and 2(t) and orthogonal to both lines, where 1={x=ty=-2+2tz=1+t  and  2={x=2+ty=2-tz=3+2t.
  9. 13.

    Passes through P=(1,1), parallel to d=2,3.

  10. 14.

    Passes through P=(-2,5), parallel to d=0,1.

In Exercises 15–22., determine if the described lines are the same line, parallel lines, intersecting or skew lines. If intersecting, give the point of intersection.

  1. 15.
    1(t)=1,2,1+t2,-1,1, 2(t)=3,3,3+t-4,2,-2.
  2. 16.
    1(t)=2,1,1+t5,1,3, 2(t)=14,5,9+t1,1,1.
  3. 17.
    1(t)=3,4,1+t2,-3,4, 2(t)=-3,3,-3+t3,-2,4.
  4. 18.
    1(t)=1,1,1+t3,1,3, 2(t)=7,3,7+t6,2,6.
  5. 19.

    1={x=1+2ty=3-2tz=t  and  2={x=3-ty=3+5tz=2+7t

  6. 20.
    1={x=1.1+0.6ty=3.77+0.9tz=-2.3+1.5t  and 2={x=3.11+3.4ty=2+5.1tz=2.5+8.5t
  7. 21.
    1={x=0.2+0.6ty=1.33-0.45tz=-4.2+1.05t  and 2={x=0.86+9.2ty=0.835-6.9tz=-3.045+16.1t
  8. 22.
    1={x=0.1+1.1ty=2.9-1.5tz=3.2+1.6t  and 2={x=4-2.1ty=1.8+7.2tz=3.1+1.1t

In Exercises 23–26., find the distance from the point to the line.

  1. 23.

    P=(1,1,1),  (t)=2,1,3+t2,1,-2

  2. 24.

    P=(2,5,6),  (t)=-1,1,1+t1,0,1

  3. 25.

    P=(0,3),  (t)=2,0+t1,1

  4. 26.

    P=(1,1),  (t)=4,5+t-4,3

In Exercises 27–28., find the distance between the two lines.

  1. 27.
    1(t)=1,2,1+t2,-1,1, 2(t)=3,3,3+t4,2,-2.
  2. 28.
    1(t)=0,0,1+t1,0,0, 2(t)=0,0,3+t0,1,0.

Exercises 29–31. explore special cases of the distance formulas found in Key Idea 11.5.1.

  1. 29.

    Let Q be a point on the line (t). Show why the distance formula correctly gives the distance from the point to the line as 0.

  2. 30.

    Let lines 1(t) and 2(t) be intersecting lines. Show why the distance formula correctly gives the distance between these lines as 0.

  3. 31.
    Let lines 1(t) and 2(t) be parallel. (a) Show why the distance formula for distance between lines cannot be used as stated to find the distance between the lines. (b) Show why letting c=(P1P2×d2)×d2 allows one to use the formula. (c) Show how one can use the formula for the distance between a point and a line to find the distance between parallel lines.
Modern Campus CMS