60.1.487 problem 500

Internal problem ID [10501]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 1, linear first order
Problem number : 500
Date solved : Sunday, March 30, 2025 at 05:20:45 PM
CAS classification : [_rational, [_1st_order, `_with_symmetry_[F(x),G(y)]`]]

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

Maple. Time used: 0.324 (sec). Leaf size: 765
ode:=(a-b)*y(x)^2*diff(y(x),x)^2-2*b*x*y(x)*diff(y(x),x)+a*y(x)^2-b*x^2-a*b = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} \text {Solution too large to show}\end{align*}

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