82.18.13 problem Ex. 14

Internal problem ID [18764]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter III. Equations of the first order but not of the first degree. Examples on chapter III. page 38
Problem number : Ex. 14
Date solved : Monday, March 31, 2025 at 06:09:16 PM
CAS classification : [_rational]

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

Maple
ode:=(-y(x)+x*diff(y(x),x))*(x+y(x)*diff(y(x),x)) = h^2*diff(y(x),x); 
dsolve(ode,y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica. Time used: 0.341 (sec). Leaf size: 75
ode=(D[y[x],x]*x-y[x])*(D[y[x],x]*y[x]+x)==h^2*D[y[x],x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \sqrt {c_1 \left (x^2-\frac {h^2}{1+c_1}\right )} \\ y(x)\to -i (h-x) \\ y(x)\to i (h-x) \\ y(x)\to -i (h+x) \\ y(x)\to i (h+x) \\ \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
h = symbols("h") 
y = Function("y") 
ode = Eq(-h**2*Derivative(y(x), x) + (x + y(x)*Derivative(y(x), x))*(x*Derivative(y(x), x) - y(x)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out