I am working through the following problem:
Let $P(x)$ be some arbitrary polynomial over the interval $[-1, +1]$. Then define $$A_n(P) = \int_{-1}^{+1} P(x)\cos{(n\pi x)}\,\mathrm{d}x$$
I am require to show that this coefficient (for $n > 0$) is in fact a polynomial in the variable $\frac{1}{n}$. My attempts so far have simply involved computing the integral using by parts, where the $u\cdot v$ term conveniently vanishes, and I am left with
$$A_n(P) = -\frac{1}{n\pi} \int_{-1}^{+1} P'(x)\sin{(n\pi x)} \, \mathrm{d}x$$
I am getting closer to the solution, or have I approached the problem in the wrong manner?