zetafunction said:
nope due to the factor [tex]2\pi i[/tex] the integral will be an imaginary number.
If f(x) is a real function then your integral will be real. Any [itex]2\pi i[/itex] 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
[tex]P.V.\int_{-\infty}^{\infty}dx~\frac{f(x)}{(x-a)(x+a)} = \pi i\left[f(-a) + f(a)\right][/tex]
AS LONG AS f(z), where z = x + iy, is analytic within the upper half plane, AND AS LONG AS [itex]|f(Re^{i\theta})| < R[/itex] as [itex]R \rightarrow \infty[/itex], 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,
[tex]P.V. \int_{-\infty}^{\infty}\frac{x}{(x-1)(x+1)}dx=\pi i-\pi i=0[/tex]
is correct, but
[tex]P.V. \int_{-\infty}^{\infty}\frac{1}{(x-i)(x-1)(x+1)}dx=-\pi i+\pi i(1/2)=-\pi i/2[/tex]
is not quite what I seem to get. I find
[tex]\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][/tex]
where the "half residue terms" on the RHS came from the small arcs, traversed clockwise, hence the minus sign. Solving,
[tex]P.V.\int_{-\infty}^{\infty}dx~\frac{1}{(x-i)(x-1)(x+1)} = -\frac{3\pi i}{4}[/tex]
The discrepancy appears to be accidentally dropping a factor of 1/2 on the half residue terms.