Algebra 2 · Grades 10, 11

Graphing Tangent and the Reciprocal Trig Functions

Quick answer

Tangent is sine divided by cosine, so its graph has vertical asymptotes wherever cos x = 0, at x = π/2 + kπ, and zeros wherever sin x = 0. Between asymptotes it rises through every real value, and it repeats every π. The reciprocal functions are sec x = 1/cos x, csc x = 1/sin x and cot x = cos x / sin x. Each has asymptotes where its denominator is 0, and the U-shaped branches of secant and cosecant touch the cosine and sine waves at their peaks and troughs.

What you'll learn

  • Graph y = tan x and find its period, zeros and asymptotes
  • Explain the asymptotes of tangent from sine and cosine
  • Evaluate and graph secant, cosecant and cotangent
  • Find the period and asymptotes of y = a tan(bx)

Tangent from sine and cosine

On the unit circle, tan⁡x=sin⁡xcos⁡x\tan x = \tfrac{\sin x}{\cos x}. That one fact sets the shape of the graph:

  • Zeros where the numerator sin⁡x=0\sin x = 0: at x=0,±π,±2π,…x = 0, \pm\pi, \pm 2\pi, \ldots
  • Vertical asymptotes where the denominator cos⁡x=0\cos x = 0: at x=±π2,±3π2,…x = \pm\tfrac{\pi}{2}, \pm\tfrac{3\pi}{2}, \ldots, about ±1.57\pm 1.57 and ±4.71\pm 4.71.
y = tan x The tangent curve drawn in separate branches between dashed vertical asymptotes at x = −3π/2, −π/2, π/2 and 3π/2. Each branch rises from the bottom of the graph along one asymptote, crosses the x-axis at its middle, at 0 or ±π, and climbs up along the next asymptote. A dot marks (π/4, 1). -4-224-4-224xy (π/4, 1)
  • y = tan x
y = tan x

Why tangent repeats every π

Adding π\pi to an angle turns to the opposite point of the unit circle, which flips the signs of both coordinates: sin⁡(x+π)=−sin⁡x\sin(x + \pi) = -\sin x and cos⁡(x+π)=−cos⁡x\cos(x + \pi) = -\cos x. In the quotient the two minus signs cancel:

tan⁡(x+π)=−sin⁡x−cos⁡x=tan⁡x\tan(x + \pi) = \frac{-\sin x}{-\cos x} = \tan x

So tangent repeats after half a turn, not a full one. Tangent is the slope of the line from the origin through the point on the circle, and opposite points lie on the same line. Near x=π2x = \tfrac{\pi}{2} that line turns vertical and its slope runs off to infinity, which is the asymptote.

For y=atan⁡(bx)y = a\tan(bx), the period is πb\tfrac{\pi}{b}, and aa stretches the graph vertically.

The reciprocal functions

Three more functions are reciprocals of the first three:

sec⁡x=1cos⁡xcsc⁡x=1sin⁡xcot⁡x=1tan⁡x=cos⁡xsin⁡x\sec x = \frac{1}{\cos x} \qquad \csc x = \frac{1}{\sin x} \qquad \cot x = \frac{1}{\tan x} = \frac{\cos x}{\sin x}

Each has vertical asymptotes where its denominator is 00. Where cosine is 11 or −1-1, secant equals it; where cosine is small, secant is large. So the graph of y=sec⁡xy = \sec x is a row of U-shaped branches, each touching a peak or trough of the cosine wave.

y = sec x and y = cos x The dashed cosine wave, and the secant curve in U-shaped branches. Upward branches sit on the cosine peaks, touching at (0, 1), and downward branches hang below the cosine troughs, touching at (±π, −1). Dashed vertical asymptotes stand where cosine crosses zero. -4-224-4-224xy
  • y = sec x
  • y = cos x
y = sec x and y = cos x

Since ∣cos⁡x∣≤1\lvert \cos x \rvert \le 1, its reciprocal is never between −1-1 and 11: the range of sec⁡x\sec x is y≤−1y \le -1 or y≥1y \ge 1. Cosecant is the same picture built on the sine wave, shifted by π2\tfrac{\pi}{2}.

Worked examples

Common mistakes

Practice problems

  1. Find the period of y=tan⁡3xy = \tan 3x.

    Answer

    π3\tfrac{\pi}{3}

    Full solution

    The period of tan⁡(bx)\tan(bx) is πb\tfrac{\pi}{b}.

  2. Find the period and asymptotes of y=tan⁡x2y = \tan\tfrac{x}{2}.

    Answer

    Period 2π2\pi; asymptotes at x=π+2kπx = \pi + 2k\pi

    Full solution

    π1/2=2π\tfrac{\pi}{1/2} = 2\pi. Asymptotes where x2=π2+kπ\tfrac{x}{2} = \tfrac{\pi}{2} + k\pi, so x=π+2kπx = \pi + 2k\pi.

  3. Find sec⁡π\sec\pi.

    Answer

    −1-1

    Full solution

    cos⁡π=−1\cos\pi = -1, and 1−1=−1\tfrac{1}{-1} = -1.

  4. Find csc⁡π2\csc\tfrac{\pi}{2}.

    Answer

    11

    Full solution

    sin⁡π2=1\sin\tfrac{\pi}{2} = 1.

  5. Find cot⁡π6\cot\tfrac{\pi}{6}.

    Answer

    3\sqrt{3}

    Full solution

    cos⁡(π/6)sin⁡(π/6)=3/21/2=3\tfrac{\cos(\pi/6)}{\sin(\pi/6)} = \tfrac{\sqrt{3}/2}{1/2} = \sqrt{3}.

  6. Find the zeros of y=tan⁡xy = \tan x on [0,2π][0, 2\pi].

    Answer

    00, π\pi and 2π2\pi

    Full solution

    Tangent is 00 where sin⁡x=0\sin x = 0.

  7. Where is y=cot⁡xy = \cot x undefined?

    Answer

    At x=kπx = k\pi

    Full solution

    cot⁡x=cos⁡xsin⁡x\cot x = \tfrac{\cos x}{\sin x} is undefined where sin⁡x=0\sin x = 0.

  8. What is the range of y=csc⁡xy = \csc x?

    Answer

    y≤−1y \le -1 or y≥1y \ge 1

    Full solution

    ∣sin⁡x∣≤1\lvert \sin x \rvert \le 1, so ∣1sin⁡x∣≥1\left\lvert \tfrac{1}{\sin x} \right\rvert \ge 1.

  9. Evaluate y=2tan⁡x+1y = 2\tan x + 1 at x=π4x = \tfrac{\pi}{4}.

    Answer

    33

    Full solution

    tan⁡π4=1\tan\tfrac{\pi}{4} = 1, so y=2+1y = 2 + 1.

  10. A student writes sec⁡x=cos⁡−1x\sec x = \cos^{-1} x. What went wrong?

    Hint

    Compare sec⁡0\sec 0 with cos⁡−10\cos^{-1} 0.

    Answer

    sec⁡x\sec x is the reciprocal 1cos⁡x\tfrac{1}{\cos x}, not the inverse function.

    Full solution

    sec⁡0=1cos⁡0=1\sec 0 = \tfrac{1}{\cos 0} = 1, while cos⁡−10=π2\cos^{-1} 0 = \tfrac{\pi}{2}, the angle whose cosine is 00. The superscript −1-1 on a function name means the inverse function, not a reciprocal.

Frequently asked questions

What is the period of y = tan x?

π. The graph repeats every π units, half the period of sine and cosine. For y = tan(bx) the period is π/b.

Where are the asymptotes of y = tan x?

Where cos x = 0: at x = π/2 + kπ for every integer k.

What are secant, cosecant and cotangent?

The reciprocals: sec x = 1/cos x, csc x = 1/sin x and cot x = 1/tan x = cos x / sin x.

Is sec x the same as cos⁻¹ x?

No. sec x is 1 divided by cos x. cos⁻¹ x, also written arccos x, is the inverse function: the angle whose cosine is x.

What is the range of y = sec x?

All y with y ≤ −1 or y ≥ 1. Since |cos x| ≤ 1, its reciprocal is never between −1 and 1.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSF.IF.C.7eInterpreting FunctionsGraph exponential and logarithmic functions, showing intercepts and end behavior, and trigonometric functions, showing period, midline, and amplitude.
  • CCSS.MATH.CONTENT.HSF.TF.A.4Trigonometric Functions(+) Use the unit circle to explain symmetry (odd and even) and periodicity of trigonometric functions.