Tangent Graphs: Period and Vertical Asymptotes
The graph of y = tan x repeats every π and has vertical asymptotes at x = π/2 + kπ, where cos x = 0. Between neighbouring asymptotes each branch rises from −∞ to +∞, crossing the x-axis at x = kπ. For y = a·tan(bx + c) + d the period is π ⁄ |b|; tangent has no amplitude because it is unbounded.
Check it yourself: every example here can be loaded into the Trigonometric Graphing Calculator.
Open the Trigonometric Graphing CalculatorKey features of y = tan x
| Feature | Value |
|---|---|
| Period | π |
| Vertical asymptotes | x = π/2 + kπ (k any integer) |
| x-intercepts | x = kπ |
| Domain | all real x except the asymptotes |
| Range | all real numbers |
| Symmetry | odd: tan(−x) = −tan x |
Each branch passes through the origin of its own period: (0, 0), with (π/4, 1) and (−π/4, −1) on either side.
Why the asymptotes appear
Tangent is a ratio:
As x approaches π/2 from the left, sin x approaches 1 and cos x approaches 0 through small positive values, so tan x shoots up to +∞. Just past π/2, cos x is small and negative, so tan x comes up from −∞. That jump is a vertical asymptote, and the graph must not be drawn across it.
- Graph y = tan x — opens the Trigonometric Graphing Calculator
Transformed tangent graphs
- Period: π ⁄ |b|.
- Phase shift: −c ⁄ b.
- Asymptotes: solve bx + c = π/2 + kπ.
- Vertical stretch: a. It is not an amplitude: tangent has no maximum or minimum.
- Midline/centre: y = d.
Text description of this figure
Graph of y = 2 tan(x/2) showing one branch between the asymptotes x = −π and x = π, crossing the origin, with the points (−π/2, −2) and (π/2, 2) marked.
- Period: π ⁄ (1/2) = 2π.
- Asymptotes where x/2 = ±π/2: x = ±π.
- Centre point (0, 0); halfway points at (±π/2, ±2).
Example: y = 2 tan(x/2)
- b = 1/2, so the period is π ⁄ (1/2) = 2π.
- Asymptotes: x/2 = ±π/2 → x = ±π (and every 2π after that).
- Centre point (0, 0).
- Halfway between the centre and each asymptote (at x = ±π/2) the value is ±a = ±2.
- Sketch the branch from the left asymptote, through (−π/2, −2), (0, 0), (π/2, 2), up to the right asymptote.
- Graph y = 2 tan(x/2) — opens the Trigonometric Graphing Calculator
Tangent vs sine and cosine
| sin, cos | tan | |
|---|---|---|
| Shape | smooth wave | separate branches |
| Period | 2π | π |
| Bounded? | yes, between −1 and 1 | no |
| Amplitude | 1 | none |
| Asymptotes | none | x = π/2 + kπ |
Common mistakes
- Calling a the amplitude. Say “vertical stretch”.
- Using 2π ⁄ |b| for the period. For tangent it is π ⁄ |b|.
- Drawing a continuous curve through the asymptotes. Each branch is separate.
- Placing asymptotes at multiples of π. Those are the zeros; asymptotes are halfway between them.
If a tangent graph looks wrong, check the angle mode and the window — see why a graph looks wrong.
Questions
Why does tangent have asymptotes?
tan x = sin x ⁄ cos x. Where cos x = 0 the division is undefined, and nearby the value becomes very large positive or negative.
Why is the period π and not 2π?
Both sin and cos change sign after π, so their ratio repeats: tan(x + π) = tan x.
Why does my calculator draw vertical lines on a tan graph?
Basic plotters connect the last point of one branch to the first point of the next. This site detects the break and never draws that false line.
Graph your own example with the Trigonometric Graphing Calculator — free, in your browser.
Try it nowSources and further reading
- OpenStax, Precalculus 2e — 6.2 Graphs of the Other Trigonometric Functions
- OpenStax, Algebra and Trigonometry 2e — 8.2 Graphs of the Other Trigonometric Functions
Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.