If $y =x^x$, then $\frac{dy}{dx}$ is

1. $x^x(x-1)$
2. $x^{x-1}$
3. $x^x(1 + \log x)$
4. $e^x(1 + \log x)$