The question ask to expand the following function of period on the interval as a Fourier sine series.

This function is periodic on a period of and thus the coefficients are given by

Upon evaluating the integral, I split the sine terms into two seperate cosine terms using a trig identity. After integration I am unable to get a single cosine as given in the correct answer

Have I made an error or am I on the correct track?