Example 1
Question: Find the shortest distance between the lines \(\vec{r} = (2\lambda + 3)\,\hat{i} + (\lambda - 1)\,\hat{j} + (3 - \lambda)\,\hat{k}\) and \(\vec{r} = (\mu + 1)\,\hat{i} + (2\mu + 3)\,\hat{j} + (2\mu - 4)\,\hat{k}\).
Solution: Rewrite each line in the standard vector form \(\vec{r} = \vec{a} + t\,\vec{b}\). Line 1: \[\vec{r} = 3\,\hat{i} - \hat{j} + 3\,\hat{k} + \lambda\left(2\,\hat{i} + \hat{j} - \hat{k}\right)\] So \(\vec{a_1} = 3\,\hat{i} - \hat{j} + 3\,\hat{k}\) and \(\vec{b_1} = 2\,\hat{i} + \hat{j} - \hat{k}\). Line 2: \[\vec{r} = \hat{i} + 3\,\hat{j} - 4\,\hat{k} + \mu\left(\hat{i} + 2\,\hat{j} + 2\,\hat{k}\right)\] So \(\vec{a_2} = \hat{i} + 3\,\hat{j} - 4\,\hat{k}\) and \(\vec{b_2} = \hat{i} + 2\,\hat{j} + 2\,\hat{k}\). Compute \(\vec{a_2} - \vec{a_1}\): \[\vec{a_2} - \vec{a_1} = (1-3)\,\hat{i} + (3-(-1))\,\hat{j} + (-4-3)\,\hat{k} = -2\,\hat{i} + 4\,\hat{j} - 7\,\hat{k}\] Compute \(\vec{b_1} \times \vec{b_2}\): \[\vec{b_1} \times \vec{b_2} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 2 & 1 & -1 \\ 1 & 2 & 2 \end{vmatrix}\] Expanding: \[\vec{b_1} \times \vec{b_2} = \hat{i}\left(1 \cdot 2 - (-1) \cdot 2\right) - \hat{j}\left(2 \cdot 2 - (-1) \cdot 1\right) + \hat{k}\left(2 \cdot 2 - 1 \cdot 1\right)\] Simplifying each component: \[= \hat{i}(2 + 2) - \hat{j}(4 + 1) + \hat{k}(4 - 1) = 4\,\hat{i} - 5\,\hat{j} + 3\,\hat{k}\] Magnitude: \[|\vec{b_1} \times \vec{b_2}| = \sqrt{4^2 + (-5)^2 + 3^2} = \sqrt{16 + 25 + 9} = \sqrt{50} = 5\sqrt{2}\] Dot product \((\vec{a_2} - \vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2})\): \[(-2)(4) + (4)(-5) + (-7)(3) = -8 - 20 - 21 = -49\] Applying the shortest distance formula: \[d = \frac{\left|-49\right|}{5\sqrt{2}} = \frac{49}{5\sqrt{2}} = \frac{49\sqrt{2}}{10}\]
Answer: \(\dfrac{49\sqrt{2}}{10}\) units
Example 2
Question: Find the shortest distance between the lines \(\vec{r} = (1 - 2\lambda)\,\hat{i} + (3\lambda + 2)\,\hat{j} + (\lambda - 4)\,\hat{k}\) and \(\vec{r} = (2\mu + 3)\,\hat{i} + (\mu - 1)\,\hat{j} + (3 - 4\mu)\,\hat{k}\).
Solution: Rewrite each line in standard vector form \(\vec{r} = \vec{a} + t\,\vec{b}\). Line 1: \[\vec{r} = \hat{i} + 2\,\hat{j} - 4\,\hat{k} + \lambda\left(-2\,\hat{i} + 3\,\hat{j} + \hat{k}\right)\] So \(\vec{a_1} = \hat{i} + 2\,\hat{j} - 4\,\hat{k}\) and \(\vec{b_1} = -2\,\hat{i} + 3\,\hat{j} + \hat{k}\). Line 2: \[\vec{r} = 3\,\hat{i} - \hat{j} + 3\,\hat{k} + \mu\left(2\,\hat{i} + \hat{j} - 4\,\hat{k}\right)\] So \(\vec{a_2} = 3\,\hat{i} - \hat{j} + 3\,\hat{k}\) and \(\vec{b_2} = 2\,\hat{i} + \hat{j} - 4\,\hat{k}\). Compute \(\vec{a_2} - \vec{a_1}\): \[\vec{a_2} - \vec{a_1} = (3-1)\,\hat{i} + (-1-2)\,\hat{j} + (3-(-4))\,\hat{k} = 2\,\hat{i} - 3\,\hat{j} + 7\,\hat{k}\] Compute \(\vec{b_1} \times \vec{b_2}\): \[\vec{b_1} \times \vec{b_2} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ -2 & 3 & 1 \\ 2 & 1 & -4 \end{vmatrix}\] Expanding: \[\vec{b_1} \times \vec{b_2} = \hat{i}\left(3 \cdot (-4) - 1 \cdot 1\right) - \hat{j}\left((-2)(-4) - 1 \cdot 2\right) + \hat{k}\left((-2)(1) - 3 \cdot 2\right)\] Simplifying each component: \[= \hat{i}(-12 - 1) - \hat{j}(8 - 2) + \hat{k}(-2 - 6) = -13\,\hat{i} - 6\,\hat{j} - 8\,\hat{k}\] Magnitude: \[|\vec{b_1} \times \vec{b_2}| = \sqrt{(-13)^2 + (-6)^2 + (-8)^2} = \sqrt{169 + 36 + 64} = \sqrt{269}\] Dot product \((\vec{a_2} - \vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2})\): \[(2)(-13) + (-3)(-6) + (7)(-8) = -26 + 18 - 56 = -64\] Applying the shortest distance formula: \[d = \frac{\left|-64\right|}{\sqrt{269}} = \frac{64}{\sqrt{269}} = \frac{64\sqrt{269}}{269}\]
Answer: \(\dfrac{64}{\sqrt{269}}\) units (or equivalently \(\dfrac{64\sqrt{269}}{269}\) units)