(1) Integral formula:
Let at the ground and increase going up.
(2) Compute force:
The force on the rope (at the top) when the bucket is at height is:
We know .
Water is leaking at . Therefore:
The weight of chain remaining is:
Put together:
(3) Integrate: