I would appreciate a pedagogic walk through illustrating how to calculate the amplitude associated with a single Feynman diagram having a loop.
My example concerns the $\mathcal{L}=\frac{1}{2}\partial_{\mu}\phi\partial^{\mu}\phi-\frac{1}{2}m^{2}\phi^{2}-\frac{\lambda}{4!}\phi^{4}$ theory and diagram:
Now, from my understanding of Feynman rules for this diagram, I would write
$$ \begin{array}{cl} \left\langle out\left|S-1\right|in\right\rangle & =\int\frac{d^{4}k}{\left(2\pi\right)^{4}}\left(-i\lambda\right)^{2}\left(2\pi\right)^{8}\frac{i}{k^{2}-m^{2}+i\varepsilon}\frac{i}{\left(p_{1}+p_{2}-k\right)^{2}-m^{2}+i\varepsilon}\times\\ & \qquad\qquad\times\delta\left(p_{1}+p_{2}-k-p_{1}-p_{2}+k\right)\delta\left(k+p_{1}+p_{2}-k-p'_{1}-p'_{2}\right) \end{array} $$
and extract the amplitude from
$$ \left\langle out\left|S-1\right|in\right\rangle =i\mathcal{A}_{out,in}\left(2\pi\right)^{4}\delta^{4}\left(\sum_{i}p'_{i}-\sum_{i}p_{i}\right). $$
However, since I get two $\delta\left(0\right)$ inside the integral, I don't know how to proceed. Can you advise?