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!

An equation for the path that the shark will swim on

  1. Apr 3, 2015 #1
    1. The problem statement, all variables and given/known data

    A shark will in the direction of the most rapidly increasing concentration of blood in water.

    Suppose a shark is at a point [itex]x_0,y_0[/itex] when it first detects blood in the water. Find an equation for the path that the shark will follow by setting up and solving a differential equation.


    2. Relevant equations

    [itex]C(x,y) = e^{-(x^2+2y^2)/10^4}[/itex]: blood conc. in ppm at (x,y)

    3. The attempt at a solution

    [itex]\nabla C(x,y) = \left<-xe^{-(x^2+2y^2)/5\times 10^7},-ye^{-(x^2+2y^2)/2.5\times 10^7}\right>[/itex] will give the vector in the direction of greatest increase of [blood] at any given (x,y).

    Thus [itex]\frac{dy}{dx} = \frac{\frac{\partial C}{\partial y}}{\frac{\partial C}{\partial x}}[/itex] will be the tangent to the curve of the path of the shark at any given point (x,y), which we can set up as our differential equation and solve by separation of variables.

    [tex]\frac{dy}{dx} = \frac{y}{x}e^{-(x^2+2y^2)/5\times 10^7}[/tex]

    [tex]\frac{dy}{dx} = \frac{y}{x}e^{-x^2/5\times 10^7}e^{-2y^2/5\times 10^7}[/tex]

    [tex]\frac{1}{y}e^{2y^2/5\times 10^7}dy = \frac{1}{x}e^{-x^2/5\times 10^7}dx[/tex]

    [tex]\int \frac{1}{y}e^{2y^2/5\times 10^7}dy = \int \frac{1}{x}e^{-x^2/5\times 10^7}dx[/tex]

    I can't solve this last equation. I can't figure out how to do the integration, and CASs (like Matlab and Mathematica) show me something called ei() and series expansions that I don't understand, and that I'm fairly sure are not the answer the textbook intended.

    I've tried parametrizing the dy/dx function as per elliptic parametrization which gives

    [tex]m(t) = \frac{1}{2} \tan{t} e^{-(2\cos^2{t}+\sin^2{t})/10^8}[/tex]

    But integrating that wrt t is just as problematic.

    Is there something with taking the natural logs of both sides that I can do to eliminate that exponential function?

    How do I solve this?
     
  2. jcsd
  3. Apr 3, 2015 #2

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    Something went wrong with your derivatives. That makes the integral harder than it should be.
     
  4. Apr 3, 2015 #3
    I found the derivatives using Matlab's gradient() function.

    I'll take them manually. See how I go...thanks :)
     
  5. Apr 3, 2015 #4

    Such a stupid oversight...thanks again!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: An equation for the path that the shark will swim on
Loading...