$$\int_{-\infty}^{\infty}\frac{dx}{1+x^2}=\lim_{t\to \infty}\int_{-t}^{t}\frac{dx}{1+x^2}=\lim_{t\to \infty}\tan^{-1}(t)-\tan^{-1}(-t)=\pi$$
I can not do the following $\int_{-\infty}^{\infty}\frac{dx}{1+x^2}=\lim_{t\to \infty}\int_{-t}^{0}\frac{dx}{1+x^2}+\int_{0}^{t}\frac{dx}{1+x^2} $ as I do not know if the integral converges?
Is there a way to evaluate $\lim_{t\to \infty}\tan^{-1}(t)$? (I just know the graph)

$\displaystyle\lim_{x\to(\pi/2)^-}\tan(x)=\infty$, so $\displaystyle\lim_{x\to\infty}\tan^{-1}(x)=\frac\pi2$.