Lambert W function
In mathematics, the Lambert W function, also called the omega function or product logarithm, is a multivalued function, namely the branches of the converse relation of the function f(w)=we^w , where w is any complex number and e^w is the exponential function. The function is named after Johann Lambert, who considered a related problem in 1758. Building on Lambert's work, Leonhard Euler described the W function per se in 1783. For each integer k there is one branch, denoted by W_k\left(z\right) , which is a complex-valued function of one complex argument. W_0 is known as the principal branch. These functions have the following property: if z and w are any complex numbers, then : w e^{w} = z holds if and only if : w=W_k(z) \ \ \text{ for some integer } k. When dealing with real numbers only, the two branches W_0 and W_{-1} suffice: for real numbers x and y the equation : y e^{y} = x can be solved for y only if x\geq\frac{-1}e ; yields y=W_0\left(x\right) if x\geq0 and the two values y=W_0\left(x\right) and y=W_{-1}\left(x\right) if \frac{-1}e\leq x . The Lambert W function's branches cannot be expressed in terms of elementary functions. It is useful in combinatorics, for instance, in the enumeration of trees. It can be used to solve various equations involving exponentials (e.g.…
In mathematics, the Lambert W function, also called the omega function or product logarithm, is a multivalued function, namely the branches of the converse relation of the function f(w)=we^w , where w is any complex number and e^w is the exponential function. The function is named after Johann Lambert, who considered a related problem in 1758. Building on Lambert's work, Leonhard Euler described the W function per se in 1783. For each integer k there is one branch, denoted by W_k\left(z\right) , which is a complex-valued function of one complex argument. W_0 is known as the principal branch. These functions have the following property: if z and w are any complex numbers, then w e^{w} = z holds if and only if w=W_k(z) \ \ \text{ for some integer } k. When dealing with real numbers only, the two branches W_0 and W_{-1} suffice: for real numbers x and y the equation y e^{y} = x can be solved for y only if x\geq\frac{-1}e ; yields y=W_0\left(x\right) if x\geq0 and the two values y=W_0\left(x\right) and y=W_{-1}\left(x\right) if \frac{-1}e\leq x . The Lambert W function's branches cannot be expressed in terms of elementary functions. It is useful in combinatorics, for instance, in the enumeration of trees. It can be used to solve various equations involving exponentials (e.g. the maxima of the Planck, Bose–Einstein, and Fermi–Dirac distributions) and also occurs in the solution of delay differential equations, such as y'\left(t\right)=a\ y\left(t-1\right) . In biochemistry, and in particular enzyme kinetics, an opened-form solution for the time-course kinetics analysis of Michaelis–Menten kinetics is described in terms of the Lambert W function. . Note the branch cut along the negative real axis, ending at -\frac1e . The name "product logarithm" can be understood as follows: since the inverse function of f\left(w\right)=e^w is termed the logarithm, it makes sense to call the inverse "function" of the product we^w the "product logarithm". Like the complex logarithm, it is multivalued and thus W is described as a converse relation rather than inverse function. It is related to the omega constant, which is equal to W_0\left(1\right) . x = x^m + q. Euler transformed this equation into the form x^a - x^b = (a - b) c x^{a + b}. Both authors derived a series solution for their equations. Once Euler had solved this equation, he considered the case . Taking limits, he derived the equation \ln x = c x^a. He then put and obtained a convergent series solution for the resulting equation, expressing in terms of . After taking derivatives with respect to and some manipulation, the standard form of the Lambert function is obtained. In 1993, it was reported that the Lambert function provides an exact solution to the quantum-mechanical double-well Dirac delta function model for equal charges —a fundamental problem in physics. Prompted by this, Rob Corless and developers of the Maple computer algebra system realized that "the Lambert W function has been widely used in many fields, but because of differing notation and the absence of a standard name, awareness of the function was not as high as it should have been." Another example where this function is found is in Michaelis–Menten kinetics. Although it was widely believed that the Lambert function cannot be expressed in terms of elementary (Liouvillian) functions, the first published proof did not appear until 2008. There are countably many branches of the function, denoted by , for integer ; being the main (or principal) branch. is defined for all complex numbers z while with is defined for all non-zero z, with and \lim\limits_{z\to 0}W_k(z)=\;-\infty, for all . The branch point for the principal branch is at z= -e^{-1} , with the standard branch cut extending along the negative real axis to - \infty + 0i . This branch cut separates the principal branch from the two branches and . In all branches with , there is a branch point at and a branch cut is conventionally taken along the entire negative real axis. The functions W_{k} (z), k \in \mathbb{Z} are all injective and their ranges are disjoint. The range of the entire multivalued function is the complex plane. The image of the real axis is the union of the real axis and the quadratrix of Hippias, the parametric curve . z\ e^z &= (x + i\ y)\ e^{x}\ (\cos y + i\ \sin y) \\ &= e^{x} (x\ \cos y\ -\ y\ \sin y)\ +\ i\ e^{x} (x\ \sin y\ +\ y\ \cos y) \\ \end{align} For \ n \neq 0\ , the branch cut for is the non-positive real axis, so that x\ \sin y\ +\ y\ \cos y = 0 \quad \Rightarrow \quad x = -y/\tan(y)\ , and (x\ \cos y\ -\ y\ \sin y)\ e^x ~\leq~ 0 ~. For \ n = 0\ , the branch cut for is the real axis with \ -\infty so that the inequality becomes (x\ \cos y - y\ \sin y)\ e^x \leq \frac{-1}{e} or (x\ \cos y - y\ \sin y)\ e^{x+1} ~\leq~ -1 ~. Inside the regions bounded by the above, there are no discontinuous changes in and those regions specify where the function is simply invertible, i.e. For each algebraic number z \ne 0 , the numbers W_k(z) are transcendental. This can be proved as follows. Suppose that W_k(z) is algebraic. Then by the Lindemann–Weierstrass theorem we have e^{W_k(z)} is transcendental, but e^{W_k(z)} = \frac{z}{W_k(z)} which is algebraic, giving a contradiction. z(1 + W) \frac{dW}{dz} = W \quad \text{for } z \neq -\frac{1}{e}. ( is not differentiable for .) As a consequence, one arrives at the following formula for the derivative of W: \frac{dW}{dz} = \frac{W(z)}{z(1 + W(z))} \quad \text{for } z \not\in \left\{0, -\frac{1}{e}\right\}. Using the identity , gives the following equivalent formula: \frac{dW}{dz} = \frac{1}{z + e^{W(z)}} \quad \text{for } z \neq -\frac{1}{e}. At the origin we have W'_0(0)=1. The n-th derivative of is of the form: \frac{d^{n}W}{dz^{n}} = \frac{P_{n}(W(z))}{(z + e^{W(z)})^{n}(W(z) + 1)^{n - 1}} \quad \text{for } n > 0,\, z \ne -\frac{1}{e}. Where is a polynomial function with coefficients defined in . If and only if is a root of , then is a root of the n-th derivative of . Taking the derivative of the n-th derivative of yields: \frac{d^{n + 1}W}{dz^{n + 1}} = \frac{(W(z) + 1)P_{n}'(W(z)) + (1 - 3n - nW(z))P_{n}(W(z))}{(z + e^{W(z)})^{n + 1}(W(z) + 1)^{n}} \quad \text{for } n > 0,\, z \ne -\frac{1}{e}. Inductively proving the n-th derivative equation. \int W(x)\,dx &= x W(x) - x + e^{W(x)} + C\\ & = x \left( W(x) - 1 + \frac{1}{W(x)} \right) + C. \end{align} (The last equation is more common in the literature but is undefined at ). One consequence of this (using the fact that ) is the identity \int_{0}^{e} W_0(x)\,dx = e - 1. By the Lagrange inversion theorem, the Taylor series of the principal branch W_0(x) around x=0 is: W_0(x)=\sum_{n=1}^\infty \frac{(-n)^{n-1}}{n!}x^n =x-x^2+\tfrac{3}{2}x^3-\tfrac{16}{6}x^4+\tfrac{125}{24}x^5-\cdots. The radius of convergence is 1/e by the ratio test, and the function defined by the series can be extended to a holomorphic function defined on all complex numbers except a branch cut along the interval (-\infty, -1/e] . For large values x\to\infty , the real function W_0(x) is asymptotic to \begin{align} W_0(x) &= L_1 - L_2 + \frac{L_2}{L_1} + \frac{L_2\left(-2 + L_2\right)}{2L_1^2} + \frac{L_2\left(6 - 9L_2 + 2L_2^2\right)}{6L_1^3} + \frac{L_2\left(-12 + 36L_2 - 22L_2^2 + 3L_2^3\right)}{12L_1^4} + \cdots \\[5pt] &= L_1 - L_2 + \sum_{\ell=1}^\infty \frac{1}{L_1^\ell}\sum_{m=1}^\ell \frac{(-1)^{\ell-m} \left[{\ell \atop \ell - m + 1}\right]}{m!} L_2^m, \end{align} where , , and is a non-negative Stirling number of the first kind. Keeping only the first two terms of the expansion, W_0(x) = \ln x - \ln \ln x + \mathcal{o}(1). The other real branch, , defined in the interval , has an approximation of the same form as approaches zero, in this case with and . W_0(x)^2 = \sum_{n=2}^\infty \frac{-2\left(-n\right)^{n-3}}{(n - 2)!} x^n = x^2 - 2x^3 + 4x^4 - \tfrac{25}{3}x^5 + 18x^6 - \cdots. More generally, for , the Lagrange inversion formula gives W_0(x)^r = \sum_{n=r}^\infty \frac{-r\left(-n\right)^{n - r - 1}}{(n - r)!} x^n, which is, in general, a Laurent series of order . Equivalently, the latter can be written in the form of a Taylor expansion of powers of : \left(\frac{W_0(x)}{x}\right)^r = e^{-r W_0(x)} = \sum_{n=0}^\infty \frac{r\left(n + r\right)^{n - 1}}{n!} \left(-x\right)^n, which holds for any and . for every y>1/e and x\ge-1/e , with equality only for x = y \ln(y) . The bound allows many other bounds to be derived, such as taking y=x+1 which gives the bound W_0(x) \le \ln\left(\frac{2x+1}{1+\ln(x+1)}\right). Bounds for the function W_0(-xe^{-x}) for x \ge 1 are obtained by Stewart. Roig-Solvas and Sznaier further showed that the principal branch W_0(x) can be bounded above and below in the interval -\frac{1}{e} \le x \le 0 as: \sqrt{e x + 1} - 1 \le W_{0}(x) \le \sqrt[3]{e x + 1} - 1 W_0(x e^x) &= x & \text{for } x &\geq -1,\\ W_{-1}(x e^x) &= x & \text{for } x &\leq -1. \end{align} Since is not injective, it does not always hold that , much like with the inverse trigonometric functions. For fixed and , the equation has two real solutions in , one of which is of course . Then, for and , as well as for and , is the other solution. Some other identities: \begin{align} & W(x)e^{W(x)} = x, \quad\text{therefore:}\\[5pt] & e^{W(x)} = \frac{x}{W(x)}, \qquad e^{-W(x)} = \frac{W(x)}{x}, \qquad e^{n W(x)} = \left(\frac{x}{W(x)}\right)^n. \end{align} \ln W_0(x) = \ln x - W_0(x) \quad \text{for } x > 0. W_0\left(x \ln x\right) = \ln x \quad\text{and}\quad e^{W_0\left(x \ln x\right)} = x \quad \text{for } \frac1e \leq x . W_{-1}\left(x \ln x\right) = \ln x \quad\text{and}\quad e^{W_{-1}\left(x \ln x\right)} = x \quad \text{for } 0 \begin{align} & W(x) = \ln \frac{x}{W(x)} &&\text{for } x \geq -\frac1e, \\[5pt] & W\left( \frac{nx^n}{W\left(x\right)^{n-1}} \right) = n W(x) &&\text{for } n, x > 0 \end{align} (which can be extended to other and if the correct branch is chosen). W(x) + W(y) = W\left(x y \left(\frac{1}{W(x)} + \frac{1}{W(y)}\right)\right) \quad \text{for } x, y > 0. Substituting in the definition: \begin{align} W_0\left(-\frac{\ln x}{x}\right) &= -\ln x &\text{for } 0 & e. \end{align} With Euler's iterated exponential : \begin{align}h(x) & = e^{-W(-\ln x)}\\ & = \frac{W(-\ln x)}{-\ln x} \quad \text{for } x \neq 1. \end{align} \forall c \in \left[ -\frac{1}{e},0 \right), \text{let } t=\frac{W_{-1}(c)}{W_0(c)} \geq 1 \implies W_0(c)=\frac{\ln t}{1-t}, W_{-1}(c)=\frac{t \ln t}{1-t} W_0\left(-\frac{\pi}{2}\right) = \frac{i\pi}{2} W_0\left(-\frac{1}{e}\right) = -1 W_0\left(2 \ln 2 \right) = \ln 2 W_0\left(x \ln x \right) = \ln x \quad \left(x \geqslant \tfrac{1}{e} \approx 0.36788\right) W_0\left(x^{x+1} \ln x \right) = x \ln x \quad \left(x > 0\right) W_0(0) = 0 W_0(1) = \Omega \approx 0.56714329 \quad (the omega constant) W_0(1) = e^{-W_0(1)} = \ln\frac{1}{W_0(1)} = -\ln W_0(1) W_0(e) = 1 W_0\left(e^{1+e}\right) = e W_0\left(\frac{\sqrt{e}}{2}\right) = \frac{1}{2} W_0\left(\frac{\sqrt[n]{e}}{n}\right) = \frac{1}{n} W_0(-1) \approx -0.31813+1.33723i Special values of the branch : W_{-1}\left(-\frac{\ln 2}{2}\right) = -\ln 4 -\frac{\pi}{2}W_0(-x)=\int_0^\pi\frac{\sin\left(\tfrac32 t\right)-xe^{\cos t}\sin\left(\tfrac52 t-\sin t\right)}{1-2xe^{\cos t}\cos(t-\sin t)+x^2e^{2\cos t}}\sin\left(\tfrac12 t\right)\,dt \quad \text{for } |x| Another representation of the principal branch was found by Kalugin–Jeffrey–Corless: W_0(x)=\frac{1}{\pi}\int_0^\pi\ln\left(1+x\frac{\sin t}{t}e^{t\cot t}\right)dt. The following continued fraction representation also holds for the principal branch: W_0(x) = \cfrac{x}{1+\cfrac{x}{1+\cfrac{x}{2+\cfrac{5x}{3+\cfrac{17x}{10+\cfrac{133x}{17+\cfrac{1927x}{190+\cfrac{13582711x}{94423+\ddots}}}}}}}}. Also, if : W_0(x) = \cfrac{x}{\exp \cfrac{x}{\exp \cfrac{x}{\ddots}}}. In turn, if , then W_0(x) = \ln \cfrac{x}{\ln \cfrac{x}{\ln \cfrac{x}{\ddots}}}. & \int_0^\pi W_0\left( 2\cot^2x \right)\sec^2 x\,dx = 4\sqrt{\pi}, \\[5pt] & \int_0^\infty \frac{W_0(x)}{x\sqrt{x}}\,dx = 2\sqrt{2\pi}, \\[5pt] & \int_0^\infty W_0\left(\frac{1}{x^2}\right)\,dx = \sqrt{2\pi}, \text{ and more generally}\\[5pt] & \int_0^\infty W_0\left(\frac{1}{x^N}\right)\,dx = N^{1-\frac1N} \Gamma\left(1-\frac1N\right)\qquad \text{for }N > 1 \end{align} where \Gamma denotes the gamma function. The first identity can be found by writing the Gaussian integral in polar coordinates. The second identity can be derived by making the substitution , which gives \begin{align} x & =ue^u, \\[5pt] \frac{dx}{du} & =(u+1)e^u. \end{align} Thus \begin{align} \int_0^\infty \frac{W_0(x)}{x\sqrt{x}}\,dx &=\int_0^\infty \frac{u}{ue^{u}\sqrt{ue^{u}}}(u+1)e^u \, du \\[5pt] &=\int_0^\infty \frac{u+1}{\sqrt{ue^u}}du \\[5pt] &=\int_0^\infty \frac{u+1}{\sqrt{u}}\frac{1}{\sqrt{e^u}}du\\[5pt] &=\int_0^\infty u^\tfrac12 e^{-\frac{u}{2}}du+\int_0^\infty u^{-\tfrac12} e^{-\frac{u}{2}}du\\[5pt] &=2\int_0^\infty (2w)^\tfrac12 e^{-w} \, dw+2\int_0^\infty (2w)^{-\tfrac12} e^{-w} \, dw && \quad (u =2w) \\[5pt] &=2\sqrt{2}\int_0^\infty w^\tfrac12 e^{-w} \, dw + \sqrt{2} \int_0^\infty w^{-\tfrac12} e^{-w} \, dw \\[5pt] &=2\sqrt{2} \cdot \Gamma \left (\tfrac32 \right )+\sqrt{2} \cdot \Gamma \left (\tfrac12 \right ) \\[5pt] &=2\sqrt{2} \left (\tfrac12\sqrt{\pi} \right )+\sqrt{2}\left(\sqrt{\pi}\right) \\[5pt] &=2\sqrt{2\pi}. \end{align} The third identity may be derived from the second by making the substitution and the first can also be derived from the third by the substitution . Deriving its generalization, the fourth identity, is only slightly more involved and can be done by substituting, in turn, u = \frac{1}{x^N} , t = W_0(u) , and z = \frac tN , observing that one obtains two integrals matching the definition of the gamma function, and finally using the properties of the gamma function to collect terms and simplify. Except for along the branch cut (where the integral does not converge), the principal branch of the Lambert function can be computed by the following integral: \begin{align} W_0(z)&=\frac{z}{2\pi}\int_{-\pi}^\pi\frac{\left(1-\nu\cot\nu\right)^2+\nu^2}{z+\nu\csc\left(\nu\right) e^{-\nu\cot\nu}} \, d\nu \\[5pt] &= \frac{z}{\pi} \int_0^\pi \frac{\left(1-\nu\cot\nu\right)^2+\nu^2}{z + \nu \csc\left(\nu\right) e^{-\nu\cot\nu}} \, d\nu, \end{align} where the two integral expressions are equivalent due to the symmetry of the integrand. \int \frac{ W(x) }{x} \, dx \; = \; \frac{ W(x)^2}{2} + W(x) + C {{math proof|title=1st proof|proof= Introduce substitution variable u= W(x) \rightarrow ue^u=x \;\;\;\; \frac{ d }{ du } ue^u = (u+1)e^u \int \frac{ W(x) }{x} \, dx \; = \; \int \frac{u}{ue^u}(u+1)e^u \, du \int \frac{ W(x) }{x} \, dx \; = \; \int \frac{ \cancel{\color{OliveGreen}{u}} }{ \cancel{\color{OliveGreen}{u}} \cancel{\color{BrickRed}{e^u}} }\left(u+1\right)\cancel{\color{BrickRed}{e^u}} \, du \int \frac{ W(x) }{x} \, dx \; = \; \int (u+1) \, du \int \frac{ W(x) }{x} \, dx \; = \; \frac{u^2}{2} + u + C u= W(x) \int \frac{ W(x) }{x} \, dx \; = \; \frac{ W(x) ^2}{2} + W(x) + C }} {{math proof|title=2nd proof|proof= W(x) e^{ W(x) } = x \rightarrow \frac{ W(x) }{ x } = e^{ - W(x) } \int \frac{ W(x) }{x} \, dx \; = \; \int e^{ - W(x) } \, dx u= W(x) \rightarrow ue^u=x \;\;\;\; \frac{ d }{ \, du } ue^u = \left(u+1\right)e^u \int \frac{ W(x) }{x} \, dx \; = \; \int e^{-u} (u+1) e^u \, du \int \frac{ W(x) }{x} \, dx \; = \; \int \cancel{\color{OliveGreen}{e^{ -u } }} \left( u+1 \right) \cancel{\color{OliveGreen}{ e^u }} \, du \int \frac{ W(x) }{x} \, dx \; = \; \int (u+1) \, du \int \frac{ W(x) }{x} \, dx \; = \; \frac{u^2}{2} + u + C u= W(x) \int \frac{ W(x) }{x} \, dx \; = \; \frac{ W(x) ^2}{2} + W(x) + C }} \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{ W\left(A e^{Bx}\right) ^2}{2B} + \frac{ W\left(A e^{Bx}\right) }{B} + C {{math proof|proof= \int W\left(A e^{Bx}\right) \, dx \; = \; \int W\left(A e^{Bx}\right) \, dx u = Bx \rightarrow \frac{u}{B} = x \;\;\;\; \frac{ d }{ du } \frac{u}{B} = \frac{1}{B} \int W\left(A e^{Bx}\right) \, dx \; = \; \int W\left(A e^{u}\right) \frac{1}{B} du v = e^u \rightarrow \ln\left(v\right) = u \;\;\;\; \frac{ d }{ dv } \ln\left(v\right) = \frac{1}{v} \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{1}{B} \int \frac{W\left(A v\right)}{v} dv w = Av \rightarrow \frac{w}{A} = v \;\;\;\; \frac{ d }{ dw } \frac{w}{A} = \frac{1}{A} \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{1}{B} \int \frac{\cancel{\color{OliveGreen}{A}} W(w)}{w} \cancel{\color{OliveGreen}{ \frac{1}{A} }} dw t = W\left(w\right) \rightarrow te^t=w \;\;\;\; \frac{ d }{ dt } te^t = \left(t+1\right)e^t \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{1}{B} \int \frac{t}{te^t}\left(t+1\right)e^t dt \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{1}{B} \int \frac{ \cancel{\color{OliveGreen}{t}} }{ \cancel{\color{OliveGreen}{t}} \cancel{\color{BrickRed}{e^t}} }\left(t+1\right) \cancel{\color{BrickRed}{e^t}} dt \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{1}{B} \int (t+1) dt \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{t^2}{2B} + \frac{t}{B} + C t = W\left(w\right) \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{ W\left(w\right) ^2}{2B} + \frac{ W\left(w\right) }{B} + C w = Av \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{ W\left(Av\right) ^2}{2B} + \frac{ W\left(Av\right) }{B} + C v = e^u \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{ W\left(Ae^u\right) ^2}{2B} + \frac{ W\left(Ae^u\right) }{B} + C u = Bx \int W\left(A e^{Bx}\right) \, dx \; = \; \frac{ W\left(Ae^{Bx}\right) ^2}{2B} + \frac{ W\left(Ae^{Bx}\right) }{B} + C }} \int \frac{ W(x) }{x^2} \, dx \; = \; \operatorname{Ei}\left(- W(x) \right) - e^{ - W(x) } + C {{math proof|proof= Introduce substitution variable u = W(x) , which gives us ue^u = x and \frac{ d }{ du } ue^u = \left(u+1\right)e^u \begin{align} \int \frac{ W(x) }{x^2} \, dx \; & = \; \int \frac{ u }{ \left(ue^u\right)^2 } \left(u+1\right)e^u du \\ & = \; \int \frac{ u+1 }{ ue^u } du \\ & = \; \int \frac{ u }{ ue^u } du \; + \; \int \frac{ 1 }{ ue^u } du \\ & = \; \int e^{-u} du \; + \; \int \frac{ e^{-u} }{ u } du \end{align} v = -u \rightarrow -v = u \;\;\;\; \frac{ d }{ dv } -v = -1 \int \frac{ W(x) }{x^2} \, dx \; = \; \int e^{v} \left(-1\right) dv \; + \; \int \frac{ e^{-u} }{ u } du \int \frac{ W(x) }{x^2} \, dx \; = \; - e^v + \operatorname{Ei}\left(-u\right) + C v = -u \int \frac{ W(x) }{x^2} \, dx \; = \; - e^{-u} + \operatorname{Ei}\left(-u\right) + C u = W(x) \begin{align} \int \frac{ W(x) }{x^2} \, dx \; &= \; - e^{- W(x) } + \operatorname{Ei}\left(- W(x) \right) + C \\ &= \; \operatorname{Ei}\left(- W(x) \right) - e^{- W(x) } + C \end{align} }} 2x+2 = 3^x (where is an unknown real number) can be solved by rewriting it as \begin{align} &(x+1)\ 3^{-x}=\frac{1}{2} & (\mbox{multiply by } 3^{-x}/2) \\ \Leftrightarrow\ &(-x-1)\ 3^{-x-1} = -\frac{1}{6} & (\mbox{multiply by } {-}1/3) \\ \Leftrightarrow\ &(\ln 3) (-x-1)\ e^{(\ln 3)(-x-1)} = -\frac{\ln 3}{6} & (\mbox{multiply by } \ln 3) \end{align} This last equation has the desired form and the solutions for real are: (\ln 3) (-x-1) = W_0\left(\frac{-\ln 3}{6}\right) \ \ \ \textrm{ or }\ \ \ (\ln 3) (-x-1) = W_{-1}\left(\frac{-\ln 3}{6}\right) and thus: x= -1-\frac{W_0\left(-\frac{\ln 3}{6}\right)}{\ln 3} = -0.79011\ldots \ \ \textrm{ or }\ \ x= -1-\frac{W_{-1}\left(-\frac{\ln 3}{6}\right)}{\ln 3} = 1.44456\ldots Generally, the solution to x = a+b\,e^{cx} is: x=a-\frac{1}{c}W(-bc\,e^{ac}) where , , and are complex constants, with and not equal to zero, and the function is of any integer order. Similarly, the general solution to the intersection of linear functions and exponentials a\,x + b = e^{c x} can be deduced to be: x=-\frac{b}{a} - \frac{1}{c}\,W\left(-\frac{c}{a}\,\exp\left(-\frac{bc}{a}\right)\right) where and must be non-zero, and other domain and branch considerations are necessary. Along with the topic of the so called Sophomore's dream the tetration function f(x) = x^x became a well known function. Its inverse function is a special case of the so called super root and it can be determined and displayed as follows: x^x = y The power rule gives following expression: \exp[x\ln(x)] = y The natural logarithm of that is taken: x\ln(x) = \ln(y) The Lambert W function is used now: \ln(x) = W_{0}[\ln(y)] And in the final step the second last equation will be divided by the last equation: x = \frac{\ln(y)}{W_{0}[\ln(y)]} A calculation example is made: x^x = 2 x = \ln(2) \div W_{0}[\ln(2)] \approx 1.559610469462369349970388768765 Cayley's formula states that the number of tree graphs on n labeled vertices is n^{n-2} , so that the number of trees with a designated root vertex is n^{n-1} . The exponential generating function of this counting sequence is: T(x) = \sum_{n=0}^\infty \frac{n^{n-1}}{n!} x^n. The class of rooted trees has a natural recurrence: a rooted tree is equivalent to a root vertex attached to a set of smaller rooted trees. Using the exponential formula for labeled combinatorial classes, this translates into the equation: T(x) = x e^{T(x)}, which implies -T(-x)e^{-T(-x)} = x and W_0(x) = -T(-x) . Reversing the argument, the Maclaurin series of W_0(x) around x=0 can be found directly using the Lagrange inversion theorem: W_0(x)=\sum_{n=1}^\infty \frac{(-n)^{n-1}}{n!}x^n, and this gives the standard analytic proof of Cayley's formula. But the Maclaurin series radius of convergence is limited to |x| because of the branch point at x=-1/e . Applying the unusual accelerating traveling-wave Ansatz in the form of \rho(\eta) = \rho\big(x-\frac{at^2}{2} \big) (where \rho , \eta , a, x and t are the density, the reduced variable, the acceleration, the spatial and the temporal variables) the fluid density of the corresponding Euler equation can be given with the help of the W function. H(x)= 1 + W \left((H(0) -1) e^{(H(0)-1)-\frac{x}{L}}\right), where is the debris flow height, is the channel downstream position, is the unified model parameter consisting of several physical and geometrical parameters of the flow, flow height and the hydraulic pressure gradient. In pipe flow, the Lambert W function is part of the explicit formulation of the Colebrook equation for finding the Darcy friction factor. This factor is used to determine the pressure drop through a straight run of pipe when the flow is turbulent. \begin{align} Q_\text{turb} &= \frac{Q_i}{\zeta_i} W_0\left[\zeta_i \, e^{(\zeta_i+\beta t/b)}\right]\\ Q_\text{lam} &= \frac{Q_i}{\xi_i} W_0\left[\xi_i \, e^{\left(\xi_i+\beta t/(b-\Gamma_1)\right)}\right] \end{align} where Q_i is the initial flow rate and t is time. In the crystal growth, the negative principal of the Lambert W-function can be used to calculate the distribution coefficient, k , and solute concentration in the melt, C_L , from the Scheil equation: \begin{align} & k = \frac{W_0(Z)}{\ln(1-fs)} \\ & C_L=\frac{C_0}{(1-fs)} e^{W_0(Z)}\\ & Z = \frac{C_S}{C_0} (1-fs) \ln(1-fs) \end{align} Y = \frac{X}{1-e^X} can be solved by means of the two real branches and : X(Y) = \begin{cases} W_{-1}\left( Y e^Y\right) - W_0\left( Y e^Y\right) = Y - W_0\left( Y e^Y\right) &\text{for }Y This application shows that the branch difference of the function can be employed in order to solve other transcendental equations. V = \frac{V_0}{1+W \left(e^{-\frac{x}{\sigma}}\right)}. A peculiarity of the solution is that each of the two fundamental solutions that compose the general solution of the Schrödinger equation is given by a combination of two confluent hypergeometric functions of an argument proportional to z = W \left(e^{-\frac{x}{\sigma}}\right). The Lambert function also appears in the exact solution for the bound state energy of the one dimensional Schrödinger equation with a Double Delta Potential. \ln K=\frac{a}{T}+b+c\ln T for some constants , , and . When (equal to ) is not zero the value or values of can be found where equals a given value as follows, where can be used for . \begin{align} -a&=(b-\ln K)T+cT\ln T\\ &=(b-\ln K)e^L+cLe^L\\[5pt] -\frac{a}{c}&=\left(\frac{b-\ln K}{c}+L\right)e^L\\[5pt] -\frac{a}{c}e^\frac{b-\ln K}{c}&=\left(L+\frac{b-\ln K}{c}\right)e^{L+\frac{b-\ln K}{c}}\\[5pt] L&=W\left(-\frac{a}{c}e^\frac{b-\ln K}{c}\right)+\frac{\ln K-b}{c}\\[5pt] T&=\exp\left(W\left(-\frac{a}{c}e^\frac{b-\ln K}{c}\right)+\frac{\ln K-b}{c}\right). \end{align} If and have the same sign there will be either two solutions or none (or one if the argument of is exactly ). (The upper solution may not be relevant.) If they have opposite signs, there will be one solution. Wien's displacement law is expressed as \nu _{\max }/T=\alpha =\mathrm{const} . With x=h\nu _{\max } / k_\mathrm{B}T and d\rho _{T}\left( x\right) /dx=0 , where \rho_{T} is the spectral energy energy density, one finds e^{-x}=1-\frac{x}{D} , where D is the number of degrees of freedom for spatial translation. The solution x=D+W\left( -De^{-D}\right) shows that the spectral energy density is dependent on the dimensionality of the universe. The family of ellipses x^2+(1-\varepsilon^2)y^2 =\varepsilon^2 centered at (0, 0) is parameterized by eccentricity \varepsilon . The orthogonal trajectories of this family are given by the differential equation \left ( \frac{1}{y}+y \right )dy=\left ( \frac{1}{x}-x \right )dx whose general solution is the family y^2= W_0(x^2\exp(-2C-x^2)) . x = r + \frac{1}{c} W\left( \frac{c\,e^{-c r}}{a_0} \right). Generalizations of the Lambert function include: An application to general relativity and quantum mechanics (quantum gravity) in lower dimensions, in fact a link (unknown prior to 2007 ) between these two areas, where the right-hand side of ( ) is replaced by a quadratic polynomial in : where and are real distinct constants, the roots of the quadratic polynomial. Here, the solution is a function which has a single argument but the terms like and are parameters of that function. In this respect, the generalization resembles the hypergeometric function and the Meijer function but it belongs to a different class of functions. When , both sides of ( ) can be factored and reduced to ( ) and thus the solution reduces to that of the standard function. Equation ( ) expresses the equation governing the dilaton field, from which is derived the metric of the or lineal two-body gravity problem in 1 + 1 dimensions (one spatial dimension and one time dimension) for the case of unequal rest masses, as well as the eigenenergies of the quantum-mechanical double-well Dirac delta function model for unequal charges in one dimension. Analytical solutions of the eigenenergies of a special case of the quantum mechanical three-body problem, namely the (three-dimensional) hydrogen molecule-ion. Here the right-hand side of ( ) is replaced by a ratio of infinite order polynomials in : {{NumBlk|| e^{-c x} = a_0 \frac{\displaystyle \prod_{i=1}^\infty (x-r_i )}{\displaystyle \prod_{i=1}^\infty (x-s_i)} | }} where and are distinct real constants and is a function of the eigenenergy and the internuclear distance . Equation ( ) with its specialized cases expressed in ( ) and ( ) is related to a large class of delay differential equations. G. H. Hardy's notion of a "false derivative" provides exact multiple roots to special cases of ( ). Applications of the Lambert function in fundamental physical problems are not exhausted even for the standard case expressed in ( ) as seen recently in the area of atomic, molecular, and optical physics. File:LambertWRe.png| File:LambertWIm.png| File:LambertWAbs.png| File:LambertWAll.png|Superimposition of the previous three plots w_{j+1}=w_j-\frac{w_j e^{w_j}-z}{w_j e^{w_j}+e^{w_j}}. Faster convergence may be obtained using Halley's method, w_{j+1}=w_j-\frac{w_j e^{w_j}-z}{w_j e^{w_j}+e^{w_j}-\dfrac{\left(w_j+2\right)\left(w_je^{w_j}-z\right)}{2w_j+2}} given in Corless et al. Because the computation time is dominated by the exponential function, this is only slightly more expensive than Newton's method. For real x \ge -1/e , it may be approximated by the quadratic-rate recursive formula of R. Iacono and J.P. Boyd: w_{n+1} (x) = \frac{w_{n} (x)}{1 + w_{n} (x)} \left( 1 + \log \left(\frac{x}{w_{n} (x)} \right) \right). Lajos Lóczi proves that by using this iteration with an appropriate starting value w_0 (x) , For the principal branch W_0: if x \in (e,\infty) : w_0 (x) = \log(x) - \log(\log(x)), if x \in (0, e): w_0 (x) = x/e, if x \in (-1/e, 0): w_0 (x) = \frac{ ex \log(1+\sqrt{1+ex}) }{ 1+ ex + \sqrt{1+ex} }, For the branch W_{-1}: if x \in (-1/4, 0): w_0 (x) = \log(-x) - \log(-\log(-x)), if x \in (-1/e, -1/4]: w_0 (x) = -1 - \sqrt{2}\sqrt{1+ex}, one can determine the maximum number of iteration steps in advance for any precision: if x \in (e,\infty) (Theorem 2.4): 0 if x \in (0, e) (Theorem 2.9): 0 if x \in (-1/e, 0): for the principal branch W_0 (Theorem 2.17): 0 for the branch W_{-1} (Theorem 2.23): 0 Toshio Fukushima has presented two fast methods for computing the real parts of the principal and secondary branches of the function. The first does not need to evaluate any trancendental function and is a combination of a series expansion around the branch point at z=-1/e and an iterative scheme to find an approximate solution based on pre-computed numerical constants. The second method does not use any iteration at all and is faster than the first, though more pre-computed constants are needed, and they need to be pre-computed for every floating point bit-size that is to be supported. In this method the function is evaluated as a conditional switch of minimax rational functions on transformed variables: W_0(z) = \begin{cases} X_k(x), & (z_{k-1} \leq z W_{-1}(z) = \begin{cases} Y_k(y), & (z_{k-1} \leq z where , , , and are transformations of : u=\ln{z}, \quad v=\ln(-z), \quad x=\sqrt{z+1/e}, \quad y=-z/(x+1/\sqrt{e}) . Here U_k(u) , V_k(v) , X_k(x) , and Y_k(y) are rational functions whose coefficients for different -values are listed in the referenced paper together with the z_k values that determine their subdomains. With higher degree polynomials in these rational functions the method can approximate the function more accurately. For example, when -1/e \leq z \leq 2.0082178115844727 , W_0(z) can be approximated to 24 bits of accuracy on 64-bit floating point values as W_0(z)\approx X_1(x)=\frac{\sum_i^4P_ix^i}{\sum_i^3Q_ix^i} where is defined with the transformation above and the coefficients P_i and Q_i are given in the table below. Fukushima also offers an approximation with 50 bits of accuracy on 64-bit floats that uses 8th- and 7th-degree polynomials. model Ross' lemma
References
No reference rows published for this article.
Cite this article
MLA
"Lambert W function." encyclopegia.org, 2026, https://encyclopegia.org/wiki/lambert-w-function. Accessed 24 November 2026.
Chicago
"Lambert W function." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/lambert-w-function.
APA
encyclopegia.org. (2026). Lambert W function. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/lambert-w-function
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| publication date | 2008 | Wikipedia |