- 1. Which way does a line point? Direction cosines
- 2. Direction ratios: the same direction in friendlier numbers
- 3. Direction cosines of a line through two points
- 4. The equation of a line: one point and one direction
- 5. A line through two points, and reading any line's equation
- 6. The angle between two lines
- 7. Lines that never meet and are not parallel: skew lines
- 8. The shortest distance between two skew lines
- 9. The distance between parallel lines, and a word on planes
- Review
8 of 9·NCERT §11.5 · §11.5.1·6 min
The shortest distance between two skew lines
The big ideaThe shortest distance between skew lines \( \vec{r} = \vec{a}_1 + \lambda\vec{b}_1 \) and \( \vec{r} = \vec{a}_2 + \mu\vec{b}_2 \) is the part of \( \vec{a}_2 - \vec{a}_1 \) that points along \( \vec{b}_1 \times \vec{b}_2 \): \( d = \left|\dfrac{(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)}{|\vec{b}_1 \times \vec{b}_2|}\right| \).
In simple words
Pick any point on one pencil and any point on the other, and join them with a string. The string is probably slanted and too long. But one direction is special: the one that is square to both pencils. Ask how far the string reaches in that special direction, and you have the true gap. Where you tied the string does not matter.
Building the formula
Let the skew lines be \( l_1: \vec{r} = \vec{a}_1 + \lambda\vec{b}_1 \) and \( l_2: \vec{r} = \vec{a}_2 + \mu\vec{b}_2 \).
- Any joining arrow. S on \( l_1 \) has position vector \( \vec{a}_1 \), and T on \( l_2 \) has \( \vec{a}_2 \). So \( \overrightarrow{ST} = \vec{a}_2 - \vec{a}_1 \).
- The special direction. Let PQ be the segment of shortest distance, P on \( l_1 \), Q on \( l_2 \). It is perpendicular to both \( \vec{b}_1 \) and \( \vec{b}_2 \). The cross product of two vectors is perpendicular to both, so the unit vector along PQ is \[ \hat{n} = \frac{\vec{b}_1 \times \vec{b}_2}{|\vec{b}_1 \times \vec{b}_2|} \]
- Project. The shortest distance d is the length of the projection of ST on \( \hat{n} \): \( d = |\overrightarrow{ST} \cdot \hat{n}| \). In the right-angled picture, \( PQ = ST\,|\cos\theta| \), where \( \theta \) is the angle between ST and PQ.
Shortest distance between skew lines
- \( d = \left| \dfrac{(\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1)}{|\vec{b}_1 \times \vec{b}_2|} \right| \)
- Recipe: (1) find \( \vec{a}_2 - \vec{a}_1 \); (2) find \( \vec{b}_1 \times \vec{b}_2 \); (3) dot them; (4) divide by the length of the cross product; (5) drop any minus sign.
Try it: slide the two ends of the string anywhere along the lines of worked example 1 below, and watch which number refuses to change.
Cartesian form
For \( \frac{x - x_1}{a_1} = \frac{y - y_1}{b_1} = \frac{z - z_1}{c_1} \) and \( \frac{x - x_2}{a_2} = \frac{y - y_2}{b_2} = \frac{z - z_2}{c_2} \), the same formula, written with a determinant for the scalar triple product, reads
\[ d = \frac{|D|}{\sqrt{(b_1 c_2 - b_2 c_1)^2 + (c_1 a_2 - c_2 a_1)^2 + (a_1 b_2 - a_2 b_1)^2}}, \qquad D = \begin{vmatrix} x_2 - x_1 & y_2 - y_1 & z_2 - z_1 \\ a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \end{vmatrix} \]\( |D| \) means the determinant with any minus sign dropped. The bottom is the length of \( \vec{b}_1 \times \vec{b}_2 \), written out.
Worked examples
Worked example 1: two diagonals in a room
A hall is 6 m long (x), 3 m wide (y) and 3 m high (z), with a corner at O. One string runs across the floor from O to the far corner \( (6, 3, 0) \). Another runs down the front wall from the top corner \( (0, 0, 3) \) to \( (6, 0, 0) \). How close do they come?
- \( l_1 \): \( \vec{a}_1 = \vec{0} \), \( \vec{b}_1 = 6\hat{i} + 3\hat{j} \). \( l_2 \): \( \vec{a}_2 = 3\hat{k} \), \( \vec{b}_2 = 6\hat{i} - 3\hat{k} \).
- \( \vec{a}_2 - \vec{a}_1 = 3\hat{k} \).
- \( \vec{b}_1 \times \vec{b}_2 = (3 \cdot (-3) - 0 \cdot 0)\hat{i} - (6 \cdot (-3) - 0 \cdot 6)\hat{j} + (6 \cdot 0 - 3 \cdot 6)\hat{k} = -9\hat{i} + 18\hat{j} - 18\hat{k} \).
- Length: \( \sqrt{81 + 324 + 324} = \sqrt{729} = 27 \).
- Dot: \( (-9\hat{i} + 18\hat{j} - 18\hat{k}) \cdot 3\hat{k} = -54 \).
- \( d = \frac{|-54|}{27} = 2 \) m.
Worked example 2: Cartesian form
Find the shortest distance between \( \frac{x + 1}{1} = \frac{y - 1}{2} = \frac{z}{2} \) and \( \frac{x - 2}{2} = \frac{y + 1}{1} = \frac{z - 1}{-2} \).
- Points \( (-1, 1, 0) \) and \( (2, -1, 1) \); differences \( 3, -2, 1 \).
- Determinant of rows \( (3, -2, 1), (1, 2, 2), (2, 1, -2) \): \( 3(-4 - 2) + 2(-2 - 4) + 1(1 - 4) = -18 - 12 - 3 = -33 \).
- Bottom: \( b_1 c_2 - b_2 c_1 = -4 - 2 = -6 \), \( c_1 a_2 - c_2 a_1 = 4 + 2 = 6 \), \( a_1 b_2 - a_2 b_1 = 1 - 4 = -3 \); \( \sqrt{36 + 36 + 9} = 9 \).
- \( d = \frac{33}{9} = \frac{11}{3} \) units.
Try it. Find the shortest distance between the skew lines on the last page: \( \vec{r} = \hat{i} + 2\hat{k} + \lambda(\hat{i} + \hat{j} - \hat{k}) \) and \( \vec{r} = 3\hat{i} + \hat{j} + \mu(\hat{i} - \hat{j} + 2\hat{k}) \).
Answer
When the answer is 0
If the top, \( (\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1) \), is 0 (and the lines are not parallel), the lines are coplanar and they intersect. With the second line moved to pass through \( 5\hat{i} + 4\hat{k} \), the gap \( 4\hat{i} + 2\hat{k} \) dots with \( \hat{i} - 3\hat{j} - 2\hat{k} \) to \( 4 - 4 = 0 \): they meet, as found on the last page. JEE often asks for a value of k that makes two lines intersect: set this top to 0 and solve.
Don't mix these up
- The top is a dot product of the cross product with \( \vec{a}_2 - \vec{a}_1 \), a difference of points. The textbook's boxed line misprints it as \( \vec{a}_2 \times \vec{a}_1 \).
- Divide by \( |\vec{b}_1 \times \vec{b}_2| \), not by \( |\vec{b}_1||\vec{b}_2| \).
- For parallel lines \( \vec{b}_1 \times \vec{b}_2 = \vec{0} \) and this formula gives \( \frac{0}{0} \). Use the parallel-lines formula on the next page.
- Cross product
- \( \vec{b}_1 \times \vec{b}_2 \): a vector perpendicular to both \( \vec{b}_1 \) and \( \vec{b}_2 \).
- Projection
- How far a vector reaches along a given direction: \( \vec{v} \cdot \hat{n} \).
- Scalar triple product
- \( (\vec{b}_1 \times \vec{b}_2) \cdot \vec{c} \), equal to a 3 by 3 determinant of their components.
- Determinant
- A single number worked out from a square grid of numbers.
Words to know
For skew lines, \( (\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1) = -12 \) and \( |\vec{b}_1 \times \vec{b}_2| = 4 \). What is the shortest distance?
- \( -3 \)
- 3
- 48
What is the shortest distance between the x-axis and the line \( \vec{r} = 2\hat{k} + \mu(\hat{i} + \hat{j}) \)?
- 2
- 0
- \( 2\sqrt{2} \)
For two non-parallel lines, \( (\vec{b}_1 \times \vec{b}_2) \cdot (\vec{a}_2 - \vec{a}_1) = 0 \). The lines
- are skew
- intersect
- are parallel
Picture and video credits