Problem 136
Medium Trigonometric Integrals

Evaluate the integral: I = integral tan³ x dx

Evaluate the integral: $$ I = \int \tan^3 x\,dx. $$

Explanation of Method

Writing $\tan^2x=\sec^2x-1$ splits $\tan^3x$ into a term of the form $\tan x\sec^2x$ (a plain power-rule substitution) and the standard $\tan x$ integral.

  1. Rewrite $\tan^3x$ using $\tan^2x=\sec^2x-1$.
  2. Split into two integrals.
  3. Evaluate each integral separately.
  4. Combine the results.

Step 1 · Rewrite the integrand

Using $\tan^2x=\sec^2x-1$:

$$ \tan^3x = \tan x\,(\sec^2x-1). $$

Thus, the integral splits as:

$$ I = \int \tan x\sec^2x\,dx - \int \tan x\,dx. $$

Step 2 · Evaluate the first integral

Let $u=\tan x$, so $du=\sec^2x\,dx$:

$$ \int \tan x\sec^2x\,dx = \int u\,du = \frac{u^2}{2} = \frac{\tan^2x}{2}. $$

Step 3 · Evaluate the second integral

Recall the standard result:

$$ \int \tan x\,dx = -\ln|\cos x|. $$

Step 4 · Combine the results

$$ I = \frac{\tan^2x}{2} - \left(-\ln|\cos x|\right) + C = \frac{\tan^2x}{2} + \ln|\cos x| + C. $$


Summary Table

Piece Antiderivative
$\tan x\sec^2x$$\tan^2x/2$
$-\tan x$$\ln|\cos x|$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{\tan^2x}{2} + \ln|\cos x| + C. $$