72.1.26 problem 29

Internal problem ID [14555]
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.2. page 33
Problem number : 29
Date solved : Monday, March 31, 2025 at 12:30:57 PM
CAS classification : [_quadrature]

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

With initial conditions

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

Maple. Time used: 0.010 (sec). Leaf size: 5
ode:=diff(y(t),t) = -y(t)^2; 
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]^2; 
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(y(t)**2 + Derivative(y(t), t),0) 
ics = {y(0): 0} 
dsolve(ode,func=y(t),ics=ics)
 
ValueError : Couldnt solve for initial conditions