I want to use residue theory to integrate
$$\int_{-\infty}^{\infty}\frac{\sin(x)}{x}dx$$
What would be a good contour to use?
I plan to take the imaginary part of this integral:
$$\int \frac {e^{iz}}{z} dz$$
The integrand has a simple pole at the origin, so that is a bit problematic.
So, I thought of choosing an upper semicircular contour, with a small semicircular indent going over the origin.
The estimate over the big semicircle is easy to give and the integral on it goes to zero, as the radius $R$ grows to infinity.
The integration over the two half lines are the desired integrals. And the integration should be set equal to zero, since this choice of contour avoids the pole at the origin, and by Cauchy's Theorem, the integration of an analytic function over a closed contour is just zero.
Now the only trouble is evaluating the integral over the small semicircular indent, call it $C_{\epsilon}$.
Parametrizing, we have that $z= \epsilon e^{i\theta}$ for $\pi \ge \theta \ge 0$.
Then the contour integral is (after a bit of simplification):
$$\int_{\pi}^0 e^{\large i\epsilon e^{i\theta}}i d\theta$$
$$=-i\int_0^{\pi} e^{\large i\epsilon e^{i\theta}} d\theta$$
I'm not sure how to evaluate this integral, so any hints or comments are welcome.
Also, if you think a completely different approach would be better, please feel free to comment.
Thanks,