Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2009/paper-1/7/a/solution

Use to multiply the elementary complex exponentials:
Collecting real and imaginary parts gives

New to topics? Read the docs here!