Let $$\Delta(x, m^2)=(2\pi)^{-3}\int e^{ip \cdot x}\theta(p^0)\delta(p^2+m^2)d^4p.$$
Here $\theta$ is the step function at $0$.
I would like to show that this is the same as $$\Delta(x, m^2)=(2\pi)^{-3}\int \frac{e^{ip \cdot x}}{2\sqrt{\vec{p}^2+m^2}}d^3p.$$
However I cannot see how to proceed. Could anyone help me? These two appear in the Weinberg book and treated as the same, but I cannot prove it myself.