44.5.17 problem 17

Internal problem ID [7079]
Book : A First Course in Differential Equations with Modeling Applications by Dennis G. Zill. 12 ed. Metric version. 2024. Cengage learning.
Section : Chapter 2. First order differential equations. Section 2.2 Separable equations. Exercises 2.2 at page 53
Problem number : 17
Date solved : Wednesday, March 05, 2025 at 04:05:49 AM
CAS classification : [_quadrature]

\begin{align*} p^{\prime }&=p-p^{2} \end{align*}

Maple. Time used: 0.003 (sec). Leaf size: 14
ode:=diff(p(t),t) = p(t)-p(t)^2; 
dsolve(ode,p(t), singsol=all);
 
\[ p = \frac {1}{1+{\mathrm e}^{-t} c_{1}} \]
Mathematica. Time used: 0.244 (sec). Leaf size: 29
ode=D[p[t],t]==p[t]-p[t]^2; 
ic={}; 
DSolve[{ode,ic},p[t],t,IncludeSingularSolutions->True]
 
\begin{align*} p(t)\to \frac {e^t}{e^t+e^{c_1}} \\ p(t)\to 0 \\ p(t)\to 1 \\ \end{align*}
Sympy. Time used: 0.417 (sec). Leaf size: 10
from sympy import * 
t = symbols("t") 
p = Function("p") 
ode = Eq(p(t)**2 - p(t) + Derivative(p(t), t),0) 
ics = {} 
dsolve(ode,func=p(t),ics=ics)
 
\[ p{\left (t \right )} = \frac {1}{C_{1} e^{- t} + 1} \]