Tutorials › Calculus II › Even Secant Powers Through Tangent Substitution

Tangent and Secant Powers · Tutorial 129 of 998

Even Secant Powers Through Tangent Substitution

Rewrite an even secant power as a polynomial in the tangent times the derivative of the tangent, then integrate and check the result.

Intermediate 8 min read

What You'll Learn

  • Identify the secant-squared factor needed for the tangent substitution.
  • Convert the remaining even secant power using the identity sec²x = 1 + tan²x.
  • Evaluate integrals of sec^(2k)(x) by expanding and integrating a polynomial.
  • State where the substitution and resulting antiderivative are valid.
  • Check secant-power antiderivatives by differentiating them.

Why Reserve a Secant-Squared Factor?

Integrals containing powers of secant can often be made manageable by recognizing a derivative inside the integrand. The derivative of \(\tan x\) is \(\sec^2 x\). Thus, when an even power of secant is present, one factor of \(\sec^2 x\) can serve as the differential for the substitution \(u=\tan x\).

The remaining secant factors can then be rewritten in terms of \(\tan x\), using \(\sec^2 x=1+\tan^2 x\). The result is a polynomial integral in \(u\), rather than an integral involving powers of secant.

Key idea: For a positive integer \(k\), write \(\sec^{2k}x\) as \((\sec^2 x)^{k-1}\sec^2 x\). Convert the first factor to a power of \(1+\tan^2 x\), and use the last factor with \(du=\sec^2 x\,dx\).

Conditions and the Basic Substitution

Throughout this tutorial, \(k\) is a positive integer. The substitution \(u=\tan x\) is used on an interval on which \(\cos x\ne 0\). On such an interval, \(\tan x\) and \(\sec x\) are defined, and

$$ \frac{d}{dx}\tan x=\sec^2 x, \qquad du=\sec^2 x\,dx. $$

The identity needed to rewrite the other secant factors follows from \(\sin^2 x+\cos^2 x=1\): dividing by \(\cos^2 x\) gives \(\tan^2 x+1=\sec^2 x\).

Definition: An even secant power integral is an integral of the form \(\int \sec^{2k}x\,dx\), where \(k\) is a positive integer. The tangent-substitution method applies on any interval where \(\cos x\ne 0\).

Separate one factor of \(\sec^2 x\), rewrite the remaining factors, and substitute:

$$ \begin{aligned} \int \sec^{2k}x\,dx &=\int (\sec^2 x)^{k-1}\sec^2 x\,dx\\ &=\int (1+\tan^2 x)^{k-1}\sec^2 x\,dx\\ &=\int (1+u^2)^{k-1}\,du. \end{aligned} $$

Since \(k-1\) is a nonnegative integer, the binomial theorem expands \((1+u^2)^{k-1}\) as a finite polynomial. Each term can be integrated using the power rule. The result is an antiderivative expressed as a polynomial in \(\tan x\), plus a constant.

A General Formula and Why It Works

The binomial theorem states that \((1+z)^n=\sum_{j=0}^{n}\binom{n}{j}z^j\) for a nonnegative integer \(n\). Apply it with \(z=u^2\) and \(n=k-1\), then integrate each power of \(u\).

Theorem: If \(k\) is a positive integer, then on any interval where \(\cos x\ne 0\), $$ \int \sec^{2k}x\,dx = \sum_{j=0}^{k-1}\binom{k-1}{j} \frac{\tan^{2j+1}x}{2j+1}+C. $$ Here \(C\) is an arbitrary constant of integration.

To see why the formula gives an antiderivative, differentiate the sum. For each index \(j\), the derivative of \(\tan^{2j+1}x/(2j+1)\) is \(\tan^{2j}x\,\sec^2 x\). Therefore,

$$ \begin{aligned} \frac{d}{dx}\left( \sum_{j=0}^{k-1}\binom{k-1}{j} \frac{\tan^{2j+1}x}{2j+1} \right) &=\sec^2 x\sum_{j=0}^{k-1}\binom{k-1}{j}\tan^{2j}x\\ &=\sec^2 x(1+\tan^2 x)^{k-1}\\ &=\sec^2 x(\sec^2 x)^{k-1}\\ &=\sec^{2k}x. \end{aligned} $$

The first equality uses the chain rule, and the second uses the binomial theorem. The last two equalities use \(1+\tan^2 x=\sec^2 x\). This verifies the formula directly and shows that the substitution has not changed the target integrand.

A Reliable Calculation Process

1
Reserve the differential factor.
Write \(\sec^{2k}x=(\sec^2 x)^{k-1}\sec^2 x\), leaving \(\sec^2 x\,dx\) intact.
2
Rewrite the other secant factors.
Replace \((\sec^2 x)^{k-1}\) by \((1+\tan^2 x)^{k-1}\).
3
Substitute and integrate.
Set \(u=\tan x\), so that \(du=\sec^2 x\,dx\), expand the polynomial, and integrate each term.
4
Return to \(x\) and check.
Replace \(u\) by \(\tan x\), include \(C\), and differentiate to confirm that the result is \(\sec^{2k}x\).

Worked Examples

Worked Example: Integrating \(\sec^2 x\)

Here \(k=1\). There are no remaining secant factors after reserving \(\sec^2 x\,dx\). Set \(u=\tan x\), so \(du=\sec^2 x\,dx\). Then

$$ \begin{aligned} \int \sec^2 x\,dx &=\int 1\cdot \sec^2 x\,dx\\ &=\int 1\,du\\ &=u+C\\ &=\tan x+C. \end{aligned} $$

Check by differentiation:

$$ \frac{d}{dx}(\tan x+C)=\sec^2 x+0=\sec^2 x. $$

The derivative matches the integrand, so the antiderivative is correct on any interval where \(\cos x\ne 0\).

Worked Example: Integrating \(\sec^4 x\)

Factor out the secant-squared differential, then use the identity before substituting:

$$ \begin{aligned} \int \sec^4 x\,dx &=\int \sec^2 x\,\sec^2 x\,dx\\ &=\int (1+\tan^2 x)\sec^2 x\,dx. \end{aligned} $$

With \(u=\tan x\) and \(du=\sec^2 x\,dx\), this becomes

$$ \begin{aligned} \int (1+\tan^2 x)\sec^2 x\,dx &=\int (1+u^2)\,du\\ &=\int 1\,du+\int u^2\,du\\ &=u+\frac{u^3}{3}+C\\ &=\tan x+\frac{\tan^3 x}{3}+C. \end{aligned} $$

Differentiate the answer to check it:

$$ \begin{aligned} \frac{d}{dx}\left(\tan x+\frac{\tan^3 x}{3}\right) &=\sec^2 x+\tan^2 x\,\sec^2 x\\ &=\sec^2 x(1+\tan^2 x)\\ &=\sec^2 x\sec^2 x\\ &=\sec^4 x. \end{aligned} $$

This equals the original integrand, as required.

Worked Example: Integrating \(\sec^6 x\)

There are three factors of \(\sec^2 x\). Reserve one for \(du\), and rewrite the other two together:

$$ \begin{aligned} \int \sec^6 x\,dx &=\int (\sec^2 x)^2\sec^2 x\,dx\\ &=\int (1+\tan^2 x)^2\sec^2 x\,dx. \end{aligned} $$

Set \(u=\tan x\). Expanding before integrating gives

$$ \begin{aligned} \int (1+\tan^2 x)^2\sec^2 x\,dx &=\int (1+u^2)^2\,du\\ &=\int (1+2u^2+u^4)\,du\\ &=\int 1\,du+2\int u^2\,du+\int u^4\,du\\ &=u+\frac{2u^3}{3}+\frac{u^5}{5}+C\\ &=\tan x+\frac{2\tan^3 x}{3}+\frac{\tan^5 x}{5}+C. \end{aligned} $$

For the check, differentiate term by term and factor out \(\sec^2 x\):

$$ \begin{aligned} \frac{d}{dx}\left(\tan x+\frac{2\tan^3 x}{3}+\frac{\tan^5 x}{5}\right) &=\sec^2 x+2\tan^2 x\sec^2 x+\tan^4 x\sec^2 x\\ &=\sec^2 x(1+2\tan^2 x+\tan^4 x)\\ &=\sec^2 x(1+\tan^2 x)^2\\ &=\sec^2 x(\sec^2 x)^2\\ &=\sec^6 x. \end{aligned} $$

The derivative is the given integrand, confirming the result.

A Common Mistake: Losing Track of the Differential

The substitution does not mean that every \(\sec^2 x\) in the integrand can be replaced by \(du\). Only the factor paired with \(dx\) becomes \(du\). The other factors must first be rewritten in terms of \(u\).

For instance, an incorrect calculation for \(\int \sec^4 x\,dx\) might replace every \(\sec^2 x\) by \(1+u^2\), and then write

$$ \int \sec^4 x\,dx \;\not=\; \int (1+u^2)^2\,du. $$

This has treated the entire integrand as if it were multiplied by \(du\), without accounting for the original \(dx\). It produces \(u+\frac{2u^3}{3}+\frac{u^5}{5}+C\). Differentiating that expression with \(u=\tan x\) gives \(\sec^2 x(1+\tan^2 x)^2=\sec^6 x\), not \(\sec^4 x\).

The correction is to keep one factor of \(\sec^2 x\,dx\) as the differential and rewrite only the other factor: \(\sec^4 x\,dx=(1+\tan^2 x)\sec^2 x\,dx\). Then the integral becomes \(\int(1+u^2)\,du\), giving \(\tan x+\frac{\tan^3 x}{3}+C\), whose derivative is \(\sec^4 x\).

When the Method Applies

The method works directly for \(\sec^{2k}x\) because removing one factor of \(\sec^2 x\) leaves an integer power of \(\sec^2 x\). That remaining power can be rewritten entirely as a polynomial in \(\tan x\). The substitution then has exactly the differential it needs.

The restriction on the interval matters: \(\tan x\) is undefined where \(\cos x=0\). The antiderivative formula is valid separately on each interval that contains no such point. An arbitrary constant may be chosen on each interval. Also, the binomial expansion is finite because \(k\) is an integer; the polynomial integration described here is specifically for these even powers.

Takeaway: Keep \(\sec^2 x\,dx\) together as \(du\), rewrite all the other secant factors using \(\sec^2 x=1+\tan^2 x\), and verify the result by differentiation.

Check Your Understanding

For each question, show how the reserved \(\sec^2 x\,dx\) factor becomes \(du\). Check any proposed antiderivative by differentiation.

  1. Rewrite \(\int \sec^8 x\,dx\) as an integral in \(u=\tan x\), before expanding.
  2. Evaluate \(\int \sec^4 x\,dx\) by tangent substitution and verify the result.
  3. Expand \((1+u^2)^3\) and use it to find \(\int \sec^8 x\,dx\).
  4. Why must the calculation be restricted to an interval on which \(\cos x\ne 0\)?
  5. A student replaces all four factors in \(\sec^8 x\) with \(1+u^2\), then appends \(du\). Explain the error and state which factor should supply \(du\).

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon