in my calculus class we are currently dealing with improper integrals and I was tackled with the following:
$$ \int_{0}^{\infty} x^4 e^{-x^2}dx = $$
and
$$ \int_{0}^{\infty} x^5 e^{-x^2}dx = $$
I have no idea on either one as I am new to these sort of tricks so I am writing here so hopefully someone can show me how to work these. I thank all helpers.
Using two integration by part,
$$ \int_0^{+\infty} x^4 e^{-x^2}~\mathrm{d}x = \dfrac{-1}{2}\left[x^3e^{-x^2} \right]^{+\infty}_0 +\dfrac{3}{2}\int_0^{+\infty} x^2 e^{-x^2}~\mathrm{d}x$$
And
$$\int_0^{+\infty} x^2 e^{-x^2}~\mathrm{d}x= \dfrac{-1}{2}\left[xe^{-x^2} \right]^{+\infty}_0 +\dfrac{1}{2}\int_0^{+\infty} e^{-x^2}~\mathrm{d}x$$
Finally
$$\int_0^{+\infty} e^{-x^2}~\mathrm{d}x=\dfrac{\sqrt{\pi}}{2}$$
as a well-known integral.