# DE solve?

1. Nov 10, 2007

### dionysian

1. The problem statement, all variables and given/known data

Solve the euqation $$dP/dt = k(M - P)P$$ to show that it equals: $$P(t) = (MP_{0}) /( P_{0} + (M - P_{0})e^{-kMt})$$

2. Relevant equations

3. The attempt at a solution
$$$\int \frac {dP} {P(M - P)}$ = k \int dt \$$

$$\frac {1} {M}\ \ln( \frac {P} {M - P}) + C = Kt + C$$

I combine the constants of integration... i can do this right?
Then i get rid of the log by taking the exponent of both sides.

$$P/(M - P) = e^{mkt + c}$$

I then turn $$e^{c}$$ into $$P_{0}$$

Next i divide through by $$(M - P)$$

$$P = (M - P)P_{0}e^{mkt}$$

next i combine the $$P$$ then divide through by the remainder.

$$P = (mP_{0}e^{mkt})/(1 + P_{0}e^{mkt})$$

and i end up with:
$$P = (mP_{0})/(e^{-mkt} + P_{0})$$

In the equation i am suppose to get i dont see how there could possibly be three terms in the denominator.

Last edited: Nov 11, 2007
2. Nov 10, 2007

### cristo

Staff Emeritus
You could just differentiate P and substitute it into the differential equation.

3. Nov 10, 2007

### dionysian

I was in the process of editing my post (i am still getting use to LaTex) when you replied. i could do that but my teacher want us to just solve it. Also this has been bugging me for a while, i have been working on it for the past few hours and cannot get it. My teacher... well a grad student TA for my DE lab couldn't solve it either.

I also would like to know what is wrong with my method... it seems like it should work but... its not.

one thing think might be wrong with my method is the $$P_{0}$$ initial condition.

4. Nov 11, 2007

### HallsofIvy

Staff Emeritus
HOW did you "turn $e^{c}[/tex] into [itex]P_0$"?

When t= 0, You have $P_0/(M-P_0)= e^c$

5. Nov 11, 2007

### dionysian

Thanks a million. works out fine after that.