34.3.34 problem 26 (h)

Internal problem ID [7925]
Book : Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section : Chapter 5. Equations of first order and first degree (Exact equations). Supplemetary problems. Page 33
Problem number : 26 (h)
Date solved : Tuesday, September 30, 2025 at 05:10:08 PM
CAS classification : [[_homogeneous, `class G`], _rational, [_Abel, `2nd type`, `class B`]]

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