Find the points on the lines (x − 3)/1 = (y − 5)/(−2) = (z − 7)/1 and (x + 1)/7 = (y + 1)/(−6) = (z + 1)/1 which are nearest to each other. Hence find the shortest distance between the lines and its equation.
15 marks · directive: Find
The core of a good answer
The nearest points are (3, 5, 7) on the first line and (−1, −1, −1) on the second; the shortest distance is √116 = 2√29, along the line (x − 3)/2 = (y − 5)/3 = (z − 7)/4.
An outline written by upsc.help, not an official UPSC answer; every fact checked by a separate review. How we work
What the question asks
Take general points on both lines, form the joining vector and make it perpendicular to both direction vectors. The two parameters fix the nearest points; their distance is the shortest distance and the line through them is the line of shortest distance.
Answer outline
Introduction
Line L₁ passes through (3, 5, 7) with direction d₁ = (1, −2, 1); line L₂ passes through (−1, −1, −1) with direction d₂ = (7, −6, 1).
Step 1: General points
- P on L₁: (3 + s, 5 − 2s, 7 + s)
- Q on L₂: (−1 + 7t, −1 − 6t, −1 + t)
- PQ (from Q to P) = (4 + s − 7t, 6 − 2s + 6t, 8 + s − t)
Step 2: Perpendicularity conditions
- PQ · d₁ = 0: (4 + s − 7t) − 2(6 − 2s + 6t) + (8 + s − t) = 0, i.e. 6s − 20t = 0
- PQ · d₂ = 0: 7(4 + s − 7t) − 6(6 − 2s + 6t) + (8 + s − t) = 0, i.e. 20s − 86t = 0
- These give s = 0, t = 0.
Step 3: Nearest points and distance
- P = (3, 5, 7), Q = (−1, −1, −1)
- PQ = (4, 6, 8)
- SD = √(16 + 36 + 64) = √116 = 2√29 ≈ 10.77 units
Step 4: Equation of the line of shortest distance
- Direction (4, 6, 8) ∝ (2, 3, 4)
- (x − 3)/2 = (y − 5)/3 = (z − 7)/4 (it also passes through (−1, −1, −1): −4/2 = −6/3 = −8/4 = −2)
Step 5: Check by the formula
- d₁ × d₂ = (−2·1 − 1·(−6), 1·7 − 1·1, 1·(−6) − (−2)·7) = (4, 6, 8), |d₁ × d₂| = √116
- (A − B) · (d₁ × d₂) with A = (3, 5, 7), B = (−1, −1, −1): (4, 6, 8) · (4, 6, 8) = 116
- SD = 116/√116 = √116 = 2√29, agreeing with Step 3.
Conclusion
Nearest points (3, 5, 7) and (−1, −1, −1); shortest distance 2√29; line of shortest distance (x − 3)/2 = (y − 5)/3 = (z − 7)/4. The given points of the lines happen to be the feet of the common perpendicular, which is why s = t = 0. Recomputed with sympy.
Examples and data to cite
- The line of SD can also be written as the intersection of two planes: the plane containing L₁ and the SD direction, and the plane containing L₂ and the SD direction.
- Because the shortest distance 2√29 is non-zero, the lines are skew (not coplanar).
Facts to remember
- For lines r = a + s d₁ and r = b + t d₂, SD = |(a − b) · (d₁ × d₂)|/|d₁ × d₂|.
- The common perpendicular has direction d₁ × d₂.
- Nearest points: choose s, t so that the joining vector is perpendicular to both d₁ and d₂.
- Symmetric form of a line through (x₁, y₁, z₁) with direction ratios l, m, n: (x − x₁)/l = (y − y₁)/m = (z − z₁)/n.