Let X be a random variable with pdf given by $\beta^2xe^{-\frac{1}{2}\beta^2x^2}$ where $\beta>0, x >0$
Find $E[X]$.
I believe this is a function from the gamma distribution. Here is what I have thus far
$$\int_0^\infty\beta^2xe^{-\frac{1}{2}\beta^2x^2}dx$$ $$\beta^2\int_0^\infty xe^{-\frac{1}{2}\beta^2x^2}dx$$ $$u=-\frac{1}{2}\beta^2x^2$$ $$du=-\frac{1}{2}\beta^2x^2dx$$ $$dx=-\frac{du}{\beta^2x}$$
$$=\beta^2\int_0^\infty xe^{u}*-\frac{du}{\beta^2x}$$ $$=-\int_0^\infty e^{u}du$$
I just wanted to know if my steps are correct thus far. I haven't done integration in a while, so I am not sure if my steps are correct/incorrect.
No, it is not a gamma but a reileigh with expectation
$$\mathbb{E}(X)=\frac{1}{\beta}\sqrt{\frac{\pi}{2}}$$
How to calculate it:
$$\mathbb{E}(X)=\int_0^{\infty}\beta^2x^2e^{-(\beta^2x^2)/2}dx$$
set $y=\beta x$ and the result is immediate using standard gaussian's second moment
In fact you get
$$\mathbb{E}(X)=\frac{1}{\beta}\int_0^{\infty}y^2e^{-y^2/2}dy=\frac{\sqrt{2\pi}}{\beta}\int_0^{\infty}\frac{1}{\sqrt{2\pi}}y^2e^{-y^2/2}dy=$$ $$=\frac{\sqrt{2\pi}}{2\beta}\underbrace{\int_{-\infty}^{\infty}\frac{1}{\sqrt{2\pi}}y^2e^{-y^2/2}dy}_{=1}= \frac{1}{\beta}\sqrt{\frac{\pi}{2}} $$
I can say that
$$\int_{-\infty}^{\infty}f(y)dy=2\int_{0}^{\infty}f(y)dy$$
because $f(y)$ is even.
thus the latest integral is $E(Y^2)=1$ because $Y\sim N(0;1)$