Tutorials › Calculus II › Evaluating Odd Secant Powers By Recurrence

Tangent and Secant Powers · Tutorial 133 of 998

Evaluating Odd Secant Powers By Recurrence

Apply the secant-power recurrence to integrate odd powers of secant, reduce each integral to the basic logarithmic case, and verify the results by differentiation.

Intermediate 9 min read

What You'll Learn

  • State the secant-power recurrence and the range in which it applies.
  • Use the integral of secant as the base case for odd powers.
  • Evaluate integrals of secant cubed, secant to the fifth, and secant to the seventh.
  • Track recurrence coefficients as each power is reduced by two.
  • Check proposed antiderivatives by differentiating them.
  • Recognize why the recurrence must not be used with an undefined lower-power integral.

Why Odd Secant Powers Reduce by Two

Integrals of higher powers of secant can look increasingly complicated, but the reduction formula turns each one into a simpler integral whose exponent is two less. For an odd power, repeating that step eventually reaches the basic integral of secant. That base integral introduces a logarithm, while the preceding reduction steps contribute products of secant and tangent.

The key is to keep track of the coefficients at every step. A small coefficient error in one reduction changes the whole antiderivative, so each result below is checked by differentiation.

Definition: On an interval where \(\cos x\ne 0\), write \(I_n=\int \sec^n x\,dx\) for positive integers \(n\), where \(\sec x=1/\cos x\). An indefinite integral denotes a family of antiderivatives, so the recurrence and formulas for \(I_n\) are understood up to an additive constant.

The Recurrence and Its Base Case

For integers \(n\ge 3\), the secant-power reduction formula is

$$ I_n = \frac{\sec^{n-2}x\tan x}{n-1} + \frac{n-2}{n-1}I_{n-2}. $$

The restriction \(n\ge 3\) matters: it ensures that \(n-2\) is a positive integer and that the lower-power integral in the formula is defined by our notation. The odd-power calculations use \(n=3,5,7,\ldots\), so each reduction remains within the odd powers and ultimately reaches \(I_1\).

The base case is

$$ I_1=\int \sec x\,dx =\ln|\sec x+\tan x|+C. $$

To check the base case, differentiate the logarithm on any interval where \(\cos x\ne 0\):

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

The logarithm is defined here because \(\sec x+\tan x\ne 0\) wherever \(\cos x\ne 0\). Indeed, \(\sec x+\tan x=(1+\sin x)/\cos x\), and \(1+\sin x=0\) only when \(\sin x=-1\), where \(\cos x=0\).

Why the Recurrence Works

The reduction follows from integration by parts and the identity \(\tan^2 x=\sec^2 x-1\). For \(n\ge 3\), write \(\sec^n x=\sec^{n-2}x\sec^2 x\). Choose \(u=\sec^{n-2}x\) and \(dv=\sec^2 x\,dx\), so that \(du=(n-2)\sec^{n-2}x\tan x\,dx\) and \(v=\tan x\). Integration by parts gives

$$ \begin{aligned} I_n &=\sec^{n-2}x\tan x -(n-2)\int \sec^{n-2}x\tan^2 x\,dx\\ &=\sec^{n-2}x\tan x -(n-2)\int \sec^{n-2}x(\sec^2 x-1)\,dx\\ &=\sec^{n-2}x\tan x-(n-2)(I_n-I_{n-2}). \end{aligned} $$

Collect the \(I_n\) terms on the left:

$$ (n-1)I_n = \sec^{n-2}x\tan x+(n-2)I_{n-2}. $$

Dividing by \(n-1\), which is nonzero for \(n\ge 3\), yields the stated recurrence. This derivation also explains the reduction: the tangent-squared factor becomes a difference involving the original integral and the integral two powers lower.

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

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

Apply the recurrence with \(n=3\). The lower integral is \(I_1\), the base case:

$$ \begin{aligned} I_3 &=\frac{\sec^{3-2}x\tan x}{3-1} +\frac{3-2}{3-1}I_{3-2}\\ &=\frac{1}{2}\sec x\tan x+\frac{1}{2}I_1\\ &=\frac{1}{2}\sec x\tan x +\frac{1}{2}\ln|\sec x+\tan x|+C. \end{aligned} $$

Check by differentiating. Since \(\frac{d}{dx}(\sec x\tan x)=\sec x\tan^2x+\sec^3x=2\sec^3x-\sec x\), the derivative is

$$ \frac{1}{2}(2\sec^3x-\sec x) +\frac{1}{2}\sec x =\sec^3x. $$

Thus the displayed expression is an antiderivative of \(\sec^3x\) on any interval where \(\cos x\ne 0\).

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

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

First reduce \(I_5\) to \(I_3\), then substitute the result for \(I_3\):

$$ \begin{aligned} I_5 &=\frac{\sec^{5-2}x\tan x}{5-1} +\frac{5-2}{5-1}I_{5-2}\\ &=\frac{1}{4}\sec^3x\tan x+\frac{3}{4}I_3\\ &=\frac{1}{4}\sec^3x\tan x +\frac{3}{4}\left( \frac{1}{2}\sec x\tan x +\frac{1}{2}\ln|\sec x+\tan x| \right)+C\\ &=\frac{1}{4}\sec^3x\tan x +\frac{3}{8}\sec x\tan x +\frac{3}{8}\ln|\sec x+\tan x|+C. \end{aligned} $$

For the check, the product rule and \(\tan^2x=\sec^2x-1\) give \(\frac{d}{dx}(\sec^3x\tan x)=4\sec^5x-3\sec^3x\) and \(\frac{d}{dx}(\sec x\tan x)=2\sec^3x-\sec x\). Therefore the derivative of the proposed antiderivative is

$$ \begin{aligned} &\frac{1}{4}(4\sec^5x-3\sec^3x) +\frac{3}{8}(2\sec^3x-\sec x) +\frac{3}{8}\sec x\\ &\qquad=\sec^5x-\frac{3}{4}\sec^3x +\frac{3}{4}\sec^3x-\frac{3}{8}\sec x+\frac{3}{8}\sec x\\ &\qquad=\sec^5x. \end{aligned} $$

The lower-power terms cancel, leaving exactly the integrand.

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

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

Reduce \(I_7\) to \(I_5\), and then substitute the complete expression for \(I_5\):

$$ \begin{aligned} I_7 &=\frac{\sec^{7-2}x\tan x}{7-1} +\frac{7-2}{7-1}I_{7-2}\\ &=\frac{1}{6}\sec^5x\tan x+\frac{5}{6}I_5\\ &=\frac{1}{6}\sec^5x\tan x +\frac{5}{6}\left( \frac{1}{4}\sec^3x\tan x +\frac{3}{8}\sec x\tan x +\frac{3}{8}\ln|\sec x+\tan x| \right)+C\\ &=\frac{1}{6}\sec^5x\tan x +\frac{5}{24}\sec^3x\tan x +\frac{5}{16}\sec x\tan x +\frac{5}{16}\ln|\sec x+\tan x|+C. \end{aligned} $$

To check, differentiate the products using \(\frac{d}{dx}(\sec^p x\tan x)=(p+1)\sec^{p+2}x-p\sec^p x\), which follows from the product rule and \(\tan^2x=\sec^2x-1\). The derivative is

$$ \begin{aligned} &\frac{1}{6}(6\sec^7x-5\sec^5x) +\frac{5}{24}(4\sec^5x-3\sec^3x) +\frac{5}{16}(2\sec^3x-\sec x) +\frac{5}{16}\sec x\\ &\qquad=\sec^7x-\frac{5}{6}\sec^5x +\frac{5}{6}\sec^5x-\frac{5}{8}\sec^3x +\frac{5}{8}\sec^3x-\frac{5}{16}\sec x+\frac{5}{16}\sec x\\ &\qquad=\sec^7x. \end{aligned} $$

Again, the terms introduced by differentiating the products cancel in pairs.

Continuing to Higher Odd Powers

For an odd exponent \(n=2m+1\), where \(m\) is a positive integer, each recurrence step reduces the exponent by two:

$$ I_{2m+1} \longrightarrow I_{2m-1} \longrightarrow I_{2m-3} \longrightarrow \cdots \longrightarrow I_3 \longrightarrow I_1. $$

At each step, retain both parts of the recurrence: the product term involving \(\sec^{n-2}x\tan x\), and the coefficient multiplying the lower-power integral. Continue until every integral has been replaced by an explicit term, including the final logarithm from \(I_1\). This process gives a finite sum of secant-tangent terms and one logarithmic term.

The exponent \(n=2\) is not part of this odd-power chain. It can be integrated directly as \(\int\sec^2x\,dx=\tan x+C\). The odd-power recurrence above is stated for \(n\ge 3\), where its lower-power integral is well-defined.

A Common Pitfall: Using the Recurrence Outside Its Range

If the displayed recurrence is mistakenly applied with \(n=2\), it produces

$$ I_2=\sec^0x\tan x+0I_0. $$

The notation \(I_n\) here is defined only for positive integers, so \(I_0\) lies outside it, and the recurrence is proved above only for \(n\ge 3\). (If one extends the notation by \(I_0=\int dx=x+C\), the formula does happen to give the correct value \(I_2=\tan x+C\), but that is a separate check, not a use of the stated result.) The safe course is to use the recurrence only for integers \(n\ge 3\), as stated. For the separate even-power case \(n=2\), directly differentiate \(\tan x\):

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

Another frequent error is to reduce the power correctly but drop a coefficient. For example, the recurrence gives \(I_5=\frac14\sec^3x\tan x+\frac34 I_3\), not \(\frac14\sec^3x\tan x+I_3\). The coefficient \(\frac34\) must multiply every term of the \(I_3\) antiderivative, as the worked calculation shows.

Using the Method Reliably

The recurrence is useful because it replaces a higher odd power with a lower one while preserving an exact equality of antiderivatives. It also provides a predictable route to the answer: reduce by two repeatedly, use the secant base case, and then check by differentiation. Keeping the domain in view is important: these antiderivatives apply on intervals that do not contain a point where \(\cos x=0\).

1
Start at the given odd exponent.
Use the recurrence only when the exponent is an integer at least three.
2
Reduce by two.
Write the product term and the full coefficient of the lower-power integral.
3
Continue to \(I_1\).
Substitute each lower-power formula until the logarithmic base case appears.
4
Check by differentiation.
Differentiate the result and simplify until the original secant power remains.

Check Your Understanding

Use the recurrence and the base case to answer these questions. Check any antiderivative you find by differentiation.

  1. What condition on \(n\) makes the stated recurrence valid with the definition of \(I_n\) used here?
  2. Write the first recurrence step for \(I_9\), including both coefficients.
  3. Which base integral is reached by repeatedly reducing \(I_7\), and what is its antiderivative?
  4. What is the coefficient of \(\ln|\sec x+\tan x|\) in the formula for \(I_5\)?
  5. Why is it invalid to apply this recurrence at \(n=2\) as written?

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