85.13.1 problem 1

Internal problem ID [22507]
Book : Applied Differential Equations. By Murray R. Spiegel. 3rd edition. 1980. Pearson. ISBN 978-0130400970
Section : Chapter two. First order and simple higher order ordinary differential equations. B Exercises at page 40
Problem number : 1
Date solved : Thursday, October 02, 2025 at 08:43:48 PM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

\begin{align*} y^{\prime }&=\frac {\sqrt {x^{2}+y^{2}}}{x} \end{align*}
Maple. Time used: 0.020 (sec). Leaf size: 51
ode:=diff(y(x),x) = (x^2+y(x)^2)^(1/2)/x; 
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.157 (sec). Leaf size: 66
ode=D[y[x],x]==Sqrt[x^2+y[x]^2]/x; 
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(Derivative(y(x), x) - sqrt(x**2 + y(x)**2)/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
AttributeError : LazyExceptionMessage object has no attribute startswith