The diagram makes the remaining distance to the wall: decreases from to . With the endpoint condition , integrating the supplied mass gradient gives
Assume escaping sand has the same horizontal velocity as the bucket at release. There is then no horizontal recoil: the momentum flux of the outgoing sand cancels the contribution to the bucket's momentum derivative. The variable-mass system equation is therefore
Set , the speed towards the wall. Since , the initial condition gives
Consequently the remaining sand has kinetic energy
In terms of , . Its derivative is and its second derivative is , giving
The magnitude of the remaining sand's momentum is
It is easier to maximize its square, . Its derivative is , giving the unique interior maximum
Both kinetic energy and momentum tend to zero at , even though the idealized speed diverges. There is no finite-mass bucket left at the endpoint, so that divergence signals the limit of the idealization.
The leaking bucket under constant tension has : the kinetic energy maximum is closer to the wall. As the bucket loses mass, its increasing speed continues to boost after has begun to fall. Equivalently, and , so kinetic energy has the stronger dependence on the growing speed. The work is shared between the remaining sand and the sand already lost; it is not all the bucket's instantaneous kinetic energy.