Ans: Firstly, let’s consider the given equations
$\Rightarrow \vec{r}=(1-t)\hat{i} +(t-2)\hat{j}+(3-2t)\hat{k}$
$\vec{r}=\hat{i}-t\hat{i}+t\hat{j}-2\hat{j}+3\hat{k}-2t\hat{k}$
$\vec{r} = \hat{i}-2\hat{j}+3\hat{k}+t(-\hat{i}+\hat{j}-2\hat{k})$
$\Rightarrow \vec{r}=(s+1)\hat{i}+(2s-1)\hat{j}-(2s+1)\hat{k}$
$\vec{r}=(s+1)\hat{i} +(2s-1)\hat{j}-(2s+1)\hat{k}$
$\vec{r}=s\hat{i}+\hat{i}+2s\hat{j}-\hat{j}-2s\hat{k}-\hat{i}$
$\vec{r}=\hat{i}-\hat{j}-\hat{k}+s(\hat{i}+2\hat{j}-2\hat{k})$
So, now we need to find the shortest distance between
$\vec{r}=\hat{i}-2\hat{j}+3\hat{k}+t(-\hat{i}+\hat{j}-2\hat{k})$ and $\vec{r}=\hat{i}-\hat{j}-\hat{k}+s(\hat{i}+2\hat{j}-2\hat{k})$
We know that shortest distance between two lines $\vec{r}=\vec{a_{1}}+\lambda \vec{b_{1}}$ and $\vec{r}=\vec{a_{2}}+ \mu \vec{b_{2}} $
$d=\left | \dfrac{(\vec{b_1}\times \vec{b_2})\cdot (\vec{a_2}\times \vec{a_1}) }{\left | \vec{b_1} \times \vec{b_2} \right |} \right |......(1)$
By comparing the equations we get,
$\vec{a_{1}}=\hat{i}-2\hat{j}+3\hat{k}$ , $\vec{b_{1}} =-\hat{i}+\hat{j}-2\hat{k}$
$\vec{a_{2}} =\hat{i}-\hat{j}-\hat{k}$, $\vec{b_{2}} =\hat{i}+2\hat{j}-2\hat{k}$
Since,
$(X_{1}\hat{i}+Y_{1}\hat{j}+Z_{1}\hat{k})-(X_{2}\hat{i}+Y_{2}\hat{j}+Z_{2}\hat{k})$
$\Rightarrow (X_{1}-X_{2})\hat{i}+(Y_{1}-Y_{2})\hat{j}+(Z_{1}-Z_{2})\hat{k}$
So, $\vec{a_{2}}-\vec{a_{1}}=(\hat{i}-\hat{j}-\hat{k})-(\hat{i}-2\hat{j}+3\hat{k})=\hat{j}-4\hat{k}$ …..(2)
And,
$\vec{b_{1}}\times\vec{b_{2}}=(-\hat{i}+\hat{j}-2\hat{k})\times(\hat{i}+2\hat{j}-2\hat{k})$
$\begin{vmatrix} \hat{i} & \hat{j}& \hat{k} \\ -1 & 1& -2\\ 1& 2& -2\\ \end{vmatrix}$
$\vec{b_{1}}\times\vec{b_{2}}=2\hat{i}-4\hat{j}-3\hat{k}$ …..(3)
$\Rightarrow \left | \vec{b_{1}}\times\vec{b_{2}} \right |=\sqrt{2^{2}+(-4)^{2}+(-3)^{2}}=\sqrt{4+16+9}=29$
Now multiplying (2) and (3) we get,
$\left ( a_{1}\hat{i} + b_{1}\hat{j} + c_{1}\hat{k} \right )\cdot \left ( a_{2}\hat{i} + b_{2}\hat{j} + c_{2}\hat{k} \right ) = a_{1}a_{2}+b_{1}b_{2}+c_{1}c_{2}$
$(\vec{b_{1}}\times\vec{b_{2}})\cdot (\vec{a_{1}}\times\vec{a_{2}})=(2\hat{i}-4\hat{j}-3\hat{k})\cdot (\hat{j}-4\hat{k})$
=-4+18=8 ….(5)
By substituting all the values in (1), we obtain
The shortest distance between the two lines,
$d=\left | \dfrac{8}{\sqrt{29}} \right |=\dfrac{8}{\sqrt{29}}$
$\therefore$ The shortest distance is $\dfrac{8}{\sqrt{29}}$