Switchback roads use more distance to buy a gentler climb β the trade-off an engineer has to balance.
Roads that switch back and forth up a steep hill trade extra distance for a gentler gradient, one that vehicles and cyclists can actually climb. Model the road as a curve, differentiate it to find the gradient at any point, and compare the wavy route's length with the straight-line distance. Working out the exact extra length needs arc length, which sits just past both syllabi β a numerical approximation, adding up lots of short straight segments, gets you there without the formal integral.