What the graph of y = sec x looks like
sec x = 1/cos x. Where cosine is 1 or −1, secant equals it; as cosine shrinks towards 0, secant grows without bound, producing vertical asymptotes at x = ±π/2, ±3π/2, …. The result is a chain of U-shaped branches above y = 1 (where cos x > 0) alternating with ∩-shaped branches below y = −1.
Because cosine is even with period 2π, secant is too. Its values never fall strictly between −1 and 1. The integral of sec x, ln|sec x + tan x|, is a well-known result used in the Mercator map projection.
Key features of y = sec x
| Property | Value |
|---|---|
| Function | y = sec x (Secant function) |
| Family | Trigonometric |
| Domain | x ≠ π/2 + kπ |
| Range | y ≤ −1 or y ≥ 1, i.e. (−∞, −1] ∪ [1, ∞) |
| x-intercept(s) | None |
| y-intercept | y = 1 |
| Symmetry | Even — symmetric about the y-axis |
| Asymptotes | Vertical x = π/2 + kπ |
| Period | 2π ≈ 6.2832 |
| Increasing on | [2kπ, π/2 + 2kπ) and (π/2 + 2kπ, π + 2kπ] |
| Decreasing on | [π + 2kπ, 3π/2 + 2kπ) and (3π/2 + 2kπ, 2π + 2kπ] |
| Key points | Local minima 1 at x = 2kπ; local maxima −1 at x = π + 2kπ |
| Derivative f′(x) | sec x tan x |
| Antiderivative ∫ f(x) dx | ln|sec x + tan x| + C |
Symmetry: Even — symmetric about the y-axis. For example f(2) = −2.403 and f(−2) = −2.403 are equal, so the left half mirrors the right half. Intercepts: the graph meets the x-axis at None and the y-axis at y = 1.
Table of values for y = sec x
| x | y = sec x | Slope f′(x) |
|---|---|---|
| −π | −1 | 0 |
| −π/2 | undefined | undefined |
| −π/4 | 1.4142 | −1.4142 |
| 0 | 1 | 0 |
| π/6 | 1.1547 | 0.6667 |
| π/4 | 1.4142 | 1.4142 |
| π/3 | 2 | 3.4641 |
| π/2 | undefined | undefined |
| 2π/3 | −2 | 3.4641 |
| 3π/4 | −1.4142 | 1.4142 |
| π | −1 | 0 |
| 3π/2 | undefined | undefined |
| 2π | 1 | 0 |
How to sketch y = sec x by hand
Plot the points from the table — (−π, −1), (−π/4, 1.4142), (0, 1), (π/6, 1.1547), (π/4, 1.4142), (π/3, 2) — on axes running from about −2π to 2π horizontally. Draw the asymptotes first (vertical x = π/2 + kπ) as dashed lines; the curve gets ever closer to them without crossing in that direction. Then join the points with a smooth curve. As a check on the shape — increasing: [2kπ, π/2 + 2kπ) and (π/2 + 2kπ, π + 2kπ]; decreasing: [π + 2kπ, 3π/2 + 2kπ) and (3π/2 + 2kπ, 2π + 2kπ].
Derivative, tangent line and area
The derivative of y = sec x is sec x tan x, which gives the slope of the curve at each point (the third column of the table). At x = 1 the curve is at height 1.8508 and its slope is f′(1) = 2.8825, so the tangent line there is y = 2.8825x − 1.0317.
The signed area under the curve from x = 0 to x = π/4 is 0.8814, found using the antiderivative ln|sec x + tan x| + C.
Related graphs and transformations
- y = cos x — Reciprocal of sec x
- y = csc x — Cosecant (1/sin x)
- y = tan x — Tangent
- y = cot x — Cotangent
- y = cosh x — Hyperbolic cosine
- y = 1/x² — Another curve with a vertical asymptote
Browse all graphs of common functions by family, or open the graphing calculator.