Graph of y = tan x
Quick answer
The graph of y = tan x is a trigonometric function. Its domain is x ≠ π/2 + kπ and its range is all real numbers. It crosses the x-axis at (−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0) and (6.28319, 0) and the y-axis at (0, 0). Asymptotes: Vertical at x = π/2 + kπ.
y=tan(x)
Key features
| Domain | x ≠ π/2 + kπ |
|---|---|
| Range | All real numbers |
| x-intercepts | (−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0) and (6.28319, 0) (shown for −2π ≤ x ≤ 2π; the pattern repeats) |
| y-intercept | (0, 0) |
| Turning points | None |
| Symmetry | odd (symmetric about the origin) |
| Period | π |
| Asymptotes | Vertical at x = π/2 + kπ |
| End behavior | As x → −∞, y oscillates; as x → ∞, y oscillates |
| Derivative | y′ = sec²(x) |
| Second derivative | y″ = 2sec(x)(sec(x)·tan(x)) |
Tangent equals sin x / cos x, so it blows up wherever cos x = 0.
Table of values
| x | 0 | π/6 | π/4 | π/3 | π/2 | π | 3π/2 | 2π |
|---|---|---|---|---|---|---|---|---|
| y | 0 | 0.57735 | 1 | 1.73205 | 1.63312×10^16 | 0 | 5.44375×10^15 | 0 |
How to graph y = tan x
- Open the graphing calculator and type
y = tan(x). - Plot the y-intercept (0, 0).
- Plot the x-intercepts: (−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0), (6.28319, 0).
- Draw the asymptotes as dashed lines: Vertical at x = π/2 + kπ.
- Use the table of values to add a few more points, then connect them with a smooth curve that follows the end behavior.
About trigonometric functions
Trigonometric functions are periodic: the graph repeats after a fixed horizontal distance called the period. Angles are in radians.
Frequently asked questions
What is the domain and range of y = tan x?
Domain: x ≠ π/2 + kπ. Range: All real numbers.
What are the x-intercepts of y = tan x?
(−6.28319, 0), (−3.14159, 0), (0, 0), (3.14159, 0) and (6.28319, 0).
What is the derivative of tan x?
sec²(x). Graph it by defining f(x) = tan(x) and typing f'(x).
Is tan x even, odd or neither?
It is odd (symmetric about the origin).