Graph of y = tanh x

Hyperbolic functions · Updated 2026-11-26

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.

−6−5−4−3−2−1123456−3−2−1123
  • y=tanh(x)
Open in graphing calculator

Click the curve to show intercepts and turning points.

Key features

DomainAll real numbers
Range−1 < y < 1
x-intercepts(0, 0)
y-intercept(0, 0)
Turning pointsNone
Symmetryodd (symmetric about the origin)
AsymptotesHorizontal y = ±1
End behaviorAs x → −∞, y → −1; as x → ∞, y → 1
Derivativey′ = 1/cosh²(x)
Second derivativey″ = −(2cosh(x)·sinh(x)/cosh⁴(x))

An S-shaped curve used as an activation function in neural networks.

Table of values

x−3−2−10123
y−0.995055−0.964028−0.76159400.7615940.9640280.995055

How to graph y = tanh x

  1. Open the graphing calculator and type y = tanh(x).
  2. Plot the y-intercept (0, 0).
  3. Plot the x-intercepts: (0, 0).
  4. Draw the asymptotes as dashed lines: Horizontal y = ±1.
  5. 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).