83.22.27 problem 30

Internal problem ID [19210]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter IV. Equations of the first order but not of the first degree. Exercise IV (E) at page 63
Problem number : 30
Date solved : Monday, March 31, 2025 at 06:56:57 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.348 (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