9709 P63 - Jun 2026 - Q3 - 6 marks
9172
A random variable \(X\) takes values between 0 and 6 only and has probability density function \(f(x)\) as shown in the diagram, where \(a\) is a constant.
Given that \(\mathrm E(X)=2\), find \(\operatorname{Var}(X)\). [6]