AP Calculus AB and BC
Integral of sec^2 x: Answer, Proof, and Mistakes
The integral of sec^2 x is tan x + C. It holds on any interval where tan x is defined, meaning between consecutive odd multiples of pi/2. No substitution or identity is needed: this is the derivative rule d/dx[tan x] = sec^2 x read backwards, and you confirm it by differentiating tan x + C.
Why the integral of sec^2 x is tan x
Antidifferentiation is differentiation read backwards, so every basic integral you are expected to recall is a derivative rule you already know. The one behind this result comes from Unit 2, Topic 2.10 (Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions).
Reading that statement right to left says is an antiderivative of . Every other antiderivative differs from it by a constant, so the indefinite integral carries .
Check it the way you should check every antiderivative, by differentiating the answer: , which is the integrand you started with.
One constant per interval
breaks at every odd multiple of , so no single antiderivative of is valid across an asymptote. The is meant on one interval such as , and a definite integral of only makes sense when the whole interval of integration sits between consecutive asymptotes.
Where this integral shows up on the AP exam
The rule itself belongs to Unit 6, Topic 6.8 (Finding Antiderivatives and Indefinite Integrals: Basic Rules and Notation). Unit 6 carries a weighting of 15 to 20 percent on both AB and BC, so the basic antiderivatives are worth recalling instantly rather than rederiving.
Most often it appears inside a composite, where substitution (Topic 6.9) returns it to the basic form. With and , a factor of comes out front.
On a definite integral, the Fundamental Theorem of Calculus (Topic 6.7) evaluates at the endpoints. Both endpoints below sit inside , so the theorem applies.
It also arrives disguised. The identity turns into this integral minus , and separable differential equations in Unit 7 produce integrands whenever a tangent appears in the solution.
Common mistakes with the integral of sec^2 x
- Answering . That is the derivative of , so it is the integrand in . The pair to memorize here is with .
- Confusing it with , which is . The square is exactly what makes this integral immediate.
- Losing the inside factor on a composite. ; without the the derivative comes back three times too large.
- Dropping on an indefinite integral. It is a scored detail on free response, and it is the difference between one function and the whole family.
- Integrating straight through an asymptote. is not , because the integrand is unbounded at inside the interval, so the Fundamental Theorem does not apply and the integral diverges.
- Rewriting as and then guessing a logarithm. The rewrite is a true identity, but is not of the form , so nothing logarithmic comes out of it.
Quick practice with sec^2 integrands
- , with .
- , with and .
- , with and .
- .
- .
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
Is the same as ?
Yes. Since , squaring gives , so the two integrals are the same problem written two ways, and both equal .
Why does this integral not need substitution?
Because the integrand is already a derivative you have memorized. Substitution is for composites, and on its own is exactly , so you can write the answer down. Reach for substitution only when the argument is something other than a bare , such as .
What is ?
Use the Pythagorean identity first. Then . There is no basic rule for itself, so the rewrite is the whole move.
What is for a constant ?
For any nonzero constant , . The substitution gives , which is where the comes from.