The vector is .
Rewrite the vector .
The magnitude of the vector u is
\If and
are the angle between the vector u and unit vectors i, j and k, then
and
.
and
are the direction cosines of the vector u.
The direction cosines are ,
and
.
.
The sum of the squares of the direction cosines is 1.
\The direction cosines are ,
and
.