Solve the initial value problem
$$\frac{dP}{dt}=P \left( 1-\frac{P}{K} \right)$$
With $P(0)=P_0$
(Here, $K$ and $P_1 $are real constants).
My attempt:
Now to answer this question I did separation of variables and ended up getting: (note I also did partial fractions to simplify the initially attained integral).
$$\int\frac{1}{P}+\frac{1}{K-P}\,dp = \int 1 \, dt$$
$$\ln \lvert P \rvert - \ln\lvert K - P \rvert = t + c$$
Then at this conditions I found:
$$c = \ln \lvert P_0 \rvert - \ln \lvert k - P_0 \rvert$$
Giving:
$$\ln \lvert P \rvert - \ln\lvert K - P \rvert = t + \ln \lvert P_0 \rvert - \ln \lvert k - P_0 \rvert$$
Can someone validate this? Or perhaps knows an alternative method?
Can someone check my given answer?