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.
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+t→d.
In many ways, this is not a new concept. Compare Equation ??? to the familiar "y=mx+b" 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+t→d=⟨x0,y0,z0⟩+t⟨a,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+at⇒t=x−x0a,y=y0+bt⇒t=y−y0b,z=z0+ct⇒t=z−z0c,
assuming a,b,c≠0.
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 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⟩.
- The vector equation of the line is →ℓ(t)=→p+t→d.
- The parametric equations of the line are
x=x0+at,y=y0+bt,z=z0+ct. - The symmetric equations of the line are
x−x0a=y−y0b=z−z0c.
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
- 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. (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:
−1−2−1?=6−31?=6−12⇒3=3≠2.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=2−ty=−1+4tz=2−3t.
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+t→d1 and →ℓ2(t)=→p2+t→d2, we have four possibilities: →ℓ1 and →ℓ2 are
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=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.
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).
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+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+s⇒s=−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.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.
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=→d1‖→d1‖=⟨0.3471,0.5901,−0.7289⟩→u2=→d2‖→d2‖=⟨−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,−336100⟩→d2=⟨−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,17√830,−21√830⟩→u2=⟨−√1083,−17√830,21√830⟩.
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.8−2.9?=(4.2)−10.15−4.93?=(2.3)−(−5.05)6.09⇒1.2069=1.2069=1.2069.
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+t→d 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.
From trigonometry, we know h=‖→PQ‖sinθ. We have a similar identity involving the cross product: ‖→PQ×→d‖=‖→PQ‖‖d‖sinθ. Divide both sides of this latter equation by ‖d‖ to obtain h:
h=‖→PQ×→d‖‖d‖.
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+t→d1 and →ℓ2(t)=→p2+t→d2 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=‖proj→c→P1P2‖=‖→P1P2⋅→c→c⋅→c→c‖=|→P1P2⋅→c|‖c‖2‖c‖=|→P1P2⋅→c|‖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: →P1P2⋅c=→P1P2⋅(→d1×→d2).
The following Key Idea restates these two distance formulas.
KEY IDEA 50 DISTANCE TO LINES
- 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×→d‖‖d‖. - 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=|→P1P2⋅→c|‖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⟩+t⟨2,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×→d‖‖d‖=‖⟨−4,4,−4⟩‖√14=4√3√14≈1.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=2−tz=tℓ2: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,1⟩→d2=⟨4,1,2⟩⇒→c=→d1×→d2=⟨−3,−2,7⟩.
From Key Idea 50 we have the distance h between the two lines is
h=|→P1P2⋅→c|‖c‖=42√62≈5.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.