Evaluate the integral $$\int_{-\infty}^{+\infty}\dfrac{x}{1+x^2}dx .$$
Intuitive approach
As you see, it's an odd function,and we can say that value of the integral is $0$, because its symetric point is $0$ in opposite sign each other, and I think $0$ is mid point of $(-\infty,\infty)$.
Solution (wrong)
It's a improper integral and let's change its form:
$$\displaystyle\int_{-\infty}^{+\infty}\dfrac{x}{1+x^2}dx=\displaystyle\int_{-a}^{+a}\dfrac{x}{1+x^2}dx=\lim_\limits{a\rightarrow \infty}\left[\dfrac{1}{2}\ln|x^2+1|\right]^{^{a}}_{_{-a}}=\lim\limits_{a\rightarrow \infty}\dfrac{1}{2}[0]=0$$
I've checked in Wolfram, but it says that this integral is not defined. Why can't we just calculate simply? There are no improper points, and it is a very simple function. What is the big deal? What I miss?

The point is that, for this improper integral to exist (in the Riemann sense), you would need to prove that the limits $$ \lim_{M,N\to+\infty}\int_{-N}^{M}\frac{x}{1+x^2}dx $$ exist separately in $M$ and $N$. However, this is false because $$ \int_{-N}^M \frac{x}{1+x^2}dx=\frac{1}{2}\log\frac{1+M^2}{1+N^2}\xrightarrow[M\to+\infty]{N=\text{ fixed}}+\infty. $$ For the integral to exist in the Lebesgue sense, you need to have first control on the positive and negative parts separately, i.e. $$ \int_{\mathbb R}\frac{x}{1+x^2}dx=\left[\,\int_{\mathbb R_-}\frac{x}{1+x^2}dx\right]+\left[\,\int_{\mathbb R_+}\frac{x}{1+x^2}dx\right] $$ if both square brackets exist separately. Again this is not true.
What is correct, and is the content of your statement, is the fact that $$ \lim_{M\to+\infty}\int_{-M}^{+M}\frac{x}{1+x^2}dx=0 $$ as you proved. This is commonly defined as the Cauchy Principal Value $\mathrm{PV}$ of the otherwise singular integral: summing up $$ \mathrm{PV}\int_{-\infty}^{+\infty}\frac{x}{1+x^2}dx=\lim_{M\to+\infty}\int_{-M}^{+M}\frac{x}{1+x^2}dx=0. $$