The tank

y =

How to set it up

Work out each step for yourself, then open it to check.

Every drop in one layer rises by the same amount, so the layer is a constant weight moved a constant distance — that is what makes the last step a sum you can integrate.