TOPIC

Secant graph: y = sec x

MY PROGRESS

Pug Score

0%

Study Points

+0

Overview

Watch

Read

Next Steps


Get Started

Get unlimited access to all videos, practice problems, and study tools.

Unlimited practice
Full videos

Back to Menu

Topic Progress

Pug Score

0%

Videos Watched

0/0

Read

Not viewed


Study Points

+0

Read

Secant Graph: y = sec x

A focused guide to graphing y = sec x, covering how secant relates to cosine, its domain and range, vertical asymptotes, period, and how to sketch and transform the secant curve.

What Is the Secant Function?

The secant function is defined as the reciprocal of cosine: \( \sec x = \dfrac{1}{\cos x} \). This single relationship explains almost everything about the shape of the secant graph. Wherever cosine is large, secant is small, and wherever cosine gets close to zero, secant shoots off toward infinity. Because secant is built directly from cosine, it helps to already be comfortable with basic trig ratios like the sine ratio before tackling reciprocal graphs.

Domain, Range, and Asymptotes of y = sec x

Since \( \sec x = \dfrac{1}{\cos x} \), the function is undefined anywhere \( \cos x = 0 \). That happens at \( x = \dfrac{\pi}{2} + k\pi \) for any integer \( k \). At each of these x-values, the secant graph has a vertical asymptote, and the curve never actually crosses it.

The domain of \( y = \sec x \) is all real numbers except \( x = \dfrac{\pi}{2} + k\pi \). The range is restricted to \( y \le -1 \) or \( y \ge 1 \), because \( \cos x \) only ever takes values between negative 1 and 1, and dividing 1 by a small fraction always produces a large number.

Graphing y = sec x

The graph of \( y = \sec x \) is made up of a series of U-shaped and upside-down U-shaped branches, each squeezed between two consecutive vertical asymptotes. Near \( x = 0 \), where \( \cos x = 1 \), the secant curve touches its minimum value of 1 and opens upward. Near \( x = \pi \), where \( \cos x = -1 \), the curve touches a maximum of negative 1 and opens downward.

Graph of y = sec x showing repeating U-shaped branches with vertical asymptotes at odd multiples of pi over 2 Plot of y = 1/cos(x) for x in [-6.5, 6.5] -6 -4 -2 0 2 4 6 -20 0 20 40 x y sec(-pi) = -1 sec(0) = 1 sec(pi) = -1
Graph of y = sec x, showing repeating U-shaped branches and vertical asymptotes where cosine equals zero.

Notice how each branch of the secant graph "hugs" the cosine curve at its peaks and troughs, then curves away sharply as it approaches an asymptote. A useful way to sketch \( y = \sec x \) by hand is to lightly draw \( y = \cos x \) first, mark the zeros of cosine as vertical dashed asymptotes, then trace the secant branches around the cosine humps.

Period and Key Features

Like cosine, the secant function repeats every \( 2\pi \), so \( \sec(x + 2\pi) = \sec x \) for all x in the domain. Secant is also an even function, meaning \( \sec(-x) = \sec x \), which is why the graph is symmetric about the y-axis. There is no amplitude to speak of for secant, since the graph is unbounded, but every branch still reaches a turning point of either 1 or negative 1 right at the x-values where cosine reaches its own maximum or minimum.

How Changing the Coefficient Affects the Graph: y = sec(2x)

Search terms like "sec 2x graph" usually come from students comparing the basic secant graph to a compressed version. In \( y = \sec(2x) \), the 2 inside the argument compresses the graph horizontally, so the period shrinks from \( 2\pi \) to \( \pi \). The asymptotes now occur twice as often, since \( \cos(2x) = 0 \) whenever \( 2x = \dfrac{\pi}{2} + k\pi \), which gives \( x = \dfrac{\pi}{4} + \dfrac{k\pi}{2} \).

Graph of y = sec(2x) with a compressed period of pi Plot of y = 1/cos(2*x) for x in [-3.14159, 3.14159] -3 -2 -1 0 1 2 3 -60 -40 -20 0 20 40 x y y = 1 y = -1
Graph of y = sec(2x), with the period compressed to pi.

For a full breakdown of how coefficients, phase shifts, and vertical shifts move and stretch trig graphs in general, see transformations of trigonometric functions.

Worked Example

Sketch \( y = \sec x \) on the interval \( [-2\pi, 2\pi] \) and identify its asymptotes and turning points.

Step 1: Find where cosine is zero on this interval: \( x = -\dfrac{3\pi}{2}, -\dfrac{\pi}{2}, \dfrac{\pi}{2}, \dfrac{3\pi}{2} \). These become the vertical asymptotes.

Step 2: Find where cosine reaches 1 or negative 1: at \( x = -2\pi, 0, 2\pi \), \( \cos x = 1 \), so \( \sec x = 1 \) (local minimum of that branch). At \( x = -\pi, \pi \), \( \cos x = -1 \), so \( \sec x = -1 \) (local maximum of that branch).

Step 3: Sketch each branch opening away from the x-axis between consecutive asymptotes, touching either 1 or negative 1 at the points found above. The result matches the repeating pattern shown in the graph earlier.

Secant vs. Cosecant

Secant and cosecant are close cousins: \( \csc x = \dfrac{1}{\sin x} \) behaves the same way as secant, but its asymptotes line up with the zeros of sine instead of cosine, shifting the whole pattern by \( \dfrac{\pi}{2} \). If you want a full comparison and separate practice with that graph, see Cosecant graph: y = csc x. Once you're comfortable reading these reciprocal graphs, it's also worth practicing the reverse skill of writing trig equations from graphs, which asks you to identify a function like secant just from its picture.

Related lessons