\[ -4 a-4 x^2+\left (x y'(x)+y(x)+2 x\right )^2-4 x y(x)=0 \] ✓ Mathematica : cpu = 1.08467 (sec), leaf count = 22
DSolve[-4*a - 4*x^2 - 4*x*y[x] + (2*x + y[x] + x*Derivative[1][y][x])^2 == 0,y[x],x]
\[\left \{\left \{y(x)\to \frac {-a-2 c_1 x+c_1{}^2}{x}\right \}\right \}\] ✓ Maple : cpu = 0.244 (sec), leaf count = 34
dsolve((x*diff(y(x),x)+y(x)+2*x)^2-4*x*y(x)-4*x^2-4*a = 0,y(x))
\[y \left (x \right ) = \frac {-x^{2}-a}{x}\]