I was solving a problem on Fourier Analysis ( namely, I was proving that $\int|f|^2dx=\sum_{n\in \mathbb{Z}} |f(n)|^2$ if $f$ is of moderate decrease and the fourier transform of $f$ is supported on $[-1/2,1/2]$) and the problem boils down to proving that this integral is zero for $n\not=m$ where $n$ and $m$ are both integers:
$$\int_{-\infty}^\infty \frac{\sin(\pi x)}{(x-n)}\frac{\sin(\pi x)}{(x-m)}dx=0$$
I am not really sure how to compute this integral. I know $\sin(\pi x)^2/x^2$ can be integrated using the fourier transform of a characteristic function. I tried to adapt this here but to no avail.
The function $f_{k}(x)=\mathbf{1}_{\left [-{1\over 2},{1\over 2}\right ]}e^{2\pi i kx}$ is square integrable and its Fourier transform is equal $$\widehat{f_k}(t)={1\over \pi (k-t)}\sin\pi (k-t)=(-1)^k{\sin\pi t\over \pi(t-k)}$$ By the Plancherel identity $$\int\limits_{-\infty}^\infty f_n(x)\overline{f_m(x)}\,dx =\int\limits_{-\infty}^\infty \widehat{f_n}(t)\overline{\widehat{f_m}(t)}\,dt\\ ={(-1)^{n+m}\over \pi^2}\int\limits_{-\infty}^\infty{\sin\pi t\over t-m}{\sin \pi t\over t-n}\,dt$$ The left hand side integral vanishes for $n\neq m,$ as the functions $ e^{2\pi i mx}$ and $ e^{2\pi i nx}$ are orthogonal in $L^2\left (-{1\over 2},{1\over 2}\right )$ for $m\neq n.$ This gives the conclusion.