integrate 1000*9.81*(3-h)^2*1 h=0 to 3