I'm having trouble deriving the Greens function for the Helmholtz equation. I happen to know what the answer is, but I'm struggling to actually compute it using typical tools for computing Greens functions.
In particular, I'm solving this equation:
$$ (-\nabla_x^2 + k^2) G(x,x') = \delta(x-x') \quad\quad\quad x\in\mathbb{R}^3 $$
I know that the solution is
$$ G(x,x') = \frac{e^{-i k |x-x'|}}{4\pi|x-x'|} $$
but I would like to understand how to obtain this answer (so that I can find Greens functions for other, more complicated, equations). The typical approach seems to be to solve in Fourier space and then transform back into real space, but I'm having a lot of trouble with the transformation back into real space. In particular, evaluating this integral is hard:
$$ G(x,x') = \int d^3p \frac{e^{-ip(x-x')}}{p^2+k^2}$$
(where $p$ is my Fourier space variable, and $k$ is the same $k$ as in the original equation above). Is there an easier way? Am I doing something wrong?