DSolve[-y[x] + a*Sqrt[x^2 + y[x]^2] + x*Derivative[1][y][x] == 0,y[x],x]
dsolve(x*diff(y(x),x)+a*(y(x)^2+x^2)^(1/2)-y(x) = 0,y(x))
Hand solution
Let
Separable.
Integrating
Since
Verification
ode:=x*diff(y(x),x)=-a*sqrt(x^2+y(x)^2)+y(x); y0:=x*sinh(_C1-a*ln(x)); odetest(y(x)=y0,ode) assuming x >=0; 0