TITLE: show $\int_0^{\infty} \frac{x\sin ax}{x^2+t^2}dx = \frac{\pi}{2}e^{-at}$
QUESTION [5 upvotes]: I'm asked to show  $\int_0^{\infty} \frac{x\sin ax}{x^2+t^2}dx = \frac{\pi}{2}e^{-at}$ when $t,a > 0$.
I tried using integration by parts integrating $\frac{x}{x^2+t^2}$. But it seems that $\frac{x\sin ax}{x^2+t^2}$ has no antiderivative. What should I try?

REPLY [5 votes]: I thought it might be instructive to present a way forward that relies on real analysis only and forgoes complex analysis.  To that end, we now proceed.


Let $I(a,t)$ be given by
$$\begin{align}
I(a,t)&=\int_0^\infty \frac{x\sin(ax)}{x^2+t^2}\,dx\\\\
&\overbrace{=}^{x\mapsto x|t|}\int_0^\infty \frac{x\sin(a|t|x)}{x^2+1}\,dx\\\\
&=\int_0^\infty \frac{(x^2+1-1)\sin(a|t|x)}{x(x^2+1)}\,dx\\\\
&=\int_0^\infty \frac{\sin(a|t|x)}{x}\,dx-\int_0^\infty \frac{\sin(a|t|x)}{x(x^2+1)}\,dx\\\\
&=\frac\pi2\text{sgn}(a|t|)-\int_0^\infty \frac{\sin(a|t|x)}{x(x^2+1)}\,dx\tag1
\end{align}$$

For $|at|>\delta>0$, the integrals $\int_0^\infty \frac{\cos(a|t|x)}{x^2+1}\,dx$ and $\int_0^\infty \frac{x\sin(a|t|x)}{x^2+1}\,dx$ uniformly converge and we may differentiate twice (with respect to $a|t|$) under the integral on the right-hand side of $(1)$ to find for $|at|\ge \delta>0$
$$\frac{d^2I(a,t)}{d(a|t|)^2}=I(a,t)\tag2$$
The general solution to $(2)$ is $I(a,t)=Ae^{-a|t|}+Be^{a|t|}$.  To find the integration constants $A$ and $B$ we invoke the conditions (i) $\lim_{at\to 0^+}I(a,t)=\frac{\pi}{2}$ and $(ii)$ $\left.\left(\frac{dI(a,t)}{d(a|t|)}\right)\right|_{a|t|=0}=-\frac\pi2$.  Proceeding, we find that $A=\frac\pi2$ and $B=0$.
Putting it all together and exploiting the oddness of the integrand around $a$, we find that 
$$I(a,t)=\text{sgn}(a)\frac\pi2 e^{-|at|}$$
And we are done!