Tutorials › AP Calculus › Choosing the Inner Function for Substitution

Antiderivatives and Substitution · Tutorial 494 of 999

Choosing the Inner Function for Substitution

Learn to identify a useful inner expression, rewrite the remaining factors in terms of it, and check whether the resulting integral is simpler.

Intermediate 9 min read

What You'll Learn

  • Spot expressions that repeat or appear inside a power, root, or denominator
  • Decide whether a candidate substitution makes the entire integrand expressible using the new variable
  • Rewrite leftover factors rather than leaving incompatible variables mixed together
  • Compare a useful substitution with a choice that does not simplify the integral
  • Check a proposed antiderivative by differentiating it
  • Avoid losing a constant factor when rewriting the differential

Why the Choice of Inner Function Matters

A substitution can turn a complicated-looking integral into a familiar one, but its success depends on choosing the right expression to represent with a new variable. The useful expression is often repeated, or it appears inside a power, root, or denominator. The choice must also make sense of the rest of the integrand: after the substitution, every factor should be rewritten in terms of the new variable and its differential.

For example, in an expression involving \(x^2+3\), it is natural to consider naming \(x^2+3\) as \(u\). But recognizing that expression is only the beginning. We must also account for the other factors involving \(x\), and see whether the integral becomes one we know how to evaluate.

Key idea: Choose an inner expression when replacing it with a new variable makes the whole integrand simpler. Do not stop after naming \(u\): rewrite every remaining factor and the differential consistently.

What Makes a Substitution Useful?

Let \(u=g(x)\), where \(g\) is a differentiable expression. The substitution links changes in \(x\) and \(u\) through \(du=g'(x)\,dx\). A useful choice makes it possible to express the integrand, including its differential, in terms of \(u\) and \(du\), with no unresolved \(x\)-factors left over. Ideally, the resulting integral is one whose antiderivative is already familiar.

There may be several expressions that look like possible candidates. A good choice often has one or more of these features:

  • It is the base of a power, or the expression inside a root or denominator.
  • It occurs repeatedly, so replacing it removes repeated complexity.
  • The remaining \(x\)-factors can be combined with \(dx\) and rewritten using \(du\).
  • Any leftover powers of \(x\) can be expressed in terms of \(u\) using the substitution equation.

These are clues, not a rule that every problem must follow the same pattern. The practical test is whether the entire integral becomes simpler after the substitution. A choice that replaces one complicated expression but leaves several unrelated \(x\)-factors may not help.

Definition: A useful inner function for an integral is an expression \(u=g(x)\) for which rewriting the full integrand and differential in terms of \(u\) and \(du\) leads to a simpler integral that can be evaluated using known antiderivatives.

Why Substitution Works

The reasoning comes from the chain rule. Suppose an integrand can be written as \(G(g(x))g'(x)\), and suppose \(F\) is an antiderivative of \(G\), so \(F'(u)=G(u)\). Then the chain rule gives the following derivative:

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

Therefore \(F(g(x))\) is an antiderivative of the original integrand. Substitution packages the repeated inner expression as \(u=g(x)\), so the integral is evaluated as an integral in \(u\), then expressed back in \(x\) for an indefinite integral.

Theorem: If \(F'(u)=G(u)\) and \(g\) is differentiable, then \(F(g(x))\) is an antiderivative of \(G(g(x))g'(x)\). This follows directly by differentiating \(F(g(x))\) with the chain rule.

This also explains why choosing an inner function without considering the remaining factors is incomplete. The expression \(g(x)\) identifies what may become \(u\), but the rest of the integrand must fit the rewritten integral too.

A Reliable Selection Process

Use the following process when deciding what to substitute. It is a way to test a choice, not a requirement to use the first expression that catches your eye.

1
Locate a candidate inner expression.
Look for a repeated expression or one contained inside a power, root, or denominator.
2
Name the candidate \(u\).
Write \(u=g(x)\), then find \(du=g'(x)\,dx\).
3
Account for every other factor.
Use the equation for \(du\), and, when helpful, solve \(u=g(x)\) for a remaining expression involving \(x\).
4
Judge the result.
If the full integral is now simpler and uses only \(u\) and \(du\), proceed. If important \(x\)-factors remain and cannot be conveniently rewritten, reconsider the choice.

Worked Examples

Worked Example: A Power of a Repeated Quadratic

Choose a substitution and evaluate \(\displaystyle \int 2x(x^2+3)^4\,dx\).

The expression \(x^2+3\) is repeated through its fourth power, so let

$$ u=x^2+3. $$

Differentiating gives \(du=2x\,dx\). The factor \(2x\,dx\) in the integral is exactly \(du\), and the fourth power becomes \(u^4\). Thus

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

Since \(u=x^2+3\), the antiderivative in the original variable is

$$ \frac{(x^2+3)^5}{5}+C. $$

Check by differentiating:

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

This returns the original integrand, so the antiderivative is correct.

Worked Example: The Denominator and the Remaining Factor

Evaluate \(\displaystyle \int \frac{2x+1}{x^2+x+4}\,dx\).

The quadratic \(x^2+x+4\) is the denominator, making it a natural candidate for \(u\). Its derivative is \(2x+1\), which is precisely the numerator:

$$ u=x^2+x+4, \qquad du=(2x+1)\,dx. $$

Both the denominator and the numerator together with \(dx\) are now expressed using \(u\) and \(du\):

$$ \int \frac{2x+1}{x^2+x+4}\,dx = \int \frac{1}{u}\,du = \ln|u|+C. $$

Substitute back to obtain \(\ln|x^2+x+4|+C\). In this case the absolute value is unnecessary for real \(x\): completing the square gives

$$ x^2+x+4 = \left(x+\frac12\right)^2+\frac{15}{4} > 0. $$

Thus the answer may be written \(\ln(x^2+x+4)+C\). Check by differentiating:

$$ \frac{d}{dx}\ln(x^2+x+4) = \frac{2x+1}{x^2+x+4}. $$

The derivative matches the original integrand.

Worked Example: Rewriting a Leftover Factor

Evaluate \(\displaystyle \int x\sqrt{9-x^2}\,dx\).

The expression under the square root is \(9-x^2\), so choose

$$ u=9-x^2. $$

Then \(du=-2x\,dx\), so \(x\,dx=-\frac12\,du\). The remaining factor \(x\) is not left behind: together with \(dx\), it is rewritten using \(du\). Therefore

$$ \int x\sqrt{9-x^2}\,dx = -\frac12\int u^{1/2}\,du = -\frac12\cdot\frac{2}{3}u^{3/2}+C = -\frac13u^{3/2}+C. $$

Replacing \(u\) gives \(-\frac13(9-x^2)^{3/2}+C\). For the original integrand to be real, it is enough to consider \(x\) in the interval \([-3,3]\). Check by differentiating within the interior of that interval:

$$ \frac{d}{dx}\left(-\frac13(9-x^2)^{3/2}\right) = -\frac13\cdot\frac32(9-x^2)^{1/2}(-2x) = x\sqrt{9-x^2}. $$

The result differentiates to the original integrand.

When a Candidate Does Not Help

A substitution is not useful merely because it names an expression in the integral. For instance, in \(\int 2x(x^2+3)^4\,dx\), one could set \(u=x\). Then \(du=dx\), and the integral becomes \(\int 2u(u^2+3)^4\,du\). This is still an integral with essentially the same structure; the substitution has not simplified the repeated quadratic. Choosing \(u=x^2+3\), by contrast, turns the entire expression into \(\int u^4\,du\).

When a first choice leaves \(x\)-factors behind, ask whether they can be rewritten from \(u=g(x)\). For example, if \(u=x^2+3\), then \(x^2=u-3\). This can help when an integral contains an even power of \(x\). If a lone \(x\) remains and the differential does not account for it, rewriting \(x^2\) does not remove that lone factor. The proposed substitution may therefore fail to simplify the integral.

Common Pitfall: Losing a Factor

Consider \(\int \frac{x}{x^2+4}\,dx\), and set \(u=x^2+4\). Then \(du=2x\,dx\), so \(x\,dx=\frac12du\). A common incorrect step is to replace the integral with \(\int \frac1u\,du\), forgetting the factor \(\frac12\).

$$ \text{Incorrect: } \int \frac{x}{x^2+4}\,dx = \ln(x^2+4)+C. $$

Differentiation exposes the error:

$$ \frac{d}{dx}\ln(x^2+4) = \frac{2x}{x^2+4}, $$

which is twice the original integrand. The correct rewriting retains the factor:

$$ \int \frac{x}{x^2+4}\,dx = \frac12\int \frac1u\,du = \frac12\ln|u|+C = \frac12\ln(x^2+4)+C. $$

Here \(x^2+4>0\), so the absolute value can be omitted. Differentiating the corrected answer gives \(\frac12\cdot\frac{2x}{x^2+4}=\frac{x}{x^2+4}\), as required. The lesson is not simply to spot the denominator: preserve the exact relationship between the old differential and \(du\).

What to Check Before Integrating

Before carrying out an antiderivative, pause after choosing \(u\) and inspect the entire rewritten integral. In particular, check that:

  • the expression named \(u\) is the one you intended to replace;
  • the differential \(du\) has been calculated correctly;
  • all remaining factors, including constants, have been rewritten;
  • the new integral is actually simpler than the original.

A useful substitution is a choice that organizes the whole integrand, not just one part of it. Once the choice has been made and the factors have been rewritten consistently, familiar antiderivative rules can finish the calculation. Differentiating the final answer checks that the substitution and the integration have both been handled correctly.

Check Your Understanding

For each question, focus on whether the proposed substitution accounts for the whole integrand.

  1. For \(\int 6x(x^2+5)^2\,dx\), what inner expression would you choose, and what does the integral become in the new variable?
  2. For \(\int \frac{3x^2}{x^3+1}\,dx\), identify a natural candidate for \(u\). Which part of the integrand becomes \(du\)?
  3. For \(\int x\sqrt{16-x^2}\,dx\), what substitution turns the expression under the root into \(u\), and how do you rewrite \(x\,dx\)?
  4. Why is it not enough to replace a repeated expression with \(u\) while leaving an unaccounted factor of \(x\) in the integral?
  5. In \(\int \frac{x}{x^2+4}\,dx\), what constant factor appears when \(x\,dx\) is rewritten in terms of \(du\)?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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