Why don't all odd functions integrate to $0$ from $-\infty$ to $\infty$?
As for any odd function $f(x)$,
$$\int_{-a}^{a} f(x) dx = 0$$
I actually ran into trouble in a recent examination where I was asked to compute the mean and standard deviation of Cauchy Distribution and I computed the mean as $0$ (the integrand is odd as the pdf of the distribution is even) and the standard deviation as $\infty$ (because $E(X^2) = \infty$). But the official answer stated that
Mean is undefined: no unique solution.
And naturally if mean is undefined, so is the variance as $$Var(X) = E(X^2) - (E(X))^2$$ But I was under the impression that integration of any odd function from $-a$ to $a$ is $0$.