Find the derivative of y = x^{x} defined for all x > 0.
The power rule of differentiation, y = x^{a} ⇒ y^{\prime} = ax^{a−1}, requires the exponent a to be a constant, while the rule y = a^{x} ⇒ y^{\prime} = a^{x} \ln a requires that the base a is constant. In the expression x^{x} both the exponent and the base vary with x, so neither of the two rules can be used.
Begin by taking the natural logarithm of each side, ln y = x ln x. Differentiating w.r.t x gives y^{\prime}/y = 1 · \ln x + x(1/x) = \ln x + 1. Multiplying by y = x^{x} gives us the result: