Graph of y = sec x

Trigonometric functions · Updated 2026-11-26

Quick answer

The graph of y = sec x is a trigonometric function. Its domain is x ≠ π/2 + kπ and its range is y ≤ −1 or y ≥ 1. It never crosses the x-axis and the y-axis at (0, 1). It has a local maximum at (−9.42478, −1), a local minimum at (−6.28319, 1), a local maximum at (−3.14159, −1) and a local minimum at (0, 1). Asymptotes: Vertical at x = π/2 + kπ.

−8−6−4−22468−5−4−3−2−112345
  • y=sec(x)
Open in graphing calculator

Click the curve to show intercepts and turning points.

Key features

Domainx ≠ π/2 + kπ
Rangey ≤ −1 or y ≥ 1
x-interceptsnone
y-intercept(0, 1)
Turning pointsmax (−9.42478, −1); min (−6.28319, 1); max (−3.14159, −1); min (0, 1); max (3.14159, −1); min (6.28319, 1) (in the window shown)
Symmetryeven (symmetric about the y-axis)
Period2π
AsymptotesVertical at x = π/2 + kπ
End behaviorAs x → −∞, y oscillates; as x → ∞, y oscillates
Derivativey′ = sec(x)·tan(x)
Second derivativey″ = sec(x)·tan(x)·tan(x) + sec³(x)

Secant is 1/cos x. Its U-shaped branches touch the cosine wave at its peaks and troughs.

Table of values

x0π/6π/4π/3π/2π3π/22π
y11.15471.4142121.63312×10^16−1−5.44375×10^151

How to graph y = sec x

  1. Open the graphing calculator and type y = sec(x).
  2. Plot the y-intercept (0, 1).
  3. Mark the turning points: (−9.42478, −1), (−6.28319, 1), (−3.14159, −1), (0, 1).
  4. Draw the asymptotes as dashed lines: Vertical at x = π/2 + kπ.
  5. Use the table of values to add a few more points, then connect them with a smooth curve that follows the end behavior.

Compared with the parent function

y = sec x is a transformation of y = cos x. Trigonometric functions are periodic: the graph repeats after a fixed horizontal distance called the period. Angles are in radians.

−8−6−4−22468−5−4−3−2−112345
  • y=cos(x)
  • y=sec(x)
Open in graphing calculator

Frequently asked questions

What is the domain and range of y = sec x?

Domain: x ≠ π/2 + kπ. Range: y ≤ −1 or y ≥ 1.

What are the x-intercepts of y = sec x?

There are none; the graph never touches the x-axis.

What is the derivative of sec x?

sec(x)·tan(x). Graph it by defining f(x) = sec(x) and typing f'(x).

Is sec x even, odd or neither?

It is even (symmetric about the y-axis).