Consider the given equation.
xy=ex−y .....….. (1)
On differentiating both sides, we get
y+xdydx=ex−y(1−dydx)
y+xdydx=ex−y−ex−ydydx
(x+ex−y)dydx=ex−y−y
dydx=ex−y−yex−y+x
Hence, this is the answer.