This tanh calculator is the ultimate tool you need to deal with the hyperbolic tangent function! In what follows, we will explain what tanh is in math and how to calculate both the inverse and the derivative of tanh. We won't forget to give you extra tips on how to use this hyperbolic tangent calculator most efficiently. Let's go!
What is tanh in math?
We define tanh (that is, the hyperbolic tangent function) as follows:
Okay, just some exponents and division, no big deal. It may not, however, be obvious at all why this function is called hyperbolic tangent. What does it have to do with tangents and hyperbolas?
Well, it's a slightly longer story. First, there exist functions called hyperbolic sine and hyperbolic cosine. Their definitions read:
They are called hyperbolic because the points (, ) trace a (part of a) hyperbola in the standard Cartesian coordinate system.
And just as the normal tangent function is the ratio of sine to cosine, also the hyperbolic tangent is the ratio of hyperbolic sine to hyperbolic cosine:
Hyperbolic cotangent function
Also, just as the standard cotangent function is the multiplicative inverse of tangent, there is a function called hyperbolic cotangent defined, unsurprisingly, as follows:
Graph of hyperbolic tangent
Let's take a look at the plot of tanh:
From the graph of the hyperbolic tangent function, we can deduce that:
- tanh is an odd function, i.e., ;
- tanh is increasing;
- tanh is bounded: its values sit between and ; and
- tanh is a bijection, so it has an inverse.
The inverse function of tanh is called arc hyperbolic tangent. Let's discuss how to compute its values.
How do I compute the arc hyperbolic tangent?
To compute the value of arc hyperbolic tangent at
x, follow these steps:
- Verify your
xis a value between
1. If it is not, you cannot compute tanh inv for this
1 + xand
1 - x.
- Perform the division
(1 + x)/(1 - x).
- Find the natural logarithm of the result.
- Divide by
2. That's it!
To summarize, the formula for the arc hyperbolic tangent function reads:
How to use this tanh calculator?
To use our hyperbolic tangent calculator, you only need to fill in the field
x, and the value of
tanh(x) will appear immediately. It couldn't be any easier, really.
If you want to find the inverse of tanh, that is, the arc hyperbolic tangent, you need to use the calc in reverse. That is, fill in the field
tanh(x), and the value in
x is exactly the value of
artanh(x). Be careful! As we've explained above, the valid values of the inverse of tanh are the numbers between -1 and 1!
💡 Do you need other hyperbolic functions as well? Hit the
advanced mode button at the bottom of the tanh calculator and they will appear :)
Omni tools for hyperbolic functions
What is the derivative of tanh?
The derivative of the hyperbolic tangent is the square of the sech function. In fact, we have the following relationships: tanh'(x) = 1 - tanh2(x) = 1/cosh2(x) = sech2(x).
How do I get tanh in a calculator?
tanh(x) with a basic calculator:
- Make sure your calculator can perform exponentiation.
exp(x). Store the result at every step - use the memory of your calculator or just a piece of paper.
(exp(x) - exp(-x)) / (exp(x) + exp(-x)).
- That's it! You can use an online tanh calculator to verify your result.
What is the value of tanh 0?
The answer is 0. You can read this value from the graph of tanh x as well as conclude it from the fact that tanh is an odd function, i.e., it satisfies
tanh(-x) = -tanh(x). Plugging in
x = 0, we get
tanh(0) = -tanh(0), which immediately gives
tanh(0) = 0, as claimed.
Is tanh the same as arctan?
No, cosh stands for the hyperbolic cosine function, which is different from (yet related to, in some sense) the standard cosine function (cos). The notation cos-1 is a bit ambiguous and may denote, depending on the context, the inverse cosine function (arccos(x)) or the multiplicative inverse (1/cos(x)). Neither of them, however, is the same as cosh!