82.12.5 problem Ex. 5

Internal problem ID [18770]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter II. Equations of the first order and of the first degree. Examples on chapter II at page 29
Problem number : Ex. 5
Date solved : Tuesday, January 28, 2025 at 12:16:33 PM
CAS classification : [_separable]

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

Solution by Maple

Time used: 0.013 (sec). Leaf size: 35

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

Solution by Mathematica

Time used: 5.140 (sec). Leaf size: 30

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