2.140   ODE No. 140

\[ x^2 \left (y'(x)+y(x)^2\right )+4 x y(x)+2=0 \] Mathematica : cpu = 0.0582079 (sec), leaf count = 17

DSolve[2 + 4*x*y[x] + x^2*(y[x]^2 + Derivative[1][y][x]) == 0,y[x],x]
 

\[\left \{\left \{y(x)\to -\frac {2}{x}+\frac {1}{x+c_1}\right \}\right \}\] Maple : cpu = 0.065 (sec), leaf count = 20

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

\[y \left (x \right ) = \frac {-2 c_{1}+x}{x \left (-x +c_{1}\right )}\]