3
\includegraphics[max width=\textwidth, alt={}, center]{9fca48da-82c3-4ce1-9e0c-93eb9a920f9d-05_456_668_260_735}
The random variable \(X\) takes values in the range \(1 \leqslant x \leqslant p\), where \(p\) is a constant. The graph of the probability density function of \(X\) is shown in the diagram.
- Show that \(p = 2\).
- Find \(\mathrm { E } ( X )\).