I have a problem with computing the value of constant $C$ and quartile Q2.
The task is that feature X has a density $f(x)$, $f(x) = -\infty < x < \infty$ , defined as:
$$f(x) = \left\{ \begin{array}{ccc} x^3-x & \mbox{if} & x \in [-1,0] \\ C\cos(2x) & \mbox{if} & x \in [0,\pi/4] \\ 0 & & \mbox{otherwise} \end{array}\right.$$
How should I do this?
Thank you in advance.