Derivative of $x^x$

by Jakub Marian

Tip: Are you a non-native English speaker? I have just finished creating a Web App for people who enjoy learning by reading. Make sure to check it out; there's a lot of free content.

Calculating the derivative of $x^x$ is a very simple task, but it may be hard to find the general idea on your own, so here it is. We will need the following formula:

$$ a^b = \l(e^{\ln(a)}\r)^b = e^{b\ln(a)} $$

(where “$\ln$” denotes the natural lnarithm, which is often denoted “$\ln$” in non-mathematical literature). The trick is to rewrite $x^x$ using the formula above (by setting $a = b = x$) and then differentiate the rest according to the normal rules of differentiation:

$$ \l(x^x\r)’ = \l(e^{x\ln(x)}\r)’ = e^{x\ln(x)}\l(x\ln(x)\r)’\,, $$

where we used $(e^{f(x)})’ = e^{f(x)}f’(x)$. Now we will rewrite $e^{x\ln(x)}$ back to $x^x$ (it is the same thing we started with) and differentiate the second part using $(u(x)v(x))’ = u’(x)v(x) + u(x)v’(x)$:

$$ e^{x\ln(x)}\l(x\ln(x)\r)’ = x^x\l(1⋅\ln(x) + x⋅\frac{1}{x}\r) = x^x\l(\ln(x)+1\r)\,. $$

And there you have it: $(x^x)’ = x^x\l(\ln(x)+1\r)$.

By the way, have you already seen my brand new web app for non-native speakers of English? It's based on reading texts and learning by having all meanings, pronunciations, grammar forms etc. easily accessible. It looks like this:

0