In the book "Tables of Integral Transforms" by Erdelyi, Magnus, et al, the following formula is provided:
$$ \int_0^\infty \frac{x e^{-x^2} \sin(2 z x)}{m^2 + x^2} dx = \frac{\pi e^{m^2}}{4} \left( e^{-2 z m} \text{erfc}(m-z) - e^{2 z m} \text{erfc}(m+z)\right) $$
I have tried a few tricks to get this, but am still stumped. Could anyone point me in the right direction on showing this? It seems to at least be somewhat nontrivial, considering that Mathematica cannot provide this result.
Let $$ I(p) = \int_{0}^{\infty} \frac{x \, e^{-x^2} \sin(2 p x)}{m^2 + x^2} \, dx. $$ Since $p$ is a variable not involved in the integral then: \begin{align} \frac{d^2 \, I}{d \, p^2} - 4 \, m^2 \, I &= -4 \, \int_{0}^{\infty} x \, e^{-x^2} \, \sin(2 p x) \, dx = -2 \, \sqrt{\pi} \, p \, e^{- p^2}. \end{align} This differential equation has the general solution $$ I(p) = c_{1} \, e^{2 m p} + c_{2} \, e^{-2 m p} - \frac{\pi}{4} \, e^{m^2} \, \left( e^{2 m p} \, \text{erf}(m - p) + e^{-2 m p} \, \text{erf}(m - p) \right). $$ Using $I(0) = 0$ then $$ c_{1} + c_{2} = \frac{\pi}{2} \, e^{m^2} \, \text{erf}(m). $$ Obtaining the second equation to determine the coefficients $c_{1}$ and $c_{2}$ gives the desired result and is left to the reader.
In Gradshteyn, " Tables of integrals, series, and products ", p. 504, $(3.954)$ the formula \begin{align} I(\beta, a) &= \int_{0}^{\infty} x \, e^{- \beta \, x^2} \, \frac{\sin(a x) \, dx}{x^2 + \gamma^2} \\ &= - \frac{\pi}{4} \, e^{\beta \, \gamma^2} \, \left( 2 \, \sinh(a \gamma) + e^{- a \gamma} \, \text{erf}\left( \gamma \, \sqrt{\beta} - \frac{a}{2 \, \sqrt{\beta}}\right) \right. \\ & \hspace{20mm} \left. - e^{a \gamma} \, \text{erf}\left( \gamma \, \sqrt{\beta} + \frac{a}{2 \, \sqrt{\beta}}\right) \right) \end{align} is given.
The same pattern can be applied with a first and second order differential equation. These are \begin{align} \frac{d^2 \, I}{d \, a^2} - \gamma^2 \, I &= \cdots \\ \frac{d \, I}{d \, \beta} - \gamma^2 \, I &= \cdots. \end{align} Both of these equations have an exponential form on the right hand side and give solutions similar to the one in the example.