We begin by letting be the distance from to Since it is km from to the distance from to is km. Furthermore, we can use the Pythagorean Theorem to find that the distance from to the cabin is km.
Next we want to determine the hiker’s time as a function of Because distance equals rate times time, it follows that time is distance divided by rate. The hiker travels along the road for km at a pace of km/hr, thus her time on the road is
Once she enters the woods, her pace drops to km/hr and she continues for km before reaching the cabin. She spends a total of
hours hiking in the woods.
Altogether, the time it takes the hiker to reach the cabin is given by the function
Because the only values of that make sense to use are (since walking away from or past before turning to the cabin both add unnecessary time to the trip), we use this domain for and now seek the absolute minimum of on We find that
Note that since for every value of is defined everywhere. Setting and solving for we have so Squaring both sides yields
Hence so (We don’t consider the critical number because this doesn’t lie in the relevant domain of )
Finally, we evaluate at the only critical number in the interval and at the interval’s endpoints. Doing so, we find and Thus the absolute minimum time the hiker can achieve is about hours, which is attained by hiking about km from towards and then turning into the woods for the remainder of the trip.