Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2021/ib/paper-3/16a/b/solution

Using
in the quotient from part (a), multiplying numerator and denominator by the complex conjugate of the denominator, and taking the real part after multiplication by gives
where
The denominator follows from

New to topics? Read the docs here!