Optimization problem solved two ways (algebra or calculus)

In summary, the optimal distance for the lifeguard to run in slow-motion along the shore is 65 meters, which will result in the shortest time for her to reach point B. This can be determined by setting up an optimization problem using the given rates and applying the Pythagorean theorem and differentiation. The resulting equation can then be solved for the distance that yields the minimum time.
  • #1
VinnyCee
489
0

Homework Statement



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

Homework 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]

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

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

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

d = [0:0.001:100];
t=d/3+sqrt(60^2+(100-d).^2)/1.5;
plot(d,t);
xlabel('Distance, d [m]');
ylabel('time, t ');


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:
Physics news on Phys.org
  • #2
Sign error towards the end, should be (x-100).
To finish off:
##-1=2\left[\left(x-100\right)\left(x^2-200x+13600\right)^{-\frac{1}{2}}\right]##
##(2(x-100))^2=(x^2-200x+13600)##
##4x^2-800x+40000=x^2-200x+13600##
##3x^2-600+26400=0##
##x^2-200+8800=0##
##(x-100)^2=1200##
##x=100\pm 34.64##
 
  • Like
Likes Delta2

1. What is an optimization problem?

An optimization problem is a mathematical problem that involves finding the maximum or minimum value of a function, subject to certain constraints. It is commonly used in fields such as economics, engineering, and physics to find the most efficient or optimal solution to a problem.

2. What is the difference between solving an optimization problem using algebra and calculus?

Solving an optimization problem using algebra involves using equations and algebraic manipulations to find the maximum or minimum value of a function. On the other hand, solving it using calculus involves finding the derivative of the function and setting it equal to zero to find the maximum or minimum point.

3. When should I use algebra to solve an optimization problem?

Algebra is often used to solve optimization problems that involve simple or linear functions with a small number of variables. It can also be useful when the constraints are relatively straightforward.

4. When is it more appropriate to use calculus to solve an optimization problem?

Calculus is typically used to solve optimization problems that involve more complex functions or multiple variables. It is also useful when the constraints are more complicated and cannot be easily represented using equations.

5. Can I use both algebra and calculus to solve the same optimization problem?

Yes, it is possible to use both algebra and calculus to solve an optimization problem. In fact, some problems may require both approaches to find the optimal solution. However, it is important to understand the strengths and limitations of each method and choose the most appropriate one for a given problem.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
604
  • Calculus and Beyond Homework Help
Replies
1
Views
122
  • Calculus and Beyond Homework Help
Replies
3
Views
327
  • Calculus and Beyond Homework Help
Replies
5
Views
747
  • Calculus and Beyond Homework Help
Replies
9
Views
710
  • Calculus and Beyond Homework Help
Replies
4
Views
724
  • Calculus and Beyond Homework Help
Replies
5
Views
929
  • Calculus and Beyond Homework Help
Replies
10
Views
855
  • Calculus and Beyond Homework Help
Replies
10
Views
403
  • Calculus and Beyond Homework Help
Replies
4
Views
676
Back
Top