I need to compute the derivative of $$z=x^{x^x}$$
I made it like this:
$$y=x^x$$ so $$z=y^x$$ then $$\ln(z)=x\ln(y)$$ taking derivative from both sides: $$\frac{z'}{z}=\ln(y)+x\left(\frac{1}{y}\right)y'$$ I know that $$(x^x)'=x^x(1+\ln(x))$$ So : $$z'=z*(\ln(x^x)+x*\left(\frac{1}{x^x}\right)*(x^x)'))=x^{x^x}(x\ln(x)+x\ln(x)+x)=x^{x^x}\left(2x\ln(x)+x\right)$$ I know I did something wrong. Where is my Mistake??
Thanks alot!