Chapter 3: Applications of Differentiation
Section 3.8: Optimization
|
Example 3.8.8
|
|
A hiker in a forest is at point , five miles from , the nearest point along a straight road bounding the forest. The hiker wishes to get to point , some eight miles down the road from . If the hiker can walk at 2 mph in the woods, and 4 mph along the road, where should the hiker emerge from the woods to complete the journey in least time?
|
|
|
|
Solution
|
|
|
Analysis
|
|
•
|
As depicted in Figure 3.8.8(a), let be the distance from point that the hiker emerges from the woods. Then, is the distance the hiker walks along the road, and is the distance the hiker walks through the woods.
|
•
|
Since rate × time = distance, the total time for the walk from to is
|
•
|
Minimize subject to the implied constraint .
|
|
>
|
p1:=plot([[0,8],[0,0],[5,0],[0,2.5]],style=line,color=black):
p2:=plots:-textplot({[.4,1.25,typeset(x)],[1.1,5.75,typeset(8-x)],[2,.3,5],[3.5,2,typeset(sqrt(x^2+25))]},align=left,font=[default,12]):
p3:=plots:-textplot({[5,.4,typeset(A)],[.5,.3,typeset(B)],[.5,8,typeset(C)]},font=[default,14],align=left):
plots:-display(p1,p2,p3,axes=none,scaling=constrained);
|
|
Figure 3.8.8(a) Schematic of hiker's path
|
|
|
|
|
|
|
|
Graphical Solution
|
|
•
|
The total travel time is graphed in Figure 3.8.8(b). There appears to be a minimum of approximately 4 between and .
|
•
|
Of course, the graph can be probed to get a refined estimate of the minimum, but that is left to the reader.
|
•
|
That the "dip" in graph of is so shallow is significant, suggesting that the travel time does not vary greatly with . In fact, the difference in travel time between the optimal, and the "least effort" one with , is small.
|
|
|
Figure 3.8.8(b) Graph of
|
|
|
|
|
|
|
|
Numeric Solution
|
|
•
|
Control-drag the expression for the total time .
|
•
|
Context Panel: Optimization≻Minimize (local)
|
|
|
|
|
A minimal travel time of 4.17 hours is possible if the road is reached some 2.89 miles from point .
|
|
Analytic Solution
|
|
Define the objective function
|
•
|
Control-drag
Context Panel: Assign Function
|
|
|
Obtain the critical number
|
•
|
Write and press the Enter key.
|
•
|
Context Panel: Solve≻Solve
|
|
|
•
|
Write the critical number.
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
|
Apply the Second-Derivative test
|
•
|
Context Panel: Simplify≻Simplify
(The extremum is a relative minimum.)
|
|
|
Obtain the relative minimum time
|
•
|
Evaluate at the critical number.
Press the Enter key.
|
•
|
Context Panel: Simplify≻Simplify
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
|
Check the times at the endpoint values of
|
•
|
Evaluate at .
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
|
•
|
Evaluate at .
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
|
|
|
The relative minimum time is the absolute minimum time, hrs.
The most toilsome path () takes some 4.72 hours; but the optimal path, just under 4.17. The difference is about 33 minutes. The least toilsome path ( takes 4.5 hours, differing from the optimal path by just 20.1 minutes. The least toilsome path requires hiking through the woods for 5 miles; the optimal path, miles. Only the hiker knows if saving 20 minutes is worth hiking through an additional miles of woods.
|
|
|
<< Previous Example Section 3.8
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
|