Integral from $-\infty$ to $\infty$ of $xe^{-x^2}$.
Now I know if the integral from $a$ to $\infty$ of $f(x) dx$ and $-\infty$ to $a$ are convergent, then I could find the integral by summing the integrals from $-\infty$ to $a$ and the one from $a$ to $\infty$. But I tried to start the problem and I got $\infty$ when trying to evaluate from $t$ to $0$, using limits to replace $-\infty$ with $t$. How do I solve this??
$$\int_{-\infty}^{+\infty} x e^{-x^2}\ \text{d}x$$
You shouldn't get infinity at either limit. Maybe you used $e^{(-x)^2}$. You should be able to use the substitution $u=x^2$ successfully.