Expand $f(x)$ into a Fourier cosine series

437 Views Asked by At

Expand $f(x)=x(\pi-x)$ into a Fourier cosine series on $(0;\pi)$

My idea is to expand the function into an even function on $[-\pi;\pi]$ so that the $b_n=0$ and we'll get a Fourier cosine series. But I don't know how. Any one help me please?