Im trying to integrate \begin{equation} \int_{-1}^{1}x^{2n}\,\mathrm{e}^{\mathrm{i}kx}\,\mathrm{d}x = 2\left(\, -1\,\right)^{n}\, \frac{\mathrm{d}^{2n}}{\mathrm{d}k^{2n}}\left[\,{\frac{\sin\left(\, k\,\right)}{k}}\,\right] \end{equation}
I have the solution above. Now, I want to try contour integration to see if I get the same result.
How do I use contour integration?
Thanks in advance.