I'm trying to calculate the following integral
$$ \int_0^\infty dx \, e^{ix}$$
with contour integration. By choosing a quarter circle contour $\gamma$, by the residue theorem we get
\begin{align} 0 =\oint_\gamma dz \, e^{iz} =& \int_0^\infty dx\, e^{ix} + \int_{\mathrm{Arc}} dz \, e^{iz} -i\int_0^\infty dy \, e^{-y} \\ =& \int_0^\infty dx\, e^{ix} + \int_{\mathrm{Arc}} dz \, e^{iz} -i \end{align}
therefore, if the integral over the arc is zero, the original integral becomes $i$.
Can Jordan's lemma, of a variation thereof, be applied in this case?
Edit: the parametrization would be $z=R e^{i\theta}$ with $\theta \in [0, \frac{\pi}{2}]$.
Aside: it seems to me that the original integral can be interpreted as a distribution as the Fourier transform of the theta function at $k=1$, which would give $i$ as well.
$\int_0^N e^{ix^2}dx = 0$ or $\left|\int_0^N e^{ix^2}dx\right| = \left|\int_0^{\pi}e^{ix}\right|>0$
– Richard Jensen Jan 15 '21 at 10:03No, $e^{i\sqrt{\pi}^2}= - 1$, so has negative real part.
The wikipedia article's calculation for the infinity limit is nonsense, since it evaluates cosine at infinity, which is undefined.
I haven't read the entire argument from the SE post, but the top comment to the answer states the same that I do.
Check @Nico Terry's answer, there you can see exactly what goes wrong.
I'm guessing this is a problem from physics or enginering? The reason I'm thinking this is that in those disciplines, people are loose with math, and use "wrong" resulats if they just work.