I know that $\int_{0}^{+\infty}\frac{\sin(x)}{x}\,dx=\dfrac \pi 2$, by constructing the 2 variable integration $$\int_{0}^{+\infty}\sin(x)\int_{0}^{+\infty}\dfrac{1}{e^{xy}}\,dy\,dx$$ But this seems to be an ad hoc solution to me.
If I only need to prove it converges to a finite number, is there any general method?
Thanks a lot.
To show that the improper Riemann integral $\int_0^\infty \frac{\sin(x)}{x}\,dx$ exists, we can use the Abel-Dirichlet test. There, we only need to establish that there exists a number $M$ such that for any $L>0$
$$\left|\int_0^L \sin(x)\,dx\right|\le M$$
Inasmuch as $\frac{1}{x}$ decreases to $0$ monotonically, then the test guarantees that the integral $\int_0^\infty \frac{\sin(x)}{x}\,dx$ exists.