Tutorials › AP Calculus › Matching the Differential in Substitution

Antiderivatives and Substitution · Tutorial 495 of 999

Matching the Differential in Substitution

Use the differential \(du\) to check whether a substitution matches the integrand and to account for any constant factor.

Intermediate 9 min read

What You'll Learn

  • Write \(du\) from the derivative of a chosen inner function.
  • Recognize an exact match between the integrand and \(du\).
  • Identify when the integrand contains a constant multiple of \(du\).
  • Test whether a factor is not proportional to the differential.
  • Check a substituted antiderivative by differentiating it.

Why Matching the Differential Matters

A substitution begins with a chosen inner function, but choosing that function is only part of the work. You must also check what happens to the rest of the integrand. If \(u=g(x)\), then the derivative of \(g\) determines \(du\). The substitution is especially direct when the integrand contains the factor \(g'(x)\,dx\), because that entire factor can be replaced by \(du\).

If the integrand contains a constant multiple of \(g'(x)\,dx\), the substitution still has a simple form, but the constant must be carried through the calculation. If the remaining factor is not proportional to \(g'(x)\), it cannot be replaced by a constant multiple of \(du\). These distinctions prevent missing factors and unsupported substitutions.

Key idea: For \(u=g(x)\), compute \(du=g'(x)\,dx\) before changing the integrand. Then compare the \(x\)-dependent factor multiplying \(dx\) with \(g'(x)\).

What the Differential \(du\) Represents

Suppose \(g\) is differentiable and set \(u=g(x)\). The chain rule gives \(du=g'(x)\,dx\), the differential form of the relationship between the variables. In a substitution in an indefinite integral, this tells us how to express the integral using \(u\): an occurrence of \(g'(x)\,dx\) becomes \(du\). The other part of the integrand must also be expressible in terms of \(u\) for the result to be an integral in \(u\) alone.

There are three useful possibilities when comparing a factor \(h(x)\,dx\) in the integrand with \(du\):

  • Exact match: \(h(x)=g'(x)\), so \(h(x)\,dx=du\).
  • Constant-multiple match: \(h(x)=c\,g'(x)\) for a constant \(c\), so \(h(x)\,dx=c\,du\).
  • No constant-multiple match: there is no constant \(c\) for which \(h(x)=c\,g'(x)\) throughout the relevant interval.

The third case means that this factor cannot be replaced by a constant multiple of \(du\) as it stands. It does not prove that the integral has no antiderivative or that no other method or substitution could work. It simply identifies a limit of the proposed match.

A Justification from the Chain Rule

The substitution method works because differentiation reverses the change of variable. Let \(F\) be an antiderivative of a function \(f\), so \(F'(u)=f(u)\), and let \(u=g(x)\). By the chain rule, differentiating \(F(g(x))\) produces the factor \(g'(x)\). Thus an integrand containing \(f(g(x))g'(x)\) is the derivative of \(F(g(x))\).

1
Start with an antiderivative in \(u\).
Let \(F'(u)=f(u)\).
2
Replace \(u\) by \(g(x)\).
The resulting composite function is \(F(g(x))\).
3
Differentiate the composite.
The chain rule gives \(\frac{d}{dx}F(g(x))=F'(g(x))g'(x)=f(g(x))g'(x)\).
4
Recognize the integrand.
Therefore, wherever the functions are defined and differentiable, \(\int f(g(x))g'(x)\,dx=F(g(x))+C\).

This is a complete justification for an exact differential match. If the integrand instead contains \(c\,g'(x)\), with \(c\) constant, then the chain-rule expression must be scaled accordingly; the constant cannot simply be ignored.

Theorem: If \(F'(u)=f(u)\) and \(u=g(x)\), then \(\frac{d}{dx}F(g(x))=f(g(x))g'(x)\). Consequently, \(\int f(g(x))g'(x)\,dx=F(g(x))+C\) on an interval where the functions and derivatives are defined. The equality of indefinite integrals means that the expressions give the same family of antiderivatives, up to an additive constant.

Worked Example: An Exact Match

Worked Example: An Exact Match

Evaluate \(\int 2x(x^2+4)^3\,dx\) using \(u=x^2+4\).

First differentiate the chosen inner function:

$$ u=x^2+4 \qquad\Longrightarrow\qquad du=2x\,dx. $$

The integrand contains \(2x\,dx\) exactly, so replace that factor with \(du\). Also, \(x^2+4=u\):

$$ \int 2x(x^2+4)^3\,dx = \int u^3\,du. $$

Using the power rule for antiderivatives, \(\int u^3\,du=\frac{u^4}{4}+C\). Substitute back \(u=x^2+4\):

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

Check by differentiating the proposed antiderivative:

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

The derivative equals the original integrand, so the result is correct.

Worked Example: A Constant-Multiple Match

Worked Example: A Constant-Multiple Match

Evaluate \(\int 5x\cos(5x^2)\,dx\) using \(u=5x^2\).

Differentiate \(u\):

$$ u=5x^2 \qquad\Longrightarrow\qquad du=10x\,dx. $$

The integrand contains \(5x\,dx\), which is half of \(10x\,dx\):

$$ 5x\,dx=\frac{1}{2}\,du. $$

The factor \(\cos(5x^2)\) becomes \(\cos u\). Keeping the factor \(\frac{1}{2}\) gives

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

Check by differentiation:

$$ \frac{d}{dx}\left(\frac{1}{2}\sin(5x^2)\right) = \frac{1}{2}\cos(5x^2)\cdot 10x = 5x\cos(5x^2). $$

This confirms the answer. The inner derivative was not present exactly: the integrand contained half of it, and that factor had to remain in the integral.

Worked Example: Testing for a Match

Worked Example: Testing for a Match

For the integral \(\int (x+1)e^{x^2+3x}\,dx\), test whether \(u=x^2+3x\) makes the factor \((x+1)\,dx\) equal to a constant multiple of \(du\).

Differentiate the proposed inner function:

$$ u=x^2+3x \qquad\Longrightarrow\qquad du=(2x+3)\,dx. $$

A constant-multiple match would require a constant \(c\) such that \(x+1=c(2x+3)\) for every \(x\) in the interval. Comparing the coefficients of \(x\) requires \(1=2c\), so \(c=\frac{1}{2}\). Comparing the constant terms requires \(1=3c\), so \(c=\frac{1}{3}\). These requirements conflict.

$$ \frac{1}{2}\ne\frac{1}{3}. $$

Therefore, \((x+1)\,dx\) is neither exactly \(du\) nor a constant multiple of \(du\) for this choice of \(u\). The test does not evaluate the integral; it shows that this proposed differential match does not convert the factor into a constant multiple of \(du\). No antiderivative is asserted here.

A Reliable Matching Test

When using a chosen inner function \(u=g(x)\), do not decide by appearance alone that the differential matches. Calculate \(g'(x)\), write \(du=g'(x)\,dx\), and compare the complete factor multiplying \(dx\) in the integrand with \(g'(x)\). If needed, test whether their ratio is a constant, rather than a function of \(x\).

1
Differentiate the inner function.
For \(u=g(x)\), calculate \(g'(x)\).
2
Write the differential.
Record \(du=g'(x)\,dx\), including every numerical factor.
3
Compare the factors.
Check whether the integrand contains \(g'(x)\,dx\), \(c\,g'(x)\,dx\) for a constant \(c\), or neither.
4
Make the substitution consistently.
Replace the matched differential factor by \(du\), retaining any constant multiple.
5
Check the result.
Differentiate the proposed antiderivative and compare it with the original integrand.

Common Pitfall: Losing a Constant

A frequent error is to write \(du\) correctly but then replace a different factor in the integrand as if the match were exact. In the second worked example, \(du=10x\,dx\), not \(5x\,dx\). The integrand's factor \(5x\,dx\) is \(\frac{1}{2}du\).

$$ \text{Incorrect:}\qquad \int 5x\cos(5x^2)\,dx = \int\cos u\,du = \sin(5x^2)+C. $$

This answer fails the derivative check:

$$ \frac{d}{dx}\sin(5x^2) = 10x\cos(5x^2) \ne 5x\cos(5x^2). $$

The correction is to keep the factor \(\frac{1}{2}\) from \(5x\,dx=\frac{1}{2}du\). Then \(\frac{1}{2}\sin(5x^2)+C\) differentiates to \(5x\cos(5x^2)\), as required. The check exposes the error because the incorrect result produces twice the original integrand.

Why the Match Is Useful

Substitution changes the variable used to describe the integral, but it does not make the derivative factor optional. The differential records precisely how the inner quantity changes as \(x\) changes. Matching it is what lets the chain rule run in reverse. An exact match makes the conversion direct; a constant-multiple match remains usable if the constant is preserved; a nonproportional factor is a warning that the proposed substitution does not produce the desired differential form on its own.

In practice, writing \(du\) on a separate line is a small step that prevents a common source of errors. It also makes the reasoning visible: the substitution is justified by an equality of differential factors, not by the mere presence of a familiar-looking inner expression.

Check Your Understanding

For each question, pay attention to the derivative of the chosen inner function and to the entire factor multiplying \(dx\).

  1. If \(u=x^2+7\), what is \(du\), and does \(2x\,dx\) match it exactly?
  2. If \(u=4x^2\), express \(3x\,dx\) as a constant multiple of \(du\).
  3. For \(u=x^2+2x\), can \((x+1)\,dx\) be replaced by \(du\) exactly? Show the differential.
  4. What condition must hold for a factor \(h(x)\,dx\) to equal a constant multiple of \(du\), when \(u=g(x)\)?
  5. Why does differentiating a proposed antiderivative help detect a missing constant factor?

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