I am well familiar with how to find the shortest distance between 2 skew lines in 3 dimensional space. I have developed a generalised formula to find the shortest distance between two lines, yet cannot generate a general formula to provide the two points where the vector between them of shortest distance intersects the lines themselves (ie the point on each line closest to each other). My knowledge of vectors is somewhat limited so if anyone does have a solution, could they please try to keep it as simple as possible.
EDIT: It would be greatly appreciated if someone could provide a full solution as I have scoured resources which hint at what to do but I keep getting myself stuck when I continue the process.
Parametrize the lines as \begin{align*} \vec{P}(s) &= \langle{x_1 + a_1s,y_1+b_1s,z_1+c_1s}\rangle\\[4pt] \vec{Q}(t) &= \langle{x_2 + a_2t,y_2+b_2t,z_2+c_2t}\rangle\\[4pt] \end{align*} where $(x_1,y_1,z_1)$ and $(x_2,y_2,z_2)$ are known points on the respective lines, and $\langle{a_1,b_1,c_1}\rangle$ and $\langle{a_2,b_2,c_2}\rangle$ are known direction vectors for the respective lines.
Assuming the lines are skew, the pair of closest points $\vec{P}(s),\vec{Q}(t)$ satisfy \begin{align*} \left(\vec{P}(s)-\vec{Q}(t)\right)\cdot\langle{a_1,b_1,c_1}\rangle=0\\[4pt] \left(\vec{P}(s)-\vec{Q}(t)\right)\cdot\langle{a_2,b_2,c_2}\rangle=0\\[4pt] \end{align*} which is a system of two linear equations in the two unknowns, $s,t$.
Solve the system for $s,t$, and you have your pair of closest points.
Here's a worked example to illustrate the process . . .
Consider the two lines \begin{align*} \vec{P}(s) &= \langle{s,1+2s,2+3s}\rangle\\[4pt] \vec{Q}(t) &= \langle{3-4t,2-3t,1+2t}\rangle\\[4pt] \end{align*} which are, in fact, skew lines.
Then the pair of closest points $\vec{P}(s),\vec{Q}(t)$ satisfy \begin{align*} &\left(\vec{P}(s)-\vec{Q}(t)\right)\cdot\langle{1,2,3}\rangle=0\\[4pt] &\left(\vec{P}(s)-\vec{Q}(t)\right)\cdot\langle{-4,-3,2}\rangle=0\\[4pt] \end{align*} which yields the system \begin{align*} 7s+2t&=1\\[4pt] 4s+29t&=17\\[4pt] \end{align*} of two linear equations in the two unknowns, $s,t$.
Solving the system, we get \begin{align*} s&=-{\small{\frac{1}{39}}}\\[4pt] t&={\small{\frac{23}{39}}}\\[4pt] \end{align*} which yields the pair of closest points \begin{align*} P&= \bigl( -{\small{\frac{1}{39}}}, {\small{\frac{37}{39}}}, {\small{\frac{25}{13}}} \bigr)\\[4pt] Q&= \bigl( {\small{\frac{25}{39}}}, {\small{\frac{3}{13}}}, {\small{\frac{85}{39}}} \bigr) \end{align*}