Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

10.5: Lines

( \newcommand{\kernel}{\mathrm{null}\,}\)

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 10.47 where certain points along the line are indicated.

10.47.PNG
Figure 10.47: 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.

In many ways, this is not a new concept. Compare Equation ??? to the familiar "y=mx+b" equation of a line:

10.46.PNG
Figure 10.46: 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 ??? 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 that 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+att=xx0a,y=y0+btt=yy0b,z=z0+ctt=zz0c,

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:

xx0a=yy0b=zz0c.

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 62 Equations of Lines in Space

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

  1. The vector equation of the line is (t)=p+td.
  2. The parametric equations of the line are
    x=x0+at,y=y0+bt,z=z0+ct.
  3. The symmetric equations of the line are
    xx0a=yy0b=zz0c.

Example 10.5.1: Finding the equation of a line

Give all three equations, as given in Definition 62, 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?

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

  1. the vector equation of the line is (t)=2,3,1+t1,1,2;
  2. the parametric equations of the line are
    x=2t,y=3+t,z=1+2t; and
  3. the symmetric equations of the line are
    x21=y31=z12.
10.48.PNG
Figure 10.48: Graphing a line in Example 10.5.1.

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. (For instance, to make Figure 10.48, a certain graphics program was given the input (2-x,3+x,1+2*x). This particular program requires the variable always be "x" instead of "t").

Does the point Q=(1,6,6) lie on the line? The graph in Figure 10.48 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:
121?=631?=6123=32.5.
We see that Q does not lie on the line as it did not satisfy the symmetric equations.

Example 10.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).

Solution
Recall 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=2ty=1+4tz=23t.

10.49.PNG
Figure 10.49: A graph of the line in Example 10.5.2.

A graph of the points and line are given in Figure 10.49. Note how in the given parametrization 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 10.46. 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


word.PNG

The next two examples investigate these possibilities.

Example 10.5.3: Comparing lines

Consider lines 1 and 2, given in parametric equation form:
1:x=1+3ty=2tz=t2:x=2+4sy=3+sz=5+2s.
Determine whether 1 and 2 are the same line, intersect, are parallel, or skew.

Solution

We 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 10.50 verifies this fact (where the points and directions indicated by the equations of each line are identified).

10.50.PNG
Figure 10.50: Sketching the lines from Example 10.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. That is, we want s and t such that:

1+3t=2+4s2t=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 10.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.33.36t2:x=2.82.9sy=10.154.93sz=5.05+6.09s.

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

Solution
It 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. Rather, there are lots of digits after the decimal and the equations can look "messy.''

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, the standard way of determining this is by comparing their respective unit vectors. Using a calculator, we find:

u1=d1d1=0.3471,0.5901,0.7289u2=d2d2=0.3471,0.5901,0.7289.

The two vectors seem to be parallel (at least, their components are equal to 4 decimal places). In most situations, it would suffice to conclude that the lines are at least parallel, if not the same. One way to be sure is to rewrite d1 and d2 in terms of fractions, not decimals. We have

d1=1610,272100,336100d2=2910,493100,609100.

One can then find the magnitudes of each vector in terms of fractions, then compute the unit vectors likewise. After a lot of manual arithmetic (or after briefly using a computer algebra system), one finds that

u1=1083,17830,21830u2=1083,17830,21830.

We can now say without equivocation that these lines are parallel.

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.82.9?=(4.2)10.154.93?=(2.3)(5.05)6.091.2069=1.2069=1.2069.

10.51.PNG
Figure 10.51: Graphing the lines in Example 10.5.4

The point P1 lies on both lines, so we conclude they are the same line, just parametrized differently. Figure 10.51 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

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 10.52 will help establish a general method of computing this distance h.

10.52.PNG
Figure 10.52: Establishing the distance from a point to a line.

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.

10.53.PNG
Figure 10.53: 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 10.53. 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.

A problem in the Exercise section is to show that this distance is 0 when the lines intersect. Note the use of the Triple Scalar Product: P1P2c=P1P2(d1×d2).

The following Key Idea restates these two distance formulas.

KEY IDEA 50 DISTANCE TO LINES

  1. 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.
  2. 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 10.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.

Solution
The 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 50, we have the distance as
h=PQ×dd=4,4,414=43141.852.
The point Q is approximately 1.852 units from the line (t).

Example 10.5.6: Finding the distance between lines

Find the distance between the lines 1:x=1+3ty=2tz=t2:x=2+4sy=3+sz=5+2s.

Solution
These are the sames lines as given in Example 10.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 50 we have the distance h between the two lines is

h=|P1P2c|c=42625.334.

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 Exercise section) 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.


This page titled 10.5: Lines is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Gregory Hartman et al. via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?