29.21.5 problem 581

Internal problem ID [5175]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 21
Problem number : 581
Date solved : Sunday, March 30, 2025 at 06:47:49 AM
CAS classification : [[_homogeneous, `class G`], _rational, _Bernoulli]

\begin{align*} 3 x^{2} y y^{\prime }+1+2 x y^{2}&=0 \end{align*}

Maple. Time used: 0.004 (sec). Leaf size: 42
ode:=3*x^2*y(x)*diff(y(x),x)+1+2*x*y(x)^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \frac {\sqrt {x^{{10}/{3}} \left (-2 x^{{1}/{3}}+c_1 \right )}}{x^{{7}/{3}}} \\ y &= -\frac {\sqrt {x^{{10}/{3}} \left (-2 x^{{1}/{3}}+c_1 \right )}}{x^{{7}/{3}}} \\ \end{align*}
Mathematica. Time used: 3.723 (sec). Leaf size: 47
ode=3 x^2 y[x] D[y[x],x]+1+2 x y[x]^2==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -\sqrt {-\frac {2}{x}+\frac {c_1}{x^{4/3}}} \\ y(x)\to \sqrt {-\frac {2}{x}+\frac {c_1}{x^{4/3}}} \\ \end{align*}
Sympy. Time used: 0.473 (sec). Leaf size: 32
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(3*x**2*y(x)*Derivative(y(x), x) + 2*x*y(x)**2 + 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = - \sqrt {\frac {C_{1}}{x^{\frac {4}{3}}} - \frac {2}{x}}, \ y{\left (x \right )} = \sqrt {\frac {C_{1}}{x^{\frac {4}{3}}} - \frac {2}{x}}\right ] \]