BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 50 definitions for Omega.

Lambert W function

Print-Friendly
About 4 pages (1,171 words)

Bookmark and Share Questions on this topic? Just ask!
The graph of W0(x) for −1/e ≤ x ≤ 4
The graph of W0(x) for −1/ex ≤ 4

In mathematics, The Lambert W function, named after Johann Heinrich Lambert, also called the Omega function or product log, is the inverse function of f(w) = wew where ew is the natural exponential function and w is any complex number. We will denote the function here by W. For every complex number z, we have

<math>z = W(z)e^{W(z)}.</math>

Since the function f is not injective in (−∞, 0), the function W is multivalued in [−1/e, 0). If we restrict to real arguments x ≥ −1/e and demand w ≥ −1, then a single-valued function W0(x) is defined, whose graph is shown. We have W0(0) = 0 and W0(−1/e) = −1. The Lambert W function cannot be expressed in terms of elementary functions. It is useful in combinatorics, for instance in the enumeration of trees. It can be used to solve various equations involving exponentials and also occurs in the solution of time-delayed differential equations, such as y'(t) = a y(t − 1).

Contents

Differential equation

By implicit differentiation, one can show that W satisfies the differential equation

<math>z(1+W)\frac{dW}{dz}=W\quad\mathrm{for\ }z\neq -1/e</math>

Taylor series

The Taylor series of W0 around 0 can be found using the Lagrange inversion theorem and is given by

<math>

W_0 (x) = \sum_{n=1}^\infty \frac{(-n)^{n-1}}{n!}\ x^n = x - x^2 + \frac{3}{2}x^3 - \frac{8}{3}x^4 + \frac{125}{24}x^5 - \cdots </math> The radius of convergence is 1/e, as may be seen by the ratio test. The function defined by this series can be extended to a holomorphic function defined on all complex numbers with a branch cut along the interval (−∞, −1/e]; this holomorphic function defines the principal branch of the Lambert W function.

Applications

Many equations involving exponentials can be solved using the W function. The general strategy is to move all instances of the unknown to one side of the equation and make it look like Y = XeX at which point the W function provides the solution. In other words :

<math> X = Y e ^ Y \; \Longleftrightarrow \; Y = W(X) </math>

Examples

Example 1
<math>2^t = 5 t\,</math>
<math>\Rightarrow 1 = \frac{5 t}{2^t}\,</math>
<math>\Rightarrow 1 = 5 t \, e^{-t \ln 2}\,</math>
<math>\Rightarrow \frac{1}{5} = t \, e^{-t \ln 2}\,</math>
<math>\Rightarrow \frac{- \, \ln 2}{5} = ( - \, t \, \ln 2 ) \, e^{( -t \ln 2 )}\,</math>
<math>\Rightarrow -t \ln 2 = W \left ( \frac{- \ln 2}{5} \right )\,</math>
<math>\Rightarrow t = \frac{- W \left ( \frac{- \ln 2}{5} \right )}{\ln 2}\,</math>
Example 2

Similar techniques show that

<math>x^x=z</math>

has solution

<math>x=\frac{\ln(z)}{W(\ln z)}</math>

or, equivalently,

<math>x=\exp\left(W(\ln(z))\right).</math>
Example 3

Whenever the complex infinite exponential

<math>z^{z^{z^{\cdots}}} \!</math>

converges, the Lambert W function provides the actual limit value as

<math>c=\frac{W(-\ln(z))}{-\ln(z)}</math>

where ln(z) denotes the principal branch of the complex log function.

Example 4

Solutions for

<math>x \log_b \left(x\right) = a</math>

have the form

<math>x = \frac{a \ln(b)}{W(a \ln(b))}</math>
Example 5

The solution for the current in a series diode/resistor circuit can also be written in terms of the Lambert W. See diode modeling.

Example 6

The delay differential equation

<math>\dot{y}(t) = ay(t-1)</math>

has characteristic equation <math>\lambda=a e^{-\lambda}</math>, leading to <math>\lambda=W_k(a)</math> and <math>y(t)=e^{W_k(a)t}</math>, where <math>k</math> is the branch index. If <math>a</math> is real, only <math>W_0(a)</math> need be considered.

Integration

The function W(x), and many expressions involving W(x), can be integrated using the substitution w = W(x), i.e. x = w ew:

<math>

\int W(x)\, dx = x \left( W(x) - 1 + \frac{1}{W(x)} \right) + C </math>

Special values

<math>W\left(-\frac{\pi}{2}\right) = \frac{i\pi}{2}</math>
<math>W\left(-\frac{\ln 2}{2}\right)= -\ln 2</math>
<math>W\left(-{1\over e}\right) = -1</math>
<math>W(0) = 0\,</math>
<math>W(1) = \Omega\,</math> (the Omega constant)
<math>W(e) = 1\,</math>

Plots

Evaluation algorithm

The W function may be evaluated using the recurrence relation

<math>

w_{j+1}=w_j-\frac{w_j e^{w_j}-z}{e^{w_j}(w_j+1)-\frac{(w_j+2)(w_je^{w_j}-z)} {2w_j+2}} </math> given in Corless et al. to compute W. Together with the evaluation error estimate given in Chapeau-Belandeau and Monir, the following Python code implements this:

import math

def lambertW(x, prec = 1E-12, maxiters = 100):
    w = 0
    for i in range(maxiters):
        we = w * pow(math.e,w)
        w1e = (w + 1) * pow(math.e,w)
        if prec > abs((x - we) / w1e):
            return w
        w -= (we - x) / (w1e - (w+2) * (we-x) / (2*w+2))
    raise ValueError("W doesn't converge fast enough for abs(z) = %f" % abs(x))

This computes the principal branch for <math>x>1/e</math>. It could be improved by giving better initial estimates. The following closed form approximation may be used by itself when less accuracy is needed, or to give an excellent initial estimate to the above code, which then may need only a few iterations:

 double
 desy_lambert_W(double x) {
       double  lx1;
       if (x <= 500.0) {
               lx1 = ln(x + 1.0);
               return 0.665 * (1 + 0.0195 * lx1) * lx1 + 0.04;
       }
       return ln(x - 4.0) - (1.0 - 1.0/ln(x)) * ln(ln(x));
 }

(from http://www.desy.de/~t00fri/qcdins/texhtml/lambertw/)

History

The Lambert W function has an unusual history: although its study dates back to a 1779 paper by Leonhard Euler, the inverse of wew was not recognized as a function worthy of attention in its own right until the 1980s. The recognition came with the function's implementation in the Maple computer algebra system, for which purpose the name Lambert W was introduced. Lambert's name was chosen instead of Euler's because Euler referenced earlier work by Lambert in his paper, and possibly because "naming yet another function after Euler would not be useful" (Corless et al.).

References and external links

View More Summaries on Lambert W function
 
Ask any question on Lambert W function and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Lambert W function from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy