2.1724   ODE No. 1724

\[ (x-y(x)) y''(x)+2 y'(x) \left (y'(x)+1\right )=0 \]

Mathematica : cpu = 0.535867 (sec), leaf count = 38

DSolve[2*Derivative[1][y][x]*(1 + Derivative[1][y][x]) + (x - y[x])*Derivative[2][y][x] == 0,y[x],x]
 
\[\left \{\left \{y(x)\to -\frac {e^{-c_1} \left (e^{c_1} c_2 x+1+e^{c_1} c_2{}^2\right )}{x+c_2}\right \}\right \}\]

Maple : cpu = 2.273 (sec), leaf count = 21

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