Solving $\frac{\text{d}P}{\text{d}t}=kP\left(\frac{A-P}{A}\right)\left(\frac{P-m}{P}\right)$

77 Views Asked by At


I am having difficulties solving this differential equation for $P$, \begin{align*} \frac{\text{d}P}{\text{d}t}=kP\left(\frac{A-P}{A}\right)\left(\frac{P-m}{P}\right) \end{align*} The context is a population model, where $A$ is the maximum sustainable population, $m$ is the minimum sustainable population and $k$ are constants.

The final answer I get is: \begin{align*} P=\frac{m-Abe^{\frac{(A-m)}{A}kt}}{1-be^{\frac{(A-m)}{A}kt}} \end{align*} where $b=e^c$.

This was achieved after the following:

My final integral after using partial fractions is: \begin{align*} \int\frac{1}{A-m}\left(\frac{1}{A-P}+\frac{1}{P-m}\right)\ \text{d}P&=\int\frac{k}{A}\ \text{d}t \end{align*} My final simplification process after the integration is: \begin{align*} \frac{\ln|P-m|-\ln|P-A|}{A-m}&=\frac{k}{A}t +c\\ \therefore\ln\left|\frac{P-m}{P-A}\right|&=\frac{(A-m)}{A}kt+c\\ \therefore\frac{P-m}{P-A}&=be^{\frac{(A-m)}{A}kt}\;,\;b=e^c\\ \therefore P-m&=be^{\frac{(A-m)}{A}kt}(P-A)\\ \therefore P-m&=Pbe^{\frac{(A-m)}{A}kt}-Abe^{\frac{(A-m)}{A}kt}\\ \therefore P-Pbe^{\frac{(A-m)}{A}kt}&=-Abe^{\frac{(A-m)}{A}kt}+m\\ \therefore P&=\frac{m-Abe^{\frac{(A-m)}{A}kt}}{1-be^{\frac{(A-m)}{A}kt}} \end{align*} Is this correct, or have I made a mistake somewhere?

Thank you very much in advance.

1

There are 1 best solutions below

4
On

Good description of your process. I would like to know the initial value $P_0$. This is because it affects how one deals with the absolute value stuff. You just plain removed the absolute value sign, which for some initial values of $P$ can lead to error.

At a certain stage, you had $P-m=b\dots$. It should have been $P-m=\pm b\dots$.