Results 1 to 4 of 4

Thread: Simple Differiential equation, just finding a constant C problem .:Resolved:.

  1. #1

    Thread Starter
    Hyperactive Member voidflux's Avatar
    Join Date
    Jun 2003
    Location
    Brockway, PA
    Posts
    290

    Simple Differiential equation, just finding a constant C problem .:Resolved:.

    Hello everyone, I'm close to the solution but i just got hung up on some sort of algebra mistake i think.....

    I'm solving a Logistics Equation, dealing with population growth/decay
    All i have to do is use P(0) = Po to get C2 and then it will be solved.
    Po stands for P sub o. not P*0.

    I have

    Code:
    P/(M-P) = C2 e^(mkt)
    note: C2 is just a constant C, u get when u integrate.
    M and k are constants.

    I now the solution is:
    Code:
    P(t) = MPo/[Po + (M-Po)*e^(-kmt)]


    Here is what I did,
    Code:
    P/(M-P) = C2*e^(mkt)
    P = C2*e^(mkt) (M-P)
    now I used P(0) = Po;
    Po = C2*e^(mk(0)) (M-P)
    C2 = Po/(M-P);
    Then i plugged C2 back into the orginal equation and I got
    P/(M-P) = [Po/(M-P)]*e^(mkt);
    which looks nothing like the solution...any ideas where I messed up?

    Thanks for listening!
    Last edited by voidflux; Sep 23rd, 2004 at 09:33 AM.
    C¤ry Sanchez
    Computer Science/Engineering
    @ Penn State
    IBM.zSeries Intern
    Mandriva 2007

  2. #2
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    To avoid excessive overhead let's leave P(0) aside for now.

    P/(M - P) = C2emkt

    Invert:

    (M - P)/P = 1/(C2emkt)

    Perform operations on left hand side:

    M/P - 1 = 1/(C2emkt)

    M/P = 1 + 1/(C2emkt)

    Invert again:

    P/M = 1 / ( 1 + 1/(C2emkt)) = 1/(1 + e-mkt/C2)

    P = M / (1 + e-mkt/C2)

    OK, now when t = 0 you have P(0) = P0, therefore:

    P0 / (M - P0) = C2

    So that:

    P = M / (1 + e-mkt(M - P0)/P0) = MP0 / (P0 + (M - P0)e-mkt)
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  3. #3

    Thread Starter
    Hyperactive Member voidflux's Avatar
    Join Date
    Jun 2003
    Location
    Brockway, PA
    Posts
    290

    Talking

    Excellent job, thanks alot!!
    C¤ry Sanchez
    Computer Science/Engineering
    @ Penn State
    IBM.zSeries Intern
    Mandriva 2007

  4. #4
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573
    Originally posted by voidflux
    Excellent job, thanks alot!!
    You're welcome
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width