81.1.39 problem 2-37

Internal problem ID [21484]
Book : The Differential Equations Problem Solver. VOL. I. M. Fogiel director. REA, NY. 1978. ISBN 78-63609
Section : Chapter 2. Separable differential equations
Problem number : 2-37
Date solved : Thursday, October 02, 2025 at 07:40:22 PM
CAS classification : [[_homogeneous, `class A`], _rational, _Bernoulli]

\begin{align*} x^{2}-2 y^{2}+x y y^{\prime }&=0 \end{align*}
Maple. Time used: 0.002 (sec). Leaf size: 30
ode:=x^2-2*y(x)^2+x*y(x)*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \sqrt {c_1 \,x^{2}+1}\, x \\ y &= -\sqrt {c_1 \,x^{2}+1}\, x \\ \end{align*}
Mathematica. Time used: 0.375 (sec). Leaf size: 39
ode=(x^2-2*y[x]^2)+(x*y[x])*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -\sqrt {x^2+c_1 x^4}\\ y(x)&\to \sqrt {x^2+c_1 x^4} \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2 + (x + y(x))*Derivative(y(x), x) - 2*y(x)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
RecursionError : maximum recursion depth exceeded