4.20.30 \(x^2+2 x y(x) y'(x)+y(x)^2 y'(x)^2=0\)

ODE
\[ x^2+2 x y(x) y'(x)+y(x)^2 y'(x)^2=0 \] ODE Classification

[_separable]

Book solution method
Homogeneous ODE, \(x^n f\left ( \frac {y}{x} , y' \right )=0\), Solve for \(p\)

Mathematica
cpu = 0.161934 (sec), leaf count = 39

\[\left \{\left \{y(x)\to -\sqrt {-x^2+2 c_1}\right \},\left \{y(x)\to \sqrt {-x^2+2 c_1}\right \}\right \}\]

Maple
cpu = 0.07 (sec), leaf count = 31

\[\left [y \left (x \right ) = \sqrt {-x^{2}+2 \textit {\_C1}}, y \left (x \right ) = -\sqrt {-x^{2}+2 \textit {\_C1}}\right ]\] Mathematica raw input

DSolve[x^2 + 2*x*y[x]*y'[x] + y[x]^2*y'[x]^2 == 0,y[x],x]

Mathematica raw output

{{y[x] -> -Sqrt[-x^2 + 2*C[1]]}, {y[x] -> Sqrt[-x^2 + 2*C[1]]}}

Maple raw input

dsolve(y(x)^2*diff(y(x),x)^2+2*x*y(x)*diff(y(x),x)+x^2 = 0, y(x))

Maple raw output

[y(x) = (-x^2+2*_C1)^(1/2), y(x) = -(-x^2+2*_C1)^(1/2)]