|
-
Sep 17th, 2004, 03:28 PM
#1
Thread Starter
Hyperactive Member
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
-
Sep 20th, 2004, 06:29 AM
#2
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)
-
Sep 20th, 2004, 08:11 AM
#3
Thread Starter
Hyperactive Member
Excellent job, thanks alot!!
C¤ry Sanchez
Computer Science/Engineering
@ Penn State
IBM.zSeries Intern
Mandriva 2007
-
Sep 20th, 2004, 08:42 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|