I have been given the pdf: $$f_{\theta}(x)=\frac{x}{\theta^2}e^{-\frac{x^2}{2\theta^2}}$$ and I want to know if the MLE estimator $\theta$ is unbiased.
Attempt: I want to maximize the function so I take the natural logarithm and then I differentiate with respect to $\theta$ as follows: $$\frac{d}{d\theta}ln(f_\theta (x))=\frac{-2}{\theta}+\frac{x^2}{\theta^3}$$ which equals zero iff $\theta =x^2/4$. Thus $\hat{\theta}=\frac{x^2}{4}$
Now I want to evaluate $E[\hat{\theta}]$ which I'm having trouble to implement. Is it $$E[\hat{\theta}]=E[x^2/4]=\int_0^{\infty}\frac{x^2}{4}f_\theta (x^2/4)dx$$ or am I misunderstanding the definition of $E[\hat{\theta}]$?
Edit:differentiation fixed