Integral of sec x
The integral of sec x is ln|sec x + tan x| + C. The trick is multiplying the top and bottom by sec x + tan x, so the top becomes the derivative of the bottom.
How to integrate sec x
Method: a clever multiplication.
- 1Multiply by a form of 1: sec x · (sec x + tan x)/(sec x + tan x).
- 2The top becomes sec²x + sec x tan x.
- 3Let u = sec x + tan x. Then du = (sec x tan x + sec²x) dx, which is exactly the top.
- 4So the integral becomes ∫(1/u) du = ln|u|.
- 5Substitute back: ln|sec x + tan x| + C.
What it means
This integral appears on every Mercator map: the distance from the equator to latitude x on the map is the integral of sec x. Historians trace it to navigators in the 1600s, before calculus existed.
The integral from 0 to π/4
Using the antiderivative: F(π/4) − F(0) = ln(1 + √2), which is about 0.881374. A direct numerical integration of sec x gives 0.881374, which agrees.
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.
| x | sec x | Slope of the answer |
|---|---|---|
| −1 | 1.85082 | 1.85082 |
| −π/4 | √2 | √2 |
| 0 | 1 | 1 |
| π/4 | √2 | √2 |
| 1 | 1.85082 | 1.85082 |
Common mistakes
- Writing sec x tan x, which is the derivative of sec x, not its integral.
- Writing tan x, which is the integral of sec²x.
Frequently asked questions
What is the integral of sec x?
What is the integral of sec x from 0 to π/4?
What is the integral of sec³x?
Keep going
Type your own function into the integral calculator for the steps, the answer and a graph.