D(Y1)=(5-6)2×0.8+(10-6)2×0.2=4;
E(Y2)=2×0.2+8×0.5+12×0.3=8,
D(Y2)=(2-8)2×0.2+(8-8)2×0.5+(12-8)2×0.3=12.
(2)f(x)=D+D
=2D(Y1)+2D(Y2)
=[x2+3(100-x)2]
=(4x2-600x+3×1002).
所以当x==75时,f(x)=3为最小值.