Sub topic 4
Round Trips and Equal-Distance Legs
This chapter assumes you know distance = rate × time, can solve one-variable linear equations, and can add fractions. It also assumes you have seen average speed as total distance divided by total time. Here we apply that idea to round trips and to any trip whose legs cover the same distance at different speeds.
What makes a trip "equal-distance"
An equal-distance trip has two or more legs of the same length, each traveled at its own speed. The classic case is a round trip: you drive from A to B and back to A. The distance out equals the distance back, but the speeds usually differ because of traffic, hills, or wind.
The GRE likes these problems because the tempting answer is wrong. If you drive out at 40 mph and back at 60 mph, the simple average of the speeds is 50 mph. The true average speed is lower.
The reason is that you spend more time at the slower speed. The two legs cover equal distances, so the slow leg takes longer. A speed that lasts longer counts for more in the average. Averaging speeds directly gives each speed equal weight, but the trip does not.
The setup that always works
Average speed is total distance divided by total time. For two equal legs of length d, with speeds r₁ and r₂:
- Total distance = 2d.
- Time out = d / r₁. Time back = d / r₂.
- Total time = d / r₁ + d / r₂.
- Average speed = 2d ÷ (d / r₁ + d / r₂).
def average_speed(distance_each_way, speed_out, speed_back):
total_distance = 2 * distance_each_way
total_time = distance_each_way / speed_out + distance_each_way / speed_back
return total_distance / total_time
print(average_speed(60, 40, 60)) # 48.0Check the numbers by hand. The 60-mile leg at 40 mph takes 1.5 hours. The return at 60 mph takes 1 hour. The total is 120 miles in 2.5 hours, which is 48 mph.
The distance cancels
The result does not depend on the leg length. Factor d out of the denominator:
Average speed = 2d ÷ d(1/r₁ + 1/r₂) = 2 ÷ (1/r₁ + 1/r₂)
This is the harmonic mean of the two speeds. Simplifying the fraction gives a shortcut for two legs:
Average speed = 2·r₁·r₂ ÷ (r₁ + r₂)
For 40 and 60, this is 2·40·60 ÷ 100 = 48.
This matters when a problem gives no distance. You can pick any convenient distance, because it cancels. Choose one that divides evenly by both speeds, such as the least common multiple of the speeds. For 40 and 60 the LCM is 120, so use 120 miles each way. The out leg takes 3 hours, the return takes 2 hours, and the average is 240 ÷ 5 = 48.
def harmonic_average(speed_out, speed_back):
return 2 * speed_out * speed_back / (speed_out + speed_back)
print(harmonic_average(40, 60)) # 48.0
print(harmonic_average(40, 60) == 2 * 120 / (120 / 40 + 120 / 60)) # TrueWhy the answer is always below the simple average
The harmonic mean of two different positive numbers is always less than their arithmetic mean. It equals the arithmetic mean only when the speeds are equal. So for two different speeds on equal-distance legs, the average speed is strictly between the two speeds and strictly below their midpoint.
This gives a quick check under time pressure. If a problem asks for the average speed and one answer choice is the simple average, that choice is a trap. The correct answer is lower.
It also tells you where the answer sits. The average is pulled toward the slower speed. If one speed is very small, the average is close to twice that small speed.
| Speed out | Speed back | Simple average | True average speed |
|---|---|---|---|
| 40 | 60 | 50 | 48 |
| 30 | 60 | 45 | 40 |
| 20 | 60 | 40 | 30 |
| 50 | 50 | 50 | 50 |
A diagram of the idea
Working backward: finding a missing speed
Some problems give the average and one leg, then ask for the other leg. Use the same total-distance and total-time setup, and solve for the unknown.
Example: you drive to a town 30 miles away at 30 mph. How fast must you return so that your average speed for the round trip is 40 mph?
- Total distance is 60 miles.
- For an average of 40 mph, the total time must be 60 ÷ 40 = 1.5 hours.
- The outbound leg already took 30 ÷ 30 = 1 hour.
- The return must take 0.5 hours.
- Return speed = 30 ÷ 0.5 = 60 mph.
def required_return_speed(distance_each_way, speed_out, target_average):
total_time_allowed = 2 * distance_each_way / target_average
time_used = distance_each_way / speed_out
time_left = total_time_allowed - time_used
if time_left <= 0:
return None # impossible: the time budget is already spent
return distance_each_way / time_left
print(required_return_speed(30, 30, 40)) # 60.0
print(required_return_speed(30, 30, 60)) # NoneThe second call shows an edge case. To average 60 mph over 60 miles you need exactly 1 hour in total, but the first leg already used 1 hour. No finite return speed works. A related case is trying to average twice the outbound speed: it is always impossible, and the formula gives a zero or negative time left.
More than two legs and unequal legs
The method extends without change. Add every distance for the numerator and every time for the denominator.
For three equal legs of length d at speeds r₁, r₂, r₃, the average is 3d ÷ (d/r₁ + d/r₂ + d/r₃). The distance still cancels, giving 3 ÷ (1/r₁ + 1/r₂ + 1/r₃).
If the legs are not equal, the shortcut formula no longer applies. Example: 100 miles at 50 mph, then 50 miles at 25 mph. The times are 2 hours and 2 hours. The average is 150 ÷ 4 = 37.5 mph. Using the harmonic formula for 50 and 25 would give 33.3, which is wrong because the legs differ.
A related case is equal times rather than equal distances. If you travel one hour at 40 mph and one hour at 60 mph, the distances are 40 and 60 miles, so the average is 100 ÷ 2 = 50 mph. Here the simple average is correct, because each speed is held for the same time. This is a useful contrast:
| Legs equal in | Correct average |
|---|---|
| Distance | Total distance ÷ total time (harmonic mean) |
| Time | Simple average of the speeds |
Common errors
- Averaging the speeds. Adding 40 and 60 and dividing by 2 ignores that the legs take different times.
- Using the harmonic shortcut on unequal legs. The formula needs equal distances.
- Mixed units. If a distance is in miles and a time is in minutes, convert before dividing. Give the return time in hours if the speed is in miles per hour.
- Treating "round trip" as one leg. The total distance is twice the one-way distance. Forgetting the factor of 2 halves your answer.
- Counting stops. If the problem includes a rest stop, the time spent stopped belongs in total time, so the average speed over the whole trip falls.
Estimation and checking
Before calculating, bound the answer. The average must lie between the two speeds and closer to the slower one. For 40 and 60, any answer outside 40 to 50 can be thrown out, and 50 itself is excluded.
After calculating, confirm with a concrete distance. Pick a distance that divides evenly, compute both leg times, and check that total distance over total time matches your result.
Practice
Exercise
A cyclist rides from home to a lake at 12 mph and returns by the same route at 24 mph. What is the average speed for the round trip?
Show answer
Use 2·r₁·r₂ ÷ (r₁ + r₂) = 2·12·24 ÷ 36 = 576 ÷ 36 = 16 mph. Check with 24 miles each way: 2 hours out, 1 hour back, 48 miles in 3 hours is 16 mph. The simple average of 18 is the trap.
Exercise
A driver goes 90 miles at 45 mph, then another 90 miles at 90 mph. What is the average speed over the whole 180 miles? Then say what the answer would be if the driver instead drove for 2 hours at 45 mph and 2 hours at 90 mph.
Show answer
First case, equal distances: times are 2 hours and 1 hour, so 180 ÷ 3 = 60 mph. Second case, equal times: distances are 90 and 180 miles, so 270 ÷ 4 = 67.5 mph, which is the simple average of 45 and 90.
Exercise
You drive 20 miles to work at 40 mph. How fast must you drive home, over the same 20 miles, to average 60 mph for the round trip? Explain your result.
Show answer
Total distance is 40 miles. At 60 mph the whole trip must take 40 ÷ 60 = 2/3 hour = 40 minutes. The drive to work at 40 mph already took 20 ÷ 40 = 1/2 hour = 30 minutes. That leaves 10 minutes, so the return speed is 20 miles ÷ (1/6 hour) = 120 mph.