Let $X$ be a continuous random variable with PDF
$$f_X(x)= \begin{cases} cx(1-x), & \text{$0<x<1$} \\ 0, & \text{elsewhere} \end{cases}$$ Find the median of $X$.
My question is how I am only given PDF, to calculate median, do I need to find CDF for it? And how?
To get CDF $F_X(1)=1=c\int_0^1x(1-x)dx =\frac{c}{6}$, so $c=6$
Next $F_X(x)=6\int_0^xu(1-u)du=3x^2-2x^3$.
To get median $3x^2-2x^3=\frac{1}{2}$ and solve for $x$ in the interval $[0,1]$.