Johny 5 said:
I'm sorry but i feel completely lost. Why are u using pathagoras? if your campground is a straight line from which you started... and i know where to find extrema just can't figure out the algebra behind this problem...
You're okay. Draw a picture of a river with a stick man on one side, and a campground (down the river) on the other side. Now draw a line straight across the river. Label this line 1 as it denotes a distance of 1 has been traveled if you cross the river directly. Now from that lightly pencilled dot move along the edge of the river towards the campground and make a big Xo. This Xo is special and you'll use it a lot. Look at your drawing, and you should see that the distance from the lightly pencilled to the campground is 1 mile, the distance from the lightly pencilled dot to the Xo is well let's just call it X. Now the distance from Xo to the campground is 1-X. Check it out, if you add 1-X to X you get 1, which just says that you can go from the lightly pencilled dot to the campground and travel one mile, or you can go from the lightly pencilled dot to the Xo and from the Xo to the campground and it is also a distance of 1 mile.
Now, you swam to the point Xo right? Well, how far did you swim? To find this out, you need pythagoras theorem, aka the distance formula. Which says that the distance from stick man to Xo is the square root of (1^2 (the distance directly across the river) + x^2 (the length you traveled down the shoreline by swimming)). Hang in, you're almost done.
You now know the distance you have to swim. It is {\sqrt{x^2 + 1}. You also know that once you hit the shore on the other side you will have to walk the distance 1-x in other words the distance along the shore to the campground that you did not cover by swimming.
Now, you want to minimize the total trip time. So you need to figure out how long you are going to spend swimming and how long you are going to spend walking. To do this add the time you spend swimming which is equal to the distance you swim divided by how fast you swim to the time you spend walking which is equal to the distance you walk divided by how fast you walk. Now you have a formula that tells you how long your trip will take for however far down the shore you wish to swim. T(x)
Can you see what to do from here.
Hint: take the derivative and find the minima of T. Solve for x.