The calculator will find the integral/antiderivative of
tan(x), with steps shown.
Related calculator:
Definite and Improper Integral Calculator
Solution
Rewrite the tangent as tan(x)=cos(x)sin(x):
∫tan(x)dx=∫cos(x)sin(x)dx
Let u=cos(x).
Then du=(cos(x))′dx=−sin(x)dx (steps can be seen »), and we have that sin(x)dx=−du.
Therefore,
∫cos(x)sin(x)dx=∫(−u1)du
Apply the constant multiple rule ∫cf(u)du=c∫f(u)du with c=−1 and f(u)=u1:
∫(−u1)du=(−∫u1du)
The integral of u1 is ∫u1du=ln(∣u∣):
−∫u1du=−ln(∣u∣)
Recall that u=cos(x):
−ln(∣u∣)=−ln(∣cos(x)∣)
Therefore,
∫tan(x)dx=−ln(∣cos(x)∣)
Add the constant of integration:
∫tan(x)dx=−ln(∣cos(x)∣)+C
Answer
∫tan(x)dx=−ln(∣cos(x)∣)+CA