A cube is a rectangular parallelopiped having equal length, breadth and height. Let OADBFEGC be the cube with each side of length a units.
The four diagonals are OE,AF,BG and CD.
The direction cosines of the diagonal OE which is the line joining two points O and E are a2+a2+a2a−0,a2+a2+a2a−0,a2+a2+a2a−0 i.e., 31,31,31
Similarly, the direction cosines of AF,BG and CD are 3−1, 31,31;31,3−1,31 and 31,31,3−1, respectively.
Let I,m,n be the direction cosines of the given line which makes angles α,β,γ,δ with OE,AF,BG,CD, respectively. Then, cosα=31(l+m+n);cosβ=31(−l+m+n) cosγ=31(l−m+n);cosδ=31(l+m−n)
Squaring and adding, we get cos2α+cos2β+cos2γ+cos2δ =31[(l+m+n)2+(−l+m+n)2+(l−m+n)2+(I+m−n)2] =31[4(l2+m2+n2)]=34 [ as I2+m2+n2=1]