62.12.29 problem Ex 30

Internal problem ID [12796]
Book : An elementary treatise on differential equations by Abraham Cohen. DC heath publishers. 1906
Section : Chapter 2, differential equations of the first order and the first degree. Article 19. Summary. Page 29
Problem number : Ex 30
Date solved : Wednesday, March 05, 2025 at 08:32:03 PM
CAS classification : [[_homogeneous, `class A`], _dAlembert]

\begin{align*} \left (2 \sqrt {x y}-x \right ) y^{\prime }+y&=0 \end{align*}

Maple. Time used: 0.008 (sec). Leaf size: 18
ode:=(2*(x*y(x))^(1/2)-x)*diff(y(x),x)+y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ \ln \left (y\right )+\frac {x}{\sqrt {x y}}-c_{1} = 0 \]
Mathematica. Time used: 0.264 (sec). Leaf size: 33
ode=(2*Sqrt[x*y[x]]-x)*D[y[x],x]+y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [\frac {2}{\sqrt {\frac {y(x)}{x}}}+2 \log \left (\frac {y(x)}{x}\right )=-2 \log (x)+c_1,y(x)\right ] \]
Sympy. Time used: 2.042 (sec). Leaf size: 42
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((-x + 2*sqrt(x*y(x)))*Derivative(y(x), x) + y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = e^{C_{1} + 2 W\left (- \frac {\sqrt {x} e^{- \frac {C_{1}}{2}}}{2}\right )}, \ y{\left (x \right )} = e^{C_{1} + 2 W\left (\frac {\sqrt {x} e^{- \frac {C_{1}}{2}}}{2}\right )}\right ] \]