zetafunction said:
nope due to the factor 2\pi i the integral will be an imaginary number.
If f(x) is a real function then your integral will be real. Any 2\pi i terms that appear will necessarily be eliminated, either by some other factor of i appearing to cancel that i or the integral being zero.
Since the poles of the integral are simple poles, you can apply the half residue theorem, and so
P.V.\int_{-\infty}^{\infty}dx~\frac{f(x)}{(x-a)(x+a)} = \pi i\left[f(-a) + f(a)\right]
AS LONG AS f(z), where z = x + iy, is analytic within the upper half plane, AND AS LONG AS |f(Re^{i\theta})| < R as R \rightarrow \infty, otherwise the contribution from the large arc will not go to zero. Note that the analyticity condition must be taken into account for the second integral squidsoft did, which has a pole at z = i, which is inside the contour. Accordingly, looking at squidsoft's results,
P.V. \int_{-\infty}^{\infty}\frac{x}{(x-1)(x+1)}dx=\pi i-\pi i=0
is correct, but
P.V. \int_{-\infty}^{\infty}\frac{1}{(x-i)(x-1)(x+1)}dx=-\pi i+\pi i(1/2)=-\pi i/2
is not quite what I seem to get. I find
\int_\gamma dz~\frac{1}{(z-i)(z-1)(z+1)} = \frac{2\pi i}{((i)^2-1)} = P.V.\int_{-\infty}^{\infty}dx~\frac{1}{(x-i)(x-1)(x+1)} - \pi i \left[\frac{1}{2(1-i)} + \frac{1}{2(1+i)} \right]
where the "half residue terms" on the RHS came from the small arcs, traversed clockwise, hence the minus sign. Solving,
P.V.\int_{-\infty}^{\infty}dx~\frac{1}{(x-i)(x-1)(x+1)} = -\frac{3\pi i}{4}
The discrepancy appears to be accidentally dropping a factor of 1/2 on the half residue terms.