I was killing time in a meeting where I wasn't needed and tried to calculate $\tfrac{\mathrm{d}}{\mathrm{d}x}\left[e^{x^x}\right]$. I already know I'm wrong from looking up the answer, but I'd like to know where I went amiss, if you had a minute.
My attempt: $$\begin{align}y &= e^{x^x} \\ \ln{y} &= x\ln{e^x} \\ \ln{y} &= x^2 \\ \frac{dy}{dx}\frac{1}{y} &= 2x \\ \frac{dy}{dx} &= 2xy \\ &= 2xe^{x^x} \end{align}$$ I was able to use this cool differentiation site to see a step-by-step answer using the "generalized power rule" (which I was never taught or figured out) giving the correct answer of $$\frac{\mathrm{d}}{\mathrm{d}x}\left[e^{x^x}\right]=x^x\mathrm{e}^{x^x}\left(\ln\left(x\right)+1\right)$$ but to me the approach of taking natural logs of both sides should work. So I obviously went wrong somewhere.
Thanks!