6 The random variable \(X\) has a uniform distribution on the interval \([ - 1,1 ]\), so that its probability density function is given by
$$f ( x ) = \begin{cases} \frac { 1 } { 2 } & - 1 \leqslant x \leqslant 1 \\ 0 & \text { otherwise } \end{cases}$$
- Show from the definition of the moment generating function that the moment generating function of \(X\) is \(\frac { \sinh t } { t }\).
- By using the series expansion of \(\sinh t\), find the variance of \(X\) and the value of \(\mathrm { E } \left( X ^ { 4 } \right)\).