Example 4 Find the direction cosines of x