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.