Graph Tangent & Cotangent notes (Precalculus)
Graph and transform tangent and cotangent.
The big question
tan x
What does tangent look like? Repeating curves with gaps!
Learn it, step by step
1. Asymptotes
tan x = sin x ÷ cos x. When cos x is 0, tangent is undefined.
That happens at π/2, 3π/2 and so on: vertical asymptotes.

2. Period π
Tangent repeats every π, not 2π. It goes from −∞ up to ∞ in each piece.
Cotangent is 1/tan: it falls instead, with asymptotes at 0, π, 2π.

3. Find the period: step by step
What is the period of y = 3 cot(9x), in degrees?
Step 1. Tangent and cotangent repeat every 180 degrees.
Step 2. The 9 inside squeezes the graph, so divide: 180 ÷ 9 = 20 degrees.
The 3 in front stretches the graph up and down, but it does not change the period.
y = 3 cot(9x)
Step 1: tan and cot: period 180°
Step 2: 180 ÷ 9 = 20
period = 20°
the 3 in front does not change the period

Watch out: π, not 2π
Tangent's period is π. Use π ÷ b.
Wrong: tan: 2π / b. Right: tan: π / b.
Your turn
What is the period of y = tan(2x)?
y = tan(2x)
Answer: π/2. π ÷ 2 = π/2!
Remember
Tangent: period π, asymptotes where cos x = 0.
tan x = sin x / cos x
Watch the Graph Tangent & Cotangent lesson and practice · Printable worksheet