Lambert W function
In mathematics, the Lambert W function, also called the omega function or product logarithm, is a set of functions, namely the branches of the inverse relation of the function z = f(W) = WeW where eW is the exponential function and W is any complex number. In other words, the defining equation for W(z) is
for any complex number z.
Since the function ƒ is not injective, the relation W is multivalued (except at 0). If we restrict attention to real-valued W, the complex variable z is then replaced by the real variable x, and the relation is defined only for x ≥ −1/e, and is double-valued on (−1/e, 0). The additional constraint W ≥ −1 defines a single-valued function W0(x). We have W0(0) = 0 and W0(−1/e) = −1. Meanwhile, the lower branch has W ≤ −1 and is denoted W−1(x). It decreases from W−1(−1/e) = −1 to W−1(0−) = −∞.
The Lambert W relation 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'(t) = a y(t − 1).
- 1 Terminology
- 2 History
- 3 Calculus
- 4 Asymptotic expansions
- 5 Special values
- 6 Other formulas
- 7 Applications
- 8 Generalizations
- 9 Plots
- 10 Numerical evaluation
- 11 Software
- 12 See also
- 13 Notes
- 14 References
- 15 External links
Lambert first considered the related Lambert's Transcendental Equation in 1758, which led to a paper by Leonhard Euler in 1783 that discussed the special case of wew. However the inverse of wew was first described by Pólya and Szegő in 1925. The Lambert W function was "re-discovered" every decade or so in specialized applications but its full importance was not realized until the 1990s. When it was reported that the Lambert W function provides an exact solution to the quantum-mechanical double-well Dirac delta function model for equal charges—a fundamental problem in physics—Corless and developers of the Maple Computer algebra system made a library search to find that this function was in fact ubiquitous to nature.
(W is not differentiable for z = −1/e.) As a consequence, we get the following formula for the derivative of W:
Furthermore we have
One consequence of which (using the fact that ) is the identity:
The radius of convergence is 1/e, as may be seen by the ratio test. The function defined by this series can be extended to a holomorphic function defined on all complex numbers with a branch cut along the interval (−∞, −1/e]; this holomorphic function defines the principal branch of the Lambert W function.
For large values of x, W0 is asymptotic to
The other real branch, , defined in the interval (−∞, −1/e], has an approximation of the same form as x approaches zero, with in this case and .
Integer and complex powers
Integer powers of also admit simple Taylor (or Laurent) series expansions at
More generally, for , the Lagrange inversion formula gives
which is, in general, a Laurent series of order r. Equivalently, the latter can be written in the form of a Taylor expansion of powers of
which holds for any and .
For any non-zero algebraic number x, W(x) is a transcendental number. We can show this by contradiction: If W(x) were non-zero and algebraic (note that if x is non-zero then W(x) must be non-zero as well), then by the Lindemann–Weierstrass theorem, eW(x) must be transcendental, implying that x=W(x)eW(x) must also be transcendental, contradicting the condition that x is algebraic.
(the Omega constant)
There are several useful integration formulae involving the W function. Some of these include the following:
The second identity can be derived by making the substitution
- (by making the substitution )
The third identity may be derived from the second by making the substitution
Many equations involving exponentials can be solved using the W function. The general strategy is to move all instances of the unknown to one side of the equation and make it look like Y = XeX at which point the W function provides the value of the variable in X.
In other words :
More generally, the equation
can be transformed via the substitution
which yields the final solution
Whenever the complex infinite exponential tetration
converges, the Lambert W function provides the actual limit value as
where ln(z) denotes the principal branch of the complex log function. This can be shown be observing that
if c exists, so
which is the result which was to be found.
have the form 
has characteristic equation , leading to and , where is the branch index. If , only need be considered.
Granular and debris flow fronts and deposits, and the fronts of viscous fluids in natural events and in the laboratory experiments can be described by using the Lambert–Euler omega function as follows:
where H(x) is the debris flow height, x is the channel downstream position, L is the unified model parameter consisting of several physical and geometrical parameters of the flow, flow height and the hydraulic pressure gradient.
The Lambert W function was employed in the field of Neuroimaging for linking cerebral blood flow and oxygen consumption changes within a brain voxel, to the corresponding Blood Oxygenation Level Dependent (BOLD) signal.
The standard Lambert W function expresses exact solutions to transcendental algebraic equations (in x) of the form:
- An application to general relativity and quantum mechanics (quantum gravity) in lower dimensions, in fact a previously unknown link (unknown prior to ) between these two areas, where the right-hand-side of (1) is now a quadratic polynomial in x:
- and where r1 and r2 are real distinct constants, the roots of the quadratic polynomial. Here, the solution is a function has a single argument x but the terms like ri and ao are parameters of that function. In this respect, the generalization resembles the hypergeometric function and the Meijer G-function but it belongs to a different class of functions. When r1 = r2, both sides of (2) can be factored and reduced to (1) and thus the solution reduces to that of the standard W function. Eq. (2) expresses the equation governing the dilaton field, from which is derived the metric of the R=T 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 (1) (or (2)) is now a ratio of infinite order polynomials in x:
- where ri and si are distinct real constants and x is a function of the eigenenergy and the internuclear distance R. Eq. (3) with its specialized cases expressed in (1) and (2) is related to a large class of delay differential equations.
Applications of the Lambert "W" function in fundamental physical problems are not exhausted even for the standard case expressed in (1) as seen recently in the area of atomic, molecular, and optical physics.
The W function may be approximated using Newton's method, with successive approximations to (so ) being
The W function may also be approximated using Halley's method,
given in Corless et al. to compute W.
The LambertW function is implemented as LambertW in Maple,
lambertw in GP (and
glambertW in PARI),
lambertw in MATLAB, also
lambertw in octave with the 'specfun' package, as
lambert_w in Maxima, as
ProductLog (with a silent alias
LambertW) in Mathematica, and as
gsl_sf_lambert_Wm1 functions in special functions section of the GNU Scientific Library - GSL.
- Wright Omega function
- Lambert's trinomial equation
- Lagrange inversion theorem
- Experimental mathematics
- Holstein–Herring method
- R=T model
- Ross' π lemma
- Chow, Timothy Y. (1999), "What is a closed-form number?", American Mathematical Monthly 106 (5): 440–448, doi:10.2307/2589148, MR 1699262.
- Corless, R. M.; Gonnet, G. H.; Hare, D. E. G.; Jeffrey, D. J.; Knuth, D. E. (1996). "On the Lambert W function". Advances in Computational Mathematics 5: 329–359. doi:10.1007/BF02124750.
- Lambert JH, "Observationes variae in mathesin puram", Acta Helveticae physico-mathematico-anatomico-botanico-medica, Band III, 128–168, 1758 (facsimile)
- Euler, L. "De serie Lambertina Plurimisque eius insignibus proprietatibus." Acta Acad. Scient. Petropol. 2, 29–51, 1783. Reprinted in Euler, L. Opera Omnia, Series Prima, Vol. 6: Commentationes Algebraicae. Leipzig, Germany: Teubner, pp. 350–369, 1921. (facsimile)
- Pólya, George; Szegő, Gábor (1998) . Aufgaben und Lehrsätze der Analysis [Problems and Theorems in Analysis]. Berlin: Springer-Verlag.
- Corless, R. M.; Gonnet, G. H.; Hare, D. E. G.; Jeffrey, D. J. (1993). "Lambert's W function in Maple". The Maple Technical Newsletter (MapleTech) 9: 12–22.
- Approximation of the Lambert W function and the hyperpower function, Hoorfar, Abdolhossein; Hassani, Mehdi.
- B Ohayon., G Ron. (2013). "New approaches in designing a Zeeman Slower". Journal of Instrumentation 8 (02): P02016. doi:10.1088/1748-0221/8/02/P02016.
- Sotero, Roberto C.; Iturria-Medina, Yasser (2011). "From Blood oxygenation level dependent (BOLD) signals to brain temperature maps". Bull Math Biol 73 (11): 2731–47. doi:10.1007/s11538-011-9645-5. PMID 21409512.
- Scott, T. C.; Mann, R. B.; Martinez Ii, Roberto E. (2006). "General Relativity and Quantum Mechanics: Towards a Generalization of the Lambert W Function". AAECC (Applicable Algebra in Engineering, Communication and Computing) 17 (1): 41–47. arXiv:math-ph/0607011. doi:10.1007/s00200-006-0196-1.
- Scott, T. C.; Fee, G.; Grotendorst, J. (2013). "Asymptotic series of Generalized Lambert W Function". SIGSAM (ACM Special Interest Group in Symbolic and Algebraic Manipulation) 47 (185): 75–83.
- Farrugia, P. S.; Mann, R. B.; Scott, T. C. (2007). "N-body Gravity and the Schrödinger Equation". Class. Quantum Grav. 24 (18): 4647–4659. arXiv:gr-qc/0611144. doi:10.1088/0264-9381/24/18/006.
- Scott, T. C.; Aubert-Frécon, M.; Grotendorst, J. (2006). "New Approach for the Electronic Energies of the Hydrogen Molecular Ion". Chem. Phys. 324 (2–3): 323–338. arXiv:physics/0607081. doi:10.1016/j.chemphys.2005.10.031.
- Scott, T. C.; Lüchow, A.; Bressanini, D.; Morgan, J. D. III (2007). "The Nodal Surfaces of Helium Atom Eigenfunctions". Phys. Rev. A 75 (6): 060101. doi:10.1103/PhysRevA.75.060101.
- lambertw - MATLAB
- Maxima, a Computer Algebra System
- ProductLog at WolframAlpha
- Corless, R.; Gonnet, G.; Hare, D.; Jeffrey, D.; Knuth, Donald (1996). "On the Lambert W function". Advances in Computational Mathematics (Berlin, New York: Springer-Verlag) 5: 329–359. doi:10.1007/BF02124750. ISSN 1019-7168
- Chapeau-Blondeau, F. and Monir, A. (2002). "Evaluation of the Lambert W Function and Application to Generation of Generalized Gaussian Noise With Exponent 1/2". IEEE Trans. Signal Processing 50 (9).
- Francis et al. (2000). "Quantitative General Theory for Periodic Breathing". Circulation 102 (18): 2214. (Lambert function is used to solve delay-differential dynamics in human disease.)
- Hayes, B. (2005). "Why W?". American Scientist 93: 104–108.
- Roy, R.; Olver, F. W. J. (2010), "Lambert W function", in Olver, Frank W. J.; Lozier, Daniel M.; Boisvert, Ronald F.; Clark, Charles W., NIST Handbook of Mathematical Functions, Cambridge University Press, ISBN 978-0521192255, MR 2723248
- Stewart, Seán M. (2005). "A New Elementary Function for Our Curricula?" (PDF). Australian Senior Mathematics Journal (Australian Association of Mathematics Teachers) 19 (2): 8–26. ISSN 0819-4564. ERIC EJ720055. Lay summary.
- Veberic, D., "Having Fun with Lambert W(x) Function" arXiv:1003.1628 (2010); Veberic, D. (2012). "Lambert W function for applications in physics". Computer Physics Communications 183: 2622–2628. doi:10.1016/j.cpc.2012.07.008.
- National Institute of Science and Technology Digital Library - Lambert W
- MathWorld - Lambert W-Function
- Computing the Lambert W function
- Corless et al. Notes about Lambert W research
- Extreme Mathematics. Monographs on the Lambert W function, its numerical approximation and generalizations for W-like inverses of transcendental forms with repeated exponential towers.
- GPL C++ implementation with Halley's and Fritsch's iteration.
- Special Functions of the GNU Scientific Library - GSL