How do you differentiate $$\large{f(x) = x^x}$$
The working I got was $$\ln f(x) = x \ln x$$
which I am pretty fine...but I do not know how it advances to
$$\frac{f'(x)}{f(x)} = x\begin{pmatrix} \frac 1 x\end{pmatrix} + \ln x$$
although the final answer can be, by multiplying $f(x)$ on both sides of the equation,
$${f'(x)} = x^x\begin{bmatrix}x\begin{pmatrix} \frac 1 x\end{pmatrix} + \ln x\end{bmatrix}$$
UPDATE : SOLVED
Indeed, $$\ln f(x) = x \ln x$$ Differentiate both sides of the equation w.r.t $x$ $$\frac{f'(x)}{f(x)} = x\begin{pmatrix} \frac 1 x\end{pmatrix} + \ln x = 1 + \ln x$$ Bring the $f(x)$ over and you'll finally get
$$f'(x) = x^x\begin {pmatrix} 1 + \ln x\end{pmatrix}$$
By the chain rule
$$\frac{d}{dx} \ln{f(x)} = \frac{1}{f(x)} f'(x)$$