This integral has been haunting me for a while now, as it's eluded every method of integration I could come up with (u-substitution, integration by parts, trigonometric substitution, and even Feynman's method). I realize it's non-elementary, but I can't figure out how to find the definite integral. I know you'll need to use Feynman's method, but I'm at a loss.
I don't know if this will help, but a and c are both positive.
To be clear, I want to know how to integrate it, not what the value is.
This requires the use of the Laplace transform.
We set $$J(t;q)=q\int_0^\infty \frac{\cos(tx)dx}{x^2+q^2}.$$ Then we lake the Laplace transform of it: $$\begin{align} \mathcal{L}\{J(t;q)\}(s)&=\int_0^\infty e^{-st}J(t;q)dt\\ &=q\int_0^\infty \int_0^\infty \frac{e^{-st}\cos(tx)}{q^2+x^2}dxdt\\ &=q\int_0^\infty \frac{1}{x^2+q^2}\int_0^\infty e^{-st}\cos(tx)dtdx\\ &=qs\int_0^\infty \frac{dx}{(x^2+q^2)(x^2+s^2)}\\ &=\frac{qs}{q^2-s^2}\left[\int_0^\infty \frac{dx}{x^2+s^2}-\int_0^\infty \frac{dx}{x^2+q^2}\right]\\ &=\frac{\pi qs}{q^2-s^2}\left[\frac{1}{2s}-\frac{1}{2q}\right]\\ &=\frac{\pi}{2}\left[\frac{q}{q^2-s^2}-\frac{s}{q^2-s^2}\right]\\ &=\frac{\pi}{2}\left[\mathcal{L}\{\sinh qt\}(s)-\mathcal{L}\{\cosh qt\}(s)\right]\\ &=-\frac{\pi}{2}\mathcal{L}\{\cosh qt-\sinh qt\}(s)\\ &=-\frac{\pi}{2}\mathcal{L}\{e^{-qt}\}(s). \end{align}$$ Thus, when we take the inverse Laplace transform on both sides, we get $$J(t;q)=-\frac\pi2 e^{-qt}\ .$$