Let Q be the cube with the set of vertices . Let F be the set of all twelve lines containing the diagonals of the six faces of the cube Q. Let S be the set of all four lines containing the main diagonals of the cube Q; for instance, the line passing through the vertices (0, 0, 0) and (1, 1, 1) is in S. For lines and , let denote the shortest distance between them. Then the maximum value of , as varies over F and varies over S, is
The cube has side-length and its centre is at . Because of the full rotational symmetry of the cube, we may, without loss of generality, fix the body-diagonal
as the representative of the set . For every face of the cube choose Cartesian coordinates in the natural way; each face diagonal has a direction vector which contains exactly two entries and one entry .
Write the direction vector of the fixed body diagonal as and the direction vector of a face diagonal as (The zero component indicates the coordinate which is constant on that face.)
Step 1 Magnitude of the cross product .
Since , we use
Because the possible values are
Hence
Step 2 Which face diagonals are skew to ?
If , the face diagonal lies in a face that contains the point or , so it meets .
For intersecting lines the shortest distance is , so such diagonals do not influence the maximum.
Therefore any face diagonal having a non-zero distance from must satisfy
and consequently
The vectors orthogonal to with one zero entry are, up to sign and order,
Each of these six vectors represents the two face diagonals on the two parallel faces whose normal is the coordinate axis corresponding to the zero entry. For definiteness consider
which lies in the face and joins the vertices and
Step 3 Distance between and .
Take
The standard formula for the shortest distance between two skew lines is
Compute the cross product:
The triple product is
Hence
Step 4 Showing this is the maximum.
For every face diagonal that is skew to the direction vector belongs to the above list, so .
Its two vertices are of the form & (or any permutation/sign-change of these coordinates).
A direct substitution (as above) gives
for either choice of the end-point and therefore
Lines with meet , giving distance , so no larger value is possible. Since all four body diagonals and all twelve face diagonals are equivalent under cube symmetries, the same calculation applies to every pair in .
Thus the maximum distance between a line of and a line of is
Option A is correct.
Tagged Foot of perpendicular, image and distance from a line. Machine-assigned, so read it as a strong shortlist rather than a verdict.