29.19.14 problem 527

Internal problem ID [5123]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 19
Problem number : 527
Date solved : Monday, January 27, 2025 at 10:12:28 AM
CAS classification : [[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class B`]]

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

Solution by Maple

Time used: 0.038 (sec). Leaf size: 17

dsolve(x*(x-y(x))*diff(y(x),x)+y(x)^2 = 0,y(x), singsol=all)
 
\[ y \left (x \right ) = -x \operatorname {LambertW}\left (-\frac {{\mathrm e}^{-c_{1}}}{x}\right ) \]

Solution by Mathematica

Time used: 2.093 (sec). Leaf size: 25

DSolve[x(x-y[x])D[y[x],x]+y[x]^2==0,y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to -x W\left (-\frac {e^{-c_1}}{x}\right ) \\ y(x)\to 0 \\ \end{align*}