The probability density function of a random variables x is
f(x)=x4(4−x2);for0≤x≤2=0;otherwise
The mean μx of the random variable is
f(x)=⎧⎨⎩x4(4−x2),0≤x≤20,otherwise
μx=E(x)=∫∞−∞xf(x)dx
=∫20xx4(4−x2)dx
=∫20(x2−x44)dx
=(x33−x520]20=83−3220=1615