Questions tagged [lambert-w]

For questions related to the Lambert W or product log function, the inverse of $f(z)=ze^z$.

Equations involving exponentials multiplied to linear terms, such as $x+2=e^x$, cannot be solved using elementary functions in general. However, they may be solved in closed form using the Lambert W function, the inverse of $f(z)=ze^z$. In the given example: $$x+2=e^x$$ $$(-x-2)e^{-x-2}=-e^{-2}$$ $$-x-2=W(-e^{-2})$$ $$x=-W(-e^{-2})-2$$ There are two real branches of the Lambert W: $$W_0(z)\text{ for }z\in[-1/e,\infty)$$ $$W_{-1}(z)\text{ for }z\in[-1/e,0)$$

There are also branches $W_n(z)$, with $n\in\mathbb{Z}$, which are defined only on the complex plane, but which still respect the property of solving $W_n(z)e^{W_n(z)}=z$.

The regions of the complex plane where the inverse relationship occurs are bounded by the curve $x=-y\cot(y)$.

As discussed in the Corless et al. reference, the use of $W$ follows early Maple usage. Exact solutions to some mathematical models in the natural sciences, such as Michaelis–Menten kinetics, use this function.

784 questions
1
vote
3 answers

Solving an equation with Lambert's W function? Or by any other means?

I am trying to solve the following equation for x in terms of $y$ and $c$ (with $x,y \in [0,1]$) \begin{equation} \log\left(\frac{x}{1-x-y}\right) + \frac{x}{1-x-y} + \frac{y}{1-x-y} = c \end{equation} I can solve this easier…
1
vote
1 answer

Is there any representation for kth branch of Lambert-$W$ function?

How to represent the infinite branches of Lambert$W$ function? I just tried to solve it graphically in mathematica and got an interesting representation of the function, which is helpful in understanding this function. Please check my solution.
1
vote
1 answer

Nth Branch of Lambert W function

I have a program to calculate the primary branch of the Lambert W function, how do I calculate the other branches (based off of the first one if possible)? Example: $$W(\ln(2)) = 0.44443609101$$ But (using 1st branch) $$W_1(\ln(2)) =…
1
vote
1 answer

The Lambert-W function?

I am trying to use the Lambert-W function to solve the following equation for $x$. $$ \frac{a}{b} \ln x-x+ c =0 $$ My first step is to rewrite $x$ as $e^{\ln x}$. $$ \frac a b \ln x - e^{ln x} + c =0$$ I then multiply by $b$ and divide by $a$.…
RedPen
  • 581
1
vote
0 answers

Rearrange Fletcher's Equation for the working distance x

I am trying to rearrange the following equation (fletcher) to enable $LEV$ testers to measure the hood entry velocity $Vh$, and hood entry area $A$, and knowing the capture velocity Vc, required , calculate the maximum working distance x. I can…
1
vote
1 answer

Proving that an equation has X unique solutions?

The question I am struggling with is asking how many unique solutions there are to the following: $$(x-2)^2 (x+2)^2 = 4+\log(x+4)$$ Wolfram Alpha tells me the answer is four, but as far as I can figure out, you could not solve for these four…
1
vote
0 answers

Is it possible to solve for $x$ using the lambert W function in the expression ${\ln\left(x\right)}=(t-x)^2$?

${\ln\left(x\right)}=(t-x)^2$ $\pm\sqrt{\ln\left(x\right)}+x=t$ $\mathrm{e}^{\sqrt{\ln\left(x\right)}+x}=e^t$ And that is as close as I can get it to the form $x\mathrm{e}^x$. What do I do next? Is it possible to solve it this way ? Are there any…
therue
  • 75
1
vote
2 answers

is there a closed algebraic solution to x(x+a)e^x=b, a,b positive reals?

I am looking at the following equation which is solvable in terms of the Lambert-W function when $a=0$ (but it is strictly positive in my case, i.e. $a>0$): $x(x+a)e^x=b$ $(a,b>0)$ more generally, one can consider a generalization to the lambert…
0
votes
1 answer

How do I apply the product log function (W(x)) to this equation?

I have the following: $$3(e^{hv\over kT}-1)v^2 = e^{hv\over kT}\frac {hv^3}{kT}$$ Which is the numerator of the derivative of Planck's energy distribution formula when the derivative is set to $0$. According to WolframAlpha I can manipulate this…
0
votes
1 answer

Solving $\log(x) = vx^α$ for $x$ via Lambert W function

Sure I can just get an answer from wolfram alpha, but I want to know the steps involved. I noticed the title equation while reading this: https://cs.uwaterloo.ca/research/tr/1993/03/W.pdf The paper shows you how to get to the equation, and how its…
0
votes
2 answers

Solving for $x$ in logarithmic equation

Could anyone please show me how to solve for $x$ this equation: $$1 = ax e^{-bx}$$ If solved in terms of the Lambert $W$-function, would that be considered a concrete answer?
Emilio B.
  • 79
  • 5
0
votes
0 answers

How do I solve the following equation exactly: $\sin(x)^{\cos(x)}=2$?

I solved the following equation yesterday for fun and I have the exact result (But these are just some solutions, not all): $$\sin(x)^{\sin(x)}=2 \iff x=\frac{\pi}{2}-i\ln (\exp^{W(\ln(2))}\pm{\sqrt{\exp^{2W(\ln(2))}-1}}) +2k\pi,$$ for…
Mordor_07
  • 15
  • 2
0
votes
1 answer

How to find the complex roots of $2^z = z^2$?

Plotting the function on the real axis reveals that it has three solutions Therefore the solution set is: $$ z = \left\{-\frac{2}{\ln2}W\left(\frac{\ln2}{2}\right),2,4\right\} $$ But plotting in the complex plane reveals that there are other…
Aster
  • 1,220
0
votes
1 answer

generalizations of Lambert function for the solution of equation

Is there a general method to get the solution of $$ xf(x)=a,$$ where $f(x)$ is an smooth analytic function? So the solution can be expressed as $ g(a)$ and $g(a)f(g(a))=a $ for some function $g(x)$ which has a power expansion $ g(x)=…
0
votes
1 answer

Using Lambert W to solve for time of flight of a projectile with air resistance

picture from Wikipedia page about projectile motion, under air resistance section Wikipedia: Projectile motion - Derivation of the time of flight: $$c_1t+c_2+c_3e^{c_4t}=0$$ I understand how the equation for $y(t)$ is of the form that they describe.…