[_rational, _Riccati]
Book solution method
Riccati ODE, Generalized ODE
Mathematica ✓
cpu = 0.0746079 (sec), leaf count = 63
Maple ✓
cpu = 0.203 (sec), leaf count = 97
DSolve[x + (1 - x)*y[x]^2 + 2*(1 - x)*x*y'[x] == 0,y[x],x]
Mathematica raw output
{{y[x] -> (-2*(C[1]*(-EllipticE[x] + EllipticK[x]) + Pi*MeijerG[{{}, {1/2, 3/2}}
, {{0, 1}, {}}, x]))/(2*C[1]*EllipticE[x] + Pi*MeijerG[{{}, {1/2, 3/2}}, {{0, 0}
, {}}, x])}}
Maple raw input
dsolve(2*x*(1-x)*diff(y(x),x)+x+(1-x)*y(x)^2 = 0, y(x),'implicit')
Maple raw output
y(x) = 1/2*x*(LegendreQ(-1/2,1,(2-x)/x)*_C1-LegendreQ(1/2,1,(2-x)/x)*_C1+Legendr
eP(-1/2,1,(2-x)/x)-LegendreP(1/2,1,(2-x)/x))/(LegendreQ(-1/2,1,(2-x)/x)*_C1+Lege
ndreP(-1/2,1,(2-x)/x))/(-1+x)