WordGPT

Integral of tan⁡(x)\tan\left(x\right)

The integral of tan⁡(x)\tan\left(x\right) is −ln⁡(∣cos⁡(x)∣)+C-\ln\left(\left|\cos\left(x\right)\right|\right) + C.

Graph of f(x) = tan(x) with the area from 0 to 1 shaded-0.4-0.20.20.40.60.811.21.41.6-2246810121416f(x)
Graph of f(x) = tan(x) with the area from 0 to 1 shaded. The shaded area equals the definite integral, about 0.61562647.

How to work it out

  1. 1

    We want an antiderivative of f(x) = tan(x).

    ∫tan⁡(x) dx\int \tan\left(x\right)\,dx
  2. 2

    Method: standard integral.

  3. 3

    That gives the antiderivative; add the constant C because any constant disappears when you differentiate:

    ∫tan⁡(x) dx=−ln⁡(∣cos⁡(x)∣)+C\int \tan\left(x\right)\,dx = -\ln\left(\left|\cos\left(x\right)\right|\right) + C
  4. 4

    Check by differentiating the answer; you must get the original function back:

    ddx[−ln⁡(∣cos⁡(x)∣)]=−sign⁡(cos⁡(x))−sin⁡(x)∣cos⁡(x)∣\frac{d}{dx}\left[-\ln\left(\left|\cos\left(x\right)\right|\right)\right] = -\frac{\operatorname{sign}\left(\cos\left(x\right)\right) -\sin\left(x\right)}{\left|\cos\left(x\right)\right|}
  5. 5

    As a definite integral, evaluate the antiderivative at both ends and subtract. Between 0 and 1:

    ∫01tan⁡(x) dx=[−ln⁡(∣cos⁡(x)∣)]01≈0.61562647\int_{0}^{1} \tan\left(x\right)\,dx = \Big[-\ln\left(\left|\cos\left(x\right)\right|\right)\Big]_{0}^{1} \approx 0.61562647
LaTeX source of the formulas on this page
\[ \int \tan\left(x\right)\,dx = -\ln\left(\left|\cos\left(x\right)\right|\right) + C \]
\[ \int \tan\left(x\right)\,dx \]
\[ \frac{d}{dx}\left[-\ln\left(\left|\cos\left(x\right)\right|\right)\right] = -\frac{\operatorname{sign}\left(\cos\left(x\right)\right) -\sin\left(x\right)}{\left|\cos\left(x\right)\right|} \]
\[ \int_{0}^{1} \tan\left(x\right)\,dx = \Big[-\ln\left(\left|\cos\left(x\right)\right|\right)\Big]_{0}^{1} \approx 0.61562647 \]

Definite integrals of the same function

IntervalValue
from 0 to 10.61562647
from 0 to 0.50.13058424

Questions

What is the integral of tan(x)?

The integral of tan⁡(x)\tan\left(x\right) is −ln⁡(∣cos⁡(x)∣)+C-\ln\left(\left|\cos\left(x\right)\right|\right) + C.

Why do we add + C?

Every function F(x) + C has the same derivative, so the antiderivative is only defined up to a constant.

What is the integral of tan(x) from 0 to 1?

About 0.61562647.

More integrals

    Integral of tan(x): -ln(abs(cos(x))) + C (with steps) | WordGPT