20.2.15 problem Problem 15

Internal problem ID [3607]
Book : Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section : Chapter 1, First-Order Differential Equations. Section 1.4, Separable Differential Equations. page 43
Problem number : Problem 15
Date solved : Tuesday, March 04, 2025 at 04:54:43 PM
CAS classification : [_separable]

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

With initial conditions

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

Maple. Time used: 0.004 (sec). Leaf size: 5
ode:=diff(y(x),x) = y(x)^3*sin(x); 
ic:=y(0) = 0; 
dsolve([ode,ic],y(x), singsol=all);
 
\[ y \left (x \right ) = 0 \]
Mathematica. Time used: 0.002 (sec). Leaf size: 6
ode=D[y[x],x]==y[x]^3*Sin[x]; 
ic={y[0]==0}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to 0 \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-y(x)**3*sin(x) + Derivative(y(x), x),0) 
ics = {y(0): 0} 
dsolve(ode,func=y(x),ics=ics)