Problem 18
Medium Algebraic Integrands

Evaluate the integral: integral tan² x dx

Evaluate the integral: $$ \int \tan^2 x \, dx. $$

Explanation of Method

The Pythagorean identity $\tan^2 x = \sec^2 x - 1$ converts a power of tangent, which has no elementary antiderivative on its own, into a difference of two elementary integrals: the standard derivative-of-tangent form $\sec^2 x$ and the constant function $1$.

  1. Rewrite $\tan^2 x$ using the Pythagorean identity.
  2. Split the integral into two simpler integrals.
  3. Integrate each term using standard results.
  4. Combine the results and add the constant of integration.

Step 1 · Use the trigonometric identity for $\tan^2 x$

The trigonometric identity for $\tan^2 x$ is:

$$ \tan^2 x = \sec^2 x - 1. $$

Using this identity, the integral becomes:

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

Step 2 · Split the integral

The integral is now split into two simpler integrals:

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

First term: $\displaystyle \int \sec^2 x\,dx$ is a standard result:

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

Second term: $\displaystyle \int 1\,dx$:

$$ \int 1\,dx = x. $$

Step 3 · Combine the results

Combining the results of the two integrals:

$$ \int \tan^2 x\,dx = \tan x - x + C, $$

where $C$ is the constant of integration.


Summary Table

Term Antiderivative
$\sec^2 x$$\tan x$
$-1$$-x$

Additional Notes

Result

The solution to the integral is:

$$ \int \tan^2 x\,dx = \tan x - x + C. $$