\[ x y'(x) (-a x+y(x)+y(x) \log (x y(x)))-y(x) (a x \log (x y(x))+a x-y(x))=0 \] ✓ Mathematica : cpu = 0.358939 (sec), leaf count = 24
\[\text {Solve}[a x \log (x y(x))-y(x) \log (x y(x))=c_1,y(x)]\] ✓ Maple : cpu = 0.204 (sec), leaf count = 19
\[ \left \{ \left ( xy \left ( x \right ) \right ) ^{-ax+y \left ( x \right ) }-{\it \_C1}=0 \right \} \]