A brief note on Skew Lines and Shortest Distances . Read it before a test. Try each question at the end before you open its answer.
Three kinds of pair Parallel: b ⃗ 1 × b ⃗ 2 = 0 ⃗ \vec{b}_1 \times \vec{b}_2 = \vec{0} b 1 × b 2 = 0 . Intersecting: not parallel, and ( a ⃗ 2 − a ⃗ 1 ) ⋅ ( b ⃗ 1 × b ⃗ 2 ) = 0 (\vec{a}_2 - \vec{a}_1) \cdot (\vec{b}_1 \times \vec{b}_2) = 0 ( a 2 − a 1 ) ⋅ ( b 1 × b 2 ) = 0 . Solve for λ \lambda λ and μ \mu μ to find the point. Skew: not parallel, and the triple product is not 0 0 0 . Skew lines need three dimensions. Distances Skew lines: d = ∣ ( a ⃗ 2 − a ⃗ 1 ) ⋅ ( b ⃗ 1 × b ⃗ 2 ) ∣ ∣ b ⃗ 1 × b ⃗ 2 ∣ d = \dfrac{\lvert (\vec{a}_2 - \vec{a}_1) \cdot (\vec{b}_1 \times \vec{b}_2) \rvert}{\lvert \vec{b}_1 \times \vec{b}_2 \rvert} d = ∣ b 1 × b 2 ∣ ∣( a 2 − a 1 ) ⋅ ( b 1 × b 2 )∣ . The common perpendicular has direction b ⃗ 1 × b ⃗ 2 \vec{b}_1 \times \vec{b}_2 b 1 × b 2 . Parallel lines: d = ∣ ( a ⃗ 2 − a ⃗ 1 ) × b ⃗ ∣ ∣ b ⃗ ∣ d = \dfrac{\lvert (\vec{a}_2 - \vec{a}_1) \times \vec{b} \rvert}{\lvert \vec{b} \rvert} d = ∣ b ∣ ∣( a 2 − a 1 ) × b ∣ . Point to a line: the foot is F = a ⃗ + t b ⃗ F = \vec{a} + t\vec{b} F = a + t b with t = ( P − a ⃗ ) ⋅ b ⃗ ∣ b ⃗ ∣ 2 t = \dfrac{(P - \vec{a}) \cdot \vec{b}}{\lvert \vec{b} \rvert^2} t = ∣ b ∣ 2 ( P − a ) ⋅ b , and d = P F = ∣ ( P − a ⃗ ) × b ⃗ ∣ ∣ b ⃗ ∣ d = PF = \dfrac{\lvert (P - \vec{a}) \times \vec{b} \rvert}{\lvert \vec{b} \rvert} d = P F = ∣ b ∣ ∣( P − a ) × b ∣ . Distance from the x x x -axis: y 2 + z 2 \sqrt{y^2 + z^2} y 2 + z 2 . A worked example Find the shortest distance between the line through ( 1 , 2 , 0 ) (1, 2, 0) ( 1 , 2 , 0 ) with direction ( 1 , − 1 , 1 ) (1, -1, 1) ( 1 , − 1 , 1 ) and the line through ( 0 , 1 , 2 ) (0, 1, 2) ( 0 , 1 , 2 ) with direction ( 2 , 1 , − 1 ) (2, 1, -1) ( 2 , 1 , − 1 ) .
The cross product. ( 1 , − 1 , 1 ) × ( 2 , 1 , − 1 ) = ( 0 , 3 , 3 ) (1, -1, 1) \times (2, 1, -1) = (0, 3, 3) ( 1 , − 1 , 1 ) × ( 2 , 1 , − 1 ) = ( 0 , 3 , 3 ) , with length 3 2 3\sqrt{2} 3 2 . The gap. a ⃗ 2 − a ⃗ 1 = ( − 1 , − 1 , 2 ) \vec{a}_2 - \vec{a}_1 = (-1, -1, 2) a 2 − a 1 = ( − 1 , − 1 , 2 ) . The triple product. ( − 1 , − 1 , 2 ) ⋅ ( 0 , 3 , 3 ) = 3 (-1, -1, 2) \cdot (0, 3, 3) = 3 ( − 1 , − 1 , 2 ) ⋅ ( 0 , 3 , 3 ) = 3 . The distance. d = 3 3 2 = 1 2 ≈ 0.707 d = \dfrac{3}{3\sqrt{2}} = \dfrac{1}{\sqrt{2}} \approx 0.707 d = 3 2 3 = 2 1 ≈ 0.707 . Practice with new numbers
A program to try The program finds the shortest distance of the worked example and the foot of the perpendicular from the origin to the first line.
Run it. Does the first number match the worked example?
1. Change a2 to np.array([0, 1, 1]). Is the answer now smaller or larger, and what does it say about how close the lines are?
Mistakes to avoid Forgetting to divide by ∣ b ⃗ 1 × b ⃗ 2 ∣ \lvert \vec{b}_1 \times \vec{b}_2 \rvert ∣ b 1 × b 2 ∣ . The triple product alone is a volume. Using the skew formula for parallel lines. The denominator is 0 0 0 . Dividing by ∣ b ⃗ ∣ \lvert \vec{b} \rvert ∣ b ∣ in t t t . The parameter divides by ∣ b ⃗ ∣ 2 \lvert \vec{b} \rvert^2 ∣ b ∣ 2 . Trusting a flat picture. Skew lines seem to cross in a drawing. Check yourself Are the lines with directions ( 1 , 2 , 3 ) (1, 2, 3) ( 1 , 2 , 3 ) and ( − 3 , − 6 , − 9 ) (-3, -6, -9) ( − 3 , − 6 , − 9 ) parallel? Stuck? Show a hint Show the answerWhat is the shortest distance between the z z z -axis and the line through ( 3 , 4 , 0 ) (3, 4, 0) ( 3 , 4 , 0 ) parallel to the z z z -axis? Stuck? Show a hint Show the answerThe triple product of two lines that are not parallel is 0 0 0 . What does this say? Stuck? Show a hint Show the answerFind the foot of the perpendicular from ( 2 , 2 , 1 ) (2, 2, 1) ( 2 , 2 , 1 ) to the line through the origin with direction ( 0 , 3 , 4 ) (0, 3, 4) ( 0 , 3 , 4 ) . Stuck? Show a hint Show the answerWhy does the shortest distance between two skew lines use the cross product of the directions? Stuck? Show a hint Show the answerSources OpenStax, Calculus Volume 3 , Chapter 2, section on equations of lines and planes in space. NCERT, Mathematics Part II for Class XII, Chapter 11, section on the shortest distance between two lines.