Can someone help me with the following: (I'm getting lost with the integrals and I can't really type them here)

f(x) = x(a-x), 0<= x <= a Find this in a Fourier cosine series.

I have the answers, I'm just having trouble computing it.

Thanks so much in advance.