Sigmoid function as result of differential equation

ordinary differential equations

When plugging the differential equation $\frac{dP}{dt}=P(1-P)$ into a symbolab differential equation calculator I get the result $- \frac{e^{t + c_1}}{1 – e^{t+c_1}}$. I don't know if this is correct because the correct solution in the book should be a sigmoid function $\frac{1}{1+e^{-t}}$. Is the calculator solution correct?

Best Answer

Yes, it is correct. If $P(t)=-\frac{e^{t+c}}{1-e^{t+c}}$, then$$P'(t)=-\frac{e^{t+c}}{\left(e^{t+c}-1\right)^2},$$whereas$$P(t)\bigl(1-P(t)\bigr)=-\frac{e^{t+c}}{1-e^{t+c}}\times\frac1{1-e^{t+c}}=-\frac{e^{t+c}}{\left(e^{t+c}-1\right)^2}.$$So, yes, those functions are solutions of your differential equation.

Related Question