26.5.3 problem 4

Internal problem ID [4277]
Book : Differential equations with applications and historial notes, George F. Simmons. Second edition. 1971
Section : Chapter 2, End of chapter, page 61
Problem number : 4
Date solved : Sunday, March 30, 2025 at 02:48:38 AM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

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

Maple. Time used: 0.025 (sec). Leaf size: 51
ode:=x*diff(y(x),x) = (x^2+y(x)^2)^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ \frac {y^{2}+y \sqrt {x^{2}+y^{2}}+x^{2} \left (\ln \left (y+\sqrt {x^{2}+y^{2}}\right )-c_1 -3 \ln \left (x \right )\right )}{x^{2}} = 0 \]
Mathematica. Time used: 0.295 (sec). Leaf size: 66
ode=x*D[y[x],x]==Sqrt[x^2+y[x]^2]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [\frac {1}{2} \left (\frac {y(x) \left (\sqrt {\frac {y(x)^2}{x^2}+1}+\frac {y(x)}{x}\right )}{x}-\log \left (\sqrt {\frac {y(x)^2}{x^2}+1}-\frac {y(x)}{x}\right )\right )=\log (x)+c_1,y(x)\right ] \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - sqrt(x**2 + y(x)**2),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
TypeError : cannot determine truth value of Relational