Need help in understanding a solution

The problem is

i am able to understand the normal solution using queues , but i am not able to understand the solution using calculus mentioned in the above tutorials , Can someone please help ?