Grade 12 IB Math is live, AA and AI · see the IB course

Grade 12 · MHF4U · Advanced Functions

MHF4U: Graphs of Tan, Sec, Csc and Cot

The other four trig functions are built from sine and cosine by dividing, and a division blows up wherever the bottom is 00. So each of these graphs is a set of vertical asymptotes with a curve between them, and the asymptotes are the first thing to find.

How It Works

Tangent. tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}, so the asymptotes are where cos⁡x=0\cos x = 0: x=π2+nπx = \frac{\pi}{2} + n\pi. The zeros are the zeros of sine, x=nπx = n\pi. Between two asymptotes the curve rises from −∞-\infty to +∞+\infty through its zero, and the pattern repeats every π\pi, not 2π2\pi. The range is all real numbers.

Cotangent is cos⁡xsin⁡x\frac{\cos x}{\sin x}, so everything swaps: asymptotes at x=nπx = n\pi, zeros at x=π2+nπx = \frac{\pi}{2} + n\pi, period π\pi, and each branch falls from +∞+\infty to −∞-\infty.

Secant and cosecant. sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}, so draw y=cos⁡xy = \cos x lightly first. Every zero of cosine becomes an asymptote, and every maximum or minimum of cosine becomes the vertex of a U shape: where cos⁡x=1\cos x = 1, sec⁡x=1\sec x = 1 and the U opens upward; where cos⁡x=−1\cos x = -1, sec⁡x=−1\sec x = -1 and it opens downward. The period stays 2π2\pi, and the range is y≤−1y \le -1 or y≥1y \ge 1, with nothing in between. Cosecant is the same construction from sine.

Transformations work the way they do for sine and cosine, with the asymptotes moving too. For y=asec⁡(k(x−d))+cy = a \sec(k(x - d)) + c the period is 2πk\frac{2\pi}{k}, and the asymptotes are the shifted, squeezed zeros of cos⁡(k(x−d))\cos(k(x - d)). For tan⁡(kx)\tan(kx) the period is πk\frac{\pi}{k}. The vertical stretch and shift change the range: the vertices sit at c±∣a∣c \pm |a|, so the gap in the range is between those two values.

The usual test question gives one of these in transformed form and asks for the period, the asymptotes in an interval, and the range. Find the asymptotes by solving for the angle where the parent function's denominator is 00, then solving that for xx.

5 Worked Examples

Easy first, test level last. Try each one on paper, then open the solution.

  1. Easy

    For y=tan⁡xy = \tan x on 0≤x≤2π0 \le x \le 2\pi, state the period and the equations of the asymptotes.
    Show solution
    1. The period of tangent is π\pi.
    2. Asymptotes where cos⁡x=0\cos x = 0: x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2} in this interval.

    Answer: Period π\pi; asymptotes x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}

  2. Easy

    Sketch y=sec⁡xy = \sec x on 0≤x≤2π0 \le x \le 2\pi: give its asymptotes, its range and the vertex of each U.
    Show solution
    1. sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}, so the asymptotes are where cos⁡x=0\cos x = 0: x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}.
    2. Where cos⁡x=1\cos x = 1, at x=0x = 0 and x=2πx = 2\pi, sec⁡x=1\sec x = 1: upward U shapes with vertices (0,1)(0, 1) and (2π,1)(2\pi, 1). Where cos⁡x=−1\cos x = -1, at x=πx = \pi, sec⁡x=−1\sec x = -1: a downward U with vertex (π,−1)(\pi, -1).
    3. Since ∣cos⁡x∣≤1|\cos x| \le 1, ∣sec⁡x∣≥1|\sec x| \ge 1: the range is y≤−1y \le -1 or y≥1y \ge 1.

    Answer: Asymptotes x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}; vertices (0,1)(0, 1), (π,−1)(\pi, -1), (2π,1)(2\pi, 1); range y≤−1y \le -1 or y≥1y \ge 1

  3. Medium

    For y=csc⁡xy = \csc x on 0<x<2π0 < x < 2\pi, find the asymptotes, the local maximum and minimum, and the exact value of csc⁡π6\csc \frac{\pi}{6}.
    Show solution
    1. csc⁡x=1sin⁡x\csc x = \frac{1}{\sin x}. Inside the interval sin⁡x=0\sin x = 0 only at x=πx = \pi, and the interval's endpoints 00 and 2π2\pi are asymptotes as well.
    2. sin⁡x\sin x peaks at (π2,1)\left(\frac{\pi}{2}, 1\right), so csc⁡x\csc x has a local minimum there, (π2,1)\left(\frac{\pi}{2}, 1\right); sin⁡x\sin x bottoms out at (3π2,−1)\left(\frac{3\pi}{2}, -1\right), so csc⁡x\csc x has a local maximum (3π2,−1)\left(\frac{3\pi}{2}, -1\right).
    3. csc⁡π6=1sin⁡π6=11/2=2\csc \frac{\pi}{6} = \frac{1}{\sin \frac{\pi}{6}} = \frac{1}{1/2} = 2.

    Answer: Asymptotes x=0,π,2πx = 0, \pi, 2\pi; local minimum (π2,1)\left(\frac{\pi}{2}, 1\right), local maximum (3π2,−1)\left(\frac{3\pi}{2}, -1\right); csc⁡π6=2\csc \frac{\pi}{6} = 2

  4. Medium

    Find the period, the zeros and the asymptotes of y=tan⁡2xy = \tan 2x on 0≤x≤π0 \le x \le \pi.
    Show solution
    1. The period of tan⁡(kx)\tan(kx) is πk=π2\frac{\pi}{k} = \frac{\pi}{2}.
    2. Asymptotes where cos⁡2x=0\cos 2x = 0: 2x=π2+nπ2x = \frac{\pi}{2} + n\pi, so x=π4+nπ2x = \frac{\pi}{4} + \frac{n\pi}{2}. In the interval: x=π4x = \frac{\pi}{4} and x=3π4x = \frac{3\pi}{4}.
    3. Zeros where sin⁡2x=0\sin 2x = 0: 2x=nπ2x = n\pi, so x=0,π2,πx = 0, \frac{\pi}{2}, \pi.

    Answer: Period π2\frac{\pi}{2}; zeros x=0,π2,πx = 0, \frac{\pi}{2}, \pi; asymptotes x=π4x = \frac{\pi}{4} and x=3π4x = \frac{3\pi}{4}

  5. Test level

    For y=3csc⁡2x−1y = 3 \csc 2x - 1, find the period, the asymptotes on 0≤x≤π0 \le x \le \pi, the range, and the vertex of each U in that interval.
    Show solution
    1. The period of csc⁡(kx)\csc(kx) is 2πk=π\frac{2\pi}{k} = \pi, the same as sin⁡2x\sin 2x.
    2. Asymptotes where sin⁡2x=0\sin 2x = 0: 2x=0,π,2π2x = 0, \pi, 2\pi, so x=0,π2,πx = 0, \frac{\pi}{2}, \pi.
    3. csc⁡2x\csc 2x has range y≤−1y \le -1 or y≥1y \ge 1. Multiplying by 33 makes it y≤−3y \le -3 or y≥3y \ge 3; subtracting 11 gives y≤−4y \le -4 or y≥2y \ge 2.
    4. Vertices sit where sin⁡2x=±1\sin 2x = \pm 1. At x=π4x = \frac{\pi}{4}, sin⁡2x=1\sin 2x = 1 and y=3−1=2y = 3 - 1 = 2. At x=3π4x = \frac{3\pi}{4}, sin⁡2x=−1\sin 2x = -1 and y=−3−1=−4y = -3 - 1 = -4.

    Answer: Period π\pi; asymptotes x=0,π2,πx = 0, \frac{\pi}{2}, \pi; range y≤−4y \le -4 or y≥2y \ge 2; vertices (π4,2)\left(\frac{\pi}{4}, 2\right) and (3π4,−4)\left(\frac{3\pi}{4}, -4\right)

Learn It on Martian Lab

Martian Lab teaches this in the Graphing Trigonometric Functions lesson of its MHF4U Trigonometric Functions unit. Watch it, then take the Trigonometric Functions practice tests to see if it stuck.

Watch the Graphing Trigonometric Functions lesson free

Start Practicing

No credit card required to start.

Get started