30.1.34 problem 31 part(a)

Internal problem ID [7424]
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(a)
Date solved : Tuesday, September 30, 2025 at 04:32:25 PM
CAS classification : [_separable]

\begin{align*} y^{\prime }&=x y^{3} \end{align*}
Maple. Time used: 0.001 (sec). Leaf size: 27
ode:=diff(y(x),x) = x*y(x)^3; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \frac {1}{\sqrt {-x^{2}+c_1}} \\ y &= -\frac {1}{\sqrt {-x^{2}+c_1}} \\ \end{align*}
Mathematica. Time used: 0.095 (sec). Leaf size: 44
ode=D[y[x],x]==x*y[x]^3; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -\frac {1}{\sqrt {-x^2-2 c_1}}\\ y(x)&\to \frac {1}{\sqrt {-x^2-2 c_1}}\\ y(x)&\to 0 \end{align*}
Sympy. Time used: 0.190 (sec). Leaf size: 29
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*y(x)**3 + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = - \sqrt {- \frac {1}{C_{1} + x^{2}}}, \ y{\left (x \right )} = \sqrt {- \frac {1}{C_{1} + x^{2}}}\right ] \]