
Bradford T. answered 07/20/23
Retired Engineer / Upper level math instructor
You need to minimize for time. This is a d=rt problem, so t = time to run along the beach plus time to swim
to the child.
Let x = beach distance and s = the swimming distance.
The distance s is the hypotenuse of a triangle with base of (60-x) and height of 50 meters. If you sketch this,
it will make sense.
s = √(502+(60-x)2)
Total time = t = f(x) = x/3 + s/.9 = x/3 + √(502+(60-x)2)/.9
Take the derivative of f(x), set it to zero and solve for x, which is what the problem is wanting.
f '(x) = 1/3 - (1/.9)(2(60-x))/(2√(502+(60-x)2))=1/3-(60-x)/√(502+(60-x)2)(.9)=0
x≈44.276 meters