In
mathematics, the Lambert function, also called the omega function or product logarithm, is a
multivalued function, namely the
branches of the
converse relation of the function , where is any
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
and is the
exponential function
The exponential function is a mathematical function denoted by f(x)=\exp(x) or e^x (where the argument is written as an exponent). Unless otherwise specified, the term generally refers to the positive-valued function of a real variable, ...
.
For each integer there is one branch, denoted by , which is a complex-valued function of one complex argument. is known as the
principal branch. These functions have the following property: if and are any complex numbers, then
:
holds if and only if
:
When dealing with real numbers only, the two branches and suffice: for real numbers and the equation
:
can be solved for only if ; we get if and the two values and if .
The Lambert relation cannot be expressed in terms of
elementary functions. It is useful in
combinatorics
Combinatorics is an area of mathematics primarily concerned with counting, both as a means and an end in obtaining results, and certain properties of finite structures. It is closely related to many other areas of mathematics and has many a ...
, 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 Fermi–Dirac may refer to:
* Fermi–Dirac statistics or Fermi–Dirac distribution
* Fermi–Dirac integral (disambiguation)
** Complete Fermi–Dirac integral
** Incomplete Fermi–Dirac integral
See also
* Fermi (disambiguation)
Enrico Fermi ...
distributions) and also occurs in the solution of
delay differential equations, such as . In
biochemistry
Biochemistry or biological chemistry is the study of chemical processes within and relating to living organisms. A sub-discipline of both chemistry and biology, biochemistry may be divided into three fields: structural biology, enzymology ...
, 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 function.
:
Terminology
The Lambert function is named after
Johann Heinrich Lambert. The principal branch is denoted in the
Digital Library of Mathematical Functions, and the branch is denoted there.
The notation convention chosen here (with and ) follows the canonical reference on the Lambert function by Corless, Gonnet, Hare, Jeffrey and
Knuth.
The name "product logarithm" can be understood as this: Since the
inverse function
In mathematics, the inverse function of a function (also called the inverse of ) is a function that undoes the operation of . The inverse of exists if and only if is bijective, and if it exists, is denoted by f^ .
For a function f\colon ...
of is called the
logarithm
In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a number to the base is the exponent to which must be raised, to produce . For example, since , the ''logarithm base'' 10 of ...
, it makes sense to call the inverse "function" of the
product as "product logarithm". (Technical note: like the
complex logarithm, it is multivalued and thus W is described as the
converse relation rather than inverse function.) It is related to the
Omega constant, which is equal to .
History
Lambert first considered the related ''Lambert's Transcendental Equation'' in 1758, which led to an article by
Leonhard Euler
Leonhard Euler ( , ; 15 April 170718 September 1783) was a Swiss mathematician, physicist, astronomer, geographer, logician and engineer who founded the studies of graph theory and topology and made pioneering and influential discoveries in ma ...
in 1783 that discussed the special case of .
The equation Lambert considered was
:
Euler transformed this equation into the form
:
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
:
He then put and obtained a convergent series solution for the resulting equation, expressing ''x'' in terms of ''c''.
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
''Acer'' () is a genus of trees and shrubs commonly known as maples. The genus is placed in the family Sapindaceae.Stevens, P. F. (2001 onwards). Angiosperm Phylogeny Website. Version 9, June 2008 nd more or less continuously updated since ht ...
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.
Elementary properties, branches and range
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''. We have and for all .
The branch point for the principal branch is at , with a branch cut that extends to along the negative real axis. 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 along the entire negative real axis.
The functions 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 .
Inverse

The range plot above also delineates the regions in the complex plane where the simple inverse relationship is true. ''f'' = ''ze
z'' implies that there exists an ''n'' such that , where ''n'' depends upon the value of ''z''. The value of the integer ''n'' changes abruptly when ''ze
z'' is at the branch cut of , which means that , except for where it is .
Defining , where ''x'' and ''y'' are real, and expressing ''e
z'' in polar coordinates, it is seen that
:
For
, the branch cut for is the non-positive real axis, so that
:
and
:
For
, the branch cut for is the real axis with
, so that the inequality becomes
:
Inside the regions bounded by the above, there are no discontinuous changes in , and those regions specify where the ''W'' function is simply invertible, i.e. .
Calculus
Derivative
By
implicit differentiation, one can show that all branches of satisfy the
differential equation
:
( is not
differentiable for .) As a consequence, we get the following formula for the derivative of ''W'':
:
Using the identity , we get the following equivalent formula:
:
At the origin we have
:
Integral
The function , and many expressions involving , can be
integrated using the
substitution , i.e. :
:
(The last equation is more common in the literature but is undefined at ). One consequence of this (using the fact that ) is the identity
:
Asymptotic expansions
The
Taylor series of around 0 can be found using the
Lagrange inversion theorem and is given by
:
The
radius of convergence is , 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 ; this holomorphic function defines the
principal branch of the Lambert function.
For large values of , is asymptotic to
:
where , , and is a non-negative
Stirling number of the first kind
In mathematics, especially in combinatorics, Stirling numbers of the first kind arise in the study of permutations. In particular, the Stirling numbers of the first kind count permutations according to their number of cycles (counting fixed poin ...
.
Keeping only the first two terms of the expansion,
:
The other real branch, , defined in the interval , has an approximation of the same form as approaches zero, with in this case and .
Integer and complex powers
Integer powers of also admit simple
Taylor (or
Laurent) series expansions at zero:
:
More generally, for , the
Lagrange inversion formula gives
:
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 :
:
which holds for any and .
Bounds and inequalities
A number of non-asymptotic bounds are known for the Lambert function.
Hoorfar and Hassani showed that the following bound holds for :
:
They also showed the general bound
:
for every
and
, with equality only for
.
The bound allows many other bounds to be made, such as taking
which gives the bound
:
In 2013 it was proven
that the branch can be bounded as follows:
:
:Roberto Iacono and John P. Boyd enhanced the bounds as following:
:
Identities

A few identities follow from the definition:
:
Note that, 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:
:
:
:
:
:
::(which can be extended to other and if the correct branch is chosen).
:
Substituting in the definition:
:
With Euler's iterated exponential :
:
Special values
The following are special values of the principal branch:
:
:
:
:
:
:
(the
omega constant).
:
:
:
:
Representations
The principal branch of the Lambert function can be represented by a proper integral, due to Poisson:
:
On the wider domain , the considerably simpler representation was found by Mező:
:
Another representation of the principal branch was found by the same author
and previously by Kalugin-Jeffrey-Corless:
:
The following
continued fraction representation also holds for the principal branch:
:
Also, if :
:
In turn, if , then
:
Other formulas
Definite integrals
There are several useful definite integral formulas involving the principal branch of the function, including the following:
:
The first identity can be found by writing the
Gaussian integral in
polar coordinates
In mathematics, the polar coordinate system is a two-dimensional coordinate system in which each point on a plane is determined by a distance from a reference point and an angle from a reference direction. The reference point (analogous to t ...
.
The second identity can be derived by making the substitution , which gives
:
Thus
:
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 .
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:
:
where the two integral expressions are equivalent due to the symmetry of the integrand.
Indefinite integrals
Applications
Solving equations
The Lambert function is used to solve equations in which the unknown quantity occurs both in the base and in the exponent, or both inside and outside of a logarithm. The strategy is to convert such an equation into one of the form and then to solve for using the function.
For example, the equation
:
(where is an unknown real number) can be solved by rewriting it as
:
This last equation has the desired form and the solutions for real ''x'' are:
:
and thus:
:
Generally, the solution to
:
is:
:
where ''a'', ''b'', and ''c'' are complex constants, with ''b'' and ''c'' not equal to zero, and the ''W'' function is of any integer order.
Viscous flows
Granular and debris flow fronts and deposits, and the fronts of viscous fluids in natural events and in laboratory experiments can be described by using the Lambert–Euler omega function as follows:
:
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
In fluid mechanics, pipe flow is a type of liquid flow within a closed conduit, such as a pipe or tube. The other type of flow within a conduit is open channel flow.
These two types of flow are similar in many ways, but differ in one important as ...
, 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.
Time dependent flow in simple branch hydraulic systems
The principal branch of the Lambert function was employed in the field of
mechanical engineering
Mechanical engineering is the study of physical machines that may involve force and movement. It is an engineering branch that combines engineering physics and mathematics principles with materials science, to design, analyze, manufacture, ...
, in the study of time dependent transfer of
Newtonian fluids between two reservoirs with varying free surface levels, using centrifugal pumps. The Lambert function provided an exact solution to the flow rate of fluid in both the laminar and turbulent regimes:
where
is the initial flow rate and
is time.
Neuroimaging
The Lambert 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.
Chemical engineering
The Lambert function was employed in the field of chemical engineering for modelling the porous electrode film thickness in a
glassy carbon based
supercapacitor
A supercapacitor (SC), also called an ultracapacitor, is a high-capacity capacitor, with a capacitance value much higher than other capacitors but with lower voltage limits. It bridges the gap between electrolytic capacitors and rechargeable ...
for electrochemical energy storage. The Lambert function turned out to be the exact solution for a gas phase thermal activation process where growth of carbon film and combustion of the same film compete with each other.
Crystal growth
In the crystal growth, the distribution of solute can be obtained by using the
Scheil equation. So the negative principal of the Lambert W-function can be used to calculate the distribution coefficient,
:
Materials science
The Lambert function was employed in the field of
epitaxial film growth for the determination of the critical
dislocation
In materials science, a dislocation or Taylor's dislocation is a linear crystallographic defect or irregularity within a crystal structure that contains an abrupt change in the arrangement of atoms. The movement of dislocations allow atoms to ...
onset film thickness. This is the calculated thickness of an epitaxial film, where due to thermodynamic principles the film will develop crystallographic dislocations in order to minimise the elastic energy stored in the films. Prior to application of Lambert for this problem, the critical thickness had to be determined via solving an implicit equation. Lambert turns it in an explicit equation for analytical handling with ease.
Porous media
The Lambert function has been employed in the field of fluid flow in porous media to model the tilt of an interface separating two gravitationally segregated fluids in a homogeneous tilted porous bed of constant dip and thickness where the heavier fluid, injected at the bottom end, displaces the lighter fluid that is produced at the same rate from the top end. The principal branch of the solution corresponds to stable displacements while the −1 branch applies if the displacement is unstable with the heavier fluid running underneath the lighter fluid.
Bernoulli numbers and Todd genus
The equation (linked with the generating functions of
Bernoulli numbers and
Todd genus):
:
can be solved by means of the two real branches and :
:
This application shows that the branch difference of the function can be employed in order to solve other transcendental equations.
Statistics
The centroid of a set of histograms defined with respect to the symmetrized Kullback–Leibler divergence (also called the Jeffreys divergence ) has a closed form using the Lambert function.
Pooling of tests for infectious diseases
Solving for the optimal group size to pool tests so that at least one individual is infected involves the Lambert function.
Exact solutions of the Schrödinger equation
The Lambert function appears in a quantum-mechanical potential, which affords the fifth – next to those of the harmonic oscillator plus centrifugal, the Coulomb plus inverse square, the Morse, and the
inverse square root potential
Inverse or invert may refer to:
Science and mathematics
* Inverse (logic), a type of conditional sentence which is an immediate inference made from another conditional sentence
* Additive inverse (negation), the inverse of a number that, when a ...
– exact solution to the stationary one-dimensional Schrödinger equation in terms of the confluent hypergeometric functions. The potential is given as
:
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
:
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.
Exact solutions of the Einstein vacuum equations
In the
Schwarzschild metric solution of the Einstein vacuum equations, the function is needed to go from the
Eddington–Finkelstein coordinates to the Schwarzschild coordinates. For this reason, it also appears in the construction of the
Kruskal–Szekeres coordinates.
Resonances of the delta-shell potential
The s-wave resonances of the delta-shell potential can be written exactly in terms of the Lambert function.
Thermodynamic equilibrium
If a reaction involves reactants and products having
heat capacities that are constant with temperature then the equilibrium constant obeys
:
for some constants , , and . When (equal to ) is not zero we can find the value or values of where equals a given value as follows, where we use for .
:
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.
Phase separation of polymer mixtures
In the calculation of the phase diagram of thermodynamically incompatible polymer mixtures according to the
Edmond-Ogston model, the solutions for binodal and tie-lines are formulated in terms of Lambert functions.
Wien's displacement law in a D-dimensional universe
Wien's displacement law is expressed as
. With
and
, where
is the spectral energy energy density, one finds
. The solution
shows that the spectral energy density is dependent on the dimensionality of the universe.
AdS/CFT correspondence
The classical finite-size corrections to the dispersion relations of
giant magnon
In folklore, giants (from Ancient Greek: ''gigas'', cognate giga-) are beings of human-like appearance, but are at times prodigious in size and strength or bear an otherwise notable appearance. The word ''giant'' is first attested in 1297 ...
s, single spikes and
GKP string GKP may refer to:
* German Kino Plus, an American German-language television channel
* Gorakhpur Junction railway station
* Gulf Keystone Petroleum, a British oil and gas exploration company operating in Iraqi Kurdistan
* Guinea Kpelle language
* ...
s can be expressed in terms of the Lambert function.
Epidemiology
In the limit of the
SIR model
Compartmental models are a very general modelling technique. They are often applied to the mathematical modelling of infectious diseases. The population is assigned to compartments with labels – for example, S, I, or R, (Susceptible, Infectious ...
, the proportion of susceptible and recovered individuals has a solution in terms of the Lambert function.
Determination of the time of flight of a projectile
The total time of the journey of a projectile which experiences air resistance proportional to its velocity
can be determined in exact form by using the Lambert function.
Electromagnetic surface wave propagation
The transcendental equation that appears in the determination of the propagation wave number of an electromagnetic axially symmetric surface wave (a low-attenuation single TM01 mode) propagating in a cylindrical metallic wire gives rise to an equation like (where and clump together the geometrical and physical factors of the problem), which is solved by the Lambert function. The first solution to this problem, due to Sommerfeld ''circa'' 1898, already contained an iterative method to determine the value of the Lambert function.
Orthogonal trajectories of real ellipses
The family of ellipses
centered at
is parameterized by eccentricity
. The orthogonal trajectories of this family are given by the differential equation
whose general solution is the family
.
Generalizations
The standard Lambert function expresses exact solutions to ''transcendental algebraic'' equations (in ) of the form:
where , and are real constants. The solution is
Generalizations of the Lambert function include:
- An application to
general relativity
General relativity, also known as the general theory of relativity and Einstein's theory of gravity, is the geometric theory of gravitation published by Albert Einstein in 1915 and is the current description of gravitation in modern physics. ...
and quantum mechanics
Quantum mechanics is a fundamental theory in physics that provides a description of the physical properties of nature at the scale of atoms and subatomic particles. It is the foundation of all quantum physics including quantum chemistry, q ...
(quantum gravity
Quantum gravity (QG) is a field of theoretical physics that seeks to describe gravity according to the principles of quantum mechanics; it deals with environments in which neither gravitational nor quantum effects can be ignored, such as in the v ...
) 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 ''x'':
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
In particle physics, the hypothetical dilaton particle is a particle of a scalar field \varphi that appears in theories with Dimension (mathematics and physics)#Additional dimensions, extra dimensions when the volume of the compactified dimensions ...
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 :
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.
Plots
File:LambertWRe.png,
File:LambertWIm.png,
File:LambertWAbs.png,
File:LambertWAll.png, Superimposition of the previous three plots
Numerical evaluation
The function may be approximated using
Newton's method, with successive approximations to (so ) being
:
The function may also be approximated using
Halley's method,
:
given in Corless et al.
to compute .
For real
, it could be approximated by the quadratic-rate recursive formula of R. Iacono and J.P. Boyd:
:
Lajos Lóczi proves that by choosing appropriate
,
* if
:
* if
* if
** for the principal branch
:
** for the branch
:
***
for
***
for
one can determine the maximum number of iteration steps in advance for any precision:
* if
(Theorem 2.4):
* if
(Theorem 2.9):
* if
** for the principal branch
(Theorem 2.17):
** for the branch
(Theorem 2.23):
Software
The Lambert function is implemented as
LambertW
in Maple,
lambertw
in
PARI/GP, GP (and
glambertW
in
PARI),
lambertw
in
Matlab
MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementa ...
, also
lambertw
in
Octave with the
specfun
package, as
lambert_w
in Maxima, as
ProductLog
(with a silent alias
LambertW
) in
Mathematica
Wolfram Mathematica is a software system with built-in libraries for several areas of technical computing that allow machine learning, statistics, symbolic computation, data manipulation, network analysis, time series analysis, NLP, optimi ...
, as
lambertw
in Python
scipy's special function package, as
LambertW
in Perl's
ntheory
module, and as
gsl_sf_lambert_W0
,
gsl_sf_lambert_Wm1
functions in th
special functionssection of th
GNU Scientific Library(GSL). In th
the calls are
lambert_w0
,
lambert_wm1
,
lambert_w0_prime
, and
lambert_wm1_prime
. In
R, the Lambert function is implemented as the
lambertW0
and
lambertWm1
functions in the
lamW
package.
C++ code for all the branches of the complex Lambert function is available on the homepage of István Mező.
The webpage of István Mező
/ref>
See also
* Wright Omega function
* Lambert's trinomial equation
In elementary algebra, a trinomial is a polynomial consisting of three terms or monomials.
Examples of trinomial expressions
# 3x + 5y + 8z with x, y, z variables
# 3t + 9s^2 + 3y^3 with t, s, y variables
# 3ts + 9t + 5s with t, s variables
# ...
* Lagrange inversion theorem
* Experimental mathematics
* Holstein–Herring method
* model
* Ross' lemma
Notes
References
*
*
* (Lambert function is used to solve delay-differential dynamics in human disease.)
*
*
*
Veberic, D., "Having Fun with Lambert ''W''(''x'') Function" arXiv:1003.1628 (2010)
*
External links
National Institute of Science and Technology Digital Library – Lambert
Corless et al. Notes about Lambert research
* GP
C++ implementation
with Halley's and Fritsch's iteration.
of th
GNU Scientific Library
– GSL
{{DEFAULTSORT:Lambert W Function
Special functions