\[ \boxed { \left ( {\frac {\rm d}{{\rm d}x}}y \left ( x \right ) \right ) ^{2}+2\,f \left ( x \right ) y \left ( x \right ) {\frac {\rm d}{{\rm d}x}}y \left ( x \right ) +g \left ( x \right ) \left ( y \left ( x \right ) \right ) ^{2}+h \left ( x \right ) =0} \]
Mathematica: cpu = 38.765923 (sec), leaf count = 32 \[ \text {DSolve}\left [2 f(x) y(x) y'(x)+g(x) y(x)^2+h(x)+y'(x)^2=0,y(x),x\right ] \]
Maple: cpu = 0.968 (sec), leaf count = 0 \[ \text {could not solve} \]