4.9.38 (xy(x))y(x)=y(x)

ODE
(xy(x))y(x)=y(x) ODE Classification

[[_homogeneous, `class A`], _rational, [_Abel, `2nd type`, `class A`]]

Book solution method
Homogeneous equation

Mathematica
cpu = 0.0144344 (sec), leaf count = 20

{{y(x)xW(ec1x)}}

Maple
cpu = 0.018 (sec), leaf count = 16

{x(ln(y(x))+_C1)y(x)=0} 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),'implicit')

Maple raw output

x-(-ln(y(x))+_C1)*y(x) = 0