ODE
\[ y'(x)=(x-y(x))^2 \] ODE Classification
[[_homogeneous, `class C`], _Riccati]
Book solution method
Riccati ODE, Generalized ODE
Mathematica ✓
cpu = 0.2382 (sec), leaf count = 22
\[\left \{\left \{y(x)\to x+\frac {1}{\frac {1}{2}+c_1 e^{2 x}}-1\right \}\right \}\]
Maple ✓
cpu = 0.17 (sec), leaf count = 33
\[\left [y \left (x \right ) = \frac {x \,{\mathrm e}^{-2 x} \textit {\_C1} +{\mathrm e}^{-2 x} \textit {\_C1} -x +1}{{\mathrm e}^{-2 x} \textit {\_C1} -1}\right ]\] Mathematica raw input
DSolve[y'[x] == (x - y[x])^2,y[x],x]
Mathematica raw output
{{y[x] -> -1 + x + (1/2 + E^(2*x)*C[1])^(-1)}}
Maple raw input
dsolve(diff(y(x),x) = (x-y(x))^2, y(x))
Maple raw output
[y(x) = (x/exp(x)^2*_C1+1/exp(x)^2*_C1-x+1)/(1/exp(x)^2*_C1-1)]