Mike D. answered 08/10/22
Effective, patient, empathic, math and science tutor
Suppose he runs x m along the shore then swims.
Running distance x
Swimming distance : √ 702 + (50-x)2
Time to reach the child = distance/speed = (x/5) + (√(702 + (50-x)2) = (x/5) + √ (7400 + x2 - 100x)
Lets call this y
Then we want to minimise y
so we need to find x so dy/dx = 0
dy/dx = (1/5) + 0.5 (7400 + x2 - 100x)-1/2 (2x-100) using chain rule
if this is zero then
-1/5 = (x-50)/ (7400 + x2 -100x)1/2
1/5 = (50-x) / (7400 + x2 -100x)1/2
5(50-x) = (7400 + x2 - 100x)1/2
25 (50-x)2 = 7400 + x2 - 100x
25 (2500 - 100x + x2) = 7400 + x2 - 100x
Giving x = 35.7, 64.3 (I plotted both on Desmos and found points of intersection)
Technically you should check the second derivative is positive to find which one is the minimum (you can do this on a TI-84), giving x = 35.7. Intuitively it's also obvious that x=35.7 has to be the solution as 35.7 < 50