I'm trying to prove directly that $$\int_{-\infty}^{+\infty}\frac{1+x}{1+x^2}dx$$ doesn't exist:
Integrating, \begin{align*}\int_u^v\frac{1+x}{1+x^2}dx&=\arctan x\Big|_u^v+\frac{1}{2}\log(1+x^2)\Big|_u^v\\ &= \arctan v-\arctan u+\frac{1}{2}\log\left(\frac{1+v^2}{1+u^2}\right).\end{align*} Since $$\lim_{\substack{u\to -\infty\\ v\to +\infty}}\arctan v-\arctan u=\pi,$$ we need to show that $$\lim_{\substack{u\to -\infty\\ v\to +\infty}}\log\left(\frac{1+v^2}{1+u^2}\right)$$ doesn't exist. But I don't know how to prove it. An idea is to use that, $$\lim_{v\to +\infty}\lim_{u\to -\infty}\log\left(\frac{1+v^2}{1+u^2}\right)\neq\lim_{u\to -\infty}\lim_{v\to +\infty}\log\left(\frac{1+v^2}{1+u^2}\right),$$ but is this sufficient? Thanks.
Let $$f(u,v)=\ln\left(\frac{1+v^2}{1+u^2}\right)$$
we will prove that $$\lim_{(-u,v)\to(\infty,\infty)}f(u,v)$$ does not exist.
if we take $ (-u,u) $ we find
$$\lim_{(-u,u)\to(\infty,\infty)}f(u,u)=0$$
but if we take $ (-u,2u) $ we get
$$\lim_{(-u,2u)\to(\infty,\infty)}f(u,2u)\ne 0$$
So, the limit cannot exist.