Can I use the Lambert Function to solve systems of exponential equations?

  • Thread starter himanshu121
  • Start date
  • Tags
    Function
In summary: So, in summary, the conversation revolved around solving an equation in quantum physics using the Lambert function. However, instead of isolating the variable x and then applying the special function, the original equation was used, leading to confusion. The conversation also touched on the usefulness of the Lambert function in solving various types of transcendental equations and the availability of numerical methods and programs for computing its values. It was also mentioned that the Lambert function can be used to solve systems of exponential equations.
  • #1
himanshu121
653
1
I hv this problem in Quantum physics, i tried to solve and eventually got this kind of a equation
[tex]5e^x-5=xe^x[/tex] I thought of solving it via Lambert Function and got

[tex] x=W[5(e^x-1)] [/tex]

How to go aboutt next?How can I evaluate this
 
Mathematics news on Phys.org
  • #2
Usually, to evaluate 'special' function like these, I use the following Wolfram website (unless you have Mathematica or some other advanced math software at home):
http://functions.wolfram.com/

Once there, just go to 'Function Plotting.' Then choose 'Product Log' (this is what Mathematica calls the Lambert W function) from the list of elementary functions and hit 'Go.' Then click on 'Function Evaluation' on the bottom to go the page where you can evaluate the Lambert function to any precision!

In case you can't find it, here is a direct link:
http://functions.wolfram.com/webMathematica/FunctionEvaluation.jsp?name=ProductLog
 
Last edited:
  • #3
I don't have a numeric value for Z
 
  • #5
himanshu121 said:
I hv this problem in Quantum physics, i tried to solve and eventually got this kind of a equation
[tex]5e^x-5=xe^x[/tex] I thought of solving it via Lambert Function and got

[tex] x=W[5(e^x-1)] [/tex]

How to go aboutt next?How can I evaluate this

First thing is that using the lambertW function is not much help if you're still going to end up with x on both sides of the equation as you did above. If using W() doesn't give up a closed form solution then you are just as well off leaving it in the original exponential or log form and solving numerically.

Anyway in this case you can solve your original equation and get it in closed form with W. I don't have time to post the details right now but the solution is :

x = 5 + W(-5 exp(-5))

Note that there is also a second trivial solution of x=0. This second solution obviously can be found by inspection but it also comes from the above lambert function solution by using the fact that for arguments between -1/e and zero that W(.) has two real solutions.
 
Last edited:
  • #6
this was trivial, sorry i wasnt in my full concentration,
one can do it this way
[tex] -5=(x-5)e^{(x-5)+5} [/tex]
which eventually gives
x = 5 + W(-5 exp(-5))
 
  • #7
Does that mean its solved? I am not that familiar with the function, other than it helps, or is the inverse...something with power towers...if you wanted you could have set y= ln(5/5-x) -x and used Newtons method to find the root.
 
  • #8
In fact, I graphed it and the only root is zero...
 
  • #9
Gib Z said:
In fact, I graphed it and the only root is zero...

No there's definitely two solutions. One is x=0 and the other is x ~= 4.9651.
 
  • #10
The most useful special function hardly anyone knows...

Gib Z said:
=Im not that familiar with the function

Someone was asking about mathematical anecdotes. I first encountered this one when I was an undergraduate. A graduate student studying wondrous creatures known as roller birds asked me for help in solving an equation from some problem in data analysis, which amounted to using the LambertW, which is by definition is "the" inverse function of [itex]y = x \, \exp(x)[/itex] (technically, at the level of real functions, this involves staying within a particular region of a Riemann surface). LambertW also is just what you need for the Kruskal-Szekeres chart for the Schwarzschild vacuum solution, and for many other things, e.g. in analysis of algorithms. Books on special functions do discuss this.

For the OP: do you have Maple or Mathematica? LambertW is a defined function in these symbolic computation systems. Maple help offers a lot of information about LambertW. If you can't find this there or elsewhere, I can tell you a power series expansion. With a little effort, I am sure you find a FORTRAN program (or C program) you can use to compute numerical values.
 
  • #11
Chris Hillman said:
If you can't find this there or elsewhere, I can tell you a power series expansion. With a little effort, I am sure you find a FORTRAN program (or C program) you can use to compute numerical values.

I think Keither Briggs has some nice code for that. Google w lambert and his name and you'll probably get it.
 
  • #12
Guys I'm pretty sure that the OP's problem wasn't the lack of lack means to evalute W, it was just that at first he couldn't get the problem into a suitable form to give him a numerical value for the required argument for the funtion. And now he's got it.

Gib Z said:
Does that mean its solved? I am not that familiar with the function...
Just to elaborate a bit on what was said above, and give a simple example.

The Lambert function is defined as the inverse of the function y = x exp(x). So W(const1) is automatically the solution of any equation of the form x exp(x) = const1.

Other forms of transcendental equation involving log and exp can often be rearraged (using change of variables and whatever tricks) into the above form to give a Lambert Function solution. Take a log-linear (linear combo of log(x), x and 1) type transcendental as a very easy example.

Say you wanted to solve : log(x) + ax = b

Just add log(a) to both sides to give : log(ax) + ax = b+log(a)

Then exponentiate each side : ax exp(ax) = a exp(b)

So ax = W(a exp(b)) and x = 1/a W( a exp(b) )
 
  • #13
hallo

can one please inform me if it is possible to use the lambert function method to solve systems of exponential equations (and not simply one equation in one uknown)?

thanks
 
  • #14
himanshu121 said:
I hv this problem in Quantum physics, i tried to solve and eventually got this kind of a equation
[tex]5e^x-5=xe^x[/tex] I thought of solving it via Lambert Function and got

[tex] x=W[5(e^x-1)] [/tex]

How to go aboutt next?How can I evaluate this

Well, you haven't solved that equation at all! First get x on one side of the equation only THEN apply what special functions you have. Here, since the W function is the inverse of xex you are going to want to isolate that first.

[itex]5e^x- 5= xe^x[/itex] so [itex]5e^x- xe^x= 5[/itex], [itex](5- x)e^x= 5[/itex] or [itex](x-5)e^x= -5[/itex]

Let y= x-5 so x= y- 5. Then the equation become [itex]ye^{y-5}= -5[/itex] or [itex]ye^y(e^{-5})= -5[/itex]. Finally, we have [itex]ye^y= -5e^5[/itex] and can apply the W function to that: [itex]y= W(-5e^5)[/itex].

Since y= x- 5, [itex]x- 5= W(-5e^5)[/itex] so [itex]x= 5+ W(-5e^5)[/itex].
 
  • #15
giorgos said:
hallo

can one please inform me if it is possible to use the lambert function method to solve systems of exponential equations (and not simply one equation in one uknown)?

thanks

Please do not "hijack" other people's threads to ask a new question- even if it is related to the topic- start your own thread.

To answer your question- yes, you can, pretty much the same way you solve any system of equations- try to reduce to one equation in one unknown, then use the W function is appropriate. How you reduce, of course, depends on the equations themselves.
 

1. What is the Lambert W Function?

The Lambert W Function, also known as the Product Log Function, is a special function in mathematics that is defined as the inverse of the function f(x) = xe^x. In other words, given a value y, the Lambert W Function solves for x in the equation y = xe^x.

2. What is the significance of the Lambert W Function?

The Lambert W Function has a wide range of applications in various fields of mathematics and science, including physics, engineering, and finance. It is used to solve equations that cannot be solved algebraically, and it can also be used to simplify complex expressions involving exponential functions.

3. How is the Lambert W Function calculated?

The Lambert W Function cannot be calculated using basic arithmetic operations. Instead, it is typically calculated using numerical methods, such as the Newton-Raphson method or the Halley's method. There are also various approximation formulas that can be used to estimate the value of the Lambert W Function for specific values.

4. Can the Lambert W Function have multiple solutions?

Yes, the Lambert W Function can have multiple solutions for a given value. This is because the function f(x) = xe^x is not one-to-one, meaning that different values of x can result in the same output. Therefore, when solving for x in the equation y = xe^x, there may be more than one possible solution.

5. What are some real-life applications of the Lambert W Function?

The Lambert W Function has been used in various fields, such as physics, engineering, finance, and biology. Some specific examples include calculating the voltage in an RC circuit, solving for the yield to maturity in finance, and determining the growth rate of bacteria populations. It has also been used in the study of black holes and in the analysis of population dynamics.

Similar threads

  • General Math
Replies
9
Views
2K
  • Calculus
Replies
27
Views
2K
Replies
4
Views
2K
  • General Math
Replies
7
Views
850
Replies
9
Views
1K
Replies
5
Views
706
Replies
2
Views
230
Replies
2
Views
990
  • General Math
Replies
2
Views
3K
Back
Top