72.4.2 problem 6

Internal problem ID [14608]
Book : DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section : Chapter 1. First-Order Differential Equations. Exercises section 1.5 page 71
Problem number : 6
Date solved : Monday, March 31, 2025 at 12:43:07 PM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }&=y \left (y-1\right ) \left (y-3\right ) \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=0 \end{align*}

Maple. Time used: 0.011 (sec). Leaf size: 5
ode:=diff(y(t),t) = y(t)*(y(t)-1)*(y(t)-3); 
ic:=y(0) = 0; 
dsolve([ode,ic],y(t), singsol=all);
 
\[ y = 0 \]
Mathematica. Time used: 0.001 (sec). Leaf size: 6
ode=D[y[t],t]==y[t]*(y[t]-1)*(y[t]-3); 
ic={y[0]==0}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to 0 \]
Sympy
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq((3 - y(t))*(y(t) - 1)*y(t) + Derivative(y(t), t),0) 
ics = {y(0): 0} 
dsolve(ode,func=y(t),ics=ics)
 
IndexError : list index out of range