75.5.5 problem 104

Internal problem ID [16670]
Book : A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section : Section 5. Homogeneous equations. Exercises page 44
Problem number : 104
Date solved : Monday, March 31, 2025 at 03:04:35 PM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

\begin{align*} x y^{\prime }&=y+\sqrt {y^{2}-x^{2}} \end{align*}

Maple. Time used: 0.026 (sec). Leaf size: 28
ode:=x*diff(y(x),x) = y(x)+(y(x)^2-x^2)^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ \frac {-c_1 \,x^{2}+\sqrt {y^{2}-x^{2}}+y}{x^{2}} = 0 \]
Mathematica. Time used: 0.397 (sec). Leaf size: 14
ode=x*D[y[x],x]==y[x]+Sqrt[y[x]^2-x^2]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -x \cosh (\log (x)+c_1) \]
Sympy. Time used: 1.354 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - sqrt(-x**2 + y(x)**2) - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x \cosh {\left (C_{1} - \log {\left (x \right )} \right )} \]