Y = 1/(1+x)^x rearranged in terms of x

  • Context: Undergrad 
  • Thread starter Thread starter TheDonk
  • Start date Start date
  • Tags Tags
    Terms
Click For Summary
SUMMARY

The discussion centers on the equation y = 1/(1+x)^x and the challenge of rearranging it to solve for x in terms of y. Participants conclude that there is no algebraic solution available, and the Lambert W function is not applicable in this case. Instead, they suggest using numerical methods such as Newton's method for approximation and recommend the logistic function, 1 / (1 + e^-x), as an alternative for generating a sigmoid-like curve. Mathematica's limitations in solving this equation using the Lambert W function are also highlighted.

PREREQUISITES
  • Understanding of algebraic manipulation and functions
  • Familiarity with the Lambert W function and its applications
  • Knowledge of numerical methods, particularly Newton's method
  • Basic understanding of sigmoid functions and their properties
NEXT STEPS
  • Research the application of the Lambert W function in solving equations
  • Learn about Newton's method for numerical approximation
  • Explore the properties and applications of the logistic function
  • Investigate alternative numerical libraries for solving complex equations
USEFUL FOR

Mathematicians, data scientists, and software developers working on algorithms that require solving complex equations or generating sigmoid-like curves.

TheDonk
Messages
67
Reaction score
0
edit: Oh nuts, embarrassing typo. Should be "...rearranged in terms of y"
Ok, I swear this isn't homework but if it seems too much like homework I'm happy to have it moved there.

So I need to be able to find x given y in:

y = 1/(1+x)^x

Possibly important:
y will always be between 0 and 1 and as y goes from 0 to 1, x goes from infinity to 0.

I don't really know where to start. Is there an exact algebraic solution at all? I need to write an algorithm that will calculate this reliably. The reason I need it is to calculate a sigmoid-like curve based on certain (in my opinion) intuitive inputs. The one remaining problem is inverting this equation!

Thanks to all who help!
- Andrew
 
Mathematics news on Phys.org
There is no algebraic way to do it, I expect. You may be able to express it in terms of the Lambert W function (http://en.wikipedia.org/wiki/Lambert_W_function). I played around with it quickly but didn't immediately figure out how to manipulate it to get it into Lambert W form.
 
I wonder whether Newton's method is a good numerical approach to this. Or there may be libraries out there that can do this sort of thing -- I don't know.
 
That Lambert W function will definitely give me something to think about. Thanks!
 
That function will not work in this case. you can easily do 1/x^x or 1/(x+1)^{x+1} but this one doesn't seem to work?
 
Gregg said:
That function will not work in this case. you can easily do 1/x^x or 1/(x+1)^{x+1} but this one doesn't seem to work?

It's true that Mathematica doesn't seem to be able to find a solution in terms of the Lambert W function (known in Mathematica as ProductLog). I was thinking perhaps a substitution could be found to get the thing into productlog form, but perhaps there isn't one (or Mathematica isn't good at solving for things in terms of the productlog if it doesn't have a built in answer?)
 
Last edited:
Mute said:
It's true that Mathematica doesn't seem to be able to find a solution in terms of the Lambert W function (known in Mathematica as ProductLog). I was thinking perhaps a substitution could be found to get the thing into productlog form, but perhaps there isn't one (or Mathematica isn't good at solving for things in terms of the productlog if it doesn't have a built in answer?)

I have managed to solve things in terms of the w function where mathematica can't e.g. 1/(x+1)^(x+1). So I agree that maybe it isn't that great at solving it. But still, this particular function doesn't seem to work and i can't imagine a substitution that will do it
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
8
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 19 ·
Replies
19
Views
7K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K