Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2021/ia/paper-4/3c/solution

Let be the trolley's remaining mass. During , the expelled mass has ground-frame velocity . Conservation of momentum gives, to first order,
and hence . Integration yields the rocket equation
At the stopping time, . Therefore the time spent ejecting gas is

New to topics? Read the docs here!