29.23.9 problem 640

Internal problem ID [5231]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 23
Problem number : 640
Date solved : Monday, January 27, 2025 at 10:37:09 AM
CAS classification : [[_homogeneous, `class D`], _rational]

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

Solution by Maple

Time used: 0.026 (sec). Leaf size: 36

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

Solution by Mathematica

Time used: 4.507 (sec). Leaf size: 49

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