(a) (1) Integral formula:

W=dWh(y)ρgdVρgh(y)A(y)dy

(2) Setup:

Coordinate system: set y=0 at the top of the tank, increasing downwards.

Horizontal slice of the tank: disk of radius r at depth y, satisfies:

r2+y2=102,A(y)=πr2=π(102y2)

Distance pumped up (add 2 for the spigot): h(y)=y+2

Thus:

W010ρgπ(y+2)(102y2)dy

(b) (1) Change upper bound, top of water at y=4:

W410ρgπ(y+2)(102y2)dy