29.31.12 problem 911

Internal problem ID [5491]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 31
Problem number : 911
Date solved : Sunday, March 30, 2025 at 08:20:00 AM
CAS classification : [[_homogeneous, `class A`], _dAlembert]

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

Maple. Time used: 0.107 (sec). Leaf size: 101
ode:=x^2*diff(y(x),x)^2+(y(x)+2*x)*y(x)*diff(y(x),x)+y(x)^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= -4 x \\ y &= 0 \\ y &= \frac {c_1^{2}}{2 x -\sqrt {2}\, c_1} \\ y &= \frac {c_1^{2}}{2 x +\sqrt {2}\, c_1} \\ y &= \frac {2 c_1^{2} \left (-\sqrt {2}\, c_1 +x \right )}{-2 c_1^{2}+x^{2}} \\ y &= \frac {2 c_1^{2} \left (\sqrt {2}\, c_1 +x \right )}{-2 c_1^{2}+x^{2}} \\ \end{align*}
Mathematica. Time used: 5.686 (sec). Leaf size: 117
ode=x^2 (D[y[x],x])^2+(2 x+y[x])y[x] D[y[x],x]+y[x]^2==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {4 x \left (1+\tanh \left (-\frac {\log (x)}{2}+c_1\right )\right ){}^2}{3 \tanh ^2\left (-\frac {\log (x)}{2}+c_1\right )-2 \tanh \left (-\frac {\log (x)}{2}+c_1\right )-1} \\ y(x)\to \frac {4 x \left (-1+\tanh \left (\frac {1}{2} (\log (x)-2 c_1)\right )\right ){}^2}{3 \tanh ^2\left (-\frac {\log (x)}{2}+c_1\right )-2 \tanh \left (-\frac {\log (x)}{2}+c_1\right )-1} \\ y(x)\to 0 \\ y(x)\to -4 x \\ \end{align*}
Sympy. Time used: 12.254 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), x)**2 + (2*x + y(x))*y(x)*Derivative(y(x), x) + y(x)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {e^{2 C_{1}}}{2 \left (2 x + e^{C_{1}}\right )} \]