Integral of tan 2x
The integral of tan 2x is −ln|cos 2x|/2 + C. It is the integral of tan u, divided by 2.
How to integrate tan 2x
Method: u-substitution.
- 1Let u = 2x, so dx = du/2.
- 2The integral becomes (1/2) ∫tan u du.
- 3The integral of tan u is −ln|cos u|.
- 4So the result is −ln|cos 2x|/2 + C.
What it means
tan 2x has asymptotes twice as often as tan x, at x = π/4 + nπ/2, and its integral blows up at each of them.
The integral from 0 to π/8
Using the antiderivative: F(π/8) − F(0) = (ln 2)/4, which is about ln 2/4. A direct numerical integration of tan 2x gives ln 2/4, 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 | tan 2x | Slope of the answer |
|---|---|---|
| −1/2 | −1.55741 | −1.55741 |
| −1/4 | −0.546302 | −0.546302 |
| 0 | 0 | 0 |
| 1/4 | 0.546302 | 0.546302 |
| 1/2 | 1.55741 | 1.55741 |
Common mistakes
- Forgetting the factor of 1/2.
Frequently asked questions
What is the integral of tan 2x?
What is the integral of tan 2x from 0 to π/8?
Keep going
Period π, asymptotes at π/2 + nπ, always increasing.
It is (2/3)(1 + x)^(3/2) + C.
It is e^(x²)/2 + C.
It is −cos(2x)/2 + C.
It is −cos(3x)/3 + C.
Every standard integral and technique, with examples.
Type your own function into the integral calculator for the steps, the answer and a graph.