Example 9 Write the direction ratio’s of the vector a = i + i – 2k and hence calculate its direction cosines.