AP Calculus AB and BC
Integral of tan 2x: Answer and Substitution
The integral of tan 2x is negative one half times the natural log of the absolute value of cos 2x, plus C. Write tangent as sine over cosine and substitute u equals cos 2x; the inner factor of 2 leaves a one half in front.
The substitution
Rewrite tangent as a quotient, then let , so .
The minus comes from differentiating cosine and the half from the inner , so both signs and factors have a traceable source.
The equivalent secant form
Answer keys use either. They differ only by the logarithm rule that a negative sign flips the argument to its reciprocal.
Common mistakes
- Losing the , which is the single most common slip on any inner coefficient.
- Getting the sign backwards and writing .
- Dropping the absolute value, which is needed wherever is negative.
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
What is the integral of tan 2x?
It is , equivalently .
Where does the one half come from?
From the inner derivative in the substitution .