Graph of secant: y = sec x
The secant graph is 1/cos x. It is made of U-shaped branches that open upward where cos x is positive and downward where it is negative, separated by vertical asymptotes wherever cos x = 0.
Key features
- Domain
- All real x except x = π/2 + nπ
- Range
- y ≤ −1 or y ≥ 1
- Period
- 2π
- Vertical asymptotes
- x = π/2 + nπ
- Local minima
- y = 1 at x = 2nπ
- Local maxima
- y = −1 at x = π + 2nπ
- Symmetry
- Even: sec(−x) = sec x
- y-intercept
- None
- Derivative
- sec(x)tan(x)
- Antiderivative
- ln(|sec(x)+tan(x)|)+C
Derivative and antiderivative from the calculator’s algebra system. Domain, range and asymptotes are stated for real x.
What the graph of sec x looks like
Wherever cos x is close to 1, sec x is close to 1 as well, and as cos x shrinks toward 0 its reciprocal grows without bound. So each upward U touches y = 1 at a peak of the cosine curve, and each downward U touches y = −1 at a trough.
The graph never enters the band −1 < y < 1, because the reciprocal of a number between −1 and 1 is always at least 1 in size. There are no x-intercepts.
The easiest way to draw secant is to sketch y = cos x lightly first: the U-shapes sit on the cosine curve’s peaks and troughs, and the asymptotes sit at its zeros.
Points of interest
Found numerically to about twelve digits in the window −7 ≤ x ≤ 7, then shown in exact form where one exists.
- x-intercepts (roots)
- None in this window
- Local maxima
- (−3.1416, −1), (3.1416, −1)
- Local minima
- (−6.2832, 1), (0, 1), (6.2832, 1)
- Inflection points
- None in this window
There are no roots: sec x is never zero.
Table of values
A few points to plot, with exact values where they are simple.
| x | y = sec x |
|---|---|
| 0 | 1 |
| π/6 | 2√3/3 |
| π/4 | √2 |
| π/3 | 2 |
| 2π/3 | −2 |
| 3π/4 | −√2 |
| π | −1 |
How to graph sec x by hand
- 1Lightly sketch y = cos x.
- 2Draw dashed asymptotes wherever cos x = 0: x = ±π/2, ±3π/2.
- 3At each peak of cos x (y = 1) draw a U opening upward; at each trough (y = −1) draw one opening downward.
- 4Let every branch approach the neighbouring asymptotes without touching them.
Transformations
How the graph moves when you change the formula. The original is sec x in blue.
y = 2sec(x)Vertical stretch: the upward branches now bottom out at 2, the downward ones top out at −2.y = sec(x/2)Period 4π: asymptotes at x = π + 2nπ.y = sec(x) - 2Shifted down 2: the gap in the range is now −3 < y < −1.
Frequently asked questions
What is the range of sec x?
What is the period of the secant function?
Where are the asymptotes of sec x?
What is the derivative of sec x?
Does sec x have any zeros?
Related graphs
The sine wave shifted left by π/2; starts at its peak.
1/sin x: asymptotes at every multiple of π.
Period π, asymptotes at π/2 + nπ, always increasing.
Period π, asymptotes at multiples of π, always decreasing.
The catenary: the shape of a hanging chain.
A hyperbola with asymptotes along both axes.
Change the window, add sliders for a, b, h and k, trace the curve with your keyboard, or overlay its derivative.