Integral of tan x
The integral of tangent follows from the substitution . It is used in standard integration tables, arc-length problems and when integrating rational functions of sine and cosine.
LaTeX
\int\tan x\,dx=-\ln|\cos x|+C=\ln|\sec x|+CVariables
- angle in radians, cos x ≠ 0
- constant of integration
Example
Compute .
- .
- .
Answer: .