Integral of sec x tan x: Formula, Derivation and Examples
The integral of sec x tan x is sec x + C. See why it reverses the derivative of sec x, how to spot it in disguise as sin x/cos² x, and substitution examples.
Trigonometric integrals Updated 2 min read
At a glance
- Antiderivative
- \sec x + C
- Same as
- \int\dfrac{\sin x}{\cos^2 x}\,dx = \sec x + C
- Linear form
- \int\sec(ax)\tan(ax)\,dx = \dfrac{1}{a}\sec(ax) + C
- Cosecant partner
- \int\csc x\cot x\,dx = -\csc x + C
- From 0 to π/3
- 1
On this page
The integral of \sec x\tan x is \sec x + C. It is the reverse of one of the six basic trig derivatives, so it is worth knowing on sight.
Graph of sec x tan x and its antiderivative
\sec x\tan x is an odd function, so its antiderivative \sec x is even.
Derivation
- Recall the derivative of sec x: \frac{d}{dx}\sec x = \sec x\tan x.
- Reverse it: \sec x is an antiderivative of \sec x\tan x.
- Add C.
If you want to see where the derivative comes from, write \sec x = (\cos x)^{-1} and use the chain rule:
Check by differentiating
Spotting it in disguise
The integral does not always arrive labelled. Each of these is \sec x\tan x:
| Integrand | Rewrite | Integral |
|---|---|---|
| \frac{\sin x}{\cos^2 x} | \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} | \sec x + C |
| \frac{\tan x}{\cos x} | \tan x\sec x | \sec x + C |
| \frac{\sin x}{1 - \sin^2 x} | \frac{\sin x}{\cos^2 x} | \sec x + C |
You can also solve the first row directly with u = \cos x: \int\frac{\sin x}{\cos^2 x}\,dx = -\int u^{-2}\,du = u^{-1} + C = \sec x + C.
Definite integrals
Over a symmetric interval like \left[-\frac{\pi}{4}, \frac{\pi}{4}\right] the integral is 0, because the integrand is odd.
Substitution variants
Example 1. \int\sec(5x)\tan(5x)\,dx = \frac{1}{5}\sec(5x) + C.
Example 2: powers of sec. With u = \sec x, du = \sec x\tan x\,dx:
Example 3: odd powers of tan. \int\tan^3 x\sec x\,dx = \int(\sec^2 x - 1)\sec x\tan x\,dx = \frac{\sec^3 x}{3} - \sec x + C.
Example 4: the cosecant partner. \int\csc x\cot x\,dx = -\csc x + C, since \frac{d}{dx}\csc x = -\csc x\cot x.
Common mistakes
- Integrating each factor separately. \int\sec x\tan x\,dx is not \ln\lvert\sec x + \tan x\rvert\cdot\ln\lvert\sec x\rvert. Integrals do not split over products.
- Answering \tan x. That is the integral of \sec^2 x. See the integral of sec² x.
- Answering \csc x for the cosecant version. It needs a minus sign: -\csc x + C.
- Missing the disguise. Always try rewriting \frac{\sin x}{\cos^2 x} before reaching for a harder method.
Practise on trig integral problems.
Practice it now
Sine, cosine, eˣ and 1/x
Solve real problems on this topic with instant feedback, hints and a step-by-step walkthrough for every answer. Free, no sign-up needed to start.
Practice this lesson