I'm trying to find the derivative of the Lambert W function which is defined such that:
$$W(x)e^{W(x)}=x$$
Through implicit differentiation I get:
$$W(x)e^{W(x)}W'(x)+W'(x)e^{W(x)}=1$$
$$W'(x)(W(x)e^{W(x)}+e^{W(x)})=1$$
And using $W(x)e^{W(x)}=x$ I get:
$$W'(x)=\frac{1}{x+e^{W(x)}}$$
However the answer should be:
$$W'(x)=\frac{W(x)}{x(1+W(x))}$$
Where did I go wrong?