1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Optimization problem solved two ways (algebra or calculus)

  1. Apr 24, 2012 #1
    1. The problem statement, all variables and given/known data

    A life guard sitting on a beach at point A needs to get to point B (Hasselhoff fell out his inflatable rocking chair) as soon as possible. The lifeguard (Pamela Anderson) can run (on the shore in slow-motion, like in Baywatch) at a rate of 3 m/s and can swim at a rate of 1.5 m/s. How far along the beach should the lifeguard run in slow motion?

    http://img208.imageshack.us/img208/8902/beachprob1.jpg [Broken]


    2. Relevant equations

    We have the Pythagorean Theorem, which is...

    [tex]a^2\,+\,b^2\,=\,c^2[/tex]

    Also, distance is speed times time.

    [tex]d\,=\,r\,*\,t[/tex]

    We also have differentiation. Specifically the power rule:

    [tex]\frac{d}{dx}\,x^n\,=\,n\,x^{n\,-\,1},\,n\,\ne\,0[/tex]



    3. The attempt at a solution

    First, the problem requests the distance "d" needed to run (in slow-mo) along the shore to get to point B in the shortest time. So we need an equation relating that distance along the shore "d" to the total time to arrive at point B. So, this is essentially an optimization problem. The wikipedia entry is advanced, but reading the first paragraph should suffice to get an idea of what optimization is all about.

    So, let's assume that the lifeguard runs a distance "d" along the shore. That makes the x-direction she must travel in the water to be "100 - d".

    http://img33.imageshack.us/img33/2702/beachprob2.jpg [Broken]

    Now, we need to construct the equations with which we will solve this problem.

    Since we know that distance is speed multiplied by time, we can use that to get an expression for time in terms of distance.

    [tex]d\,=\,r\,*\,t[/tex]

    [tex]t\,=\,\frac{d}{r}[/tex]

    The rate (or speed) is given for water and shore in the problem.

    [tex]r_w\,=\,1.5\,\frac{m}{s}[/tex]

    [tex]r_s\,=\,3\,\frac{m}{s}[/tex]

    Now we use...

    [tex]t\,=\,\frac{d}{r}[/tex]

    to get

    [tex]t_s\,=\,\frac{d_s}{r_s}[/tex]

    The distance traveled (in slow motion) on the shore is simply "d", so...

    [tex]t_s\,=\,\frac{d_s}{3}[/tex]

    What about the distance traveled in water? We need to use Pythagorean Theorem for that.

    We'll take side a to be "100 - d" and side b to be "60" and we find the value of side c in terms of "d" traveled on shore (in slow motion).

    [tex]a^2\,+\,b^2\,=\,c^2[/tex]

    [tex]\left(100\,-\,d\right)^2\,+\,\left(60\right)^2\,=\,c^2[/tex]

    [tex]c\,=\,\sqrt{\left(100\,-\,d\right)^2\,+\,60^2}[/tex]

    Here, c is just the distance traveled in the water. So we can plug it into here:

    [tex]t\,=\,\frac{d}{r}[/tex]

    [tex]t_w\,=\,\frac{\sqrt{\left(100\,-\,d\right)^2\,+\,60^2)}}{1.5}[/tex]

    Now we have an expression for TOTAL time that it will take to get from A to B.

    [tex]t\,=\,t_s\,+\,t_w\,=\,\frac{d}{3}\,+\,\frac{\sqrt{\left(100\,-\,d\right)^2\,+\,60^2}}{1.5}[/tex]

    Above is the formula you need to solve this problem. If you have a graphing calculator, you can plug this in and find the point where the y-coordinate (the time) is the lowest. This is where you want to find the x-value, which would be the distance "d" asked for in the problem. Here is what that plot looks like:

    http://img337.imageshack.us/img337/7339/beachprob3.jpg [Broken]

    The MATlab (highly suggest learning this software) code to produce that plot:



    So obviously, from the graph, the distance d = 65m.
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    We can solve this using calculus.

    Here we want to take the derivative with respect to distance of the equation we produced above.

    [tex]t\,=\,t_s\,+\,t_w\,=\,\frac{d}{3}\,+\,\frac{\sqrt{\left(100\,-\,d\right)^2\,+\,60^2}}{1.5}[/tex]

    Let's change the d's to x's for notation simplicity's sake...

    [tex]\frac{d}{dx}\,\left[\frac{x}{3}\,+\,\frac{\sqrt{\left(100\,-\,x\right)^2\,+\,60^2}}{1.5}\right][/tex]

    [tex]\frac{d}{dx}\,\left[\frac{x}{3}\right]\,+\,\frac{d}{dx}\,\left[\frac{\sqrt{\left(100\,-\,x\right)^2\,+\,60^2}}{1.5}\right][/tex]

    The first term is easy to differentiate...

    [tex]\left[\frac{1}{3}\right]\,+\,\frac{d}{dx}\,\left[\frac{\sqrt{\left(100\,-\,x\right)^2\,+\,60^2}}{1.5}\right][/tex]

    what about the second term? Let's simplify it a little first...

    [tex]\left[\frac{1}{3}\right]\,+\,\frac{d}{dx}\,\left[\frac{2}{3}\,\sqrt{x^2\,-\,200\,x\,+\,13600}\right][/tex]

    But a square root is really just an expression raised to the 1/2 power...

    [tex]\left[\frac{1}{3}\right]\,+\,\frac{d}{dx}\,\left[\frac{2}{3}\,\left(x^2\,-\,200\,x\,+\,13600\right)^{\frac{1}{2}}\right][/tex]

    Well, now we use the power rule for differentiation:

    [tex]\frac{d}{dx}\,x^n\,=\,n\,x^{n\,-\,1},\,n\,\ne\,0[/tex]

    [tex]\left[\frac{1}{3}\right]\,+\,\frac{2}{3}\,\left[\left(x\,+\,100\right)\,\left(x^2\,-\,200\,x\,+\,13600\right)^{-\frac{1}{2}}\right][/tex]

    Now we want to solve this equation for zero in order to get the place where the rate of change is zero. We want to find the zeros because that is either a high or a low, in this case a low for the amount of time it will take Pamela to reach Hasselhoff.

    [tex]\left[\frac{1}{3}\right]\,+\,\frac{2}{3}\,\left[\left(x\,+\,100\right)\,\left(x^2\,-\,200\,x\,+\,13600\right)^{-\frac{1}{2}}\right]\,=\,0[/tex]

    [tex]x\,=\,65.359[/tex]
     
    Last edited by a moderator: May 5, 2017
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?



Similar Discussions: Optimization problem solved two ways (algebra or calculus)
  1. Optimization Problems (Replies: 0)

  2. Optimization problem. (Replies: 0)

Loading...