I've been searching the web for a way to prove that $\int^{\infty}_{-\infty}{\sin(x)/x} = \pi$ with complex analysis, because I have a problem of consistency.
I found two, carried in the following link : Computing $\int_{-\infty}^\infty \frac{\sin x}{x} \mathrm{d}x$ with residue calculus. But then I wanted to find it by using the fact that :
$\sin(x)/x = \text{Im}(e^{ix}/x)$
To do so, I shifted the integration by $-i$ in the complex plane, showing that the integral on $[-\infty , \infty]$ is equal to the one on $[-\infty -i, \infty -i]$, since the integrand vanish on the vertical borders of the rectangle when we tend to infinity. I did this to get rid of the pole on the contour of integration.
Then, by using the residues theorem on the contour $C_1 : z = y-i, y \in [-R,R]$ and $C_2 : z = Re^{it}-i, t \in [0,\pi]$. Given the integral on $C_2$ vanishes, we have then that :
$\int^{\infty}_{-\infty}{\sin(x)/x} = \text{Im}(\int^{\infty}_{-\infty}{e^{ix}/x}) = \text{Im}(2\pi i\,\text{Res}(e^{iz}/z, 0)) = 2 \pi$
Which gives me the answer with a factor of $2$. I don't understand were did I go wrong ? I think it has something to do with the fact that I take the imaginary part of the integral, but I don't really know... Can someone spot my mistake ?
If needed, I can provide further detail on my calculations.
$$\frac{\sin(\pi x)}{\pi x} = \int_{-1/2}^{1/2} \exp(2 \pi i x f) ; df = \int_{-\infty}^{\infty}Rect(f) \exp(2 \pi i x f) ; df ; ,$$
so the Fourier transform gives
$$\int_{-\infty}^{\infty} \frac{\sin(\pi x)}{\pi x} \exp(-2\pi i f x) ; dx = Rect(f).$$
Scaling $x$ and evaluating at $f=0$ gives the expected result.
– Tom Copeland May 12 '15 at 20:16