Formula for length of the diagonal of a parallelepiped
This solution is from SPHERICAL TRIGONOMETRY For the Use of Colleges and Schools.
by I. TODHUNTER, FIFTH EDITION. London, 1886 (p.125, ex.157)
(I post the links since for my reputation this site still does not allow to embed images..)
here is the first part;
second
Hope this helps!