60.2.409 problem 987

Internal problem ID [10983]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 1, Additional non-linear first order
Problem number : 987
Date solved : Sunday, March 30, 2025 at 07:37:07 PM
CAS classification : [[_homogeneous, `class D`], _Riccati]

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

Maple. Time used: 0.015 (sec). Leaf size: 22
ode:=diff(y(x),x) = -F(x)*(-a*x^2+y(x)^2)+y(x)/x; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \tanh \left (\left (\int F \left (x \right ) x d x +c_1 \right ) \sqrt {a}\right ) x \sqrt {a} \]
Mathematica. Time used: 0.132 (sec). Leaf size: 42
ode=D[y[x],x] == y[x]/x - F[x]*(-(a*x^2) + y[x]^2); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [\int _1^{\frac {y(x)}{x}}\frac {1}{a-K[1]^2}dK[1]=\int _1^xF(K[2]) K[2]dK[2]+c_1,y(x)\right ] \]
Sympy
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
F = Function("F") 
ode = Eq((-a*x**2 + y(x)**2)*F(x) + Derivative(y(x), x) - y(x)/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE Derivative(y(x), x) - (x*(a*x**2 - y(x)**2)*F(x) + y(x))/x cannot be solved by the factorable group method