I am trying to solve $\int^{+\infty}_{-\infty}\frac{1}{x}dx $.
I read that it is a contour integral along the semi-circle of large radius in the lower complex plane. First, is there any justification for this, and second, does the integral then become $ -\int^{\pi}_{0} i d\theta$? This is what the text implies but I don't understand why it is $0\rightarrow\pi$ rather than $0\rightarrow2\pi$
$$\left.\int\limits_1^\infty\frac{dx}{x}=\log|x|\right|_1^\infty\ldots\;\text{the integral diverges and so does yours}$$