Detailed Explanation
Two lines in space may be parallel, intersecting, or skew (neither parallel nor intersecting). For skew lines, the shortest distance is measured along the common perpendicular. If a line passes through point \(\vec{a_1}\) with direction \(\vec{b_1}\) and another passes through \(\vec{a_2}\) with direction \(\vec{b_2}\), then \(\vec{b_1} \times \vec{b_2}\) gives a vector perpendicular to both lines. Projecting the joining vector \(\vec{a_2} - \vec{a_1}\) onto this common perpendicular direction gives the shortest distance. This is a standard result in Three Dimensional Geometry.
Formula Used
For lines \(\vec{r} = \vec{a_1} + \lambda \vec{b_1}\) and \(\vec{r} = \vec{a_2} + \mu \vec{b_2}\), the shortest distance is \[d = \frac{\left| (\vec{a_2} - \vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2}) \right|}{|\vec{b_1} \times \vec{b_2}|}\]
Solution
- Step 1: Identify the position vectors and direction vectors from the given equations. For the first line, \(\vec{a_1} = \hat{i} + 2\hat{j} + \hat{k}\) and \(\vec{b_1} = \hat{i} - \hat{j} + \hat{k}\). For the second line, \(\vec{a_2} = 2\hat{i} - \hat{j} - \hat{k}\) and \(\vec{b_2} = 2\hat{i} + \hat{j} + 2\hat{k}\).
- Step 2: Find the joining vector \(\vec{a_2} - \vec{a_1}\). Subtracting component-wise: \[\vec{a_2} - \vec{a_1} = (2-1)\hat{i} + (-1-2)\hat{j} + (-1-1)\hat{k} = \hat{i} - 3\hat{j} - 2\hat{k}\]
- Step 3: Compute the cross product \(\vec{b_1} \times \vec{b_2}\), which gives a direction perpendicular to both lines. \[\vec{b_1} \times \vec{b_2} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 1 & -1 & 1 \\ 2 & 1 & 2 \end{vmatrix}\] Expanding: \[\hat{i}((-1)(2) - (1)(1)) - \hat{j}((1)(2) - (1)(2)) + \hat{k}((1)(1) - (-1)(2))\] This simplifies to \[\vec{b_1} \times \vec{b_2} = -3\hat{i} - 0\hat{j} + 3\hat{k} = -3\hat{i} + 3\hat{k}\]
- Step 4: Find the magnitude of the cross product. \[|\vec{b_1} \times \vec{b_2}| = \sqrt{(-3)^2 + 0^2 + 3^2} = \sqrt{9 + 9} = \sqrt{18} = 3\sqrt{2}\]
- Step 5: Compute the dot product of the joining vector with the cross product. \[(\vec{a_2} - \vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2}) = (1)(-3) + (-3)(0) + (-2)(3)\] This gives \[-3 + 0 - 6 = -9\]
- Step 6: Substitute into the shortest distance formula and take the absolute value in the numerator. \[d = \frac{|-9|}{3\sqrt{2}} = \frac{9}{3\sqrt{2}} = \frac{3}{\sqrt{2}}\] Rationalising the denominator: \[d = \frac{3}{\sqrt{2}} \times \frac{\sqrt{2}}{\sqrt{2}} = \frac{3\sqrt{2}}{2}\]
Final Answer
The shortest distance between the two lines is \[d = \frac{3\sqrt{2}}{2} \text{ units} \approx 2.12 \text{ units}\]
Common Mistake
A frequent error is forgetting to take the absolute value of the dot product in the numerator, which can wrongly give a negative distance. Distance must always be non-negative, so use \(\left| (\vec{a_2} - \vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2}) \right|\).