(d) (5%) Derive \( E[X] \). [A detailed derivation is required.]