4 The continuous random variable \(X\) has probability density function given by
$$f ( x ) = \begin{cases} \frac { 4 } { 3 x ^ { 3 } } & 1 \leqslant x < 2
\frac { 1 } { 12 } x & 2 \leqslant x \leqslant 4
0 & \text { otherwise } \end{cases}$$
- Find the upper quartile of \(X\).
- Find the value of \(a\) for which \(\mathrm { E } \left( X ^ { 2 } \right) = a \mathrm { E } ( X )\).