100% free no uploads no sign-up
integral of tan(x)
The integral of tan(x) is ln|sec(x)| + C, where C is any constant.
problem
∫ tan(x) dx
answer
∫ tan(x) dx = ln|sec(x)| + C
✓ checked: differentiating the answer gives back the original function (tested at several points).
step-by-step working
Standard integral: ∫tan(u) du = ln|sec(u)|.
∫ tan(x) dx = ln|sec(x)|Add the constant of integration C (any constant differentiates to 0).
plain-text version of this solution
Problem: ∫ tan(x) dx Step 1: Standard integral: ∫tan(u) du = ln|sec(u)|. ∫ tan(x) dx = ln|sec(x)| Step 2: Add the constant of integration C (any constant differentiates to 0). Answer: ∫ tan(x) dx = ln|sec(x)| + C ✓ checked: differentiating the answer gives back the original function (tested at several points).
Related problems
- ∫ tan(2x) dx = ln|sec(2x)|/2 + C see the steps
- ∫ tan²(x) dx = tan(x) − x + C see the steps
Try it yourself
Change the problem below and press Enter. Steps, answer and check update instantly, all in your browser.
mode: integral
Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas
Frequently asked questions
What is the integral of tan(x)?
∫ tan(x) dx = ln|sec(x)| + C. Method: standard integral.
How do you check the integral of tan(x)?
Differentiate the answer. The derivative of ln|sec(x)| is tan(x), and the + C disappears because the derivative of a constant is 0.
What is the integral of tan(2x)?
∫ tan(2x) dx = ln|sec(2x)|/2 + C.