Justify the following relations:
$$
\begin{aligned}
\int \frac{d^{3} p^{\prime}}{2 p_{0}^{\prime}} \delta^{(4)}\left(p+q-p^{\prime}\right) &=\int d^{3} p^{\prime} d p_{0}^{\prime} \delta^{(4)}\left(p+q-p^{\prime}\right) \theta\left(p_{0}^{\prime}\right) \delta\left(p^{\prime 2}-M^{2}\right) \\
&=\frac{1}{2 M} \delta\left(\nu+\frac{q^{2}}{2 M}\right) \\
&=\frac{1}{2 M A} \delta\left(E^{\prime}-E / A\right)
\end{aligned}
$$
where $A=1+(2 E / M) \sin ^{2} \frac{\theta}{2}$, and the step function $\theta(x)$ is 1 if $x>0$ and 0 otherwise.