LambertW
The Lambert W function
Calling Sequence
Parameters
Description
Examples
References
LambertW(x)
LambertW(k, x)
x
-
algebraic expression
k
algebraic expression, understood to be an integer
The LambertW function satisfies
LambertW⁡x⁢ⅇLambertW⁡x=x
As the equation y⁢ⅇy=x has an infinite number of solutions y for each (non-zero) value of x, LambertW has an infinite number of branches. Exactly one of these branches is analytic at 0. In Maple this branch is referred to as the principal branch of LambertW, and is denoted by LambertW(x). The other branches all have a branch point at 0, and these branches are denoted in Maple by LambertW(k, x), where k is any non-zero integer. (The principal branch can also be referred to as LambertW(0, x).)
The principal branch and the pair of branches LambertW(-1, x) and LambertW(1, x) share an order 2 branch point at -exp(-1). The branch cut dividing these branches is the subset of the real line from −∞ to −ⅇ−1, and the values of the branches of LambertW on this branch cut are assigned using the rule of counter-clockwise continuity around the branch point. This means that LambertW(x) is real-valued for x in the range −ⅇ−1..∞, while the image of −∞..−ⅇ−1 under LambertW(x) is the curve −y⁢cot⁡y+I⁢y, for y in 0..π.
Similarly, the branch corresponding to -1, LambertW(-1, x), is real-valued on the interval −ⅇ−1..0, while the image of −∞..−ⅇ−1 under this branch is the curve −y⁢cot⁡y+I⁢y, for y in -Pi .. 0.
For all the branches other than the principal branch, the branch cut dividing them is the negative real axis. The branches are numbered up and down from the real axis (this is very similar to the way the branches of the logarithm are indexed by the multiple of 2⁢I⁢π which must be subtracted from the imaginary part to recover the principal branch). Again, the values of the branches of LambertW along the branch cut are determined by the rule of counter-clockwise continuity around the branch point at 0. Thus, the image of the negative real axis under the branch LambertW(k, x) is the curve −y⁢cot⁡y+I⁢y, for y in 2⁢k⁢π..2⁢k+1⁢π if 0<k and y in 2⁢k+1⁢π..2⁢k+2⁢π if k<−1. These curves, therefore, bound the ranges of the branches of LambertW, and in each case, the upper boundary of the region is included in the range of the corresponding branch.
The asymptotic behavior of LambertW at complex infinity and at 0 (for the non-principal branches) is given by
LambertWk,x∼logk,x−loglog⁡k,x+∑m=0∞⁢∑n=0∞cm,n⁢log⁡log⁡k,⁢xm+1log⁡k,⁢xm+n+1
where log⁡x denotes the principal branch of the logarithm, log⁡k,x=log⁡x+2⁢I⁢k⁢π and the c⁡m,n are constants independent of k. The expansion for LambertW(-1, x) is not valid for x tending to 0 along the negative real axis (the effect of the branch point at -exp(-1) must be considered), but holds otherwise.
The LambertW function is closely related to the tree generating function T⁡x popularized in the analysis of algorithms discipline. When Tn counts the number of distinct oriented trees with n labeled vertices and T⁡x=∑n=1∞⁡Tn⁢xnn!, then T⁡x=−LambertW⁡−x.
LambertW⁡0
0
LambertW⁡−exp⁡−1
−1
LambertW⁡1.5+2.5⁢I
0.9698925542+0.5301457549⁢I
LambertW⁡−1,−0.1
−3.577152064
LambertW⁡1,−52⁢π
5⁢I2⁢π
LambertW⁡100,π+exp⁡1⁢I
LambertW⁡100,π+I⁢ⅇ
evalf⁡
−5.017543738+627.4530224⁢I
The alias command can be used to shorten the name, if desired
alias⁡W=LambertW
W
solve⁡3⁢x<exp⁡x,x
−∞,−W⁡−13,−W⁡−1,−13,∞
diff⁡W⁡x,x
W⁡x1+W⁡x⁢x
int⁡cos⁡W⁡k,x,x
12+W⁡k,x2⁢x⁢cos⁡W⁡k,xW⁡k,x+x⁢sin⁡W⁡k,x2
Corless, R.M.; Gonnet, G.H.; Hare, D.E.G.; Jeffrey, D.J.; and Knuth, D.E. "On the Lambert W Function." Advances in Computational Mathematics, Vol. 5, (1996): 329-359.
See Also
alias
initialfunctions
Wrightomega
Download Help Document