The fastest way through a traffic light
We give a rigorous solution of the problem of minimising the expected delay caused by a red traffic light on a road journey. The problem incorporates constraints on maximum speed, acceleration and braking rates, and depends on the distribution of the remaining time until the light turns green. In the cases of Uniform and Exponential distributions, we give a complete characterisation of all possible combinations of phases of maximum acceleration, maximum speed, maximum braking, following an Euler-Lagrange curve, and standing stationary at the traffic light, which can make up an optimal solution. In the Exponential case there is a surprise: the optimal solution sometimes involves a discontinuous jump from one positive braking rate to the maximum allowed braking rate. The key technique is to write the problem in terms of a two-dimensional pressure integral, so that the problem becomes analogous to filling a tank with a given quantity of liquid.