Derivative of y = 1-xe ^ y implicit function

Derivative of y = 1-xe ^ y implicit function

y=1-xe^y
Both sides of X at the same time to obtain the derivative
y '=-e^y-xe^y·y '
y '(1+xe^y)=-e^y
y '=-e^y/(1+xe^y)