Integral of sec x

∫sec⁡(x) dx=ln⁡(∣sec⁡(x)+tan⁡(x)∣)+C\int \sec\left(x\right)\,dx = \ln\left(\left|\sec\left(x\right) + \tan\left(x\right)\right|\right) + C

The classic trick: multiply top and bottom by (sec x + tan x). The numerator becomes the derivative of the denominator, giving ln|sec x + tan x|.

Step by step

  1. Trig rule

    ∫sec u du = ln|sec u + tan u|.

    ∫sec⁡(x) dx=ln⁡(∣sec⁡(x)+tan⁡(x)∣)\int \sec\left(x\right)\,dx = \ln\left(\left|\sec\left(x\right) + \tan\left(x\right)\right|\right)
-1-0.50.510.511.522.533.54
  • f(x) = sec x
  • F(x) + C

Every choice of C gives a valid antiderivative, since shifting up or down doesn’t change the slope.

Open in the integral calculator

Questions students ask

What is the integral of sec x?

∫sec⁡(x) dx=ln⁡(∣sec⁡(x)+tan⁡(x)∣)+C\int \sec\left(x\right)\,dx = \ln\left(\left|\sec\left(x\right) + \tan\left(x\right)\right|\right) + C.

How do you integrate sec x?

The classic trick: multiply top and bottom by (sec x + tan x). The numerator becomes the derivative of the denominator, giving ln|sec x + tan x|.

How can I check the answer?

Differentiate it: the derivative of ln⁡(∣sec⁡(x)+tan⁡(x)∣)\ln\left(\left|\sec\left(x\right) + \tan\left(x\right)\right|\right) is sec⁡(x)\sec\left(x\right). CalcViz checks every antiderivative this way before showing it.