Refer to a triangle and use the definition of cosine with the given triangle: