29.33.18 problem 980

Internal problem ID [5557]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 33
Problem number : 980
Date solved : Sunday, March 30, 2025 at 08:39:22 AM
CAS classification : [_rational, [_1st_order, `_with_symmetry_[F(x),G(y)]`]]

\begin{align*} y^{2} {y^{\prime }}^{2}+2 a x y y^{\prime }+\left (a -1\right ) b +a \,x^{2}+\left (1-a \right ) y^{2}&=0 \end{align*}

Maple. Time used: 0.515 (sec). Leaf size: 88
ode:=y(x)^2*diff(y(x),x)^2+2*a*x*y(x)*diff(y(x),x)+(a-1)*b+x^2*a+(-a+1)*y(x)^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \sqrt {-a \,x^{2}+b} \\ y &= -\sqrt {-a \,x^{2}+b} \\ y &= \sqrt {c_1^{2} a -2 c_1 a x -c_1^{2}+2 c_1 x -x^{2}+b} \\ y &= -\sqrt {\left (a -1\right ) c_1^{2}-2 x \left (a -1\right ) c_1 -x^{2}+b} \\ \end{align*}
Mathematica. Time used: 1.197 (sec). Leaf size: 65
ode=y[x]^2 (D[y[x],x])^2+2 a x y[x] D[y[x],x]+(a-1)b+a x^2+(1-a)y[x]^2==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -\sqrt {-2 (a-1) c_1 x+(a-1) c_1{}^2+b-x^2} \\ y(x)\to \sqrt {-2 (a-1) c_1 x+(a-1) c_1{}^2+b-x^2} \\ \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
b = symbols("b") 
y = Function("y") 
ode = Eq(a*x**2 + 2*a*x*y(x)*Derivative(y(x), x) + b*(a - 1) + (1 - a)*y(x)**2 + y(x)**2*Derivative(y(x), x)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out