Graph of y = sec x (Secant function)

· How we calculate · Free, no sign-up

Quick answer

The graph of y = sec x is a series of U- and ∩-shaped branches outside the band −1 < y < 1, with asymptotes where cos x = 0. Domain: x ≠ π/2 + kπ; range: y ≤ −1 or y ≥ 1, i.e. (−∞, −1] ∪ [1, ∞). x-intercept: None; y-intercept: y = 1.

Functiony = sec x
Domainx ≠ π/2 + kπ
Rangey ≤ −1 or y ≥ 1, i.e. (−∞, −1] ∪ [1, ∞)
x-intercept(s)None
y-intercepty = 1
Derivativesec x tan x
Graph of y = sec x for −2π ≤ x ≤ 2π−2π−3π/2−π−π/20π/2π3π/22π−5−4−3−2−1012345
Graph of y = sec x for −2π ≤ x ≤ 2π, −5 ≤ y ≤ 5. Dashed lines are asymptotes. Dots mark intercepts.
Zoom, pan and trace y = sec x next to y = cos x in the interactive grapher.Open the Graphing Calculator →

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

Key features of y = sec x
PropertyValue
Functiony = sec x (Secant function)
FamilyTrigonometric
Domainx ≠ π/2 + kπ
Rangey ≤ −1 or y ≥ 1, i.e. (−∞, −1] ∪ [1, ∞)
x-intercept(s)None
y-intercepty = 1
SymmetryEven — symmetric about the y-axis
AsymptotesVertical x = π/2 + kπ
Period2π ≈ 6.2832
Increasing on[2kπ, π/2 + 2kπ) and (π/2 + 2kπ, π + 2kπ]
Decreasing on[π + 2kπ, 3π/2 + 2kπ) and (3π/2 + 2kπ, 2π + 2kπ]
Key pointsLocal minima 1 at x = 2kπ; local maxima −1 at x = π + 2kπ
Derivative f′(x)sec x tan x
Antiderivative ∫ f(x) dxln|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

Values of y = sec x
xy = sec xSlope f′(x)
−π−10
−π/2undefinedundefined
−π/41.4142−1.4142
010
π/61.15470.6667
π/41.41421.4142
π/323.4641
π/2undefinedundefined
2π/3−23.4641
3π/4−1.41421.4142
π−10
3π/2undefinedundefined
2π10

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

Browse all graphs of common functions by family, or open the 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, i.e. (−∞, −1] ∪ [1, ∞).

What are the intercepts of y = sec x?

x-intercept(s): None. y-intercept: y = 1.

What is the derivative of y = sec x?

f′(x) = sec x tan x. 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.

Is y = sec x even, odd or neither?

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.

Does y = sec x have asymptotes?

Vertical x = π/2 + kπ. The function is periodic with period 2π ≈ 6.2832.