Tutorials › Calculus II › Odd Tangent Powers Paired With Secant Factors

Tangent and Secant Powers · Tutorial 128 of 998

Odd Tangent Powers Paired With Secant Factors

Learn how to turn odd-tangent, secant-factor integrals into polynomial integrals in secant, and how to check the result by differentiation.

Intermediate 9 min read

What You'll Learn

  • Identify when an odd tangent power provides a useful secant–tangent factor
  • Rewrite the remaining even tangent power using the identity tan squared x equals secant squared x minus one
  • Set up the substitution u equals secant x and determine the resulting polynomial integral
  • Apply the binomial theorem to obtain a general antiderivative formula
  • Check antiderivatives by differentiating and recognize a common substitution error

Why an Odd Power of Tangent Helps

When an integral contains an odd power of tangent and a factor of secant, it contains a useful derivative pattern: the derivative of \(\sec x\) is \(\sec x\tan x\). Reserving one factor of each makes a substitution with \(u=\sec x\) possible. The remaining tangent power is even, so it can be rewritten using \(\tan^2 x=\sec^2 x-1\).

This method is especially systematic because, after the substitution, the integrand is a polynomial in \(u\). The exponent of secant determines the initial power of \(u\), while the even tangent power determines the degree of the additional factor.

Definition: In this tutorial, \(k\) is a nonnegative integer and \(n\) is a positive integer. We consider integrals of the form \(\int \tan^{2k+1}(x)\sec^n(x)\,dx\), on intervals where the integrand is defined.

The requirement \(n\geq 1\) ensures there is at least one secant factor available to pair with a tangent factor. The substitution is \(u=\sec x\), so \(du=\sec x\tan x\,dx\). The trigonometric identity used to convert the remaining tangent powers follows from \(\sec^2 x=1+\tan^2 x\).

The Substitution, Step by Step

Separate one factor of \(\sec x\tan x\) from the integrand. Since the tangent power is \(2k+1\), the tangent factors left over have the even power \(2k\):

$$ \tan^{2k+1}(x)\sec^n(x) = \tan^{2k}(x)\sec^{n-1}(x) \bigl(\sec x\tan x\bigr). $$

Now replace \(\tan^{2k}(x)\) with \((\sec^2 x-1)^k\). With \(u=\sec x\), the integral becomes a polynomial integral:

$$ \int \tan^{2k+1}(x)\sec^n(x)\,dx = \int u^{n-1}(u^2-1)^k\,du. $$
1
Reserve the derivative factor.
Write the integrand as \(\tan^{2k}(x)\sec^{n-1}(x)\bigl(\sec x\tan x\bigr)\,dx\).
2
Convert the remaining tangent power.
Use \(\tan^{2k}(x)=(\tan^2 x)^k=(\sec^2 x-1)^k\).
3
Substitute and integrate.
Set \(u=\sec x\) and \(du=\sec x\tan x\,dx\), then integrate the resulting polynomial.
4
Return to \(x\) and check.
Replace \(u\) by \(\sec x\), include the constant of integration, and differentiate the result.

Worked Examples

Worked Example: A Cubic Tangent Power and a Secant-Squared Factor

Evaluate \(\int \tan^3 x\sec^2 x\,dx\).

Here \(2k+1=3\), so \(k=1\), and \(n=2\). Reserve \(\sec x\tan x\,dx\). One tangent factor and one secant factor remain:

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

To check, differentiate the proposed antiderivative:

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

The derivative is the original integrand, so the antiderivative is verified.

Worked Example: A Fifth-Power Tangent Factor and One Secant

Evaluate \(\int \tan^5 x\sec x\,dx\).

In this case \(k=2\) and \(n=1\). After reserving \(\sec x\tan x\,dx\), four tangent factors remain, and there are no additional secant factors:

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

Differentiate to check each term:

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

This recovers the given integrand.

Worked Example: A Cubic Tangent Power and a Cubed Secant Factor

Evaluate \(\int \tan^3 x\sec^3 x\,dx\).

Here \(k=1\) and \(n=3\). Reserving one \(\sec x\tan x\) leaves \(\tan^2 x\sec^2 x\):

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

For the check, differentiate and factor the result:

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

Thus the differentiated expression agrees with the integrand.

General Formula and Its Justification

The method gives a compact formula for every pair of exponents in the stated range. To see why, first transform the integral using \(u=\sec x\), then expand the factor \((u^2-1)^k\) by the binomial theorem. Each resulting term is an ordinary power of \(u\).

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

Here \(\binom{k}{j}\) is the binomial coefficient. The conditions ensure that the sum is finite and that each denominator \(n+2j\) is positive, so none of the power integrations requires a logarithm.

For the justification, begin with the transformed integral and expand the \(k\)-th power. Since \(k\) is a nonnegative integer, the binomial theorem applies:

$$ \begin{aligned} \int u^{n-1}(u^2-1)^k\,du &=\int u^{n-1}\sum_{j=0}^{k}\binom{k}{j}(u^2)^j(-1)^{k-j}\,du\\ &=\sum_{j=0}^{k}(-1)^{k-j}\binom{k}{j} \int u^{n-1+2j}\,du\\ &=\sum_{j=0}^{k}(-1)^{k-j}\binom{k}{j} \frac{u^{n+2j}}{n+2j}+C. \end{aligned} $$

In the last step, the power rule for integration applies because \(n-1+2j\ne -1\). Indeed, \(n\geq1\) and \(j\geq0\), so \(n+2j\geq1\). Substituting back \(u=\sec x\) gives the displayed formula.

This substitution argument is legitimate locally wherever \(\sec x\) has a nonzero derivative, and the resulting antiderivative formula can also be checked directly by differentiation wherever \(\cos x\ne0\). The differentiation check confirms the result throughout each interval on which the integrand is defined, including points where \(\tan x=0\).

A Common Substitution Error

A frequent mistake is to reserve \(\sec x\tan x\,dx\) but leave the remaining tangent power unchanged. For example, after writing \(\tan^3 x\sec^2 x\) as \(\tan^2 x\sec x(\sec x\tan x)\), it is incorrect to claim that the remaining factor \(\tan^2 x\sec x\) becomes \(u^2\). It becomes \(u(u^2-1)\), because \(\tan^2 x=u^2-1\).

$$ \text{Incorrect: }\int \tan^2 x\sec x\,du \ \text{ treated as }\int u^2\,du. $$

This wrong replacement would lead to the proposed answer \(\sec^3 x/3+C\). Differentiating exposes the error:

$$ \frac{d}{dx}\left(\frac{\sec^3 x}{3}\right) =\sec^3 x\tan x \ne \tan^3 x\sec^2 x. $$

The correction is to convert the remaining tangent power before integrating in \(u\): \(\tan^2 x\sec x=(u^2-1)u\). Integrating \(u(u^2-1)\) gives \(u^4/4-u^2/2\), which differentiates back to the required integrand, as shown in the first worked example.

Why the Method Is Useful

The key decision is structural: an odd tangent power leaves an even number of tangent factors after one \(\tan x\) is paired with a \(\sec x\). Every remaining tangent factor can therefore be handled in pairs through \(\tan^2 x=\sec^2 x-1\). This converts the problem into polynomial algebra rather than requiring a separate trigonometric integration technique for each choice of exponents.

Before applying the method, check both conditions: the tangent exponent must be odd, and there must be at least one secant factor. Then keep the reserved factor visible until the substitution is made. This prevents losing a factor of \(\sec x\) or \(\tan x\). Finally, differentiate the proposed answer. In these integrals, factoring the derivative often reveals \(\sec^2 x-1=\tan^2 x\), making the verification direct.

Check Your Understanding

For each question, identify the substitution structure before carrying out any optional algebra.

  1. For \(\int \tan^7 x\sec^2 x\,dx\), what are \(k\) and \(n\), and what expression in \(u\) results after \(u=\sec x\)?
  2. Use the general formula to evaluate \(\int \tan x\sec^3 x\,dx\).
  3. In \(\int \tan^3 x\sec^4 x\,dx\), which factor should be reserved for \(du\), and what remains to be converted?
  4. Why does the general formula have no zero denominator when \(k\geq0\) and \(n\geq1\)?
  5. Differentiate \(\sec^4 x/4-\sec^2 x/2\) and show how \(\sec^2 x-1\) recovers the tangent power.

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