5

Intro:

Remember that the W-Lambert function has the following series expansion:

$$xe^x=y\implies x=\text W(y)=\sum_{n=1}^\infty\frac{(-n)^{n-1}y^n}{n!},|y|<\frac1e$$

so how about a series expansion for inverse of $e^{-x}\left(\frac{x^2}2+x+1\right)$?

This question is inspired from:

How close are we to solving for a closed form of $$\sum\limits_{n=0}^\infty \frac{(pn+q)^{rn+s}Γ(An+B,Cn+D)}{Γ(an+b)}$$ with the Incomplete Gamma function?

where one idea was to notice how $\text W(xe^x)=x$ is the definition. This definition reminds us of the Regularized Incomplete Gamma function and Incomplete Gamma function defined as $$Q(a,z)=\frac{\Gamma(a,z)}{\Gamma(a)}=\frac{\int_z^\infty t^{a-1}e^{-t}dt }{\Gamma(z)}$$

an inverse function for the incomplete argument, z, has been defined known as the Inverse of the Regularized Gamma function with this Taylor Series at $z=1$:$$Q(a,Q^{-1}(a,z))=z, Q^{-1}(a,z)=((1-z)\Gamma(a+1))^\frac1a+\frac{((1-z)\Gamma(a+1))^\frac2a}{a+1}+\frac{(3a+5)((1-z)\Gamma(a+1))^\frac3a}{2(a+1)^2(a+2)}+…$$

where the series expansion seems to have a large radius of convergence. Here are some special cases:

$$Q(1,z)=e^{-z}\implies Q^{-1}(1,z)=-\ln(z)\\Q(2,z)=e^{-z}(z+1)\implies Q^{-1}(2,z)=-\text W_{-1}\left(-\frac ze\right)-1\\Q(3,z)=e^{-z}\left(\frac{z^2}2+z+1\right)\implies Q^{-1}(3,z)=((1-z)\Gamma(3+1))^\frac13+\frac{((1-z)\Gamma(3+1))^\frac23}{3+1}+\frac{(3\cdot3+5)((1-z)\Gamma(3+1))^\frac33}{2(3+1)^2(3+2)}+…=(-6)^\frac13(z-1)^\frac13+\frac{(-6)^\frac23}4 (z-1)^\frac23-\frac{21}{40}(z-1)-\frac{461 (-6)^\frac13}{480}(z-1)^\frac43-\frac{3049 (-6)^\frac23(z-1)^\frac53}{33600}+\frac{11013(z-1)^2}{44800}+…=\sum_{n=1}^\infty a_n (-6)^\frac n3(z-1)^\frac n3$$

this shows that we have a generalization of the W-Lambert function. Maybe this function has an interesting series expansion? The function appears in finding the Median of a Gamma Distribution.

Here is an attempt at using the Lagrange Inversion theorem with a series expansion around $x=1$ since around $x=0$ would have $f’(0)=0$ which does not work with the formula. Any other value inside $0\le x\le 1$ may make the formula more complicated and any outside this interval would not be in the defined domain of the Inverse Regularized Incomplete Gamma function. The domain comes from it’s statistics application:

$$y=f(x)=e^{-x}\left(\frac{x^2}2+x+1\right)=Q(3,x) \implies f^{-1}(y)=Q^{-1}(3,y)=x=1+\sum_{n=1}^\infty \frac{d^{n-1}}{dy^{n-1}}\left(\left(\frac{y-1}{e^{-y}\left(\frac{y^2}2+y+1\right)-\frac5{2e}}\right)^n\right)\frac{\left(x-\frac5{2e}\right)^n}{n!}=1-2e\left(x-\frac5{2e}\right)-\frac{4e^2}{2!}\left(x-\frac5{2e}\right)^2-\frac{32e^3}{3!} \left(x-\frac5{2e}\right)^3-\frac{384e^4}{4!}\left(x-\frac5{2e}\right)^4= 1-2e\left(x-\frac5{2e}\right)-2e^2\left(x-\frac5{2e}\right)^2-\frac{16e^3}{3} \left(x-\frac5{2e}\right)^3-16e^4\left(x-\frac5{2e}\right)^4 -…=\sum_{n=0}^\infty a_n e^n \left(x-\frac5{2e}\right)^n= \sum_{n=0}^\infty a_n \left(e x -\frac52\right)^n $$

with this graphical demo. Is there an explicit series or closed form of $$a_n=\left\{1,2,2,\frac{16}3,16,…\right\}=\frac{\frac{d^{n-1}}{dy^{n-1}}\left(\left(\frac{y-1}{e^{-y}\left(\frac{y^2}2+y+1\right)-\frac5{2e}}\right)^n\right)}{n!}$$?

Here is a plot of our goal goal inverse function:

$$Q^{-1}(3,x):$$ enter image description here

Please correct me and give me feedback!

Motivation from inspired question:

Just as a side note, here is some motivation since the Inverse of the Regularized Incomplete Gamma function is a generalized version of $\text W_{-1}(x)$. The linked question reminds us of the Product Logarithm/ W-Lambert function:

$$\text W(x)=\sum_{n=1}^\infty \frac{(-n)^{n-1}x^n}{n!},|x|<\frac1e$$

Now let’s use this property to derive more general ones. From now on the interval of convergence will be assumed for simplicity:

$$\text W^{k-1}(ax)\text W(ax) x^b= \text W^{k-1}(ax) x^b\sum_{n=1}^\infty \frac{(-n)^{n-1}(ax)^n}{n!}$$

This is not very surprising, but integrating gives a familiar series expansion with a closed form with the Incomplete Gamma function and Generalized Exponential Integral:

$$\int \text W^k(ax)x^bdx=\int \sum_{n=1}^\infty\frac{(-n)^{n-1}\text W^{n-1}(x)x^{n+k}}{n!}dx= x^b e^{-b \text W(a x)} \text W^k(a x) (-(b + 1)\text W(a x))^{-b - k} ((b + 1) Γ(b + k + 1, -(b + 1) \text W(a x)) - Γ(b + k + 2, -(b + 1)\text W(a x)))\frac1{a (b + 1)^2} +C =C+\sum_{n=1}^\infty\frac{ ((-n)^{n - 2} n x^{k + n}\text W(a x)^{k + 1} e^{-(k + n)\text W(a x)} (-(k + n + 1)\text W(a x))^{-(2 k + n + 1} (Γ(2 k + n + 1, -(k + n + 1) \text W(a x)) - (k + n + 1) Γ(2 k + n, -(k + n + 1) \text W(a x)))}{a n!} $$

or for a simpler case with the Imaginary Error function:

$$\int \sqrt{\text W(x)}dx=\frac{\sqrt\pi}{4}\text{erfi}\big(\sqrt{\text W(x)}\big)+x\sqrt{\text W(x)}-\frac{x}{2\sqrt{\text W(x)}}+C=C+\sum_{n=1}^\infty \frac{(-n)^{n - 1} x^n \text W^\frac32(x) \left((n + 1) Γ\left(n + \frac12, -(n + 1) \text W(x)\right) - Γ\left(n + \frac32, -(n + 1) \text W(x)\right)\right)}{(-(n + 1) \text W(x))^{n +\frac32} e^{n \text W(x)} n!} $$

Be careful not to cancel like terms when $x=0$. The problem here is that when another function was tried, there was no closed form: $$e^{\text W(x)+x}=e^ {\text W(x)}\sum_{k=0}^\infty \frac{x^k}{k!}\implies \int e^{\text W(x)+x} dx=\int e^ {\text W(x)}\sum_{n=0}^\infty \frac{x^n}{n!}dx=\sum_{k=1}^\infty \frac{(-1)^nx^k ((k + 2) Γ(k + 1, -(k + 2) \text W(x)) - Γ(k + 2, -(k + 2)\text W(x)))}{(k + 2)^{k+2} \text W^k(x) e^{k\text W(x)} k!} =?$$

which has no closed form in terms of any official special functions, but may possibly have a closed form with $Q^{-1}(a,z)$ function because:

$$Q^{-1}\left(3,e^{-x}\left(\frac {x^2}2+x+1\right)\right)=x,0\le x\le 1$$ Goal: @skbmoore’s solution is excellent, but is there an explicit expression for the coefficients

$$a_n=\left\{1,2,2,\frac{16}3,16,…\right\}=\frac{\frac{d^{n-1}}{dy^{n-1}}\left(\left(\frac{y-1}{e^{-y}\left(\frac{y^2}2+y+1\right)-\frac5{2e}}\right)^n\right)}{n!}$$

Also see this related post where the solution includes this function:

The positive root of the transcendental equation $$\ln x-\sqrt{x-1}+1=0$$

Тyma Gaidash
  • 12,081

3 Answers3

4

There is an efficient way to generate the coefficients

$$d_n = e^{-n}\frac{d^{n-1}}{dy^{n-1}}\Big( \frac{y-1}{e^{-y}(y^2/2+y+1) - 5/(2e)} \Big)^n\Big|_{y=1} $$ $$d_n=- \{2,4,32,384,6400,139536...\} \text{ for } n=1,2,...$$ Note the negative sign outside the leading bracket is meant to apply to each coefficient. Set $y \to y+1,$ and with algebra it can be shown that

$$d_n = \frac{d^{n-1}}{dy^{n-1}}\Big( \frac{y}{5/2(e^{-y}-1)+e^{-y}(2y+y^2/2)} \Big)^n\Big|_{y=0}$$

Interpret it in 'coefficient of' language. For a power series $A(y)=a_0+a_1y + ...$

$$ a_n= \frac{1}{n!}\frac{d^n}{dy^n} A(y)\Big|_{y=0} = [y^n]A(y)$$ Therefore $$d_n = (n-1)! \ [y^{n-1}] \Big( \frac{y}{5/2(e^{-y}-1)+e^{-y}(2y+y^2/2)} \Big)^n $$ $$ = (n-1)! \ [y^{-1}] \big(5/2(e^{-y}-1)+e^{-y}(2y+y^2/2)\big)^{-n} $$ $$ = (n-1)! \, [y^{n-1}] \big(\frac{5}{2y}(e^{-y}-1)+e^{-y}(2+y/2)\big)^{-n} $$ It has been written this way because the portion raised to the $-n$ power is now an ordinary power series, and everyone knows (or should know) how to calculate the coefficients recursively. That is, given

$$ \Big( \sum_{k=0}^\infty a_k \,x^{k} \Big)^{-n} = \sum_{m=0}^\infty c_m \, x^m, $$ with non-zero $a_0,$ the coefficients $c_m$ are found by

$$ c_0=a_0^{-n}$$ $$(*) \quad c_m=\frac{1}{m a_0} \, \sum_{k=1}^m \big( k(1-n)-m\big)a_k c_{m-k} $$

For this particular application, $$ \frac{5}{2y}(e^{-y}-1)+e^{-y}(2+y/2) = \sum_{k=0}^\infty \frac{(-y)^k}{k!}\big( 2 - \frac{k}{2} - \frac{5}{2(k+1)} \big) $$ so $$a_0=-1/2, \quad a_k=\frac{(-1)^k}{k!}\big(2 -\frac{k}{2} - \frac{5}{2(k+1)} \big) $$ Once the $c_n$ have been calculated, don't forget the multiplication by $(n-1)!$ to get the $d_n.$

user321120
  • 6,740
  • Thanks. If I were to combine each of these, then would I get:$$d_n=\frac{(n-1)!}{n a_0}\sum_{k=1}^n(k(1-p)-n)\frac{(-1)^k}{k!}\left(2-\frac k2-\frac5{2(k+1)}\right)c_{n-k},d_n=(n-1)!c_n,c_0=a_0^{-n}$$ Is there a way to find an explicit solution? – Тyma Gaidash Dec 02 '21 at 22:35
  • @TymaGaidash My first attempt was for an explicit formula, but I would have to use the Norlund polynomials twice, and even then I did not get something right. Then, the Norlund polynomials are not simple, and are best calculated with a recursion, so I decided to go the route presented. However, there are determinant methods to do a series reciprocal, and the partial Bell polynomials, but I don't think they are any easier. – user321120 Dec 02 '21 at 22:41
  • @Tyma I've never been unaccepted for a correct answer before. Just know I won't even look at your questions in the future. – user321120 Dec 07 '21 at 00:43
  • Thanks for remembering me, since you would need to if you will not click on my questions. Just know it is only fair to credit both answers, so the other answerer gets the bounty. If you do not respond, then you have made your choice… – Тyma Gaidash Dec 14 '21 at 22:34
1

Remark. (Not closed form, just the first few terms.)
$e^{-x}\left(\frac{x^2}2+x+1\right)$
When $x=0$ we have $y=1$. There are three series solutions for $x$ in terms of $y$ near $y=1$.
For the real solution, Maple says $$ x = -\sqrt [3]{6}(y-1)^{1/3}+\frac{{6}^{2/3}}{4} \left( y-1 \right) ^{2/3}-{ \frac {21\,(y-1)}{40}}+{\frac {101\,\sqrt [3]{6} \left( y- 1 \right) ^{4/3}}{480}}-{\frac {3049\,{6}^{2/3} \left( y-1 \right) ^{5 /3}}{33600}}+{\frac {11013\, \left( y-1 \right) ^{2}}{44800}}-{\frac { 733\,\sqrt [3]{6} \left( y-1 \right) ^{7/3}}{6400}}+{\frac {1760963\,{ 6}^{2/3} \left( y-1 \right) ^{8/3}}{32256000}}-{\frac {87686441\, \left( y-1 \right) ^{3}}{551936000}}+{\frac {34921261559\,\sqrt [3]{6 } \left( y-1 \right) ^{10/3}}{447068160000}}-{\frac {322388433709\,{6} ^{2/3} \left( y-1 \right) ^{11/3}}{8302694400000}}+{\frac { 670819407417\, \left( y-1 \right) ^{4}}{5740134400000}}-{\frac { 576727795744637\,\sqrt [3]{6} \left( y-1 \right) ^{13/3}}{ 9763968614400000}}+{\frac {5867539686420271\,{6}^{2/3} \left( y-1 \right) ^{14/3}}{195279372288000000}}-{\frac {257105912707053\, \left( y-1 \right) ^{5}}{2788065280000000}}+{\frac { 5035135228456419089\,\sqrt [3]{6} \left( y-1 \right) ^{16/3}}{ 106231978524672000000}}-{\frac {8774289894655573392527\,{6}^{2/3}}{ 358655502880604160000000} \left( y-1 \right) ^{{\frac{17}{3}}}}+O \left( \left( y-1 \right) ^{6} \right) $$

GEdgar
  • 111,679
  • You got the bounty since the other answer is already accepted, but maybe we will all know a more explicit series expansion in the future. Thanks. – Тyma Gaidash Dec 14 '21 at 13:44
0

Although this explicit formula exists, it is hard to use. However, we factor like so:

$$y=e^{-x}\left(\frac{x^2}2+x+1\right)\mathop=^{-x=w}\frac12e^w(w-(1+i))(w-(1-i))\iff e^w(w-(1+i))(w-(1-i))=2y $$

and use

On the generalization of the Lambert W function

Unfortunately, the series is outside the domain of $Q^{-1}(3,a)$:

$$Q(3,a)=e^{-a}\left(\frac{a^2}2+a+1\right)=z\implies a=-1-i+\sum_{n=1}^\infty\frac{(ie^{-1-i}nz)^n}{nn!}\sum_{k=0}^n\frac{(-i)^k(n+k-1)!}{k!(n-k-1)!(2n)^k}= (1+i)\left(-1+\frac1{\sqrt\pi}\sum_{n=1}^\infty\frac{n^{n-\frac12}\text K_{n-\frac12}(in)(i z)^n}{e^nn!}\right)$$

which works using Bessel K

Тyma Gaidash
  • 12,081