Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2022 May 1.
Published in final edited form as: Comput Chem Eng. 2021 Feb 17;148:107259. doi: 10.1016/j.compchemeng.2021.107259

The Lambert Function Should Be in the Engineering Mathematical Toolbox

Iordanis Kesisoglou 1, Garima Singh 1, Michael Nikolaou 1,*
PMCID: PMC8276860  NIHMSID: NIHMS1683491  PMID: 34267408

Abstract

Discovered well over two centuries ago and little used for long, the Lambert function has emerged in an increasing number of science and engineering applications in the last couple of decades. Here we present case studies relevant to the diverse interests of chemical engineers. We show how the Lambert function can be used for both analysis and computation. While some of these studies expound on prior literature results, the rest are new. We conjecture that if this tool becomes more widely known, many more instances of application will appear. Therefore, given its simplicity and usefulness, we would reasonably argue that the Lambert function should be included in the standard mathematical toolbox of chemical engineers.

Keywords: Lambert function, Colebrook equation, Ziegler-Nichols, SIR, Hollow fiber, h-index

1. Introduction

The engineering mathematical toolbox includes a number of familiar elementary functions, such as the power, exponential, logarithm, and trigonometric functions. Because these functions appear widely in all of engineering, expression of the solution of an engineering problem in terms of such functions has tangible benefits in at least two ways. One is computation. This benefit has been realized for centuries, as many lengthy computations would typically be reduced to simpler computations in terms of known functions whose values would be pre-calculated and tabulated (Grier, 2005). Another benefit, perhaps far more important in our computer-enabled-computation era,2 is communication and analysis of the behavior exhibited by the solution of an engineering problem. Indeed, properties of elementary functions, such as continuity, differentiability, oscillation, or boundedness, are well understood and may be used to analyze properties of entities dependent on them. For example, numerical solution of initial-value problems for ordinary or partial differential equations is as simple as programmable from scratch on an electronic spreadsheet in a few minutes, yet analysis of boundedness or oscillations of the solution can be facilitated by elementary functions.

In recent years, diverse research by many groups (such as Brkić and Praks (2018); Chen (2019); Cranmer (2004); Fries and Dreyer (2008); Lehtonen (2016); Morales (2005); More (2006); Rollmann and Spindler (2015); Schnell and Mendoza (1997); Valluri et al. (2000) for a partial list) including ours (Nikolaou, 2020a, 2020b, 2020c), has come across an elementary function that has been known for well over two centuries (Lambert, 1758), yet it had long remained underappreciated, until it came to the forefront in 1996 (Corless et al., 1996): The Lambert function, defined simply as all solutions x (real or complex) of the algebraic equation

xex=w (1)

for a given w. In their seminal publication, Corless et al. (1996) demonstrated that even though it may not be immediately obvious, the Lambert function naturally appears in the solution of a wide range of problems in science and engineering. The purpose of this publication is to draw attention to a number of problems of interest to chemical engineers, for which the Lambert function can help provide a powerful and elegant solution, in the context of helping both compute and analyze the properties of the solution. For some of these problems solution in terms of the Lambert function has already been on record in literature, while for the rest we believe that the propositions in this paper are new. It is conjectured that once the chemical engineering community becomes widely aware of the Lambert function, more cases, beyond sporadic instances, are likely to appear that accept a Lambert-based solution. In fact, a main message of this publication is to alert the chemical engineering community about such instances being worth recognizing, since recognition that a problem conforms to a pattern amenable to treatment by a powerful tool has well known value.3 The cases presented here are not meant to represent an exhaustive list. Rather, they purport to show the diversity of relevant problems that, we believe, chemical engineers would find interesting.

In the rest of the paper, we first provide a basic background on the Lambert function, emphasizing elements that may not be easily available elsewhere in literature. Then, we present a number of case studies in which the Lambert function has something interesting to offer. Finally, we discuss the future potential of this interesting tool.

2. Background

2.1. Definition and basic properties of the Lambert function

The multiple solutions of eqn. (1) are denoted by Wk(w), indexed by the integer k in (,+). Real solutions of eqn. (1) for real values of w can be visualized in Figure 1. It can be shown rigorously (Corless et al., 1996) and understood intuitively from Figure 1 that for w ≥ 0 a unique real solution exists for each real w. This solution is typically denoted by W0(w) or just W(w). The same function W0(w) also provides a real solution in the range 1ew<0, for which a second real solution can be shown to exist, provided by the function W1(w), as shown in Figure 1 as well. For clarity, the behavior of W0(w) and W1(w) for all real w is summarized in Figure 2. Note that W1(w) is complex-valued for real w outside the interval [1e,0], as is W0(w) for w<1/e.

Figure 1.

Figure 1.

Real solutions of eqn. (1) as intersection of the functions wex and x for several values of w (left) and as function of w (right). Comparison with the natural logarithm (intersections at horizontal line at 1) is also shown on the left.

Figure 2.

Figure 2.

Real and imaginary parts of Lambert functions Wk(w). Note that Re[Wk(w)]=Re[Wk1(w)],Im[Wk(w)]=Im[Wk1(w)] for w<0 and Re[Wk(w)]=Re[Wk(w)],Im[Wk(w)]=Im[Wk(w)] for w>0.

In all cases other than W0 and W1, all Wk(w) are complex-valued and come in conjugate pairs, as can be immediately inferred from eqn. (1). The indexing of these pairs follows the convention

Wk(w)={Wk1(w)¯,w<0Wk(w)¯,w>0} (2)

Following this convention, Figure 3 shows the real and imaginary parts for a collection of Wk(w) for k0. Corresponding values of Wk(w) for k2 need not be shown because of eqn. (2).

Figure 3.

Figure 3.

Real and imaginary parts of Lambert functions Wk(w). Note that Re[Wk(w)]=Re[Wk1(w)] and Im[Wk(w)]=Im[Wk1(w)] for w<0;Re[Wk(w)]=Re[Wk(w)] and Im[Wk(w)]=Im[Wk(w)] for w>0. The real part of W1 (shown in Figure 2) is not shown here, to avoid cluttering.

Calculus with the Lambert function is relatively simple, with interesting patterns. For example,

dWdw=W(w)w(1+W(w))=1w+eW(w),w1e (3)
W(w)dw=wW(w)w+eW(w)+c=w(W(w)1+1w(w))+c (4)

A collection of numerous additional properties of the Lambert function can be found in Corless et al. (1996) and references therein.

2.2. Software for lambert

Routines for evaluation of the Lambert function are readily included in standard software packages such as Maple (LambertW), Mathematica (ProductLog), Matlab (lambertw), or Python (lambertw). Mathematica and Maple can also generate symbolic solutions of corresponding problems solvable by the Lambert function, and can symbolically detect many instances (although certainly not all, as shown in section 3.7) for which elementary manipulations can convert equations such as ax+lnx=b,x=weax, or x=weaxb to eqn. (1). In fact, a theme of the cases that follow is how to quickly spot such manipulations.

3. The Lambert function in action

3.1. Continuous-flow tank dynamics

Given the continuous-flow liquid storage tank shown in Figure 4, it is of interest to determine the height, h of the liquid over time, t.

Figure 4.

Figure 4.

Continuous-flow liquid storage tank.

Mass balance around the tank immediately yields

dhdt=1A(FiKh(t)) (5)

where A is the cross-sectional area; Fi is the inlet volumetric flow rate, held constant; and F is the outlet volumetric flow rate, assumed to be equal to Kh(t). Solution of eqn. (5) through integration by separation of variables (APPENDIX A) yields

h(t)h(0)+FiKln|h(t)FiKh(0)FiK=K2At (6)

The algebraic equation shown above is implicit in h(t) Yet, use of the Lambert function easily produces the explicit analytical solution

h(t)=hs(1+W[(h(0)hs1)exp(h(0)hs1tτ)])2 (7)

where hS=def(FiK)2 is the steady-state value of the liquid height and τ=def2AFiK2 is the time constant of the system. Figure 5 shows h(t)hs for a number of initial conditions, following eqn. (7). Corresponding solutions for the approximate solution

hL(t)hs=1+(h(0)hs1)exp(tτ) (8)

for the counterpart of eqn. (5) obtained by linearization around hs using Taylor series, is also shown in Figure 5, for comparison.

Figure 5.

Figure 5.

Dimensionless height, hhs as a function of dimensionless time, tτ for the explicit analytical solution of eqn. (5) in terms of the Lambert function, eqn. (7). The analytical solution of the linear approximation of eqn. (5) is also shown.

Note that the existence and uniqueness of the solution of eqn. (5) can be easily examined via eqn. (7): Based on section 2.1, a real solution exists for eqn. (7) if and only if (iff)

1e(h(0)hs1)exp(h(0)hs1tτ) (9)

which is easily established (APPENDIX B). Further, it is also easily established (APPENDIX B) that eqn. (7) uniquely involves the Lambert function W0 alone.

3.2. The Colebrook equation for friction factor

The Colebrook equation (Colebrook, 1939)

1f=2log(2.51Re1f+ϵ3.71D) (10)

has long been a standard model for estimating the friction factor, f in turbulent flows in a pipe, given values for the Reynolds number (Re) in the range 4000<Re<108 and for the relative roughness of the inner surface of the pipe (ε=ϵD) in the range 0<ε<0.05 (Baehr & Stephan, 2006; Bergman et al., 2011; Bird et al., 2002; Cengel, 1997; Cussler, 2009; Economides et al., 2013; Kessler & Greenkorn, 2019; Kreith et al., 2010; Moss, 2007; Welty et al., 2007). Eqn. (10) is implicit in f, a fact that has prompted explicit approximations of various kinds (Zigrang & Sylvester, 1982) by a number of investigators (Brkić, 2010, and references therein). Recently, sporadic results have appeared (Brkić & Praks, 2018; More, 2006; Rollmann & Spindler, 2015) which, rather independently of one another, recognize that the Colebrook equation accepts the simple explicit analytical solution

f=1(0.1074εRe+0.8686W[0.4587Reexp(0.1236εRe)])2 (11)

in terms of the Lambert function W Eqn. (11) is shown in Figure 6, a 3D counterpart of the classic 2D diagram for the Moody/Fanning friction factor (Moody, 1944) included in standard textbooks on transport phenomena.

Figure 6.

Figure 6.

Friction factor f from analytical solution of the Colebrook equation.

3.3. The continuous-cycling Ziegler-Nichols method for controller tuning

The continuous-cycling method, developed in the influential paper by Ziegler and Nichols (1942), has long been a standard technique for tuning industrial proportional-integral-derivative (PID) controllers, using experimental data collected for the purpose (Seborg et al., 2017). The method relies on first performing an experiment that brings to continuous cycling a stable process controlled by a P-controller whose gain, Kc (Figure 7) is gradually increased to a critical value, Kcu known as the ultimate gain. For a typical process modeled by the first-order-plus-time-delay transfer function G(s)=Keθsτs+1 (Figure 7) analysis of how the closed-loop process is brought to continuous cycling makes use of the closed-loop poles, namely the roots of the characteristic equation 1+G(s)C(s)=0. For the preceding transfer function G(S) the closed-loop poles are solutions of the algebraic equation (Bellman & Cooke, 1963)

τs+1+KKceθs=0. (12)

Figure 7.

Figure 7.

Block diagram of closed-loop system in continuous-cycling method

At this point a standard approach to assessing the solutions of eqn. (12) is by replacing eθs by a first-order Padé approximation (Seborg et al., 2017)

eθs1θ2s1+θ2s (13)

to get the second-order polynomial equation

θ2τs2+(θ2+τKcKθ2)s+1+KcK0 (14)

which can be easily analyzed. Thus, the closed-loop behavior will switch from overdamped (non-oscillatory) to underdamped (oscillatory) when the discriminant of eqn. (14) crosses the 0 value, namely

(τ+θ2θKKC2)24θ2τ(1+KcK)=0 (15)

resulting in the controller gain

Kc,o1K(1+64θτ+2θτ) (16)

where the appropriate one of the two roots of eqn. (15) was selected. Further, the closed loop will be brought to continuous oscillations when the controller gain is such that both roots of eqn. (14) are purely imaginary, namely

θ2+τKcKθ20 (17)

resulting in the ultimate gain

Kc,u1K(1+2θ/τ) (18)

and corresponding ultimate period of oscillations

Puπθ1(1+θτ) (19)

Closer inspection of eqn. (12) reveals that it accepts the following solution in terms of the Lambert function, as pointed out by Corless et al. (1996) concerning analysis of the dynamics of delay-differential equations via Laplace transforms (Hwang & Cheng, 2005; Ivanoviene & Rimas, 2013):

pk=1τ(1+Wk(KKcθτexp(θτ))θτ),k=1,0,1,2, (20)

The above eqn. (20) can be used with properties of Lambert functions discussed in section 2.1 to derive the counterparts of eqns. (16) and (18), as follows:

To start with, the closed loop is stable iff the real parts of all poles pk in eqn. (20) are negative. To that end, inspection of the relative placement of Re[Wk(w)] with respect to each other in Figure 3 immediately implies that if Re[p1]<0 then Re[pk]<Re[p1]<0 for all k1, because pk=a+bWk with b>0, according to eqn. (20). Therefore, if Re[p1]<0, all modes corresponding to pk,k1, will decay exponentially faster than the mode corresponding to p1. Furthermore, Figure 3 also indicates that Re[p1]<p0 for w>0 and p1<p0 for 1ew<0.

Now, the closed loop exhibits non-oscillatory behavior if it has at least a dominant real pole. As explained in the previous paragraph, such a pole can only arise from W0 and/or W−1 According to the discussion in section 2.1, a real pole arises from W−1 iff

1eKKcθτexp(θτ)<0 (21)

and from W0 iff

1eKKcθτexp(θτ) (22)

respectively. Combination of eqns. (21) and (22) implies that a real pole arises from W0 and W−1 if KKcτθexp(1θτ), which yields

Kc,o=τKθexp(1θτ) (23)

The above eqn. (23) is the exact counterpart of the approximate eqn. (16), as illustrated in Figure 8.

Figure 8.

Figure 8.

P-controller gain, Kc, for transition from stable non-oscillatory to stable oscillatory to unstable oscillatory behavior (at Kc,o and Kc,u, respectively) for the feedback system of Figure 7. The exact and approximate formulas refer to eqns. (23) and (16) for Kc,o, and to eqns. (24) and (18) for Kc,u respectively.

Continuing the analysis, eqns. (21) and (22) imply that the closed loop exhibits oscillatory behavior when 1e>KKcθτexp(θτ), in which case complex poles will correspond to Wk,k=1,1,2,. The closed loop will exhibit sustained oscillations when Re[p1]=0, with Re[pk]<0 for all k1 as already discussed. Therefore, the ultimate gain, Kc,u, satisfies the equation

Re[W1(KKc,uθτexp(θτ))]θτ=0 (24)

with corresponding ultimate period of oscillations

Pu=2π1|Im[p1]|=2πθ|Im[w1(KKc,uθτexp(θτ))]| (25)

The above eqns. (24) and (25) are the exact counterparts of the approximate eqns. (18) and (19). While eqn. (24) is implicit in Kc,u it can be easily used to show KKc,u as a function of θ/τ (Figure 8). Similarly, eqn. (25) can be presented as shown in Figure 9.

Figure 9.

Figure 9.

Ultimate period, Pu, at transition of the feedback system of Figure 7 from stable oscillatory to unstable oscillatory behavior. The exact and approximate formulas refer to eqns. (25) and (19), respectively.

Finally, for comparison, note that the transition from stable oscillations to unstable oscillations, as Kc increases to Kc,u and beyond, can be analyzed numerically by setting s=iω in eqn. (12), equating real and imaginary parts of the resulting equation, and solving the resulting two algebraic equations numerically.

3.4. Dynamics of epidemics

In its simplest form, a basic model that captures the spread of an infectious disease in a fixed-size population first separates the population into three distinct groups: susceptible to the infection (S), infectious (I), and removed from the infectious group by recovery or death (R). Given this model structure, the dynamics of the spread of the infection in a population of fixed size is captured by the celebrated SIR ordinary differential equations (ODEs) (Kermack & McKendrick, 1927)

s(t)=βs(t)i(t) (26)
i(t)=βs(t)i(t)γi(t)=defβ(s(t)1R0)i(t) (27)
r(t)=γi(t) (28)

where s,i,r are the population fractions of the S, I, R groups, respectively, satisfying the constraint s(t)+r(t)+i(t)=1; and prime denotes time derivative (Anderson et al., 1992; Brauer, 2017; Keeling & Rohani, 2008; Murray, 2002). Consistent with the importance of the SIR ODEs, the basic reproductive ratio, R0=defβ/γ, in eqn. (27) is widely considered “one of the most critical epidemiological parameters” (Keeling & Rohani, 2008) and has even become a household name in the recent coronavirus epidemic (Wang et al., 2020). For the epidemic to spread it is necessary that R0>1, whereas countermeasures aim at reducing R0 to the extent possible.

Lambert functions appear in multiple instances when analyzing the SIR model (Nikolaou, 2020a, 2020b, 2020c). To start with, it can be shown (Hethcote, 2000) that the model is stable for initial conditions in [0,1], with asymptotically converging long-term values s,i=0, and r=1s. Based on that, one can easily show (Kermack & McKendrick, 1927) that eventually

1R0lnss+1=0 (29)

for a spreading epidemic. The above eqn. (29) is typically followed by a comment such as “This equation is transcendental and hence an exact solution is not possible.” (Keeling & Rohani, 2008, p. 22). However, a solution can be easily obtained in terms of the Lambert function as

r=1s=1+W[R0exp(R0)]R0 (30)

as illustrated in Figure 10. The importance of r is that it refers to the total fraction of the population that will have been infected by the end of the epidemic for a given R0 particularly in comparison with the value of r(0)=1s(0) that confers to the population herd immunity at time 0 by ensuring that s(0)<1R0 in eqn. (27) (Keeling & Rohani, 2008). Note that the well known Lambert function identity W[xex]=x for x=R0 does not apply in eqn. (30), because x<1.

Figure 10.

Figure 10.

Total fraction of a population infected by the end of an epidemic, r, as a function of the basic reproductive ratio R0=defβγ, according to eqn. (30). The epidemic spreads for R0>1, whereas it is contained for R0<1.

An additional outcome from analysis of eqns. (26)-(28) is the value of R0 that would result in a certain maximum of the fraction of the infectious group, r, during a spreading epidemic (Figure 11). Adjustment of R0 by public policy has been the central focus among efforts to “Flatten the Curve”, an aim that became a household name in the latest coronavirus epidemic (Dong et al., 2020).

Figure 11.

Figure 11.

Profiles of s, i, r of a population through an epidemic according to the SIR model, eqns. (26)-(28), for R0 = 2.

It can be easily shown (APPENDIX C) that i* and the corresponding R0 are related as

1R0=exp(R0+R0i+1) (31)

and the above eqn. (31) admits a solution in terms of the Lambert function W1 as

R0=W1(i1e)i1 (32)

Finally, it can be shown (APPENDIX D) that an explicit dependence of s on i can be established based on eqns. (26) and (27), as

s(i)={W1[R0exp(R0+iR0)]R0,ifrom0toiW0[R0exp(R0+iR0)]R0,ifromito0} (33)

Note that the above eqn. (33) indicates two branches for s(i) each followed by W1 and W0 respectively, as {s,i} changes from {1ϵ,ϵ}{1,0} through {s,i} to {s,0}. Also note that eqn. (33) implies that real solutions exist iff

i<11+lnR0R0<1 (-34)

which is compatible with eqn. (31) solved for r* in terms of R0

3.5. Logarithmic mean expressions in heat and mass transfer

The logarithmic mean expression (x1x2)/ln(x1/x2) is well established in various heat or mass transfer calculations. Classic examples include the log-mean temperature difference in heat exchangers or the log-mean radius difference in pipe insulation (Kern, 1950; McCabe et al., 1967) and the log-mean concentration difference in absorption columns (Bird et al., 2002). When a value, a can be determined for (x1x2)/ln(x1/x2), the Lambert function can be immediately used to solve for x1 in terms of x2 (or vice versa, due to symmetry) as

x1=aW(x2aexp[x2a]) (35)

Note that for x1 in eqn. (35) to be real, the inequality

1ex2aexp[x2a] (36)

must be satisfied (section 2.1), which is always true, because minx2(x2aexp[x2a])=1e.

Also note that if x20, a unique solution exists, while for x2>0 a choice has to be made whether w in eqn. (35) refers to W0 or W1 based on comparison of x1to a.

A discussion of applying the Lambert function to heat exchanger calculations and comparison with approximations of the log-mean temperature difference in presented in (Chen, 2019).

3.6. High circulation rate implies a well mixed system

Differences between animals and humans in the pharmacokinetics of drug elimination from the body (Shargel & Yu, 2016) make in vitro testing both necessary and valuable (Doern, 2014; Gloede, 2010; Tamma, 2012). Drugs injected to humans typically follow a concentration profile approximated by exponential decline after each injection. For drug tests such as assessment of the effect of an antibiotic on bacteria, a system involving a hollow-fiber cartridge (Figure 14) is widely used to simulate the desired pharmacokinetic behavior in vitro (Bulitta et al., 2019; Yoon, 2016). Bacteria are restrained in the hollow fibers while exposed to nutrients and antibiotics flowing in solution through the cartridge. To ensure that all bacteria are exposed to the same concentration of an antibiotic at each time, a high enough internal circulation flow rate FHF is used. This essentially creates a well mixed system comprising the central vessel and hollow-fiber cartridge. While it is intuitively easy to understand the need for high FHF, a quantitative assessment of appropriate values of FHF that ensure a well mixed system requires further analysis. We present such analysis for a single drug A next. Extension to two or more drugs is discussed in Kesisoglou et al. (2020).

Figure 14.

Figure 14.

A hollow-fiber system for in vitro simulation of clinically relevant pharmacokinetics of drugs. The volumetric flow rate FA is pure broth. The mass flow rate fA0 refers to impulse bolus injection as fA0(t)=MAδ(t). With appropriate selection of {V,FA,MA} the system simulates exponential-decline drug elimination pharmacokinetics corresponding to the half-life of the tested drug.

Mass balance for drug A around the central vessel, which maintains enough stirring for good mixing, immediately yields

VdCAdt=fA0(t)FHFCA(t)+FHFCA(tθ)FACA(t) (37)

where θ=defVHFFHF is the time needed for liquid drawn from the central vessel to circulate in plug flow at rate FHF through the hollow-fiber cartridge volume VHF Taking Laplace transforms of the above eqn. (37) and solving for C˜A(s) yields

C˜A(s)=f˜A0(s)FHF+VFHFCA(0)exp(θs)+VFHFs+1+FAFHF (38)

where tilde denotes the Laplace transform of a corresponding function of time. The above eqn. (38) implies that CA(t) will include a weighted sum of exponentials of the form epnt where pn are the poles of C˜A(s), namely in the set of the roots of the transcendental algebraic equation of s

exp(θs)+VFHFs+1+FAFHF=0 (39)

It can be easily shown that the solution of the above eqn. (39) can be expressed in terms of the Lambert function as

pn=FAV(1+rrVVHFWn(VHFVexp[(1r+1)VHFV]))=defFAVqn (40)

where

r=defFHFFA (41)

and Wn is the Lambert function of order n=1,0,1,2,.

Based on the properties of Lambert functions (section 2.1) it is straightforward to show that Re[pn]<0 for n=1,0,1,2,, therefore CA(t) remains bounded at all times.

In addition, all pn are complex, except p0

More importantly, Figure 15 shows that for comparable (of similar order of magnitude) values of VHF and V if the ratio r is high enough, the real parts of all complex-valued pn are much larger than the magnitude of p0 suggesting that the corresponding terms exp(pnt),n0 will decay much faster than exp(p0t), thus quickly becoming negligible. Therefore, for values of r greater than about 30 the combined system comprising the central vessel and the hollow-fiber cartridge will be well mixed, with an effective single-vessel volume of

VA=V+VHF=Vq0 (42)

as shown in Figure 15.

Figure 15.

Figure 15.

Real and imaginary parts (top and bottom, respectively) of modes qn in eqn. (40) in terms of the circulation ratio r=defFHF/FA. Note that for r greater than about 30, the real part of qn,n=1,0,1,2, suggests that the decay of all exp(FAVqnt),n0 is so much faster than the decay of exp(FAVq0t)exp(FAVt) as to be negligible. Furthermore, for r greater than about 30, the imaginary part of qn,n=1,1,2, suggests that no appreciable oscillations are going to appear in exp(FAVqnt),n0, as all oscillation frequencies |Im[qn]|2π,n=1,1,2,... are comparable to the exponential decay rates Re[qn].

Numerical integration of eqn. (37) in dimensionless form is shown in Figure 16, which confirms the assessment about reasonable values of r made in Figure 15.

Figure 16.

Figure 16.

Figure 16.

Response of CA to impulse bolus fA0(t)=MAδ(t), adjusted to yield CA(0)=1.

3.7. Calculating the h-index

In his highly cited publication, Hirsch (2005) developed the widely used h-index to quantify the output of science researchers, based on the distribution of citations of their publications. Extensive empirical evidence collected by Hirsch (2005) suggests that the number of publications y with citations Nc(y) is well approximated by the function

Nc(y)=N0exp[(yy0)β] (43)

where N0>0,0<y0<N0,0<β1 are parameters of the above stretched exponential (Weibull) distribution (Bertoli-Barsotti & Lando, 2017). Based on the above, the h-index is simply the value h where the lines Nc(y) and y intersect, namely

h=N0exp[(hy0)β] (44)

as shown in Figure 17.

Figure 17.

Figure 17.

Graphical definition of the dimensionless h-factor hy0 at the intersection of (y/y0)(N0/y0) and exp [(yy0)β] for several values of the parameters β and N0y0 as suggested by eqn. (44).

It can be shown (APPENDIX E) that the algebraic equation used to define the h-index implicitly in eqn. (44) has the following explicit analytical solution in terms of the Lambert function:

h=y0(1βW[β(N0y0)β])1β (45)

as shown in Figure 18.

Figure 18.

Figure 18.

Dimensionless h-factor hy0 as a function of N0y0 for several values of the parameter β.

It is of interest that Mathematica fails to immediately produce an analytical solution of the above eqn. (44) as a response to the command

Solve[y==N0Exp[(y/y0)beta],y] (46)

It is also of interest that equation [13] in Hirsch (2005) is used for the implicit introduction of the factor α=defy0h, as “…determined by the equation [13]…”

αexp[αβ]=aI(β) (47)

where, according to Hirsch (2005), I(β)=def0zexp(zβ)dz and a2. The above eqn. (47) can be solved using again the Lambert function in the exact same way as in eqn. (44), to yield

α=(1βW[β(aI(β))β])1β (48)

Note that for W in the above eqn. (48) to be real-valued it must be

1e<β(aI(β))β (49)

as explained in section 2.1 (Figure 1). Given that I(β)=Γ(1+1β), the range of feasible values for β in (0,1) implied by eqn. (49) can be easily determined, as shown in Figure 19. The two boundary lines in that Figure correspond to

β=1 (50)

and

a=βexp(1β)Γ(1+1β) (51)

Figure 19.

Figure 19.

Feasible region of the parameters (a, β)as dictated by eqn. (49), with 0 < β < 1. Three isolated points identified by Hirsch (2005) are also shown.

Note that Hirsch (2005), after establishing that “a=2 can safely be assumed to be a lower bound” for a based on a convexity argument for Nc(y), comments “I find empirically that a ranges between 3 and 5.” Figure 19 immediately indicates a tighter lower bound, amin=2.7 at the point where the inequality in eqn. (49) becomes an equality for β=1:

amin=eI(1)=eΓ(2)=e (52)

Finally, Hirsch (2005) further comments that (1,3) is a feasible point and that “For β = 0.5 the lowest possible value of a is 3.70; … For β = 2/3, the smallest possible a is a = 3.24.” Figure 19, capturing the constraints on (a,β) according to eqns. (50) and (51), confirms that these three points indeed lie on the boundary of the feasible region for (a,β) derived with the help of the Lambert function.

4. Conclusions

Discovered well over two centuries ago, the Lambert function is emerging at an accelerating pace in a number of applications of interest to chemical engineers. It is a relatively simple elementary function with interesting properties and can facilitate analysis and computation in relevant problems, as demonstrated here through a number of case studies. We conjecture that if this tool becomes more widely known, many more instances of application will appear. Therefore, given its simplicity and usefulness, we would reasonably argue that the Lambert function should be included in the standard mathematical toolbox of chemical engineers, and possibly of others.

Supplementary Material

1

Figure 12.

Figure 12.

Basic reproductive ratio R0 corresponding to the maximum infectious fraction i* according to eqn. (32). The second solution of eqn. (31) shown in the plot violates the constraint R0 > 1 required for spread of an epidemic, therefore it is rejected.

Figure 13.

Figure 13.

Dependence of s on i from the beginning (s1,i0) to the end (s=s,i=0) of an epidemic, according to eqn. (33). Notice the two branches of each path of s(i), followed by W1 and W0 which are joined at the points {i,s}. The gray line marks the set of points {i,s}.

Highlights:

  • A number of literature and new cases studies show the merits of the Lambert function for analysis and computation.

  • Once widely appreciated, the Lambert function is likely to appear in a number of relevant applications.

  • A simple and powerful tool, the Lambert function belongs in the engineering mathematical toolbox

Acknowledgement

The Institute of Allergy and Infectious Diseases of the National Institutes of Health under award number R01AI140287 supported the research reported in this publication.

100% of the project costs were financed with Federal money.

The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

Funding sources had no involvement in study design; in the collection, analysis and interpretation of data, nor in the writing of the report nor in the decision to submit the article for publication.

APPENDIX A. Integration of the ordinary differential equation in eqn. (5)

Eqn (5) implies 1FiKhdh=1Adt Setting y=defh yields

dhFiKh=2yK+2FiK2ln|yFiK| (A-1)

Taking the initial condition into consideration, Eq. (A-1) yields

2(y(t)y(0))K+2FiK2ln|y(t)Fi/Ky(0)Fi/K|=1At (A-2)

which is eqn. (6).

APPENDIX B. Uniqueness of the solution of eqn. (5)

For h(0)hs1, eqn. (9) is trivially satisfied, because the right side is positive. Therefore, eqn. (6) has one real solution involving W0 for this case.

For h(0)hs<1, eqn. (9) is equivalent to

1(1h(0)hs)exp(h(0)hs)exp(tτ) (B-1)

which is also trivially satisfied, because (1h(0)hs)exp(h(0)hs)1 and exp(tτ)1 for all t0.

For this case we have

1e(h(0)hs1)exp(h(0)hs1tτ)<0 (B-2)

which implies that eqn. (6) has two solutions involving W0 and W1. However, W−1 is rejected, because

1+W1[(h(0)hs1)exp(h(0)hs1tτ)]<0 (B-3)

(Figure 1) implying h(t)<0 in eqn. (7), which is not acceptable.

APPENDIX C. Derivation of eqns. (31) and (32)

Eqns. (26) and (28) yield

dsdr=βγss=s(0)exp(rR0) (C-1)

Now, according to eqn. (27), the maximum of i (t) occurs at i(t)=0 which implies s=1R0. Substituting into eqn. (C-1) for s(0)1 yields

1R0=exp(rR0)=exp((1i1R0)R0)=exp(R0+R0i+1) (C-2)
R0(i1)exp[R0(i1)]=i1e (C-3)

which is of the form of eqn. (1) with χ=defR0(i1) and W=defi1e.

Because

1<i1e<0

there are two possible real solutions to eqn. (C-3), as shown in Figure 1. The solution corresponding to W0 is not acceptable, because it violates the constraint R0 > 1 Indeed, according to eqn. (C-3), that solution would be

R0=w0(i1e)i1<1

which cannot hold for a spreading epidemic (Figure 10).

APPENDIX D. Derivation of eqn. (33)

Combining eqns. (26) and (27) with initial conditions i(0)=ϵ0 and s(0)=1ϵ1 and solving the resulting ODE by separation of variables yields

dsdi=βsβsγi=1s+1R0lnsR0exp(R0+R0i)=(R0s)exp(R0s) (D-1)

which is of the form of eqn. (1) with x=defR0S and w=defR0exp(R0+R0i)<0. With

1e<R0exp(R0+R0i) (D-2)

the above eqn. (D-1) accepts two possible real solutions in terms of W0and W−1 and no real solution otherwise, as shown in Figure 1. The same Figure indicates that the two solutions are

s(i)={W1[R0exp(R0+iR0)]R0,ifrom0toiW0[R0exp(R0+iR0)]R0,ifromito0} (D-3)

which is eqn. (33).

APPENDIX E. Derivation of eqn. (45)

Eqn. (44) implies

lny=lnN0(yy0)β (E-1)

Setting

z=def(yy0)βlnz=βlnyβlny0 (E-2)

and substituting In y from the above eqn. (E-2) into eqn. (E-1) yields

1βlnz+lny0=lnN0z(βz)exp(βz)=β(N0y0)β (E-3)

which is of the form of eqn. (1). Because β(N0y0)β>0, eqn (E-3) implies

βz=W(β(N0y0)β)h=y0(1βW(β(N0y0)β))1β (E-4)

which is eqn. (45).

Footnotes

Conflict of interest

All the contributing authors have no conflict of interest

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

2

To appreciate the sheer magnitude of manual labor needed for computation in the past, one can note that Edmond Halley’s claim to fame is in no small part due to his completing requisite predictive calculations before his eponymous comet actually appeared (Grier, 2005, Chapter One).

3

Classic examples are linear programming or convex optimization in general, powerful tools for corresponding problems that can be formulated as such. To wit: “The full benefits of convex optimization, in contrast, only come when the problem is known ahead of time to be convex. Of course, many optimization problems are not convex, and it can be difficult to recognize the ones that are, or to reformulate a problem so that it is convex.” (Boyd & Vandenberghe, 2004, p. xii) and “…to summarize my early and perhaps my most important contributions to linear programming: … 1. Recognizing … that most practical planning relations could be reformulated as a system of linear inequalities.” (Dantzig & Thapa, 1997).

5 References

  1. Anderson RM, Anderson B, & May RM (1992). Infectious diseases of humans: dynamics and control: Oxford University Press. [Google Scholar]
  2. Baehr HD, & Stephan K. (2006). Heat and Mass Transfer: Springer. [Google Scholar]
  3. Bellman R, & Cooke KL (1963). Differential-Difference Equations: Academic Press. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Bergman TL, Lavine AS, Incropera FP, & Dweitt DP (2011). Fundamentals of heat and mass transfer: John Willey & Sons. [Google Scholar]
  5. Bertoli-Barsotti L, & Lando T. (2017). The h-index as an almost-exact function of some basic statistics. Scientometrics, 113, 1209–1228. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Bird RB, Stewart WE, & Lightfoot EN (2002). Transport Phenomena (2nd ed.): John WIley & Sons. [Google Scholar]
  7. Boyd S, & Vandenberghe L. (2004). Convex Optimization: Cambridge University Press. [Google Scholar]
  8. Brauer F. (2017). Mathematical epidemiology: Past, present, and future. Infectious Disease Modelling, 2, 113–127. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Brkić D. (2010). Review of explicit approximations to the Colebrook relation for flow friction. J. Pet. Sci. Eng, 77, 34–48. [Google Scholar]
  10. Brkić D, & Praks P. (2018). Accurate and efficient explicit approximations of the Colebrook flow friction equation based on the Wright-Omega function. Mathematics, 7, 34. [Google Scholar]
  11. Bulitta JB, Hope WW, Eakin AE, Guina T, Tam VH, Louie A, Drusano GL, & Hoover JL (2019). Generating Robust and Informative Nonclinical In Vitro and In Vivo Bacterial Infection Model Efficacy Data To Support Translation to Humans. Antimicrobial Agents and Chemotherapy, 63, e02307–02318. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Cengel YA (1997). Introduction to Thermodynamics and Heat Transfer 2d edition McGraw−Hill. [Google Scholar]
  13. Chen JJJ (2019). Logarithmic mean: Chen’s approximation or explicit solution? Comput. Chem. Eng, 120, 1–3. [Google Scholar]
  14. Colebrook CF (1939). Turbulent Flow in Pipes with Particular Reference to the Transition Region between Smooth and Rough Pipe Laws. J. of Inst. Civil Eng, 11, 133–156. [Google Scholar]
  15. Corless RM, Gonnet GH, Hare DE, Jeffrey DJ, & Knuth DE (1996). On the Lambert W function. Adv. Comput. Math, 5, 329–359. [Google Scholar]
  16. Cranmer SR (2004). New views of the solar wind with the Lambert W function. Am. J, 72, 13971403. [Google Scholar]
  17. Cussler EL (2009). Diffusion Mass transfer in fluid systems: Cambridge University Press. [Google Scholar]
  18. Dantzig GB, & Thapa MN (1997). Linear Programming: Springer. [Google Scholar]
  19. Doern CD (2014). When Does 2 Plus 2 Equal 5? A Review of Antimicrobial Synergy Testing. J. Clin. Microbiol, 52, 4124–4128. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Dong E, Du H, & Gardner L. (2020). An interactive web-based dashboard to track COVID-19 in real time. Lancet Infect. Dis, 20, 533–534. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Economides MJ, Hill AD, Economides-Ehlig C, & Zhu D. (2013). Petroleum Production Systems: Pearson Education. [Google Scholar]
  22. Fries N, & Dreyer M. (2008). An analytic solution of capillary rise restrained by gravity. J. Colloid Interf. Sci, 320, 259–263. [DOI] [PubMed] [Google Scholar]
  23. Gloede J, Scheerans C, Derendorf H, Kloft C. (2010). In vitro pharmacodynamic models to determine the effectof antibacterial drugs. J. Antimicrob. Chemother, 65, 186–201. [DOI] [PubMed] [Google Scholar]
  24. Grier DA (2005). When Computers Were Human: Princeton University Press. [Google Scholar]
  25. Hethcote HW (2000). The Mathematics of Infectious Diseases. SIAM Review, 42, 599–653. [Google Scholar]
  26. Hirsch JE (2005). An index to quantify an individual's scientific research output. Proceedings of the National Academy of Sciences of the United States of America, 102, 16569. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Hwang C, & Cheng YC (2005). A note on the use of the Lambert W function in the stability analysis of time-delay systems. Automatica, 41, 1979–1985. [Google Scholar]
  28. Ivanoviene I, & Rimas J. (2013). The Use of the Lambert Function Method for Analysis of a Control System with Delays. Information Technology and Control, 42, 325–332. [Google Scholar]
  29. Keeling MJ, & Rohani P. (2008). Modeling Infectious Diseases in Humans and Animals: Princeton University Press. [Google Scholar]
  30. Kermack WO, & McKendrick AG (1927). A Contribution to the Mathematical Theory of Epidemics. Proc. R. Soc. Lond. S. A, 115, 700–721. [Google Scholar]
  31. Kern DQ (1950). Process Heat Transfer (McGraw-Hill Book Company. [Google Scholar]
  32. Kesisoglou I, Ealesb BM, Wangb W, Merlaub PR, Ledesmab KR, Tam VH, & Nikolaou M. (2020). Simultaneous in vitro simulation of multiple antimicrobial agents with different elimination half-lives in a pre-clinical infection model. Journal of Pharmacokinetics and Pharmacodynamics, submitted. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Kessler DP, & Greenkorn RA (2019). Momentum, Heat, and Mass Transfer Fundamentals 7th edition: Marcel Dekker. [Google Scholar]
  34. Kreith F, Manglik RM, & Bohn MS (2010). Principles of Heat Transfer: Cengage Learning. [Google Scholar]
  35. Lambert JH (1758). Observations variae in mathesin puram. Acta. helv, 3, 128–168. [Google Scholar]
  36. Lehtonen J. (2016). The Lambert W function in ecological and evolutionary models. Methods Ecol. Evol, 7, 1110–1118. [Google Scholar]
  37. McCabe WL, Smith JC, & Harriott P. (1967). Unit operations of chemical engineering (Vol. 5): McGraw-hill; New York. [Google Scholar]
  38. Moody LF (1944). Friction Factors for Pipe Flow. J. Tribol-T ASME, 66, 671–684. [Google Scholar]
  39. Morales DA (2005). Exact expressions for the range and the optimal angle of a projectile with linear drag. Can. J. Phys, 83, 67–83. [Google Scholar]
  40. More AA (2006). Analytical solutions for the Colebrook and White equation and for pressure drop in ideal gas flow in pipes. Chem. Eng. Sci, 61, 5515–5519. [Google Scholar]
  41. Moss KJ (2007). Heat and Mass Transfer in Buildings: Taylor & Francis [Google Scholar]
  42. Murray JD (2002). Mathematical Biology: I. An Introduction: Springer. [Google Scholar]
  43. Nikolaou M. (2020a). A Fundamental Inconsistency in the SIR Model Structure and Proposed Remedies. medRxiv, 2020.2004.2026.20080960. [Google Scholar]
  44. Nikolaou M. (2020b). Simple Formulas for a Two-Tier Strategy to Flatten the Curve. In arXiv.org, 2004.04271. [Google Scholar]
  45. Nikolaou M. (2020c). Using Feedback on Symptomatic Infections to Contain the Coronavirus Epidemic: Insight from a SPIR Model. medRxiv, 2020.2004.2014.20065698. [Google Scholar]
  46. Rollmann P, & Spindler K. (2015). Explicit representation of the implicit Colebrook–White equation. Case Stud. Therm. Eng, 5, 41–47. [Google Scholar]
  47. Schnell S, & Mendoza C. (1997). Closed form solution for time-dependent enzyme kinetics. J. Theor. Biol, 187, 207–212. [Google Scholar]
  48. Seborg DE, Mellichamp DA, Edgar TF, & Doyle FJ (2017). Process Dynamics and Control (4th ed.): Wiley. [Google Scholar]
  49. Shargel L, & Yu ABC (2016). Applied Biopharmaceutics & Pharmacokinetics, 7e: McGraw-Hill. [Google Scholar]
  50. Tamma PD, Cosgrove SE, Maragakis LL. (2012). Combination therapy for treatment of infections with gram-negative bacteria. J. Clin. Microbiol, 25, 450–470. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Valluri SR, Jeffrey DJ, & Corless RM (2000). Some applications of the Lambert W function to physics. Can. J. Phys, 78, 823–831. [Google Scholar]
  52. Wang C, Liu L, Hao X, Guo H, Wang Q, Huang J, He N, Yu H, Lin X, Pan A, Wei S, & Wu T. (2020). Evolving Epidemiology and Impact of Non-pharmaceutical Interventions on the Outbreak of Coronavirus Disease 2019 in Wuhan, China. In medRxiv (pp. 2020.2003.2003.20030593). [Google Scholar]
  53. Welty JR, Wicks CE, Wilson RE, & Rorrer GL (2007). Fundamentals of Momentum, Heat, and Mass Transfer: John Wiley & Sons. [Google Scholar]
  54. Yoon S-H (2016). Membrane Bioreactor Processes: CRC Press. [Google Scholar]
  55. Ziegler JG, & Nichols NB (1942). Optimum Settings for Automatic Controllers. J.Tribol-T ASME, 64. [Google Scholar]
  56. Zigrang DJ, & Sylvester ND (1982). Explicit approximations to the solution of Colebrook’s friction factor equation. AIChE J, 28, 514–515. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

1

RESOURCES