practicecalculus
Trigonometric integrals

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

\int \sec x\tan x\,dx = \sec x + C
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
  1. Graph of sec x tan x and its antiderivative
  2. Derivation
  3. Check by differentiating
  4. Spotting it in disguise
  5. Definite integrals
  6. Substitution variants
  7. Common mistakes

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.

\int \sec x\tan x\,dx = \sec x + C

Graph of sec x tan x and its antiderivative

Area under y = sec x tan x from 0 to π/3, with the antiderivative y = sec x
The shaded area is \sec\frac{\pi}{3} - \sec 0 = 2 - 1 = 1. The dashed curve y = \sec x has its minimum at x = 0, exactly where \sec x\tan x crosses zero.

\sec x\tan x is an odd function, so its antiderivative \sec x is even.

Derivation

  1. Recall the derivative of sec x: \frac{d}{dx}\sec x = \sec x\tan x.
  2. Reverse it: \sec x is an antiderivative of \sec x\tan x.
  3. Add C.

If you want to see where the derivative comes from, write \sec x = (\cos x)^{-1} and use the chain rule:

\frac{d}{dx}(\cos x)^{-1} = -(\cos x)^{-2}\cdot(-\sin x) = \frac{\sin x}{\cos^2 x} = \sec x\tan x

Check by differentiating

\frac{d}{dx}(\sec x + C) = \sec x\tan x \checkmark

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

\int_0^{\pi/3}\sec x\tan x\,dx = 2 - 1 = 1, \qquad \int_0^{\pi/4}\sec x\tan x\,dx = \sqrt{2} - 1 \approx 0.414

Over a symmetric interval like \left[-\frac{\pi}{4}, \frac{\pi}{4}\right] the integral is 0, because the integrand is odd.

Substitution variants

\int\sec(ax + b)\tan(ax + b)\,dx = \frac{1}{a}\sec(ax + b) + C

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:

\int\sec^3 x\tan x\,dx = \int\sec^2 x\cdot(\sec x\tan x)\,dx = \int u^2\,du = \frac{\sec^3 x}{3} + C

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

  1. 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.
  2. Answering \tan x. That is the integral of \sec^2 x. See the integral of sec² x.
  3. Answering \csc x for the cosecant version. It needs a minus sign: -\csc x + C.
  4. 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

Frequently asked questions

What is the integral of sec x tan x?

The integral of \sec x\tan x is \sec x + C.

What is the integral of sin x / cos² x?

Since \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x\tan x, the integral is \sec x + C.

What is the integral of sec(2x) tan(2x)?

It is \frac{1}{2}\sec(2x) + C.

What is the integral of csc x cot x?

It is -\csc x + C, because the derivative of \csc x is -\csc x\cot x.

Written by the PracticeCalculus team

We build interactive calculus lessons and write every page to be clear and correct. Spotted something off? Tell us and we will fix it.