Trials are being undertaken on a horizontal road to test the performance of an electrically powered car. The car has a top speed of $V$. During a test run, the car moves from rest with uniform acceleration $a$ and brought to rest with uniform retardation $r$.
If the car is to achieve its maximum speed $V$ the length of a test run must be at least $$\frac{V^2(a+r)}{2ar}$$
What is the least time for a test run of length $$\frac{2V^2(a+r)}{9ar}$$ ?
It should be $\frac{2V(a+r)}{3ar}$
Minimizing transit time is equivalent to maximizing average speed over the run. This in turn means that the car must accelerate for as long as possible—coasting or decelerating doesn’t increase the average speed. The car will then decelerate to a stop over the remaining distance.
Direct solution: The length of the track is given as $L=\frac29{a+r\over ar}V^2$, with $V$ equal to the car’s top speed. We proceed by finding the distance $s$ at which the car must begin decelerating. By conservation of energy, we have $as=r(L-s)$, so $s={r\over a+r}L=\frac29{V^2\over a}$, with the remainder equal to $(L-s)={a\over a+r}L=\frac29{V^2\over r}$. This makes sense: kinetic energy is added or shed linearly with distance, so we expect the total distance to be divided up proportionally to the acceleration and deceleration. Under constant acceleration with initial velocity $0$, $s=\frac12at^2$, so the time to travel some distance $s$ is $\sqrt{2s/a}$ and thus the total time for the run is $$\sqrt{2s/a}+\sqrt{2(L-s)/r} = \sqrt{\frac49{V^2\over a^2}}+\sqrt{\frac49{V^2\over r^2}} = \frac23\left(\frac1a+\frac1r\right)V = \frac23{a+r\over ar}V.$$
Shortcut solution: Invert the expression for track length to find the maximum velocity for a given track length $l$, i.e., $v^2=2{ar\over a+r}l$. Plugging in the given track length, $$v^2=2{ar\over a+r}\cdot\frac29{a+r\over ar}V^2=\frac49V^2$$ therefore the maximum speed for this run is $\frac23V$. Under uniform acceleration the average speed over an interval is the average of the starting and ending speeds (giving the same average speed over both segments), and the time taken is simply distance over speed, which gives $$\frac29{a+r\over ar}V^2\Big/\frac V3 = \frac23{a+r\over ar}V$$ for the run time.