Question:
Suppose we have the two lines: $$\frac{x-1}{2} = \frac{y-2}{3} = \frac{z-3}{4}$$ and $$\frac{x-2}{3} = \frac{y-4}{4} = \frac{z-5}{5}$$ Find the equation of the line which covers the shortest distance between the two given lines.
Attempt: I know that the line that we have to find will be along the cross product of the direction ratios of the two given lines (considering equation of line in form $\vec a + t\vec b$). But how will I find $\vec a$?
The line should be intersect with both given line.
Suppose the 2 intersections are $P=\vec c+u\vec d$ on the $1^{st}$ line and $Q=\vec e+v\vec f$ on the second line, then $$\begin{align}\vec{P}-\vec{Q}=(\vec c+u\vec d)-(\vec e+v\vec f)=&t\vec{b}\\t\vec{b}-u\vec{d}+v\vec{f}=&\vec{c}-\vec{e}\\\begin{bmatrix}\vec{b}&\vec{d}&\vec{f}\end{bmatrix}*\begin{bmatrix}t\\u\\v\end{bmatrix}=&\begin{bmatrix}\vec{c}-\vec{e}\end{bmatrix}\end{align}$$ So $$\begin{bmatrix}t\\u\\v\end{bmatrix}=\begin{bmatrix}\vec{b}&\vec{d}&\vec{f}\end{bmatrix}^{-1}*\begin{bmatrix}\vec{c}-\vec{e}\end{bmatrix}$$
Solving (t,u,v), it is sufficient to let $$\vec{a}=\vec{P}$$