To take the derivative of $x ^ x$, we write
$$\dfrac {\mathrm d}{\mathrm dx} x^x=\dfrac {\mathrm d}{\mathrm dx} e^{\ln x^x}=\dfrac {\mathrm d}{\mathrm dx} e^{x\ln x}= e^{x\ln x}× \dfrac {\mathrm d}{\mathrm dx}(x\ln x)=x^x\left(\ln x+1\right)$$
Here is my problem:
If $x\in\mathbb{Z^-}$, then $x^x\in\mathbb {R}$. But, $\ln x \not\in\mathbb {R}.$
Because, $\ln x$ is defined only in the set of positive real numbers.
If, $x \not\in\mathbb {Z^{-}}$ and $x\in\mathbb{R^{-}}$, then $x^x\in\mathbb {C}$ and $\ln x \in\mathbb {C}.$
But, the problem occurs if $x\in\mathbb{Z^-}.$
So, $x^x=e^{x\ln x}$ doesn't hold for all real numbers. This makes the derivative result suspicious.
Where is the problem?