This question was asked in Ex 11.2, 14
Derivation for finding the shortest distance between two skew lines 

Jayashree DN's image