In this chapter we study those properties of the Lambert W function which do not need knowledge on the complex function theoretic behavior of W.
We study in detail the equations which are solvable in terms of W, give a general formula for the derivatives, determine some integrals involving W, rigorously check the domain and range of the real Lambert function, and present convexity-concavity properties. At the end of the chapter we study the constant Ω, which is a special value of W.
The Lambert W function is defined as the solution of the equation
where a is the known parameter, and e is the base of the natural logarithm. We look for the unknown x which satisfies (1.1). This x is the solution, so we write
We can therefore equivalently say that
There is another equivalent way we may define W. Putting
The inverse of a function f is the function, denoted by
So, if we want to solve (1.3) by finding x, we may use the inverse of f to write
On the left-hand-side we have x, so the solution is given as:
Since
Some special values of the W function
Some special values of W can immediately be deduced. If
If, in turn,
This means that
Similarly, if
whence
follows.
Another trivial, but still nicely looking, special case is
which is just the consequence of the fact that W is the inverse of
Equation (1.1) seems to be too special – but only at first sight. There are plenty of equations that can be transformed into the form of (1.1) and thus can be solved with the aid of W. In the following subsections we study such equations.
That (1.1) seems to be too “particular” still does not mean that it is not of high importance. B. Hayes writes in his paper [79]: “Those for whom W is a favorite function want to see it elevated to the canon of standard textbook functions, alongside log and sine and square root. […] The advocates of W do make a strong case. In a 2002 paper, Corless and Jeffrey argue that W is in some sense the smallest step beyond the present set of elementary functions. ‘The Lambert W function is the simplest example of the root of an exponential polynomial; and exponential polynomials are the next simplest class of functions after polynomials'.” The Corless-Jeffrey paper in question is [43].
We know from our high school studies that the exponential function can be defined with many bases: 3x,
(The natural base logarithm is denoted by log here and elsewhere.) This identity tells us that whatever is the base we want to calculate the logarithm for (in our case the base is three), we can always express that in terms of another base; knowing the logarithm in one base is enough. Applying (1.7), we express
A similar fact is true for the W function. Let us suppose that the solution of
is given by the “base b” Lambert function, let us denote it by
First, note that
Now substitute
or
This is soluble in terms of the classical (base e) Lambert function:
Since
Our claim has been proven: it is enough to know Wb in base
The Lambert function is capable to solve not only
Here, again, b is positive, and different from one. How to solve this equation? Let us take the exponential of both sides. Since we have base b, the base b exponential is more convenient:
We use the identity
If we substitute
The solution of this equation is given by the base b Lambert function:
We look for x, and we know that
In Section 1.2 we shall see that the logarithm of the Lambert function (in whatever base) can always be expressed in terms of W itself. To see this, we refer to (1.21); where the base b version comes by simply changing the base of the logarithms and of W:
In terms of the base e Lambert function, this reads as
Example:
Let us apply our results and solve the equation
We substitute
or, which is the same,
This equation can be solved with the help of (1.11). We find that
and x, the solution of the original equation, is one-third of y:
If we rather want to express this solution in terms of the base e Lambert function, we use (1.12) instead:
In Chapter 4 we shall see how to evaluate W numerically, so that one can find the numerical value of the above x by computer. One gets that
Taking the base b logarithm of both sides of
and its solution is the same as that of
The constant is arbitrary on the right-hand side; we therefore write
This can be generalized to a much more general equation:
The calculations are left as an exercise.
The “multiplicative version”
can be solved by substituting
or
This equation is just the defining equation of the base b Lambert function, so
Recall that
We can simplify this expression by noticing that for the base b Lambert function we have
The previous displayed equation can therefore be rewritten as
Sometimes the following generalization can be useful:
Example:
To solve
or
By (1.15) we calculate that
so
In terms of the classical Lambert function this solution has the form
where we used the base change formula (1.9). The numerical value of x is 1.17459.
Notice that (1.15) helps to solve the equation
Just take logarithm:
thus, according to (1.15),
Now let us try to solve
Transforming both sides with the use of
If we restrict ourselves to x and y such that the exponents are real (i.e.,
Let us separate the variables:
Substituting
This equation is again solvable by (1.15):
For x, this means that
Let us write our result in its final form:
We defined W through an equation. The unknowns of equations are usually denoted by x, y, and the known parameters are denoted by the letters a,b,c. Just as we did in (1.1) and in the subsequent equations, this is why we used the notation
Another remark is due. All the base b Lambert functions can be expressed in terms of the classical (base e) Lambert function, and we therefore will study only the latter without losing any generality. We spare a lot of space and time by not writing out explicitly the two redundant statements for both Wb and
During our high school studies, we often apply rules to solve (exponential, logarithmic, trigonometric) equations. These “rules” are called, in math jargon, functional equations. We know many of these:
The Lambert function also satisfies interesting functional equations; the most straightforward are the following. From (1.2) (with the renaming
By taking the logarithm of both sides of (1.2), we infer that the logarithm of W is an easy expression of W itself:
That is,
(If
There is still more in (1.2) to be discovered. We shall prove that
We make the substitution
For the easier formulation, let us denote
It is now easy to see that if ey is chosen to be x, then
as we stated.
Why this relation holds only for
Notice that by substituting respectively
Substituting
In this subsection we first prove the validity of the functional equation
and then deduce some simple consequences of it.
We look for an expression for
Here on the right-hand side we have a function of x,y,a, and b. The solution of this equation is, by definition,
We rewrite
Recall that
and these are substituted into the last expression of
Now we use this expression and (1.24) to arrive at (1.23).
Two immediate consequences are given by specializing (1.23) with
Some consequences of the linear combination formulas
We shall see some special Lambert W values which can be deduced with the aid of the linear combination formula, and (1.25), in particular. The W function at
Notice that, since
Taking logarithm of both sides, we get yet another equation
A different expression for this constant is given upon letting
Next, let
Further results come when
In particular (by setting
Using the identity
A neat formula can be found for the real multiples of Ω also:
The proof is done by easy symbolic manipulation. The statement holds if and only if
This is equivalent to
or
The left-hand side is just
We still have to show that our identity is valid only when
This can be solved by the Lambert function, and the solution is
A nice particular case of (1.29) (which comes by setting
Talking about formulas for
Indeed, rearranging the right-hand side, we have
and this is equivalent to the left-hand side of (1.31).
To close this section, we remark that the case when
(Note that this, however, is a simple consequence of the identity
When studying a function, we certainly ask about the derivative and primitive function of it. The derivative of
After a rearrangement, we have an expression for
In place of
The derivative of
At the point
For
It is possible to find the general formula for the nth derivative of
Here pn is a polynomial which satisfies the recursion
with the initial value
When writing
Thus
Let us prove (1.33) and (1.34). The derivative given in (1.32) shows that
It will turn out that this is possible only if
Let us write this expression such that it resembles more (1.35):
Clearly, the part
To make further simplifications, let us use (1.32) inside the square brackets. We get
We see that (1.34) indeed holds, if we consider
For possible applications, we list here the first pn polynomials.
The generating function of
The generating function of a sequence encodes plenty of information about the sequence2. We are interested here in the generating function
of the polynomial
The recursion
results in the following partial differential equation:
The general solution of this equation is
Here g is an arbitrary function. The particular solution which corresponds to our generating function can be sorted out by checking, say, the coefficient of y in the Taylor series of
On the other hand, this coefficient must equal
A quick check should convince the reader that
Notice that
follows immediately. Since
we get that the
The coefficients of
Apart of the recursion (1.34), there is another way to explicitly represent the coefficients of
With the alternating sign we take into account that the pn polynomials seem to have positive coefficients for odd n, and negative for even n. If we can prove that
Our statement is the following:
To prove this claim, rewrite (1.33) as
We want to compare the coefficients of x on both sides. Although the right-hand side seems to be complicated, it is just a polynomial of W. First we deal with nth derivative of W. We will learn soon the Taylor series (1.52) of W. From the derivation of both sides of this formula n times, we get that
Substituting this into (1.38), and putting
Next, we make use of the Taylor series
and multiply this with the rightmost sum. To isolate the coefficients of the powers of x, we still need to expand
After following all of these steps, we arrive at (1.37).
More on
The expression for the derivatives of
The very same method as above results in a recursion for the qn polynomials:
with
The coefficients of qn satisfy a nice formula:
Here
with
Here are the first five qn polynomials:
The Eulerian numbers of the second kind have a nice combinatorial interpretation, see [74] for details.
There is a differential equation which can be solved in terms of the Lambert function. This differential equation can be deduced as follows. Let
or the equivalent
This is a first-order, linear, homogeneous equation. Its solution is
where c is an arbitrary constant of integration. The non-homogeneous equation,
has the solution
The differential equation (1.42) can be generalized such that the Lambert function still suffices to solve the more general equation, too. The solution of the differential equation
with arbitrary but non-zero parameters a and b is
(If a, b or both are zero, the equation has trivial or elementary solutions.)
We shall see situations where the Lambert function comes to our help when solving differential equations coming from practical examples; see Part III of the book.
Owing to the fact that
The integral of
The method basically goes as follows. If
This integral is elementary:
We therefore have that
Upon substituting
Thus, for example,
One can deduce a formula for the primitive function of the positive integer powers of
One has that
Using our technique, we write
By making use of (1.44), we immediately get that
This can further be simplified if we make use of a recurrence of the incomplete Gamma function:
One can then see that
Another formula is
which does not involve any other function except W itself.
The integral of
To calculate the integrals of
We then have that
Substituting back
The recursion (1.45) helps to shorten this formula. An elementary calculation results that
This formula is not valid when n is a non-integer number, but it can be extended to real values between
The Mellin transform of a function f is
This transformation has many applications [48], and it is an invertible transformation because the original function f can be determined by its Mellin transform:
Here
To determine the Mellin transform of the Lambert function, we shall need the Gamma function:
With this function,
At
Let us now prove (1.50). We will use the usual correspondences
With these
These integrals are evaluable in terms of
In the last integral, we use the functional equation
twice, so that
The Laplace transform is another useful functional transformation with many practical applications. The Laplace transform is defined as
The Laplace transform of the Lambert function would need the evaluation of the integral
But these integrals do not have a known expression in terms of usual special functions. Therefore, we determine the Laplace transform of
In this expression Ω is the Omega constant, defined in (1.26).
The proof goes as follows. We substitute
and the limit of integration at
Both of these integrals can be expressed in term of the incomplete Gamma function (see (1.43)):
To get the wanted formula, we just use the recursion (1.45) to transform
The Taylor series of W is determined by the Lagrange inversion theorem. Lagrange's formula is often useful when we try to find the Taylor series of an inverse function. It says that if
In our case
This is continued as follows:
We therefore get that the Taylor series of W (substituting the letter x in place of y)
A quick application of the ratio test yields that
Whence it comes that
as it is written in (1.52).
The W function therefore behaves around
It follows that,
For further reference, we note that the above series represents a part of the principal branch of the W function. This principal branch has a much larger domain than the disk
Let us have a look at the graph of the function
Clearly,
FIGURE 1 The plot of
It is therefore seen that
has no solution when
By its very definition, the inverse
In such cases, we say that the inverse function has multiple branches. These branches serve to distinguish among solutions, and help to refer to the different solutions in a consistent way. If properly defined, these branches become functions.
A remark is due here. We shall see in Chapter 2 that for all non-zero x, equation (1.54) has infinitely many complex solutions. Among these solutions, there is always at most two real solutions. We often refer to the branches that give real solutions as the real branches.
Hence, there are two real branches of the Lambert function: for
For the moment we do not define
The graphs of these two functions (which are the mirror images of the graph of
FIGURE 2 The continuous plot is the graph of
The point
On this graph, this is the point where the continuous and dashed plots meet. (This is completely the same phenomenon as with the square root function: if
It is now clear that the Taylor series (1.52) belongs to the principal branch
Properties of
Now that we know that the real Lambert function is, in fact, two functions, let us study their basic real analytic properties separately.
Figure 2 suggests that the principal branch W0 is strictly increasing. The sign of the first derivative will justify this. The derivative of W0 is, by (1.32),
Note that
The sign of the second derivative informs us about the convexity of the function. The second derivative of
The sign of this expression is determined by the sign of
This analysis was given through the properties of the inverse function,
Properties of
We check the monotonicity and concavity properties for the other real branch,
Clearly,
The second derivative is
The relevant terms are
We have just seen that
On
That is,
The
Ω satisfies nice equations like
Numerical methods – which we will learn about later – help us to find the value of Ω. For 20 digits, its value is
The last digit is not rounded (the following digit is also six).
The Ω constant is not a rational number; it cannot be written as a fraction
has two solutions:
The Ω constant is also a transcendental number. This statement can be proven by the use of the Lindemann–Weierstrass theorem[11]. This theorem (in a form given by A. Baker) says that if
This transcendence observation can be strengthened for other values of W, regardless of whether this value is complex or real. A complex number can be algebraic, as the number
After this short detour, we go back to the values of W. Let x be an algebraic number (in particular, it can be an arbitrary rational number
V. Adamchik gave a nice integral representation for
A more general form is valid [1]4, from which Adamchik's result comes when
The finding of the integral is a nice application of the Residue Theorem, and the knowledge of the branch structure of the Lambert function. Here we use information which will be available only in the second chapter, so the reader might come back to this calculation after being acquainted with that knowledge.
We will calculate the contour integral
where the contour γR is the usual semi-circle contour depicted in Figure 3. Let us determine where the integrand is singular. To this end, we need to solve the equation
FIGURE 3 The γR semi-circle contour used in the text.
which is equivalent to
This equation is solvable in terms of the Lambert function, see (1.12). What was not mentioned around (1.12) is that there are infinitely many solutions, indexed by an integer k. This integer identifies the branches of W, so (1.12) would better be written as
This means that the solutions of (1.58) are
In order to be able to analyze the positions of these zk's (we want to see whether they fall inside the curve γR), we restrict the argument of Wk to be a positive real number. Thus we want a to be positive, but b can be arbitrary. When the argument of Wk runs through the positive reals, the values of Wk run through a curve on the complex plane, from minus infinity to plus infinity, but the imaginary parts are bounded. From what we will learn in Chapter 2, it turns out that
This means that
How many of these singularities fall inside the curve depends, of course, on R. Let this number be
We calculate the residue with
To reach the last step, we used L'Hospital's rule.
Notice that
Euler's
Same calculation shows that at
These, therefore, all cancel out except the residue in
In the last step we tend with R to infinity, and show that the integral on the semi-circle vanishes, and what only remains is the integral on the real line. Let the semi-circle contour be denoted by CR. Then, by using
The last expression certainly tends to zero when
The integral representation that we are going to present is valid not only for
In particular, for the Ω constant
This formula was found by the author during working on the manuscript [37]. The proof needs two basic integral evaluations:
The first integral is the item 2.532/4, and the second one (which is valid only when
The corollary of these two, when m and n are integers, is the following:
Next, we use the Taylor expansion
and De Moivre's formula
It follows that
With this result we can evaluate the following integral:
This is valid for all real j.
We are now ready to prove (1.59). Substituting
Summing over
In the next step we make use of the simply-provable identity
The sum inside the integral can be put in a single form:
Substituting this into (1.60), the proof of (1.59) is established.
That the result is valid only when
Another integral for Ω was found by the author (and, independently and earlier, by Kalugin et al. [103]) after encountering with the problem of Nuttall [139] and its solution by Bouwkamp [23]. This integral representation reads as
In fact, the following representation is valid for the principal branch
From this, the result for Ω comes by setting
The proof of (1.61) is not hard, once we have the Nuttall–Bouwkamp integral:
(Here ν is not necessarily an integer number. Γ is the Euler Gamma function. We only need the fact that
On the right-hand side, we have the following sum:
The sum is nothing else but the (1.52) Taylor series of the principal branch of the Lambert W function. Our result is therefore proven.
Although we used the Taylor series to connect the integral to W0, numerical calculations show that (1.61) is valid on a large subset of ℂ (also in
Notice that the substitution
Some more words on history. The equation
Additional differential equations. We saw in Subsection 1.3.5 that several differential equations can be solved in terms of W. There are many more such differential equations. A good collection of these can be found in [52].
Properties of
W0 is a Bernstein function on
Putting together (1.33), (1.36), and the positivity of
The Lambert function is not Liouvillian. The question arises whether W is not a genuinely new function but can be expressed in terms of “more elementary” functions. It turns out [26] that W is not a composition of a finite number of exponentials, constants, roots, and integrals of these but rather a genuinely new function.
Problem. Determine the domain of validity of (1.61).