Solve $x^x-x=1$

lambert-wtetration

I was recently posed the question "solve for $x$ in $x^x-x=1$". The intended answer was $x=0$, assuming that $0^0=1$, but I used brute force and determined another solution, $x\approx1.776775040097$ (which Wolfram Alpha agrees with me on). Is there a closed form or symbolic solution to this – an exact solution? I have tried solving with the super square root (and Lambert W function), but this didn't seem to work out for me. Is there a way to solve it?

Best Answer

Consider that you look for the zero's of function $$f(x)=x^x-x-1$$ Its first derivative $f'(x)=x^x (\log (x)+1)-1$ cancels at $x=1$ and the second derivative test $f''(1)=2$ shows that this is a minimum.

Build a Taylor expansion to get $$f(x)=-1+(x-1)^2+\frac{1}{2} (x-1)^3+\frac{1}{3} (x-1)^4+O\left((x-1)^5\right)$$ Using series reversion, then $$x=1+\sqrt{y+1}-\frac{y+1}{4}-\frac{1}{96} (y+1)^{3/2}+O\left((y+1)^2\right)$$ where $y=f(x)$. Making $y=0$, this gives as an approximation $$x=\frac{167}{96}\approx 1.73958 $$ To polish the root, use Newton method starting with this estimate. The iterates will be $$\left( \begin{array}{cc} n & x_n \\ 0 & 1.739583333 \\ 1 & 1.778584328 \\ 2 & 1.776779132 \\ 3 & 1.776775040 \end{array} \right)$$

Edit

If we make the first expansion $O\left((x-1)^n\right)$ and repeat the inversion series, we generate the sequence $$\left\{2,\frac{7}{4},\frac{167}{96},\frac{175}{96},\frac{160 379}{92160},\frac{3687}{2048},\frac{12144341}{6881280},\frac{110221693}{61931520 },\frac{211659504277}{118908518400}\right\}$$

We can also use $x_0=2$ and use high order iterative methods. For order $4$, that is to say one level after Householder method, we have

$$x=2\,\frac {4575+67460 a+299400 a^2+558920 a^3+463660 a^4+141128 a^5} {6655+86720 a+352260 a^2+615000 a^3+483960 a^4+141128 a^5 }$$ where $a=\log(2)$.

This gives, as another approximation, $x=1.776779506$.