I have tried to evaluate this integral:$$\int_{-\infty}^{+\infty} \frac{\exp(1-ix)}{x^2+1}$$ playing by denominator $x^n+1$ , I have accrossed for $n=2$ a value is close to $\pi$ as shwon here in wolfram alpha , Now my question is to know what is the exact value of that integral ? is it $\pi$ ?
Note: $i$ is the unit imaginary part
For the lower half plane, pole $z = -i$, the longer method is: $$0 = \int_{\text{low}} \frac{e^{1 - i z}}{z^2 + 1} \, dz = \left(\int_{R} + \int_{-\infty}^{0} + \int_{0}^{-i} + \int_{\gamma} + \int_{-i}^{0} + \int_{0}^{\infty} \right) \frac{e^{1 - i z}}{z^2 + 1} \, dz.$$ The integral for $R$ is the outer radius as $R \to \infty$ and is zero. The integral for $\gamma$ is the residue, the integrals $\int_{0}^{-i} + \int_{-i}^{0}$ sum to zero. From this \begin{align} 0 &= \int_{- \infty}^{\infty} \frac{e^{1 - ix}}{x^2 + 1} \, dx + 2\pi \, i \lim_{z \to -i} \left\{ \frac{(z + i)}{z^2 + 1} \, e^{1 - i z} \right\} \\ \int_{- \infty}^{\infty} \frac{e^{1 - ix}}{x^2 + 1} \, dx &= - 2\pi \, i \lim_{z \to -i} \left\{ \frac{1}{z - i} \, e^{1 - i z} \right\} \end{align} or $$\int_{- \infty}^{\infty} \frac{e^{1 - ix}}{x^2 + 1} \, dx = \pi.$$