I am stuck with the following integral that came up during my research and I am not sure how to correctly evaluate this expression.
$\int_{-\infty}^{\infty} dk\left[\Im[ \frac{1}{(\omega+i\eta+k)(\omega+i\eta+k+q)}] \right]$,
wher $\eta$ is an infinitesimal parameter. The integration is over the real numbers and $\Im$ is the imaginary part. This is an integral that comes from the convolution of two Greens functions, just to give the physical background.
From numerics and physical considerations I am expecting something proportional to $-\delta (q)$, but I can't for the life of me figure out how to correctly calculate the $q=0$ case. For the $q\neq 0$-case the residue theorem seems to yield the correct result (zero), but for $q=0$ it does not seem to work.
Generally, one has $\lim_{\eta \rightarrow 0} \frac{1}{\omega+i\eta} = \mathcal{P}(\frac{1}{\omega}) - i\pi \delta(\omega)$, but I am not quite sure how to do this correctly in the quadratic case at hand.
I am pretty sure I am not treating the limits correctly or ignoring the fact that these expression are only valid as distributions, but I am at a loss.
Has anybody dealt with something similar? I would really appreciate any help.