Tutorials › Calculus II › Tangent And Secant Products By Derivative Pairing

Integration Strategy · Tutorial 12 of 998

Tangent And Secant Products By Derivative Pairing

Use derivative pairing to choose a useful identity and substitution for products of tangent and secant powers.

Beginner 9 min read

What You'll Learn

  • Recognize when a secant-square factor pairs with the derivative of tangent.
  • Recognize when a secant–tangent factor pairs with the derivative of secant.
  • Rewrite remaining powers with the identity secant squared equals one plus tangent squared.
  • Rewrite even tangent powers using tangent squared equals secant squared minus one.
  • Check each antiderivative by differentiating it.
  • Identify when neither standard derivative pairing is present.

Introduction

Products of powers of tangent and secant often become manageable when one factor matches the derivative of another. The key is to inspect the exponents before choosing a substitution: an even secant power can supply a secant-squared factor, while an odd tangent power can supply a secant–tangent factor.

These pairings are useful because the remaining powers can then be rewritten using the identity connecting tangent and secant. The result is often an integral of a polynomial after substitution. The exponent pattern is a guide to a method, not a guarantee that every tangent–secant product has the same easy form.

The Derivatives and Identity to Look For

On any interval where \(\cos x\ne 0\), tangent and secant are defined and satisfy

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

The last identity also gives \(\tan^2 x=\sec^2 x-1\). These derivative and identity pairs suggest two standard patterns for integrating \(\tan^m x\sec^n x\), where \(m,n\) are nonnegative integers.

Definition: A derivative pairing in a trigonometric product is a factor that can be kept with \(dx\) to form the derivative of a chosen function. Here, \(\sec^2 x\,dx\) pairs with \(u=\tan x\), and \(\sec x\tan x\,dx\) pairs with \(u=\sec x\).

The first pattern applies when \(n\) is a positive even integer: keep one factor \(\sec^2 x\,dx\), then rewrite the remaining secant powers using \(\sec^2 x=1+\tan^2 x\). The second applies when \(m\) is odd and \(n\ge 1\): keep \(\sec x\tan x\,dx\), then rewrite the remaining even power of tangent using \(\tan^2 x=\sec^2 x-1\).

Why the Pairing Works

The method is an application of the substitution rule, which follows from the chain rule. If \(u=g(x)\), then \(du=g'(x)\,dx\). Thus, when a factor of an integrand is exactly \(g'(x)\,dx\), the integral can be rewritten in terms of \(u\), provided the rest of the integrand is also expressed in terms of \(u\).

For example, if \(n\) is positive and even, write \(n=2k\), where \(k\ge1\). Then

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

Set \(u=\tan x\), so \(du=\sec^2 x\,dx\). Each remaining \(\sec^2 x\) becomes \(1+u^2\), giving

$$ \int \tan^m x\sec^n x\,dx = \int u^m(1+u^2)^{k-1}\,du. $$

This is a polynomial integral for nonnegative integer \(m\) and \(k\), and can be evaluated by expanding or integrating the powers directly.

For the second pattern, write \(m=2j+1\), where \(j\ge0\), and keep one \(\tan x\) and one \(\sec x\):

$$ \tan^m x\sec^n x\,dx = \tan^{2j}x\sec^{n-1}x \bigl(\sec x\tan x\,dx\bigr). $$

Set \(u=\sec x\), so \(du=\sec x\tan x\,dx\). Since \(\tan^2 x=u^2-1\), this becomes

$$ \int \tan^m x\sec^n x\,dx = \int (u^2-1)^j u^{n-1}\,du. $$

For the stated integer exponents and \(n\ge1\), this too is a polynomial integral. In both derivations, the substitution is valid on intervals where the original trigonometric functions are defined; differentiating the resulting expression verifies the antiderivative on those intervals.

Choose the Pair Before Rewriting

A useful first step is to inspect the exponents, then decide which derivative factor the integrand can supply. Only after identifying the factor should you rewrite the remaining powers. This avoids changing the integrand into a form that no longer displays the useful derivative.

1
Inspect the secant exponent.
If it is positive and even, reserve a factor of \(\sec^2 x\,dx\) and consider \(u=\tan x\).
2
If that pairing is not available, inspect the tangent exponent.
If it is odd and there is at least one secant factor, reserve \(\sec x\tan x\,dx\) and consider \(u=\sec x\).
3
Rewrite the leftover powers.
Use \(\sec^2 x=1+\tan^2 x\) for the tangent substitution, or \(\tan^2 x=\sec^2 x-1\) for the secant substitution.
4
Integrate and check.
Express the result in \(x\), then differentiate it to see whether it reproduces the original integrand.

If neither indicated pairing is available—for instance, when the tangent exponent is even and the secant exponent is odd—do not pretend that a missing derivative factor is present. That exponent pattern calls for a different strategy.

Worked Examples

Worked Example: An Even Secant Power

Evaluate \(\int \tan^3 x\sec^4 x\,dx\). The secant exponent is even, so reserve one \(\sec^2 x\,dx\) factor and use \(u=\tan x\).

First split the secant power and rewrite the leftover factor:

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

Set \(u=\tan x\), so \(du=\sec^2 x\,dx\). The integral becomes

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

Check by differentiation:

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

The derivative equals the original integrand.

Worked Example: An Odd Tangent Power

Evaluate \(\int \tan^5 x\sec^3 x\,dx\). The secant exponent is odd, but the tangent exponent is odd and there is a secant factor. Keep \(\sec x\tan x\,dx\) and use \(u=\sec x\).

Separate the paired factor:

$$ \begin{aligned} \int \tan^5 x\sec^3 x\,dx &=\int \tan^4 x\sec^2 x \bigl(\sec x\tan x\,dx\bigr). \end{aligned} $$

Now set \(u=\sec x\), so \(du=\sec x\tan x\,dx\). The remaining factors become \(\tan^4 x=(u^2-1)^2\) and \(\sec^2 x=u^2\). Therefore

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

To check, differentiate the expression in \(u\) first and then apply the chain rule:

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

Here, \(\sec^2 x-1=\tan^2 x\), so the check recovers the given product exactly.

Worked Example: The Secant–Tangent Pairing with an Odd Secant Power

Evaluate \(\int \tan^3 x\sec^5 x\,dx\). The tangent exponent is odd, so the secant–tangent pairing is available. The secant exponent is also odd, so the even-secant pairing is not available. Use \(u=\sec x\).

Keep \(\sec x\tan x\,dx\). The leftover factors are \(\tan^2 x\sec^4 x\):

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

Differentiate to check:

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

Again, the derivative matches the original integrand.

A Common Identity Mistake

When substituting \(u=\sec x\), the identity needed to replace even powers of tangent is \(\tan^2 x=u^2-1\), not \(1-u^2\). Reversing the subtraction changes the integral and produces an incorrect result.

For example, in the second worked example, a mistaken rewrite would give \(\int u^2(1-u^2)^2\,du\). Since \((1-u^2)^2=(u^2-1)^2\), this particular squared expression happens to be unchanged; that accidental agreement can hide the error. Instead, consider the unsquared factor from the third example: \(\tan^2 x\) must become \(u^2-1\). At a point where \(\sec x=2\), the identity gives \(\tan^2 x=4-1=3\); the reversed expression gives \(1-4=-3\), which cannot equal a square.

The reliable correction is to derive the substitution identity directly from \(\sec^2 x=1+\tan^2 x\): rearranging gives \(\tan^2 x=\sec^2 x-1\), so after \(u=\sec x\), \(\tan^2 x=u^2-1\). Check the final answer by differentiation rather than relying only on a plausible-looking expansion.

When the Pairing Is Not Present

The two patterns above are selection tools for particular exponent combinations; they are not a universal recipe. In \(\tan^m x\sec^n x\), a positive even \(n\) supplies \(\sec^2 x\,dx\), and an odd \(m\), together with \(n\ge1\), supplies \(\sec x\tan x\,dx\). If neither condition holds, neither of these direct pairings is available as stated. Do not insert an extra factor without also accounting for it elsewhere.

When both patterns are available, compare the rewrites and choose the one that leaves the simpler integral. In the examples above, even secant powers favored \(u=\tan x\), while odd tangent powers with odd secant powers favored \(u=\sec x\). In each case, the decisive question was whether the leftover factors could be expressed cleanly in terms of the substitution variable.

Key takeaway: For tangent–secant products, look for \(\sec^2 x\,dx\) before using \(u=\tan x\), or \(\sec x\tan x\,dx\) before using \(u=\sec x\). Rewrite only the remaining powers with the matching identity, then differentiate your result to verify it.

Check Your Understanding

For each question, identify the useful pairing before carrying out any algebra.

  1. For \(\int \tan^2 x\sec^4 x\,dx\), which substitution is suggested by the secant exponent, and what factor is kept with \(dx\)?
  2. Rewrite \(\tan^6 x\) in terms of \(u=\sec x\).
  3. For \(\int \tan^3 x\sec^5 x\,dx\), write the paired factor and the remaining factors before substituting.
  4. Why does an even secant exponent allow a factor \(\sec^2 x\,dx\) to be reserved?
  5. For a product with even tangent exponent and odd secant exponent, are either of the two standard pairings above directly available? Explain.

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