Graph of y = tanh x
Quick answer
The graph of y = tanh x is a hyperbolic function. Its domain is all real numbers and its range is −1 < y < 1. It crosses the x-axis at (0, 0) and the y-axis at (0, 0). Asymptotes: Horizontal y = ±1.
y=tanh(x)
Key features
| Domain | All real numbers |
|---|---|
| Range | −1 < y < 1 |
| x-intercepts | (0, 0) |
| y-intercept | (0, 0) |
| Turning points | None |
| Symmetry | odd (symmetric about the origin) |
| Asymptotes | Horizontal y = ±1 |
| End behavior | As x → −∞, y → −1; as x → ∞, y → 1 |
| Derivative | y′ = 1/cosh²(x) |
| Second derivative | y″ = −(2cosh(x)·sinh(x)/cosh⁴(x)) |
An S-shaped curve used as an activation function in neural networks.
Table of values
| x | −3 | −2 | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|---|---|
| y | −0.995055 | −0.964028 | −0.761594 | 0 | 0.761594 | 0.964028 | 0.995055 |
How to graph y = tanh x
- Open the graphing calculator and type
y = tanh(x). - Plot the y-intercept (0, 0).
- Plot the x-intercepts: (0, 0).
- Draw the asymptotes as dashed lines: Horizontal y = ±1.
- Use the table of values to add a few more points, then connect them with a smooth curve that follows the end behavior.
About hyperbolic functions
Hyperbolic functions are built from eˣ and e⁻ˣ. They describe hanging cables, special relativity and many differential equations.
Frequently asked questions
What is the domain and range of y = tanh x?
Domain: All real numbers. Range: −1 < y < 1.
What are the x-intercepts of y = tanh x?
(0, 0).
What is the derivative of tanh x?
1/cosh²(x). Graph it by defining f(x) = tanh(x) and typing f'(x).
Is tanh x even, odd or neither?
It is odd (symmetric about the origin).