ODE
\[ (x-y(x)) y'(x)=y(x) \] ODE Classification
[[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class A`]]
Book solution method
Homogeneous equation
Mathematica ✓
cpu = 0.158453 (sec), leaf count = 20
\[\left \{\left \{y(x)\to -\frac {x}{W\left (-e^{-c_1} x\right )}\right \}\right \}\]
Maple ✓
cpu = 0.071 (sec), leaf count = 15
\[[y \left (x \right ) = {\mathrm e}^{\LambertW \left (-x \,{\mathrm e}^{-\textit {\_C1}}\right )+\textit {\_C1}}]\] Mathematica raw input
DSolve[(x - y[x])*y'[x] == y[x],y[x],x]
Mathematica raw output
{{y[x] -> -(x/ProductLog[-(x/E^C[1])])}}
Maple raw input
dsolve((x-y(x))*diff(y(x),x) = y(x), y(x))
Maple raw output
[y(x) = exp(LambertW(-x/exp(_C1))+_C1)]