Skip to content
ihateDesmos

Integral of sec x tan x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of sec x tan x
∫
sec(x)tan(x)
dx =
sec(x)+C

The integral of sec x tan x is sec x + C. This is the derivative of sec x read backwards.

−1.0−0.50.51.0−550
Open in calculator
y=sec(x)tan(x)
in blue and its integral
y=sec(x)
(with C = 0) in red. Defined for x ≠ π/2 + nπ.

How to integrate sec x tan x

Method: standard integral.

  1. 1
    We know that d/dx sec x = sec x tan x.
  2. 2
    So sec x is an antiderivative of sec x tan x.
  3. 3
    Adding the constant gives sec x + C.

What it means

The integrand is odd, and negative for x < 0, which is why sec x has a minimum at x = 0.

The integral from 0 to π/3

Using the antiderivative: F(π/3) − F(0) = 1, which is about 1. A direct numerical integration of sec x tan x gives 1, which agrees.

−1−0.50.51−8−6−4−22468

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
xsec x tan xSlope of the answer
−1−2.88247−2.88247
−π/4−√2−√2
000
π/4√2√2
12.882472.88247

Common mistakes

  • Trying to multiply the separate integrals of sec x and tan x. An integral of a product isn’t the product of the integrals.

Frequently asked questions

What is the integral of sec x tan x?
The integral of sec x tan x is sec x + C, for x ≠ π/2 + nπ.
What is the integral of sec x tan x from 0 to π/3?
1, which is about 1.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator