Looking for a method of solution/inversion for x*Tanh[x]

  • Context: Graduate 
  • Thread starter Thread starter Hepth
  • Start date Start date
  • Tags Tags
    Method
Click For Summary

Discussion Overview

The discussion revolves around finding a method to solve the equation $$ y == x*Tanh[x] $$ for "x". Participants explore whether an analytical solution exists, including the possibility of using more complex functions like the Lambert W function or other methods such as recursive solutions or geometric series.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants note that the function is not injective on its maximal real domain, suggesting that an inverse cannot exist without restricting the domain.
  • Others agree that while a single real positive solution may exist numerically within a restricted domain (e.g., 0 to 1), there is no analytical solution in closed form.
  • One participant proposes that an inverse does exist in a practical sense, suggesting the use of interpolation methods in Mathematica to approximate the inverse function, indicating that the accuracy can be improved with further modifications.

Areas of Agreement / Disagreement

Participants generally agree that there is no closed-form solution for the inverse function, but there is disagreement regarding the existence of a practical method to find an inverse, particularly through numerical or interpolation techniques.

Contextual Notes

Limitations include the non-injectivity of the function across its entire domain and the dependence on domain restrictions for finding solutions. The discussion also highlights the unresolved nature of whether a satisfactory analytical or numerical method can be universally applied.

Hepth
Science Advisor
Gold Member
Messages
458
Reaction score
40
$$ y == x*Tanh[x]$$

Solve for "x".

Does this exist? Even in terms of more complicated functions like Lambert W, or possibly recursive solutions/geometric series/etc.

Thanks, if anyone can point me in the right direction!
 
Mathematics news on Phys.org
Hepth said:
$$ y == x*Tanh[x]$$

Solve for "x".

Does this exist? Even in terms of more complicated functions like Lambert W, or possibly recursive solutions/geometric series/etc.

Thanks, if anyone can point me in the right direction!

First of all. This function is not injective on its maximal real domain, so there is no possibility that an inverse can exist. This can be solved by restricting the domain, however, I believe there is no closed form:

http://www.wolframalpha.com/input/?i=what+is+the+inverse+function+of+y+=+x+tanh(x)+?
 
That's what I was finding, even if I'm restricted to 0 to 1 for example, there numerically will exist a a single real
positive solution; but analytically I don't think there's a solution.
 
At least not in a closed form, yes.
 
Hepth said:
$$ y == x*Tanh[x]$$

Solve for "x".

Does this exist? Even in terms of more complicated functions like Lambert W, or possibly recursive solutions/geometric series/etc.

Thanks, if anyone can point me in the right direction!

For me, the inverse "does" exists and depends what you mean by solve:
In Mathematica:
Code:
myData = Array[{# Tanh[#], #} &, {100}, {0, 20}];
myTanhInverse = Interpolation[myData]

myTanhInverse is pretty close to the inverse (domain-restricted). I leave it to the reader to modify my code so that the inverse is accurate to 20 digits in the interval (0,20).
 
Last edited:

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 20 ·
Replies
20
Views
3K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K