How do you use the Lagrange inversion theorem to derive the Taylor Series expansion of W(x)? How else can you derive a series expansion?
-
$f(z) = z e^z = \sum_{m=0}^\infty c_m z^m$ $\implies$ (locally around $u_0 = f(z_0)$, if $f'(z_0) \ne 0$) $f^{-1}(u) = \sum_{k=0}^\infty a_k u^k$ with $z= f^{-1}(f(z)) =\sum_{k=0}^\infty a_k f(z)^k = \sum_{k=0}^\infty a_k (\sum_{m=0}^\infty c_m z^m)^k$ which, after expanding, gives a recurrence relation on the $a_k$'s in term of the binomial coefficients and the $c_m$'s. and if there are other ways, they are equivalent to thisone – reuns Mar 16 '16 at 22:51
5 Answers
Another approach is to start with
$$
x=we^w\tag1
$$
and differentiate to get
$$
\begin{align}
1&=(w+1)e^ww'\tag2\\
w&=(w+1)xw'\tag3\\
w-xw'&=xww'\tag4
\end{align}
$$
Explanation:
$(2)$: derivative of $(1)$
$(3)$: multiply by $w$
$(4)$: subtract $xw'$
Next take the coefficient of $x^n$:
$$
\begin{align}
(1-n)a_n&=\sum_{k=1}^{n-1}ka_ka_{n-k}\tag5\\
&=\frac n2\sum_{k=1}^{n-1}a_ka_{n-k}\tag6\\
a_n&=-\frac n{2(n-1)}\sum_{k=1}^{n-1}a_ka_{n-k}\tag7
\end{align}
$$
Explanation:
$(5)$: coefficient of $x^n$ from $(4)$
$(6)$: substitute $k\to n-k$ in $(5)$ and average with $(5)$
$(7)$: divide by $1-n$
$(7)$ provides a recursion for $a_n$, so we compute some values:
$$
\begin{array}{c|cc}
n&1&2&3&4&5&6&7&8&9&10&11\\\hline
a_n&1&\!-1&\!\frac32&\!-\frac83&\!\frac{125}{24}&\!-\frac{54}5&\!\frac{16807}{720}&\!-\frac{16384}{315}&\!\frac{531441}{4480}&\!-\frac{156250}{567}&\!\frac{2357947691}{3628800}\\
\end{array}\tag8
$$
Noting that $a_n$, for $n$ prime, is $(-1)^{n-1}\frac{n^{n-2}}{(n-1)!}=\frac{(-n)^{n-1}}{n!}$, it is easy to verify that the same is true for the other $n$ in the table. To prove that this is true for all $n$, we can use $(7)$ and induction: suppose that $a_k=\frac{(-k)^{k-1}}{k!}$ for $k\lt n$, then
$$
\begin{align}
a_n
&=-\frac n{2(n-1)}\sum_{k=1}^{n-1}\frac{(-k)^{k-1}}{k!}\frac{(k-n)^{n-k-1}}{(n-k)!}\tag9\\
&=\frac n{2(n-1)}\frac{(-1)^{n-1}}{n!}\sum_{k=1}^{n-1}\binom{n}{k}k^{k-1}(n-k)^{n-k-1}\tag{10}\\
&=\frac1{2(n-1)}\frac{(-1)^{n-1}}{n!}\sum_{k=1}^{n-1}\binom{n}{k}\left(k^k(n-k)^{n-k-1}+k^{k-1}(n-k)^{n-k}\right)\tag{11}\\
&=\frac1{(n-1)}\frac{(-1)^{n-1}}{n!}\sum_{k=1}^{n-1}\binom{n}{k}k^{k-1}(n-k)^{n-k}\tag{12}\\
&=\frac1{(n-1)}\frac{(-1)^{n-1}}{n!}(n-1)n^{n-1}\tag{13}\\[3pt]
&=\frac{(-n)^{n-1}}{n!}\tag{14}
\end{align}
$$
Explanation:
$\phantom{1}(9)$: $(7)$ and the inductive hypothesis
$(10)$: move factors around
$(11)$: distribute $n=k+(n-k)$
$(12)$: substitute $k\mapsto n-k$ in the left term of the summand
$(13)$: apply Abel's identity, equation $(6)$ from this answer, using $b=n,t=1$:
$\phantom{(13)\text{:}}$ $\sum\limits_{k=1}^{n-1}\binom{n}{k}(a+k)^{k-1}(n-k)^{n-k}=\frac{(a+n)^n-n^n}a-(a+n)^{n-1}$
$\phantom{(13)\text{:}}$ $\stackrel{a\to0}\longrightarrow\quad\sum\limits_{k=1}^{n-1}\binom{n}{k}k^{k-1}(n-k)^{n-k}=(n-1)n^{n-1}$
$(14)$: simplify
Thus, we have shown that for all $n\ge1$, $$ a_n=\frac{(-n)^{n-1}}{n!}\tag{15} $$ Therefore, $$ \operatorname{W}(x)=\sum_{n=1}^\infty\frac{(-n)^{n-1}}{n!}x^n\tag{16} $$

- 345,667
-
1This answer is awesome. The only thing I don't understand (so far) is why is the upper limit in the summand in (5) equal to $n-1$?? I could only see it being just $n$, thus I'm unable to derive the recurrence relation. Since your answer is no doubt correct, could you describe why you put $n-1$? Is it explicitly so that you can derive the recurrence? – MaximusFastidiousIrreverence Nov 17 '21 at 09:06
-
2Since $x=we^w$, when $x=0$, we have $w=0$. That is, $a_0=0$. This eliminates the $k=n$ term. – robjohn Nov 17 '21 at 11:09
-
Indeed I saw that right after I asked you. Funny how that always happens. Just FYI, had to get $a_1$ directly from the first derivative btw, and (7) for all $n$ after – MaximusFastidiousIrreverence Nov 21 '21 at 07:56
-
I don't understand (5) at all. Where does this come from? How is $\sum_{1}^{n-1}ka_ka_{n-k} = \frac{n}{2}\sum_{1}^{n-1}a_ka_{n-k}$??? – Boris Dimitrov Dec 06 '22 at 13:53
-
@BorisDimitrov: as described in the explanation, the whole equation is simply taking the coefficient of $x^n$ for $w-xw'$ on the left and for $xww'$ on the right. On the right, we are using the Cauchy product formula. To get the equation you questioned, substitute $k\mapsto n-k$ and average the two series. – robjohn Dec 06 '22 at 16:08
While the common way to derive it is by using the Lagrange Inverse Theorem, there technically isn't anything stopping us from making a Taylor Series for it as you would with any other function. As always, we're going to need a list of derivatives. The first one can be found pretty easily via implicit differentiation as follows:
$$y = W(x)$$ $$ye^y = x$$ $$\frac{d}{dx}\left(ye^y=x\right)$$ $$\left(y+1\right)e^y\cdot\frac{dy}{dx}=1$$ $$\therefore \frac{d}{dx}W\left(x\right)=\frac{e^{-W\left(x\right)}}{\left(W\left(x\right)+1\right)}$$ $$\frac{d}{dx}W\left(x\right)=\frac{W\left(x\right)}{x\left(W\left(x\right)+1\right)}$$
Also, to anyone unfamiliar with the last step, it is one of the main identities of the Lambert W function.
Now that we have the first derivative, we can simply differentiate as many times as we want to get all subsequent derivatives. The important thing to note, however, is that all subsequent derivatives will only require the W function to be evaluated at x. Therefore, if we know the value of W(x) we can theoretically calculate the value of any nth derivative of W(x) at that x. We can use this to our advantage by considering a value of W which is easy to calculate, such as W(e). This can be calculated as follows:
$$y=W\left(e\right)$$ $$ye^y=e=1e^1$$ $$\therefore y=1 \Rightarrow W(e)=1 $$
We now have everything we need to calculate a Taylor Series centered at x=e as usual.
$$\sum_{n=0}^{\infty}\frac{W^{\left(n\right)}\left(e\right)}{n!}\left(x-e\right)^n$$
$$=1+\frac{1\left(x-e\right)}{2\cdot e\cdot1!}-\frac{3\left(x-e\right)^2}{2^3e^2\cdot2!}+\frac{19\left(x-e\right)^3}{2^5e^3\cdot3!}-\frac{185\left(x-e\right)^4}{2^7e^4\cdot4!}+\frac{2437\left(x-e\right)^5}{2^9e^5\cdot5!}...$$
I agree that this isn't as useful as the Lagrange Inverse method (mostly due to the lack of an explicit definition for the coefficients), however I felt it was worth noting as the question did ask if there were any other methods. And, as shown by the plot of the 5th degree polynomial, this does indeed work.

- 201
- 2
- 4
I used robjohn's answer to produce an ad hoc solution that didn't involve inequalities or real numbers in particular, but instead produce an identity on formal power series so that it could be used for p-adic numbers for investigating things like $x^x=c$. I chose do that by demonstrating that the series for $W$ that he gives satisfies $W(xe^x)=x$.
$$W(x) = \sum_{k \ge 1} \frac{(-k)^{k-1}}{k!}x^k$$
Composing the power series gets us
$$W(xe^x) = \sum_{k \ge 1} \frac{(-k)^{k-1}}{k!}\left(\sum_{n \ge 1} \frac{1}{(n-1)!} x^n\right) ^k$$
The $n$th power on the series for $xe^x$ corresponds to a convolution of the coefficients with itself $n$ times,
$$W(xe^x) = \sum_{k \ge 1} \frac{(-k)^{k-1}}{k!}\sum_{n \ge 1}\left(\sum_{i_1+\cdots+i_k = n} \frac{1}{(i_1-1)!\cdots(i_k-1)!} \right) x^n$$
Recognizing the coefficients resemble the multinomial expansion, let's focus on it and rewrite it as such
$$\frac{1}{n!} \sum_{i_1+\cdots+i_k = n} i_1 \cdots i_k \binom{n}{i_1,\dots, i_k} $$
The indices multiplying the multinomial coefficient can be seen as coming from differentiating the expansion and then evaluating at 1.
$$\frac{1}{n!} \frac{\partial^k}{\partial x_1 \cdots \partial x_k}\left. \sum_{i_1+\cdots+i_k = n} \binom{n}{i_1,\dots, i_k} x_1^{i_1} \cdots x_k^{i_k} \right|_{x_1=\cdots =x_k = 1}$$
Now we have the multinomial expansion in its entirety, so we can simply write it out,
$$\frac{1}{n!} \left.\frac{\partial^k}{\partial x_1 \cdots \partial x_k} \left( x_1 + \cdots + x_k \right)^n \right|_{x_1=\cdots =x_k = 1}$$
Evaluating these derivatives is straight forward,
$$\left. \frac{1}{n!} \frac{n!}{(n-k)!} \left( x_1 + \cdots + x_k \right)^{n-k} \right|_{x_1=\cdots =x_k = 1}$$
$$\frac{k^{n-k}}{(n-k)!}$$
Let's now replace this more compact form of the convolution back into our series.
$$W(xe^x) = \sum_{k \ge 1} \frac{(-k)^{k-1}}{k!}\sum_{n \ge 1} \frac{k^{n-k}}{(n-k)!} x^n$$
Change order of summation and write in the binomial coefficient and clean up terms slightly,
$$W(xe^x) = \sum_{n \ge 1} -\frac{x^n}{n!} \sum_{k \ge 1} \binom{n}{k} (-1)^k k^{n-1} $$
Notice that because the binomial coefficient appears, the inner series is really only a finite sum since it forces the terms to 0 for $k>n$. Let's focus on this.
$$\sum_{k=1}^n \binom{n}{k} (-1)^k k^{n-1}$$
Similar to how we brought in the derivative for the multinomial series, we can think of the $k^{n-1}$ coming from an exponent on a variable $y$ that has been evaluated at 1.
$$\left. \sum_{k=1}^n \binom{n}{k} (-1)^k k^{n-1}y^k \right|_{y=1}$$ This time we need to multiply by $y$ after differentiating to keep the power at $k$.
$$\left. \left(y \frac{d}{dy} \right)^{n-1} \sum_{k=1}^n \binom{n}{k} (-1)^ky^k \right|_{y=1}$$
When $n=1$ there is no derivative taken, so the result is just $-1$ for this sum. For $n>1$ we can safely put in the $k=0$ constant term which gets removed by the derivative so that we can rewrite it now as a binomial expansion,
$$\left. \left(y \frac{d}{dy} \right)^{n-1} (1-y)^n \right|_{y=1}$$
Because we are taking only up to the $n-1$ derivative of $(1-y)^n$ there will always be a $(1-y)$ term in the product rule expansion. This means evaluating at $y=1$ forces all of these terms to $0$. This means the only surviving term was the $n=1$ term which gave $-1$, so we return to our series and find that it simplifies to,
$$W(xe^x) = x$$

- 2,489
- 1
- 8
- 16
You can use the Ramanujan master theorem which may not appear to converge, but does symbolically:
$$W(x)=\sum_{n=1}^\infty\frac{(-x)^n}{n!\Gamma(-n)}\int_0^\infty t^{-n-1}W(t)dt$$
$t\to W(t)$ with the incomplete gamma function:
$$\int_0^\infty t^{-n-1}W(t)dt=\int_0^\infty e^{-nt}t^{1-n}+e^{-nt}t^{-n}dt=(-n)^{n-2}(n\Gamma(1-n,t)+\Gamma(2-n,nt))^\infty_0=n^{n-2}\Gamma(1-n)$$
therefore:
$$W(x)=-\sum_{n=1}^\infty\frac{n^{n-2}\Gamma(1-n)(-x)^n}{\Gamma(-n)n!}=-\sum_{n=1}^\infty\frac{(-1)^nn^{n-1}x^n}{n!}$$

- 12,081
It can be easily derived by applying the Lagrange inversion formula to $ze^z$ as it satisfies all criterias of the Lagrange inversion theorem, i.e. $f(0)=0$ and $f'(0)$ is non zero.

- 3,199

- 36