The integral of sec²(x) is a direct consequence of the derivative of tangent — it appears frequently in trigonometric substitution.
Result
\[ \int \sec^2(x)\,dx = \tan(x) + C \]
Derivation
Since \(\dfrac{d}{dx}[\tan(x)] = \sec^2(x)\), the antiderivative is:
\[ \int \sec^2(x)\,dx = \tan(x) + C \]Verification: \(\dfrac{d}{dx}[\tan(x) + C] = \sec^2(x)\) ✓
Definite integral examples
\(\int_0^{\pi/4} \sec^2(x)\,dx\)
\[ \Big[\tan(x)\Big]_0^{\pi/4} = \tan\!\Bigl(\tfrac{\pi}{4}\Bigr) - \tan(0) = 1 - 0 = 1 \]\(\int_{-\pi/4}^{\pi/4} \sec^2(x)\,dx\)
\[ \Big[\tan(x)\Big]_{-\pi/4}^{\pi/4} = 1 - (-1) = 2 \]sec²(x) is an even function.
Common variants
| Integral | Antiderivative | Notes |
|---|---|---|
| \(\int \sec^2(ax)\,dx\) | \(\dfrac{\tan(ax)}{a} + C\) | Chain rule. |
| \(\int \sec^2(x) \cdot e^{\tan x}\,dx\) | \(e^{\tan x} + C\) | u-substitution: \(u = \tan x\). |
Try it in the calculator
Paste any variant below into the step-by-step integral calculator for a full worked solution and graph.
Open in calculator →