The shortest distance between the diagonals of a rectangular parallelepiped whose sides are a,b,c and the edges not meeting it are:
Take O as the origin of vectors and let i,j,k denote unit vectors along →OA, →OB and →OC respectively.
Then, −−→OA=ai, −−→OB=bj, −−→OC=ck
Also −−→OP= ai+bj+ck. The edges which do not meet the diagonal OP and BL,BN,AN and this parallels AM,CMandCL .
Suppose we are to find the distance between the diagonal OP and the edge AN.
Now, OP is the line passing through O whose position vector is →O and parallel to the vector ai+bj+ck.
And AN is the line through A whose position vector is ai and parallel to j. Hence, the shortest distance between OP and AN is given by P=[→O−ai,j,ai+bj+ck]|j×(ai+bj+ck)|
Now, [→O−ai,j,ai+bj+ck] =∣∣ ∣∣−a00010abc∣∣ ∣∣=−ca
and j×(ai+bj+ck)=∣∣ ∣∣ijk010abc∣∣ ∣∣=ci−ak
So that |j×(ai+bj+ck)|=√c2+a2
∴P=ca√c2+a2
Similarly, it can be shown that the shortest distance between OP and BN is ca√c2+a2 and that between OP and BL is ab√a2+b2