-2

Can someone help me evaluate the following integral?

$$\frac{1}π\int_{-π}^π x^{2n}cos(\frac{nπx}L) dx$$

Integration by parts does not seem to work. $$\frac{1}π\int_{-π}^π x^{2n}cos(\frac{nπx}L) dx = \frac{1}π([x^{2n}sin(\frac{nπx}L)\frac{L}{nπ}]_{-π}^π-\frac{2L}π\int_{-π}^πx^{2n-1}sin(\frac{nπx}L)dx)$$ If I continue to integrate by parts, then I won't arrive at an answer as I will keep getting powers of x.

1 Answers1

0

This looks like a Fourier series integral, in which case $L = \pi$ which would simplify the calculations a bit. But in any case, if you integrate by parts twice, the new integrand should be a constant times $x^{2(n-1)}\cos(n\pi x/L)$. This gives you a "reduction" formula. Applying the reduction formula repeatedly should give you a nice pattern. (Especially of $L=\pi$.)