I'm new to statistics and I'm struggling to solve a question from an assignment. I have a probability density function and I need to calculate its median
Here is the function:
$$f(x) = 2xe^{-x^2}, x>= 0$$
The answer is $\sqrt{\log 2}$.
Can someone help? I'm trying to learn