Why this matters#
In a flat plane, two lines either meet or run parallel. Space gives you a third option: lines that never meet and are not parallel either. We call these skew lines. Picture a flyover crossing a road below it. The shortest gap between two such lines runs along the one direction perpendicular to both. Here we find that distance for skew lines and for parallel lines, and then wrap up the chapter with mixed practice.
Shortest distance between skew lines#
Take the lines r ⃗ = a ⃗ 1 + λ b ⃗ 1 \vec r = \vec a_1 + \lambda\vec b_1 r = a 1 + λ b 1 and r ⃗ = a ⃗ 2 + μ b ⃗ 2 \vec r = \vec a_2 + \mu\vec b_2 r = a 2 + μ b 2 . The shortest distance is
d = ∣ ( b ⃗ 1 × b ⃗ 2 ) ⋅ ( a ⃗ 2 − a ⃗ 1 ) ∣ b ⃗ 1 × b ⃗ 2 ∣ ∣ . \displaystyle d = \left\lvert\frac{(\vec b_1 \times \vec b_2) \cdot (\vec a_2 - \vec a_1)}{\lvert\vec b_1 \times \vec b_2\rvert}\right\rvert. d = ∣ b 1 × b 2 ∣ ( b 1 × b 2 ) ⋅ ( a 2 − a 1 ) .
Where does this come from? It is just the projection of a ⃗ 2 − a ⃗ 1 \vec a_2 - \vec a_1 a 2 − a 1 on the common perpendicular b ⃗ 1 × b ⃗ 2 \vec b_1 \times \vec b_2 b 1 × b 2 . And if you get d = 0 d = 0 d = 0 , the lines actually intersect.
Example 1. r ⃗ = i ^ + j ^ + λ ( 2 i ^ − j ^ + k ^ ) \vec r = \hat i + \hat j + \lambda(2\hat i - \hat j + \hat k) r = i ^ + j ^ + λ ( 2 i ^ − j ^ + k ^ ) and r ⃗ = 2 i ^ + j ^ − k ^ + μ ( 3 i ^ − 5 j ^ + 2 k ^ ) \vec r = 2\hat i + \hat j - \hat k + \mu(3\hat i - 5\hat j + 2\hat k) r = 2 i ^ + j ^ − k ^ + μ ( 3 i ^ − 5 j ^ + 2 k ^ ) . First, b ⃗ 1 × b ⃗ 2 = ( − 2 + 5 ) i ^ − ( 4 − 3 ) j ^ + ( − 10 + 3 ) k ^ = 3 i ^ − j ^ − 7 k ^ \vec b_1 \times \vec b_2 = (-2 + 5)\hat i - (4 - 3)\hat j + (-10 + 3)\hat k = 3\hat i - \hat j - 7\hat k b 1 × b 2 = ( − 2 + 5 ) i ^ − ( 4 − 3 ) j ^ + ( − 10 + 3 ) k ^ = 3 i ^ − j ^ − 7 k ^ , with length 59 \sqrt{59} 59 . Next, a ⃗ 2 − a ⃗ 1 = i ^ − k ^ \vec a_2 - \vec a_1 = \hat i - \hat k a 2 − a 1 = i ^ − k ^ , and the dot product is 3 + 7 = 10 3 + 7 = 10 3 + 7 = 10 . So d = 10 59 \displaystyle d = \tfrac{10}{\sqrt{59}} d = 59 10 .
The shortest distance between skew lines runs along their common perpendicular.
Example 2 (Cartesian form). Consider x − 1 2 = y − 2 3 = z − 3 4 \displaystyle \tfrac{x - 1}{2} = \tfrac{y - 2}{3} = \tfrac{z - 3}{4} 2 x − 1 = 3 y − 2 = 4 z − 3 and x − 2 3 = y − 4 4 = z − 5 5 \displaystyle \tfrac{x - 2}{3} = \tfrac{y - 4}{4} = \tfrac{z - 5}{5} 3 x − 2 = 4 y − 4 = 5 z − 5 . Read the points and directions off the equations. Then b ⃗ 1 × b ⃗ 2 = ( 15 − 16 ) i ^ − ( 10 − 12 ) j ^ + ( 8 − 9 ) k ^ = − i ^ + 2 j ^ − k ^ \vec b_1 \times \vec b_2 = (15 - 16)\hat i - (10 - 12)\hat j + (8 - 9)\hat k = -\hat i + 2\hat j - \hat k b 1 × b 2 = ( 15 − 16 ) i ^ − ( 10 − 12 ) j ^ + ( 8 − 9 ) k ^ = − i ^ + 2 j ^ − k ^ ; a ⃗ 2 − a ⃗ 1 = i ^ + 2 j ^ + 2 k ^ \vec a_2 - \vec a_1 = \hat i + 2\hat j + 2\hat k a 2 − a 1 = i ^ + 2 j ^ + 2 k ^ ; the dot product is − 1 + 4 − 2 = 1 -1 + 4 - 2 = 1 − 1 + 4 − 2 = 1 ; and so d = 1 6 \displaystyle d = \tfrac{1}{\sqrt{6}} d = 6 1 .
Parallel lines#
When the lines share a direction, their cross product is zero and the formula above breaks down. For r ⃗ = a ⃗ 1 + λ b ⃗ \vec r = \vec a_1 + \lambda\vec b r = a 1 + λ b and r ⃗ = a ⃗ 2 + μ b ⃗ \vec r = \vec a_2 + \mu\vec b r = a 2 + μ b use this instead:
d = ∣ b ⃗ × ( a ⃗ 2 − a ⃗ 1 ) ∣ ∣ b ⃗ ∣ . \displaystyle d = \frac{\lvert\vec b \times (\vec a_2 - \vec a_1)\rvert}{\lvert\vec b\rvert}. d = ∣ b ∣ ∣ b × ( a 2 − a 1 )∣ .
Example 3. r ⃗ = i ^ + 2 j ^ + λ ( 2 i ^ + j ^ + 2 k ^ ) \vec r = \hat i + 2\hat j + \lambda(2\hat i + \hat j + 2\hat k) r = i ^ + 2 j ^ + λ ( 2 i ^ + j ^ + 2 k ^ ) and r ⃗ = 3 i ^ − j ^ + k ^ + μ ( 2 i ^ + j ^ + 2 k ^ ) \vec r = 3\hat i - \hat j + \hat k + \mu(2\hat i + \hat j + 2\hat k) r = 3 i ^ − j ^ + k ^ + μ ( 2 i ^ + j ^ + 2 k ^ ) . Here a ⃗ 2 − a ⃗ 1 = 2 i ^ − 3 j ^ + k ^ \vec a_2 - \vec a_1 = 2\hat i - 3\hat j + \hat k a 2 − a 1 = 2 i ^ − 3 j ^ + k ^ ; b ⃗ × ( a ⃗ 2 − a ⃗ 1 ) = ( 1 + 6 ) i ^ − ( 2 − 4 ) j ^ + ( − 6 − 2 ) k ^ = 7 i ^ + 2 j ^ − 8 k ^ \vec b \times (\vec a_2 - \vec a_1) = (1 + 6)\hat i - (2 - 4)\hat j + (-6 - 2)\hat k = 7\hat i + 2\hat j - 8\hat k b × ( a 2 − a 1 ) = ( 1 + 6 ) i ^ − ( 2 − 4 ) j ^ + ( − 6 − 2 ) k ^ = 7 i ^ + 2 j ^ − 8 k ^ , which has length 117 \sqrt{117} 117 . So d = 117 3 = 13 \displaystyle d = \tfrac{\sqrt{117}}{3} = \sqrt{13} d = 3 117 = 13 .
Parallel lines stay the same distance apart: here root 13.
Mixed practice for the chapter#
Find the direction cosines of a line perpendicular to the lines with direction ratios 1 , 2 , 3 1, 2, 3 1 , 2 , 3 and − 2 , 1 , 4 -2, 1, 4 − 2 , 1 , 4 .
Find the equation of the line through ( 1 , 2 , − 4 ) (1, 2, -4) ( 1 , 2 , − 4 ) perpendicular to both x − 8 3 = y + 19 − 16 = z − 10 7 \displaystyle \tfrac{x - 8}{3} = \tfrac{y + 19}{-16} = \tfrac{z - 10}{7} 3 x − 8 = − 16 y + 19 = 7 z − 10 and x − 15 3 = y − 29 8 = z − 5 − 5 \displaystyle \tfrac{x - 15}{3} = \tfrac{y - 29}{8} = \tfrac{z - 5}{-5} 3 x − 15 = 8 y − 29 = − 5 z − 5 .
Find the angle between the lines x 2 = y 2 = z 1 \displaystyle \tfrac{x}{2} = \tfrac{y}{2} = \tfrac{z}{1} 2 x = 2 y = 1 z and x − 5 4 = y − 2 1 = z − 3 8 \displaystyle \tfrac{x - 5}{4} = \tfrac{y - 2}{1} = \tfrac{z - 3}{8} 4 x − 5 = 1 y − 2 = 8 z − 3 .
Find the shortest distance between r ⃗ = i ^ + 2 j ^ + 3 k ^ + λ ( i ^ − 3 j ^ + 2 k ^ ) \vec r = \hat i + 2\hat j + 3\hat k + \lambda(\hat i - 3\hat j + 2\hat k) r = i ^ + 2 j ^ + 3 k ^ + λ ( i ^ − 3 j ^ + 2 k ^ ) and r ⃗ = 4 i ^ + 5 j ^ + 6 k ^ + μ ( 2 i ^ + 3 j ^ + k ^ ) \vec r = 4\hat i + 5\hat j + 6\hat k + \mu(2\hat i + 3\hat j + \hat k) r = 4 i ^ + 5 j ^ + 6 k ^ + μ ( 2 i ^ + 3 j ^ + k ^ ) .
Find the shortest distance between x + 1 7 = y + 1 − 6 = z + 1 1 \displaystyle \tfrac{x + 1}{7} = \tfrac{y + 1}{-6} = \tfrac{z + 1}{1} 7 x + 1 = − 6 y + 1 = 1 z + 1 and x − 3 1 = y − 5 − 2 = z − 7 1 \displaystyle \tfrac{x - 3}{1} = \tfrac{y - 5}{-2} = \tfrac{z - 7}{1} 1 x − 3 = − 2 y − 5 = 1 z − 7 .
Show that the lines x − 1 2 = y − 2 3 = z − 3 4 \displaystyle \tfrac{x - 1}{2} = \tfrac{y - 2}{3} = \tfrac{z - 3}{4} 2 x − 1 = 3 y − 2 = 4 z − 3 and x − 4 5 = y − 1 2 = z \displaystyle \tfrac{x - 4}{5} = \tfrac{y - 1}{2} = z 5 x − 4 = 2 y − 1 = z intersect.
Find the distance between the parallel lines r ⃗ = λ ( i ^ + 2 j ^ + 2 k ^ ) \vec r = \lambda(\hat i + 2\hat j + 2\hat k) r = λ ( i ^ + 2 j ^ + 2 k ^ ) and r ⃗ = 3 i ^ + μ ( i ^ + 2 j ^ + 2 k ^ ) \vec r = 3\hat i + \mu(\hat i + 2\hat j + 2\hat k) r = 3 i ^ + μ ( i ^ + 2 j ^ + 2 k ^ ) .
Find the foot of the perpendicular from ( 1 , 6 , 3 ) (1, 6, 3) ( 1 , 6 , 3 ) to the line x 1 = y − 1 2 = z − 2 3 \displaystyle \tfrac{x}{1} = \tfrac{y - 1}{2} = \tfrac{z - 2}{3} 1 x = 2 y − 1 = 3 z − 2 and also the length of that perpendicular.
Answers#
Show answers
The cross product of ( 1 , 2 , 3 ) (1, 2, 3) ( 1 , 2 , 3 ) and ( − 2 , 1 , 4 ) (-2, 1, 4) ( − 2 , 1 , 4 ) is ( 5 , − 10 , 5 ) (5, -10, 5) ( 5 , − 10 , 5 ) , so the ratios are 1 , − 2 , 1 1, -2, 1 1 , − 2 , 1 and the cosines are 1 6 , − 2 6 , 1 6 \displaystyle \tfrac{1}{\sqrt{6}}, -\tfrac{2}{\sqrt{6}}, \tfrac{1}{\sqrt{6}} 6 1 , − 6 2 , 6 1 .
The direction is ( 3 , − 16 , 7 ) × ( 3 , 8 , − 5 ) = ( 24 , 36 , 72 ) (3, -16, 7) \times (3, 8, -5) = (24, 36, 72) ( 3 , − 16 , 7 ) × ( 3 , 8 , − 5 ) = ( 24 , 36 , 72 ) , giving ratios 2 , 3 , 6 2, 3, 6 2 , 3 , 6 and the line x − 1 2 = y − 2 3 = z + 4 6 \displaystyle \tfrac{x - 1}{2} = \tfrac{y - 2}{3} = \tfrac{z + 4}{6} 2 x − 1 = 3 y − 2 = 6 z + 4 .
cos θ = 8 + 2 + 8 3 ⋅ 9 = 2 3 \displaystyle \cos\theta = \tfrac{8 + 2 + 8}{3 \cdot 9} = \tfrac{2}{3} cos θ = 3 ⋅ 9 8 + 2 + 8 = 3 2 .
b ⃗ 1 × b ⃗ 2 = − 9 i ^ + 3 j ^ + 9 k ^ \vec b_1 \times \vec b_2 = -9\hat i + 3\hat j + 9\hat k b 1 × b 2 = − 9 i ^ + 3 j ^ + 9 k ^ , length 3 19 3\sqrt{19} 3 19 ; a ⃗ 2 − a ⃗ 1 = 3 i ^ + 3 j ^ + 3 k ^ \vec a_2 - \vec a_1 = 3\hat i + 3\hat j + 3\hat k a 2 − a 1 = 3 i ^ + 3 j ^ + 3 k ^ ; the dot product is 9 9 9 ; so d = 3 19 \displaystyle d = \tfrac{3}{\sqrt{19}} d = 19 3 .
b ⃗ 1 × b ⃗ 2 = ( − 6 + 2 ) i ^ − ( 7 − 1 ) j ^ + ( − 14 + 6 ) k ^ = − 4 i ^ − 6 j ^ − 8 k ^ \vec b_1 \times \vec b_2 = (-6 + 2)\hat i - (7 - 1)\hat j + (-14 + 6)\hat k = -4\hat i - 6\hat j - 8\hat k b 1 × b 2 = ( − 6 + 2 ) i ^ − ( 7 − 1 ) j ^ + ( − 14 + 6 ) k ^ = − 4 i ^ − 6 j ^ − 8 k ^ , length 2 29 2\sqrt{29} 2 29 ; a ⃗ 2 − a ⃗ 1 = 4 i ^ + 6 j ^ + 8 k ^ \vec a_2 - \vec a_1 = 4\hat i + 6\hat j + 8\hat k a 2 − a 1 = 4 i ^ + 6 j ^ + 8 k ^ ; d = 116 2 29 = 2 29 \displaystyle d = \tfrac{116}{2\sqrt{29}} = 2\sqrt{29} d = 2 29 116 = 2 29 .
The shortest distance comes out as 0 0 0 , so they meet, at ( − 1 , − 1 , − 1 ) (-1, -1, -1) ( − 1 , − 1 , − 1 ) .
b ⃗ × 3 i ^ = ( 0 , 6 , − 6 ) \vec b \times 3\hat i = (0, 6, -6) b × 3 i ^ = ( 0 , 6 , − 6 ) , length 6 2 6\sqrt{2} 6 2 ; d = 6 2 3 = 2 2 \displaystyle d = \tfrac{6\sqrt{2}}{3} = 2\sqrt{2} d = 3 6 2 = 2 2 .
Take a general point ( λ , 2 λ + 1 , 3 λ + 2 ) (\lambda, 2\lambda + 1, 3\lambda + 2) ( λ , 2 λ + 1 , 3 λ + 2 ) on the line. The perpendicular condition gives λ = 1 \lambda = 1 λ = 1 , so the foot is ( 1 , 3 , 5 ) (1, 3, 5) ( 1 , 3 , 5 ) and the length is 13 \sqrt{13} 13 .