xeyx−y+xdydx=0
∴xdydx=y−xeyx
∴dydx=y−xeyxx
∴dydx=yx−eyx...(1)
Which is a homogeneous differential equation
Now take yx=v
We have yx=v
Differentiate w.r.to x
∴dydx=v+xdvdx
∴ from equation (1) becomes as follows
∴v+xdvdx=v−ev
∴ y=vx
∴xdvdx=−ev
∴−dvev=dxx
integrating both sides
∴−∫evdv=∫dxx
∴e−v=log|x|+c
∴e−yx=logx+c...(2)
Now y(e)=0
We take x=e;y=0
∴e0=loge+c
∴1=1+c
∴c=0
Particular solution is
∴e−yx=log|x|