30.1.35 problem 31 part(b.1)

Internal problem ID [7425]
Book : Fundamentals of Differential Equations. By Nagle, Saff and Snider. 9th edition. Boston. Pearson 2018.
Section : Chapter 2, First order differential equations. Section 2.2, Separable Equations. Exercises. page 46
Problem number : 31 part(b.1)
Date solved : Tuesday, September 30, 2025 at 04:32:28 PM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=x y^{3} \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=1 \\ \end{align*}
Maple. Time used: 0.112 (sec). Leaf size: 13
ode:=diff(y(x),x) = x*y(x)^3; 
ic:=[y(0) = 1]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = \frac {1}{\sqrt {-x^{2}+1}} \]
Mathematica. Time used: 0.064 (sec). Leaf size: 16
ode=D[y[x],x]==x*y[x]^3; 
ic={y[0]==1}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {1}{\sqrt {1-x^2}} \end{align*}
Sympy. Time used: 0.229 (sec). Leaf size: 14
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*y(x)**3 + Derivative(y(x), x),0) 
ics = {y(0): 1} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \sqrt {- \frac {1}{x^{2} - 1}} \]