We use the 30-60 and 45-45 triangles again. In this case, for the cosine of the difference of two angles, we have:

mathimage