I'm interested in the definite integral
\begin{align} I\equiv\int_{-\infty}^{\infty} \frac{1}{x^2-b^2}=\int_{-\infty}^{\infty} \frac{1}{(x+b) (x-b)}.\tag{1} \end{align}
Obviously, it has two poles ($x=b, x=-b$) on the real axes and is thus singular. I tried to apply the contour integration methods mentioned here, where they discuss the integral \begin{align} \int_{-\infty}^{\infty}\frac{e^{iax}}{x^2 - b^2}dx = -\frac{\pi}{b}\sin(ab),\tag{2} \end{align} where the r.h.s. is the solution derivable in multiple ways as shown in the above thread (e.g. circumventing the poles with infinitesimal arcs).
However, since in the seemingly more simple case (1) the nominator is symmetric in constrast to the situation in (2), I obtain $$I=0,$$ as the residues equal up to different signs. E.g. consider the limit $a\rightarrow 0$ in (2) which gives $\sin(ab)\rightarrow 0$.
Based on some literature (in the context in which the integral is appearing) it seems that one should obtain
\begin{align} I=-\frac{i\pi}{b}. \end{align}
Of course, this can be realized by considering the modified integral \begin{align} I_{mod}\equiv\lim_{\eta\rightarrow 0^+} \int_{-\infty}^{\infty} dx \frac{1}{x^2-b^2+i\eta}, \end{align} and closing the contour (e.g. a box closed at infinity) in the lower half plane.
However, in this approach one seems to have some freedom (sign of the infinitesimal contribution, why shift one pole upwards and another pole downwards and not e.g. both upwards?)
So let me explicitly phrase my questions:
- Is the value of the definite integral in (1) well-defined?
- Is it equal to zero?
- In any case, why would I include an infinitesimal shift as in (2) and not in another way?
Thank you very much in advance!