Trigonometry

Graphs of Tangent, Cotangent, Secant, and Cosecant

Last updated: March 2026 · Advanced
Before you start

You should be comfortable with:

Real-world applications
📐
Carpentry

Measurements, material estimation, cutting calculations

Electrical

Voltage drop, wire sizing, load balancing

The sine and cosine graphs are smooth, continuous waves. The other four trig functions behave differently — they have vertical asymptotes where they are undefined, and their shapes are distinct. Understanding these graphs completes your picture of all six trig functions and is essential for advanced work in AC circuit analysis, structural engineering, and any field that relies on periodic behavior.

The Tangent Function

The tangent function is defined as tan(x)=sin(x)cos(x)\tan(x) = \frac{\sin(x)}{\cos(x)}. Whenever cos(x)=0\cos(x) = 0, tangent is undefined — and that is where the vertical asymptotes appear.

Key properties of y=tan(x)y = \tan(x):

  • Period: π\pi (not 2π2\pi) — the tangent repeats twice as fast as sine and cosine
  • Vertical asymptotes: at x=π2+nπx = \frac{\pi}{2} + n\pi for any integer nn (wherever cos(x)=0\cos(x) = 0)
  • Passes through the origin with slope 1 — the tangent line to the curve at (0,0)(0, 0) has slope 1
  • Range: all real numbers (,)(-\infty, \infty)
  • Odd function: tan(x)=tan(x)\tan(-x) = -\tan(x), so the graph is symmetric about the origin

Graph of y = tan(x)

-π/20π/2π1-1

Between each pair of asymptotes, the tangent curve rises from -\infty to ++\infty, passing through zero at every multiple of π\pi. Each S-shaped segment is one complete period.

The Cotangent Function

The cotangent function is cot(x)=cos(x)sin(x)\cot(x) = \frac{\cos(x)}{\sin(x)}, the reciprocal of tangent. It is undefined wherever sin(x)=0\sin(x) = 0.

Key properties of y=cot(x)y = \cot(x):

  • Period: π\pi (same as tangent)
  • Vertical asymptotes: at x=nπx = n\pi for any integer nn (wherever sin(x)=0\sin(x) = 0)
  • Decreasing: between each pair of asymptotes, cotangent falls from ++\infty to -\infty — the opposite direction of tangent
  • Range: all real numbers (,)(-\infty, \infty)
  • Odd function: cot(x)=cot(x)\cot(-x) = -\cot(x)

You can think of cotangent as a reflected and shifted tangent. Specifically:

cot(x)=tan ⁣(xπ2)\cot(x) = -\tan\!\left(x - \frac{\pi}{2}\right)

This means the cotangent graph is the tangent graph reflected across the horizontal axis and shifted right by π2\frac{\pi}{2}. While tangent passes through the origin heading upward, cotangent passes through (π2,0)\left(\frac{\pi}{2}, 0\right) heading downward.

The key difference to remember: tangent has asymptotes at odd multiples of π2\frac{\pi}{2}, while cotangent has asymptotes at multiples of π\pi (including zero).

The Secant Function

The secant function is sec(x)=1cos(x)\sec(x) = \frac{1}{\cos(x)}. Since it is the reciprocal of cosine, it shares the same asymptote locations as tangent (wherever cos(x)=0\cos(x) = 0), but its shape is entirely different — instead of S-curves, it forms U-shaped parabola-like curves opening upward and downward.

Key properties of y=sec(x)y = \sec(x):

  • Period: 2π2\pi (same as cosine)
  • Vertical asymptotes: at x=π2+nπx = \frac{\pi}{2} + n\pi (same as tangent)
  • Range: (,1][1,)(-\infty, -1] \cup [1, \infty) — secant is never between 1-1 and 11
  • Even function: sec(x)=sec(x)\sec(-x) = \sec(x), symmetric about the yy-axis
  • Where cos(x)=1\cos(x) = 1, sec(x)=1\sec(x) = 1 (the curves touch)
  • Where cos(x)=1\cos(x) = -1, sec(x)=1\sec(x) = -1 (the curves touch)

Graph of y = sec(x) with y = cos(x) reference

-2π-π/20π/2π1-1sec(x)cos(x)

Notice how the secant curve touches the cosine curve at every peak and trough — at those points, cos(x)=±1\cos(x) = \pm 1 and sec(x)=±1\sec(x) = \pm 1. Between those contact points, the secant curves away to infinity as cosine approaches zero.

The upward-opening U-shapes appear wherever cosine is positive, and the downward-opening U-shapes appear wherever cosine is negative. The secant graph never enters the horizontal band between y=1y = -1 and y=1y = 1.

The Cosecant Function

The cosecant function is csc(x)=1sin(x)\csc(x) = \frac{1}{\sin(x)}. It relates to sine in the same way that secant relates to cosine.

Key properties of y=csc(x)y = \csc(x):

  • Period: 2π2\pi (same as sine)
  • Vertical asymptotes: at x=nπx = n\pi (wherever sin(x)=0\sin(x) = 0) — same locations as cotangent
  • Range: (,1][1,)(-\infty, -1] \cup [1, \infty) — never between 1-1 and 11, just like secant
  • Odd function: csc(x)=csc(x)\csc(-x) = -\csc(x)
  • U-shaped curves opening up and down, same shape as secant but shifted

The relationship between cosecant and secant mirrors the relationship between sine and cosine. Since sin(x)=cos ⁣(xπ2)\sin(x) = \cos\!\left(x - \frac{\pi}{2}\right), we have:

csc(x)=sec ⁣(xπ2)\csc(x) = \sec\!\left(x - \frac{\pi}{2}\right)

The cosecant graph is the secant graph shifted right by π2\frac{\pi}{2}. Where sine reaches its peak of 11, cosecant has a minimum of 11. Where sine hits its trough of 1-1, cosecant has a maximum of 1-1.

Summary Comparison

FunctionPeriodAsymptotesRangeOdd/Even
tan(x)\tan(x)π\pix=π2+nπx = \frac{\pi}{2} + n\piAll realsOdd
cot(x)\cot(x)π\pix=nπx = n\piAll realsOdd
sec(x)\sec(x)2π2\pix=π2+nπx = \frac{\pi}{2} + n\piy1\lvert y \rvert \geq 1Even
csc(x)\csc(x)2π2\pix=nπx = n\piy1\lvert y \rvert \geq 1Odd

Notice the pattern: tangent and secant share the same asymptote locations (where cos=0\cos = 0), while cotangent and cosecant share the same asymptote locations (where sin=0\sin = 0).

Transformations

The same transformation rules you learned for sine and cosine graphs apply to all six trig functions. The general transformed tangent function is:

y=Atan(B(xC))+Dy = A\tan(B(x - C)) + D

  • Vertical stretch AA: multiplies all yy-values by AA (if AA is negative, the curve flips vertically)
  • Period: πB\frac{\pi}{|B|} for tangent and cotangent, 2πB\frac{2\pi}{|B|} for secant and cosecant
  • Phase shift CC: shifts the graph (and its asymptotes) left or right
  • Vertical shift DD: moves the entire graph up or down

For example, y=3tan(2x)y = 3\tan(2x) has period π2\frac{\pi}{2} (asymptotes twice as close together) and a vertical stretch of 3. The function y=sec(xπ)+1y = \sec(x - \pi) + 1 shifts the standard secant graph right by π\pi and up by 1.

When you transform secant or cosecant, remember that the forbidden band (the gap where no values exist) shifts with DD. For y=Asec(Bx)+Dy = A\sec(Bx) + D, the graph never takes values between DAD - |A| and D+AD + |A|.

Common Mistakes

Mixing up asymptote locations. Tangent and secant have asymptotes at x=π2+nπx = \frac{\pi}{2} + n\pi (odd multiples of π2\frac{\pi}{2}). Cotangent and cosecant have asymptotes at x=nπx = n\pi (integer multiples of π\pi). A quick check: tangent is undefined where cosine is zero, cotangent is undefined where sine is zero.

Forgetting the forbidden range. Secant and cosecant never take values between 1-1 and 11. If you compute sec(θ)=0.5\sec(\theta) = 0.5, you have made an error — that value is impossible.

Drawing continuous curves across asymptotes. The secant and cosecant graphs are not connected across asymptotes. Each U-shaped segment is a separate piece of the graph. Similarly, each S-shaped tangent/cotangent segment is separate. Never draw a line crossing an asymptote.

Using period 2π2\pi for tangent and cotangent. The tangent and cotangent functions repeat every π\pi, not every 2π2\pi. This is one of the most common errors when setting up graphs or solving equations.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Where are the asymptotes of y=tan(2x)y = \tan(2x)?

The standard tangent has asymptotes at x=π2+nπx = \frac{\pi}{2} + n\pi. With the transformation 2x2x replacing xx, set:

2x=π2+nπ2x = \frac{\pi}{2} + n\pi

x=π4+nπ2x = \frac{\pi}{4} + \frac{n\pi}{2}

Answer: The asymptotes are at x=π4+nπ2x = \frac{\pi}{4} + \frac{n\pi}{2}, which gives x=,3π4,π4,π4,3π4,x = \ldots, -\frac{3\pi}{4}, -\frac{\pi}{4}, \frac{\pi}{4}, \frac{3\pi}{4}, \ldots

Problem 2: What is the period of y=cot ⁣(x3)y = \cot\!\left(\frac{x}{3}\right)?

For cotangent, the period formula is πB\frac{\pi}{|B|}. Here B=13B = \frac{1}{3}:

Period=π1/3=π1/3=3π\text{Period} = \frac{\pi}{|1/3|} = \frac{\pi}{1/3} = 3\pi

Answer: The period is 3π3\pi.

Problem 3: What is the range of y=2sec(x)+1y = 2\sec(x) + 1?

The standard secant has range (,1][1,)(-\infty, -1] \cup [1, \infty). Multiplying by 2 stretches vertically: (,2][2,)(-\infty, -2] \cup [2, \infty). Adding 1 shifts everything up by 1:

(,2+1][2+1,)=(,1][3,)(-\infty, -2 + 1] \cup [2 + 1, \infty) = (-\infty, -1] \cup [3, \infty)

Answer: The range is (,1][3,)(-\infty, -1] \cup [3, \infty). The function never takes values between 1-1 and 33.

Problem 4: Sketch y=csc(x)y = -\csc(x). What changes from the standard csc(x)\csc(x) graph?

The negative sign reflects the graph across the xx-axis. Every U-shaped curve that opened upward now opens downward, and vice versa.

  • The asymptotes stay in the same locations (x=nπx = n\pi)
  • The period is still 2π2\pi
  • Where csc(x)=1\csc(x) = 1 (at x=π2x = \frac{\pi}{2}), now y=1y = -1
  • Where csc(x)=1\csc(x) = -1 (at x=3π2x = \frac{3\pi}{2}), now y=1y = 1

Answer: The graph is the standard cosecant flipped upside down. The range remains (,1][1,)(-\infty, -1] \cup [1, \infty), but the upward and downward branches swap positions.

Problem 5: If sec(θ)=2\sec(\theta) = -2, in which quadrants could θ\theta be?

Since sec(θ)=1cos(θ)\sec(\theta) = \frac{1}{\cos(\theta)}, we have cos(θ)=12=12\cos(\theta) = \frac{1}{-2} = -\frac{1}{2}.

Cosine is negative in Quadrant II and Quadrant III.

The reference angle where cos(θ)=12\cos(\theta) = \frac{1}{2} is 60°60° (or π3\frac{\pi}{3}), so:

θ=2π3+2nπorθ=4π3+2nπ\theta = \frac{2\pi}{3} + 2n\pi \quad \text{or} \quad \theta = \frac{4\pi}{3} + 2n\pi

Answer: θ\theta is in Quadrant II or Quadrant III.

Key Takeaways

  • Tangent and cotangent have period π\pi and range all real numbers — they are the “S-curve” trig functions
  • Secant and cosecant have period 2π2\pi and range (,1][1,)(-\infty, -1] \cup [1, \infty) — they are the “U-curve” trig functions
  • Vertical asymptotes occur where the denominator function (cos\cos or sin\sin) equals zero
  • Tangent/secant share asymptote locations; cotangent/cosecant share asymptote locations
  • The same transformation rules (amplitude, period, phase shift, vertical shift) apply to all six trig functions
  • These functions are never drawn as continuous curves across their asymptotes — each segment is a separate branch

Return to Trigonometry for more topics in this section.

Last updated: March 28, 2026