y=secxy = \sec x

Graph of the Secant Function y=secxy = \sec x

The secant function y=secxy = \sec x is the trigonometric function defined as the reciprocal of the cosine. In a right triangle it is the ratio of the hypotenuse to the adjacent side.

Definition

secx=1cosx\sec x = \frac{1}{\cos x}

Because the denominator is the cosine, the value of the cosine appears directly as its reciprocal.

Domain and range

Where cosx=0\cos x = 0, at x=π2+nπx = \dfrac{\pi}{2} + n\pi (with nn an integer), the denominator vanishes and the function is undefined. Its domain is therefore all real numbers except these points. Since 1cosx1-1 \le \cos x \le 1 and cosx0\cos x \ne 0, we have secx1|\sec x| \ge 1, so the range is y1y \le -1 or y1y \ge 1. It never takes a value strictly between 1-1 and 11.

Symmetry and period

Because cosx\cos x is even, sec(x)=secx\sec(-x) = \sec x, so y=secxy = \sec x is an even function, symmetric about the yy-axis. Its period is 2π2\pi, the same as cosine.

Asymptotes and limits

There is a vertical asymptote at each x=π2+nπx = \dfrac{\pi}{2} + n\pi. As xx approaches π2\dfrac{\pi}{2} from the left, cosx0+\cos x \to 0^{+} so secx+\sec x \to +\infty; from the right, cosx0\cos x \to 0^{-} so secx\sec x \to -\infty.

Behavior and notable points

Between consecutive asymptotes the curve forms a UU shape or an inverted UU. Where cosx\cos x attains its maximum 11, at x=2nπx = 2n\pi, secx\sec x has a local minimum of 11; where cosx\cos x attains its minimum 1-1, at x=(2n+1)πx = (2n+1)\pi, secx\sec x has a local maximum of 1-1. For example sec0=1\sec 0 = 1 and secπ=1\sec \pi = -1. Its derivative is ddxsecx=secxtanx\dfrac{d}{dx}\sec x = \sec x \tan x.

Relation to other functions

As the reciprocal of cosine, it relates to the cosecant by secx=csc(x+π2)\sec x = \csc\left(x + \dfrac{\pi}{2}\right) and appears in the identity 1+tan2x=sec2x1 + \tan^2 x = \sec^2 x.

Applications

The secant appears in integration, secxdx=lnsecx+tanx+C\int \sec x\,dx = \ln|\sec x + \tan x| + C, in the Mercator map projection, and in problems involving inclines and the refraction of light.