Evaluate: $\displaystyle \int ^\infty _{-\infty} x^4e^{-x^2/2}dx$
If I notice this is an even function I can write this as : $2\displaystyle \int ^\infty _0 x^4e^{-x^2/2}dx$
If I then proceed with the substitution $u=\frac{x^2}{2}$ the limit of integration is $(0,\infty)$
However if I do not notice this is an even function and write $u=\frac{x^2}{2}$ can I just let the limit of integration be equal $(0,\infty)$ or is there a further step I must take aswell?
It's just I get two different answers using the above approaches.