58.4.9 problem 9

Internal problem ID [14579]
Book : Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section : Chapter 2, section 2.2 (Separable equations). Exercises page 47
Problem number : 9
Date solved : Thursday, October 02, 2025 at 09:42:41 AM
CAS classification : [[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class B`]]

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