The product logarithm Lambert W function plotted in the complex plane from−2 − 2i to2 + 2iThe graph of for real and. The upper branch (blue) with is the graph of the function (principal branch), the lower branch (magenta) with is the graph of the function. The minimum value of is at.
Inmathematics, theLambert W function, also called theomega function orproduct logarithm,[1] is amultivalued function, namely thebranches of theconverse relation of the function, wherew is anycomplex number and is theexponential function. The function is named afterJohann Lambert, who considered a related problem in 1758. Building on Lambert's work,Leonhard Euler described the W function per se in 1783.[2] Despite its early origins and wide use, its properties were not widely recognized until the 1990s thanks primarily to the work of Corless.
For each integer there is one branch, denoted by, which is a complex-valued function of one complex argument. is known as theprincipal 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; yields if and the two values and if.
Main branch of the Lambert W function in the complex plane, plotted withdomain coloring. Note thebranch cut along the negative real axis, ending at.The modulus of the principal branch of the Lambert W function, colored according to
The notation convention chosen here (with and) follows the canonical reference on the Lambert W function by Corless, Gonnet, Hare, Jeffrey andKnuth.[4]
The name "product logarithm" can be understood as follows: since theinverse function of is termed thelogarithm, it makes sense to call the inverse "function" of theproduct the "product logarithm". (Technical note: like thecomplex logarithm, it is multivalued and thus W is described as aconverse relation rather than inverse function.) It is related to theomega constant, which is equal to.
Lambert first considered the relatedLambert's Transcendental Equation in 1758,[5] which led to an article byLeonhard Euler in 1783[6] 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 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-mechanicaldouble-well Dirac delta function model for equal charges[7]—a fundamental problem in physics. Prompted by this, Rob Corless and developers of theMaplecomputer 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."[4][8]
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.[10]
The range of theW function, showing all branches. The black curves (including the real axis) form the image of the real axis, the orange curves are the image of the imaginary axis. The purple curve and circle are the image of a small circle around the pointz = 0; the red curves are the image of a small circle around the pointz = −1/e.Plot of the imaginary part ofWn(x +iy) for branchesn = −2, −1, 0, 1, 2. The plot is similar to that of the multivaluedcomplex logarithm function except that the spacing between sheets is not constant and the connection of the principal sheet is different
There are countably many branches of theW function, denoted byWk(z), for integerk;W0(z) being the main (or principal) branch.W0(z) is defined for all complex numbersz whileWk(z) withk ≠ 0 is defined for all non-zeroz, withW0(0) = 0 and for allk ≠ 0.
The branch point for the principal branch is at, with the standard branch cut extending along the negative real axis to−∞+0i. This branch cut separates the principal branch from the two branchesW−1 andW1. In all branchesWk withk ≠ 0, there is a branch point atz = 0 and a branch cut is conventionally taken along the entire negative real axis.
The functionsWk(z),k ∈Z are allinjective and their ranges are disjoint. The range of the entire multivalued functionW is the complex plane. The image of the real axis is the union of the real axis and thequadratrix of Hippias, the parametric curvew = −t cott +it.
Regions of the complex plane for whichW(n,zez) =z, wherez =x +iy. The darker boundaries of a particular region are included in the lighter region of the same color. The point at{−1, 0} is included in both then = −1 (blue) region and then = 0 (gray) region. Horizontal grid lines are in multiples ofπ.
The range plot above also delineates the regions in the complex plane where the simple inverse relationship is true. implies that there exists an such that, where depends upon the value of. The value of the integer changes abruptly when is at the branch cut of, which means that ≤ 0, except for where it is ≤ −1/.
Defining, where and are real, and expressing 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 function is simply invertible, i.e..
For each algebraic number, the numbers are transcendental. This can be proved as follows. Suppose that is algebraic. Then by theLindemann–Weierstrass theorem we have is transcendental, but which is algebraic, giving a contradiction.
The other real branch,W−1, defined in the interval[−1/e, 0), has an approximation of the same form asx approaches zero, in this case withL1 = ln(−x) andL2 = ln(−ln(−x)).[4]
A plot ofWj(xex) where blue is forj = 0 and red is forj = −1. The diagonal line represents the intervals whereWj(xex) =x.The product logarithm LambertW functionW2(z) plotted in the complex plane from−2 − 2i to2 + 2i
A few identities follow from the definition:
Sincef(x) =xex is notinjective, it does not always hold thatW(f(x)) =x, much like with theinverse trigonometric functions. For fixedx < 0 andx ≠ −1, the equationxex =yey has two real solutions iny, one of which is of coursey =x. Then, fori = 0 andx < −1, as well as fori = −1 andx ∈ (−1, 0),y =Wi(xex) is the other solution.
The second identity can be derived by making the substitutionu =W0(x), which gives
Thus
The third identity may be derived from the second by making the substitutionu =x−2 and the first can also be derived from the third by the substitutionz =1/√2 tanx. Deriving its generalization, the fourth identity, is only slightly more involved and can be done by substituting, in turn,,, and, 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 forz along the branch cut(−∞, −1/e] (where the integral does not converge), the principal branch of the LambertW function can be computed by the following integral:[25]
where the two integral expressions are equivalent due to the symmetry of the integrand.
The LambertW 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 formzez =w and then to solve forz using theW function.
For example, the equation
(wherex is an unknownreal number) can be solved by rewriting it as
This last equation has the desired form and the solutions for realx are:
and thus:
Generally, the solution to
is:
wherea,b, andc are complex constants, withb andc not equal to zero, and theW function is of any integer order.
Along with the topic of the so calledSophomore's dream thetetration function 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:
The power rule gives following expression:
The natural logarithm of that is taken:
The Lambert W function is used now:
And in the final step the second last equation will be divided by the last equation:
Cayley's formula states that the number oftree graphs onn labeled vertices is, so that the number of trees with a designated root vertex is. Theexponential generating function of this counting sequence is:
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 theexponential formula for labeled combinatorial classes,[26] this translates into the equation:
and this gives the standardanalytic proof of Cayley's formula. But the Maclaurin series radius of convergenceis limited to because of the branch point at.
Applying the unusual acceleratingtraveling-waveAnsatz in the form of (where,, a, x and t are the density, the reduced variable, the acceleration, the spatial and the temporal variables) the fluiddensity of the correspondingEuler equation can be given with the help of the W function.[27]
Granular anddebris 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:
whereH(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.
Inpipe flow, the Lambert W function is part of the explicit formulation of theColebrook equation for finding theDarcy friction factor. This factor is used to determine the pressure drop through a straight run of pipe when the flow isturbulent.[28]
Time-dependent flow in simple branch hydraulic systems
The principal branch of the LambertW function is employed in the field ofmechanical engineering, in the study of time dependent transfer ofNewtonian fluids between two reservoirs with varying free surface levels, using centrifugal pumps.[29] The LambertW 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.
The LambertW function is employed in the field of neuroimaging for linking cerebral blood flow and oxygen consumption changes within a brainvoxel, to the corresponding blood oxygenation level dependent (BOLD) signal.[30]
The LambertW function is employed in the field of chemical engineering for modeling the porous electrode film thickness in aglassy carbon basedsupercapacitor for electrochemical energy storage. The LambertW function provides an exact solution for a gas phase thermal activation process where growth of carbon film and combustion of the same film compete with each other.[31][32]
In thecrystal growth, the negative principal of the Lambert W-function can be used to calculate the distribution coefficient,, and solute concentration in the melt,,[33][34] from theScheil equation:
The LambertW function is employed in the field ofepitaxial film growth for the determination of the criticaldislocation 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 theelastic energy stored in the films. Prior to application of LambertW for this problem, the critical thickness had to be determined via solving an implicit equation. LambertW turns it in an explicit equation for analytical handling with ease.[35]
It was shown that a W-function describes the relation between voltage, current and resistance in a diode.[36]
The use of the LambertW Function to analytically and exactly solve the terminals' current and voltage as explicit functions of each other in a circuit model of a diode with both series and shunt resistances was first reported in the year 2000.[37]
The LambertW Function was introduced into compact modeling of MOSFETs in 2003 as a useful mathematical tool to explicitly describe the surface potential in undoped channels.[38]
The LambertW function-based explicit analytic solution of the illuminated photovoltaic solar cell single-diode model with parasitic series and shunt resistance was published in 2004.[39]
The LambertW 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.[40]
The centroid of a set of histograms defined with respect to the symmetrizedKullback–Leibler divergence (also called the Jeffreys divergence[42]) has a closed form using the LambertW function.[43]
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[47]
The LambertW function also appears in the exact solution for thebound state energy of the one dimensional Schrödinger equation with aDouble Delta Potential.
InQuantum chromodynamics, thequantum field theory of theStrong interaction, thecoupling constant is computed perturbatively, the order n corresponding toFeynman diagrams including n quantum loops.[48] The first order,n = 1, solution is exact (at that order) and analytical. At higher orders,n > 1, there is no exact and analytical solution and one typically uses aniterative method to furnish an approximate solution. However, for second order,n = 2, the Lambert function provides an exact (if non-analytical) solution.[48]
If a reaction involves reactants and products havingheat capacities that are constant with temperature then the equilibrium constantK obeys
for some constantsa,b, andc. Whenc (equal toΔCp/R) is not zero the value or values ofT can be found whereK equals a given value as follows, whereL can be used forlnT.
Ifa andc have the same sign there will be either two solutions or none (or one if the argument ofW is exactly−1/e). (The upper solution may not be relevant.) If they have opposite signs, there will be one solution.
In the calculation of the phase diagram of thermodynamically incompatible polymer mixtures according to theEdmond-Ogston model, the solutions for binodal and tie-lines are formulated in terms of LambertW functions.[50]
Wien's displacement law in aD-dimensional universe
Wien's displacement law is expressed as. With and, where is the spectral energy energy density, one finds, where is the number of degrees of freedom for spatial translation. The solution shows that the spectral energy density is dependent on the dimensionality of the universe.[51]
The classical finite-size corrections to the dispersion relations ofgiant magnons, single spikes andGKP strings can be expressed in terms of the LambertW function.[52][53]
The total time of the journey of a projectile which experiences air resistance proportional to its velocitycan be determined in exact form by using the LambertW function.[55]
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 likeu lnu =v (whereu andv clump together the geometrical and physical factors of the problem), which is solved by the LambertW function. The first solution to this problem, due to Sommerfeldcirca 1898, already contained an iterative method to determine the value of the LambertW function.[56]
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.
The standard LambertW function expresses exact solutions totranscendental algebraic equations (inx) of the form:
1
wherea0,c andr are real constants. The solution isGeneralizations of the LambertW function[57][58][59] include:
An application togeneral relativity andquantum mechanics (quantum gravity) in lower dimensions, in fact a link (unknown prior to 2007[60]) between these two areas, where the right-hand side of (1) is replaced by a quadratic polynomial inx:
2
wherer1 andr2 are real distinct constants, the roots of the quadratic polynomial. Here, the solution is a function which has a single argumentx but the terms likeri anda0 are parameters of that function. In this respect, the generalization resembles thehypergeometric function and theMeijerG function but it belongs to a differentclass of functions. Whenr1 =r2, both sides of (2) can be factored and reduced to (1) and thus the solution reduces to that of the standardW function. Equation (2) expresses the equation governing thedilaton field, from which is derived the metric of theR =T orlineal 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-mechanicaldouble-well Dirac delta function model forunequal charges in one dimension.
Analytical solutions of the eigenenergies of a special case of the quantum mechanicalthree-body problem, namely the (three-dimensional)hydrogen molecule-ion.[61] Here the right-hand side of (1) is replaced by a ratio of infinite order polynomials inx:
3
whereri andsi are distinct real constants andx is a function of the eigenenergy and the internuclear distanceR. Equation (3) with its specialized cases expressed in (1) and (2) is related to a large class ofdelay differential equations.G. H. Hardy's notion of a "false derivative" provides exact multiple roots to special cases of (3).[62]
Applications of the LambertW function in fundamental physical problems are not exhausted even for the standard case expressed in (1) as seen recently in the area ofatomic, molecular, and optical physics.[63]
given in Corless et al.[4] Because the computation time is dominated by the exponential function, this is only slightly more expensive than Newton's method.
For real, it may be approximated by the quadratic-rate recursive formula of R. Iacono and J.P. Boyd:[12]
Lajos Lóczi proves[64] that by using this iteration with an appropriate starting value,
For the principal branch
if:
if
if
For the branch
if
if
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):
Toshio Fukushima has presented a fast method for approximating the real valued parts of the principal and secondary branches of theW function without using any iteration.[65] In this method theW function is evaluated as a conditional switch of minimaxrational functions on transformed variables:whereu,v,x, andy are transformations ofz:
.
Here,,, and are rational functions whose coefficients for differentk-values are listed in the referenced paper together with the values that determine their subdomains. With higher degree polynomials in these rational functions the method can approximate theW function more accurately.
For example, when, can be approximated to 24 bits of accuracy on 64-bit floating point values as wherex is defined with the transformation above and the coefficients and are given in the table below.
Coefficients for the subfunction
0
−0.9999999403954019
1
1
0.0557300521617778
2.275906559863465
2
2.1269732491053173
1.367597013868904
3
0.8135112367835288
0.18615823452831623
4
0.01632488014607016
0
Fukushima also offers an approximation with 50 bits of accuracy on 64-bit floats that uses 8th- and 7th-degree polynomials.
^Scott, TC; Babb, JF; Dalgarno, A; Morgan, John D (Aug 15, 1993). "The calculation of exchange forces: General results and specific models".J. Chem. Phys.99 (4). American Institute of Physics:2841–2854.Bibcode:1993JChPh..99.2841S.doi:10.1063/1.465193.ISSN0021-9606.
^Corless, R. M.; Gonnet, G. H.; Hare, D. E. G.; Jeffrey, D. J. (1993). "Lambert's function in Maple".The Maple Technical Newsletter.9:12–22.CiteSeerX10.1.1.33.2556.
^abIacono, Roberto; Boyd, John P. (2017-12-01). "New approximations to the principal real-valued branch of the Lambert W-function".Advances in Computational Mathematics.43 (6):1403–1436.doi:10.1007/s10444-017-9530-3.ISSN1572-9044.S2CID254184098.
^https://isa-afp.org/entries/Lambert_W.html Note: although one of the assumptions of the relevant lemma states thatx must be > 1/e, inspection of said lemma reveals that this assumption is unused. The lower bound is in fact x > 0. The reason for the branch switch ate is simple: forx > 1 there are always two solutions, −ln x and another one that you'd get from thex on the other side ofe that would feed the same value toW; these must crossover atx =e:[1] Wn cannot distinguish a value of ln x/x from anx <e from the same value from the otherx >e, so it cannot flip the order of its return values.
^Dubinov, A. E.; Dubinova, I. D.; Saǐkov, S. K. (2006).The LambertW Function and Its Applications to Mathematical Problems of Physics (in Russian). RFNC-VNIIEF. p. 53.
^Robert M., Corless; David J., Jeffrey; Donald E., Knuth (1997). "A sequence of series for the LambertW function".Proceedings of the 1997 international symposium on Symbolic and algebraic computation - ISSAC '97. pp. 197–204.doi:10.1145/258726.258783.ISBN978-0-89791-875-6.S2CID6274712.
^More, A. A. (2006). "Analytical solutions for the Colebrook and White equation and for pressure drop in ideal gas flow in pipes".Chemical Engineering Science.61 (16):5515–5519.Bibcode:2006ChEnS..61.5515M.doi:10.1016/j.ces.2006.04.003.
^Braun, Artur; Baertsch, Martin; Schnyder, Bernhard; Koetz, Ruediger (2000). "A Model for the film growth in samples with two moving boundaries – An Application and Extension of the Unreacted-Core Model".Chem Eng Sci.55 (22):5273–5282.doi:10.1016/S0009-2509(00)00143-3.
^Braun, Artur; Briggs, Keith M.; Boeni, Peter (2003). "Analytical solution to Matthews' and Blakeslee's critical dislocation formation thickness of epitaxially grown thin films".J Cryst Growth.241 (1–2):231–234.Bibcode:2002JCrGr.241..231B.doi:10.1016/S0022-0248(02)00941-7.
^Colla, Pietro (2014). "A New Analytical Method for the Motion of a Two-Phase Interface in a Tilted Porous Medium".PROCEEDINGS, Thirty-Eighth Workshop on Geothermal Reservoir Engineering, Stanford University. SGP-TR-202.([2])
^Flavia-Corina Mitroi-Symeonidis; Ion Anghel; Shigeru Furuichi (2019). "Encodings for the calculation of the permutation hypoentropy and their applications on full-scale compartment fire data".Acta Technica Napocensis. 62, IV:607–616.
^Maignan, Aude; Scott, T. C. (2016). "Fleshing out the Generalized LambertW Function".ACM Communications in Computer Algebra.50 (2):45–60.doi:10.1145/2992274.2992275.S2CID53222884.