59.2.2 problem 7.1 (ii)

Internal problem ID [14996]
Book : AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section : Chapter 7, Scalar autonomous ODEs. Exercises page 56
Problem number : 7.1 (ii)
Date solved : Thursday, October 02, 2025 at 09:58:12 AM
CAS classification : [_quadrature]

\begin{align*} x^{\prime }&=x \left (2-x\right ) \end{align*}
Maple. Time used: 0.002 (sec). Leaf size: 17
ode:=diff(x(t),t) = x(t)*(2-x(t)); 
dsolve(ode,x(t), singsol=all);
 
\[ x = \frac {2}{1+2 \,{\mathrm e}^{-2 t} c_1} \]
Mathematica. Time used: 0.08 (sec). Leaf size: 36
ode=D[x[t],t]==x[t]*(2-x[t]); 
ic={}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
\begin{align*} x(t)&\to \frac {2 e^{2 t}}{e^{2 t}+e^{2 c_1}}\\ x(t)&\to 0\\ x(t)&\to 2 \end{align*}
Sympy. Time used: 0.233 (sec). Leaf size: 12
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq((x(t) - 2)*x(t) + Derivative(x(t), t),0) 
ics = {} 
dsolve(ode,func=x(t),ics=ics)
 
\[ x{\left (t \right )} = \frac {2}{C_{1} e^{- 2 t} + 1} \]