A car drives along a straight road. Over the first half of the distance it travels at a constant , and over the second half of the distance at a constant .
What is the average speed for the whole trip?
Start from the definition, not from intuition. Average speed is always
It is not the average of the two speeds. Averaging and to get silently assumes the car spends equal time at each speed, but here it covers equal distance — and it spends longer on the slower half, which drags the average down.
Name the distance so it can cancel. Let each half be , so the total distance is . The time for each half is distance over speed:
Add the times over a common denominator.
Divide total distance by total time.
The unknown cancels, which is why the answer does not depend on how long the road is.
Recognise the general formula. Repeating the algebra with symbols gives the harmonic mean of the two speeds:
The harmonic mean is always less than the arithmetic mean unless the two speeds are equal, so a result slightly under is the built-in sanity check.
Test it with a concrete number. Take each half to be : the first half takes h and the second h, so in h, giving — exactly the formula's answer.
Need to solve a different problem like this? Open the solver →