The given differential equation is
ylogydx−xdy=0
⇒−xdy=−ylogydx
Separating variables
ylogydy=xdx...(i)
Integrating both sides
∫ylogydy=∫xdx
For the integral on the left-hand side, put
logy=t
⇒y1=dydt⇒ydy=dt
Substitution in (i)
∫tdt=∫xdx
⇒log∣t∣=log∣x∣+log∣c∣...(ii)
=log∣xc∣
Back-substitution
⇒∣t∣=∣xc∣
⇒t=±xc
[∵∣x∣=∣y∣⇒x=±y]
⇒logy=±xc=axwhere a=±c
Final solution
⇒y=eax
which is the required general solution.