38.5.17 problem 17

Internal problem ID [8365]
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 : Tuesday, September 30, 2025 at 05:30:09 PM
CAS classification : [_quadrature]

\begin{align*} p^{\prime }&=p-p^{2} \end{align*}
Maple. Time used: 0.002 (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.12 (sec). Leaf size: 42
ode=D[p[t],t]==p[t]-p[t]^2; 
ic={}; 
DSolve[{ode,ic},p[t],t,IncludeSingularSolutions->True]
 
\begin{align*} p(t)&\to \text {InverseFunction}\left [\int _1^{\text {$\#$1}}\frac {1}{(K[1]-1) K[1]}dK[1]\&\right ][-t+c_1]\\ p(t)&\to 0\\ p(t)&\to 1 \end{align*}
Sympy. Time used: 0.211 (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} \]