Tutorials › Calculus II › Worked Problems In Mixed Tangent And Secant Powers

Tangent and Secant Powers · Tutorial 137 of 998

Worked Problems In Mixed Tangent And Secant Powers

Choose a useful tangent or secant substitution, simplify the leftover powers with an identity, and verify each resulting antiderivative.

Intermediate 9 min read

What You'll Learn

  • Recognize when a secant-squared factor pairs with the derivative of tangent.
  • Recognize when a tangent-secant factor pairs with the derivative of secant.
  • Rewrite leftover powers using secant squared equals one plus tangent squared.
  • Evaluate three mixed tangent-secant integrals step by step.
  • Check each antiderivative by differentiation and identify a substitution error.

Why the Choice of Factor Matters

A mixed tangent-secant integral contains both powers of \(\tan x\) and powers of \(\sec x\). The main task is to arrange the factors so that one part is the derivative of a useful substitution, while the remaining part can be expressed in terms of that substitution.

Two derivative identities guide the choices in this tutorial:

$$ \frac{d}{dx}\tan x=\sec^2 x \qquad\text{and}\qquad \frac{d}{dx}\sec x=\sec x\tan x. $$

The identity \(\sec^2 x=1+\tan^2 x\) connects the two functions. Depending on the integrand, it can turn the leftover factors into a polynomial in either \(\tan x\) or \(\sec x\). The substitution should be chosen to use the factors already present, not imposed before examining the integrand.

Working condition: The integrals below are indefinite integrals on intervals where \(\cos x\ne 0\), so that \(\tan x\) and \(\sec x\) are defined. Each antiderivative is valid on any such interval, up to an arbitrary constant \(C\).

A Substitution Principle for These Integrals

If \(u=g(x)\), then \(du=g'(x)\,dx\). The substitution is useful when the integrand can be written as a function of \(g(x)\) multiplied by \(g'(x)\). The reason is the chain rule: if \(F'(u)=f(u)\), then

$$ \frac{d}{dx}F(g(x))=F'(g(x))g'(x)=f(g(x))g'(x). $$

Thus, once the integrand has the form \(f(g(x))g'(x)\), integrating \(f(u)\) with respect to \(u\) produces an antiderivative in \(x\). In the examples, the algebraic identity is what makes the leftover factors a function of the substituted variable.

Useful identity: The equivalent forms \(\sec^2 x=1+\tan^2 x\) and \(\tan^2 x=\sec^2 x-1\) allow leftover powers to be rewritten in the variable selected for substitution.

Worked Example: \(\int \tan^2 x\sec^4 x\,dx\)

Worked Example: Use \(u=\tan x\)

Consider

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

A factor of \(\sec^2 x\,dx\) is present, and it is the differential of \(\tan x\). Separate that factor from the other powers:

$$ \int \tan^2 x\sec^4 x\,dx = \int \tan^2 x\sec^2 x\left(\sec^2 x\,dx\right). $$

Set \(u=\tan x\), so \(du=\sec^2 x\,dx\). In the remaining factor, use \(\sec^2 x=1+\tan^2 x\):

$$ \tan^2 x\sec^2 x = u^2(1+u^2) = u^2+u^4. $$

The integral is now a polynomial integral:

$$ \int (u^2+u^4)\,du = \frac{u^3}{3}+\frac{u^5}{5}+C. $$

Substitute \(u=\tan x\) back:

$$ \int \tan^2 x\sec^4 x\,dx = \frac{\tan^3 x}{3}+\frac{\tan^5 x}{5}+C. $$

Check by differentiating. Since \((\tan x)'=\sec^2 x\),

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

The last equality uses \(1+\tan^2 x=\sec^2 x\), so the derivative matches the integrand.

When the Secant Substitution Fits

The derivative of \(\sec x\) contains the paired factor \(\sec x\tan x\). If an integrand has one factor of each, setting \(u=\sec x\) may leave the other factors expressible using \(\tan^2 x=\sec^2 x-1\). This is especially helpful when an odd power of tangent provides a factor \(\tan x\), while the remaining tangent powers can be grouped in pairs.

Choice of substitution: For \(u=\tan x\), reserve a factor \(\sec^2 x\,dx\), then express any remaining secant powers as powers of \(1+u^2\). For \(u=\sec x\), reserve a factor \(\sec x\tan x\,dx\), then express remaining tangent squares as \(u^2-1\).

Worked Example: \(\int \tan^3 x\sec^3 x\,dx\)

Worked Example: Use \(u=\sec x\)

Evaluate

$$ \int \tan^3 x\sec^3 x\,dx. $$

Reserve a factor \(\tan x\sec x\,dx\), which is \(d(\sec x)\). The remaining factor is \(\tan^2 x\sec^2 x\):

$$ \int \tan^3 x\sec^3 x\,dx = \int \tan^2 x\sec^2 x\left(\tan x\sec x\,dx\right). $$

Set \(u=\sec x\), so \(du=\sec x\tan x\,dx\). Rewrite the remaining tangent square using \(\tan^2 x=\sec^2 x-1\):

$$ \tan^2 x\sec^2 x = (\sec^2 x-1)\sec^2 x = (u^2-1)u^2 = u^4-u^2. $$

Therefore,

$$ \int (u^4-u^2)\,du = \frac{u^5}{5}-\frac{u^3}{3}+C. $$

Returning to \(x\) gives

$$ \int \tan^3 x\sec^3 x\,dx = \frac{\sec^5 x}{5}-\frac{\sec^3 x}{3}+C. $$

Differentiate to check the result:

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

Here the third line uses \(\sec^2 x-1=\tan^2 x\), confirming that the derivative is the original integrand.

Worked Example: \(\int \tan^4 x\sec^2 x\,dx\)

Worked Example: Use \(u=\tan x\) directly

Consider

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

This integrand already contains the complete differential for \(u=\tan x\). Set \(u=\tan x\), so \(du=\sec^2 x\,dx\). No identity is needed for the remaining tangent power:

$$ \int \tan^4 x\sec^2 x\,dx = \int u^4\,du = \frac{u^5}{5}+C = \frac{\tan^5 x}{5}+C. $$

Differentiate the proposed antiderivative:

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

The result checks exactly. This example illustrates that the simplest substitution is often the one whose derivative factor is already present as a complete factor in the integrand.

A Practical Way to Organize the Algebra

These examples differ in which derivative factor is set aside, but their reasoning follows the same sequence. First identify a derivative factor; next rewrite any leftover powers in the chosen variable; then integrate; finally differentiate the answer to check it.

1
Inspect the powers.
Look for \(\sec^2 x\,dx\), associated with \(d(\tan x)\), or \(\sec x\tan x\,dx\), associated with \(d(\sec x)\).
2
Reserve the derivative factor.
Separate it explicitly so it is clear what becomes \(du\).
3
Convert the leftover factors.
Use \(\sec^2 x=1+\tan^2 x\) for a tangent substitution, or \(\tan^2 x=\sec^2 x-1\) for a secant substitution.
4
Integrate and verify.
Integrate the resulting expression in \(u\), substitute back, and differentiate the answer.

Common Pitfall: Losing a Leftover Factor

When using \(u=\tan x\), only one factor of \(\sec^2 x\,dx\) becomes \(du\). Any additional secant factors must still be converted into expressions involving \(u\). For the first example, the following calculation is incorrect:

$$ \int \tan^2 x\sec^4 x\,dx \ \not=\ \int u^2\,du = \frac{u^3}{3}+C. $$

This drops the remaining factor \(\sec^2 x\). The correct separation is

$$ \tan^2 x\sec^4 x\,dx = \tan^2 x\sec^2 x\left(\sec^2 x\,dx\right), $$

so the leftover factor becomes \(u^2(1+u^2)\), not merely \(u^2\). The incorrect proposed answer also fails its derivative check:

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

in general. Differentiating is a direct way to reveal that a factor was lost.

Why These Substitutions Are Useful

Mixed tangent-secant expressions can look complicated because the same trigonometric functions appear in several powers. A suitable substitution reduces the integral to an ordinary polynomial integral: the derivative factor accounts for \(dx\), and a Pythagorean identity converts what remains into the chosen variable. The method is reliable when both pieces are handled—the derivative factor and every leftover factor.

The three worked integrals show the main distinctions. In \(\int \tan^2 x\sec^4 x\,dx\), the tangent substitution leaves an extra secant square to rewrite. In \(\int \tan^3 x\sec^3 x\,dx\), the secant substitution uses the paired tangent-secant factor. In \(\int \tan^4 x\sec^2 x\,dx\), the tangent substitution is already complete. In every case, differentiating the final expression confirms the computation.

Check Your Understanding

For each question, identify the useful substitution or the identity needed before carrying out the integration.

  1. For \(\int \tan^2 x\sec^4 x\,dx\), which factor becomes \(du\) under \(u=\tan x\), and how should the leftover secant square be rewritten?
  2. Why is \(u=\sec x\) a useful substitution for \(\int \tan^3 x\sec^3 x\,dx\)? State the differential factor it uses.
  3. Evaluate \(\int \tan^4 x\sec^2 x\,dx\) and check the result by differentiation.
  4. What factor is lost in the incorrect calculation \(\int \tan^2 x\sec^4 x\,dx=\int u^2\,du\) with \(u=\tan x\)?
  5. State the identity that converts leftover tangent squares into powers of \(\sec x\).

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