1. Limited time only! Sign up for a free 30min personal 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!

Homework Help: Solving Nonexact First Order ODEs.

  1. May 11, 2010 #1
    1. The problem statement, all variables and given/known data

    Solve [tex](x - \sqrt{xy})dy - ydx = 0[/tex]

    Rearranged gives us

    [tex]-y + (x - \sqrt{xy})y' = 0 [/tex]

    And it looks like an exact differential equation, but is it really?

    2. Relevant equations

    For any given exact equation of the form

    [tex]M(x,y) + N(x,y)y' = 0[/tex]

    The following must be true

    [tex]\frac{\partial}{\partial y}M(x,y) = \frac{\partial}{\partial x}N(x,y)[/tex]

    Otherwise it is a nonexact equation, and then an integrating factor is needed, in order to make them exact.


    3. The attempt at a solution

    Let's check whether it is exact or nonexact,

    [tex]\frac{\partial M}{\partial y} = -1[/tex]

    [tex]\frac{\partial N}{\partial x} = 1 - \frac{y}{2\sqrt{xy}} [/tex]

    So, as

    [tex]\frac{\partial}{\partial y}M(x,y) \neq \frac{\partial}{\partial x}N(x,y)[/tex]

    This happens to be a nonexact differential equation and therefore an integrating factor is needed, in order to turn it exact.

    Now what I want to know, is how do find an integrating factor? Will it be a two variable function or a single variable function?
     
    Last edited: May 11, 2010
  2. jcsd
  3. May 12, 2010 #2

    Mark44

    Staff: Mentor

    Try an integrating factor f(x) that is a function of x alone. Proceed as before to see if the equation is now exact, and what the conditions on the first partials have to be for this to be true. You will be solving a new differential equation to find f(x), the integrating factor.

    If the differential equation for f(x) turns out to involve both x and y, give up that plan and try something else; namely, try an integration factor f(y) that is a function of y alone, and continue as before.
     
  4. May 12, 2010 #3

    HallsofIvy

    User Avatar
    Science Advisor

    Another possibility, since the d.e. involves only powers of x and y, is to try an integrating factor of the form [math]ax^ny^m[/math] and see if you can find values of a, m, and n that will make it work. There are no guarentees that any of those will work! While any first order equation has an integrating factor, only linear equations have a formula for finding that integrating factor.
     
  5. May 12, 2010 #4
    What if that happens to both of the attempts? That is, what if my integrating factor [tex]u = u(x),\ or\ u = u(y)[/tex] happens to be a function of [tex](x,y)[/tex] instead of a single variable alone.

    What can be done about it then?

    You mean, [tex]u(x,y) = ax^ny^m[/tex]

    Would that really work? What if it doesn't, are there other methods for finding an integrating factor in this case?
     
  6. May 12, 2010 #5
    Ok folks, so I tried using two integrating factors [tex]u = u(x)[/tex] and [tex]u = u(y)[/tex] and in both cases I ended up with something like

    [tex]u(x) = e^{\int f(x,y) dx}[/tex]

    [tex]u(y) = e^{\int f(x,y)dy}[/tex]

    That is, in both cases I got a very complex expression in terms of x and y in the right-hand side of the equation for the integrating factor (u), instead of a single variable expression as one would expect.



    Therefore, the only way to find an integrating factor [tex]u = u(x,y)[/tex] for the original diff. equation on my first post is by solving the following partial differential equation:

    [tex]M(x,y)\frac{\partial u(x,y)}{\partial y} + u(x,y)\frac{\partial M(x,y)}{\partial y} = N(x,y)\frac{\partial u(x,y)}{\partial x} + u(x,y)\frac{\partial N(x,y)}{\partial x} [/tex]

    Is that correct?
     
    Last edited: May 13, 2010
  7. May 13, 2010 #6

    Mark44

    Staff: Mentor

    I don't know.

    I tried three different integrating factors: f(x), f(y), and axmyn, and ran up against a brick wall in all three. I'm not so eager to try an arbitrary function f(x, y).

    However, there is another approach that I am reasonably sure will work.

    Let u = sqrt(y)/sqrt(x) ==> sqrt(y) = u sqrt(x) ==> y = u2x
    From this, we have y' = 2u u' x + u2

    The original equation can be written as
    x(1 - sqrt(y)/sqrt(x)) dy/dx = y (*)

    Make the substitutions y = u2x and y' = 2u u' x + u2 in (*) and you get a differential equation that is separable. The tacit assumption here is that x and y aren't independent, but that y is a (differentiable) function of x.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook