# Integral of an odd function doesn't converge

I have a function $$y(x)=\frac{x}{1+x^2}, x\in Reals$$, it is an odd function, with no undefined points, so I expect its integral (in the range $$[-\infty,+\infty]$$) to be 0. But when I use Mathematica to calculate it,

Integrate[x/(1+x^2),{x,-Infinity,Infinity}]


It says 'Integral of $$y(x)=\frac{x}{1+x^2}$$ does not converge on $$[-\infty,+\infty]$$'.

• Also, Integrate[x/(1+x^2), {x, -max, max}] evaluates to zero and its limit as max -> Infinity is also zero. – Bob Hanlon Dec 27 '18 at 14:59

Integrate[x/(1 + x^2), {x, -Infinity, Infinity},