\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
The random variable \(X\) has the density \(f(x) = \frac{1}{2}\), on the interval \([0, 2]\). Calculate \(E(X)\).
Capture an image of your work. AI teacher feedback takes approximately 10 seconds.