Consider a continuous random variable X with probability density function given by $f(x)=cx$ for $1 \le x \le 5$, zero otherwise. Find the median.
First I calculate the CDF: $F(x)=cx^2/2$ for $1 \le x \le 5$, zero otherwise.
Now we have to solve for constant c by using the definition of PDF, namely:
$\int\limits_{-\infty}^{\infty}f(x)dx=1 \implies (cx^2/2)_1^5=1 \implies c=1/12 $
Then to calculate the median, we set the CDF = 0.5:
$0.5=(1/12)(1/2)x^2 \implies x=\sqrt{12}$
But the book solution is $\sqrt{13}$. Can someone tell me what I am doing wrong?
Thank you.