I would like to calculate the following integrals:
$$\int_{-\infty}^{+\infty} \quad x^k\quad \left(\frac{\sin(\pi a x)}{\pi ax}\right)^2\quad \exp(-bx^2)\,dx$$
$$\int_{-\infty}^{+\infty} \quad x^k\quad \left(\frac{\sin(\pi a x\pm\pi)}{\pi ax\pm\pi}\right)^2\quad \exp(-bx^2) \,dx$$
Thanks!
First one:
Therefore one finds $$I_{2m}=\frac{(-1)^{m-1}}{2\pi^2a^2}\frac{\partial^{m-1}}{\partial b^{m-1}}\left[\sqrt{\frac{\pi}{b}}\left(1-e^{-\pi^2a^2/b}\right)\right].$$
Concerning the integrals of the 2nd type, consider the change of variables $y=x\pm a^{-1}$ and try adapt the above, it's not difficult.