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
SUMMARY

The discussion centers on solving the equation $$ y = x \cdot \tanh(x) $$ for "x". It is established that the function is not injective over its maximal real domain, indicating that an inverse does not exist without domain restriction. While a closed-form solution is not available, numerical methods can yield approximate solutions. Specifically, using Mathematica, an interpolation method can be employed to generate an approximate inverse function within a restricted domain.

PREREQUISITES
  • Understanding of hyperbolic functions, specifically Tanh
  • Familiarity with inverse functions and their properties
  • Knowledge of numerical methods for function approximation
  • Experience with Mathematica for data manipulation and interpolation
NEXT STEPS
  • Explore the properties of hyperbolic functions and their inverses
  • Learn about the Lambert W function and its applications in solving equations
  • Investigate numerical methods for function approximation, focusing on interpolation techniques
  • Practice using Mathematica to implement and modify interpolation for various functions
USEFUL FOR

Mathematicians, students studying calculus and numerical methods, and anyone interested in solving complex equations involving hyperbolic functions.

Hepth
Science Advisor
Gold Member
Messages
457
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
1K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 20 ·
Replies
20
Views
2K
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K