Let O be one vertex of a cube, and three edge through O be the coordinate axes.
The four diagonal are OP,AA′,BB, and CC′
Let a be the length of each edge.
Then the coordinate of P,A,A′ are (a,a,a),(a,0,0),(0,a,a)
The direction ratios of OP are
aa√3,aa√3,aa√3⇒1√3,1√3,1√3
Similarly direction cosine of AA′ are
(−1√3,1√3,1√3)
Let θ be the angle between the diagonals Op and AA′, then
cosθ=1√3(−1√3)+1√3(1√3)+1√3(1√3)
=−13+13+13=13
∴θ=cos−113