What Is the Integral of Tan(x)?

The integral of tan(x) is -ln |cos x| + C. In this equation, ln indicates the function for a natural logarithm, while cos is the function cosine, and C is a constant.

The integral of tan(x) can be solved by rewriting the equation as the integral of sin(x)/cos(x) dx, and then using the integration technique called substitution. Using substitution, the value u is used in place of sin(x), and the value for the derivative of u, du, is found to be -sin(x) dx. Substituting In for sin(x) and dx gives the equation as the negative integral of u over du, which is equal to ln |u| + C. The problem is completed by substituting back in for u.