Problem: Find the Fourier Series Representation of -

Solution from professor:

Now, I just simply do not understand how it gets here. I use the formula for fourier series, and I got into some very difficult integral that is impossible to solve.

Little help, please?

K