Tutorials › Calculus I › Nested Substitutions in Definite Integrals

Integral Evaluation Strategies · Tutorial 1184 of 1495

Nested Substitutions in Definite Integrals

Learn to carry out nested substitutions in definite integrals while keeping every differential and endpoint consistent.

Advanced 10 min read

What You'll Learn

  • Recognize when an integral calls for successive changes of variable.
  • Transform the integrand and differential at each stage.
  • Update the bounds whenever the variable changes.
  • Handle substitutions whose endpoint order reverses.
  • Justify nested substitution using the chain rule and Fundamental Theorem of Calculus.
  • Check an evaluated integral by differentiating an antiderivative.

Why Nested Substitutions Need Care

A definite integral may contain several layers of composition. One substitution can expose a simpler integral, but that new integral may still be easier to evaluate after changing variables again. Each change is straightforward on its own; the challenge is keeping the integrand, differential, and bounds synchronized.

For example, if the original variable is \(x\), a first substitution might introduce \(u=g(x)\), and a second might introduce \(v=h(u)\). After the first change, the integral is written entirely in \(u\); after the second, it is written entirely in \(v\). The final evaluation must use the final integrand and the final endpoints together.

Key principle: A substitution changes the variable of integration. At each stage, transform the differential and both endpoints as well as the integrand. Do not mix quantities from different stages.

The Rule for Successive Changes of Variable

Suppose \(g\) is continuously differentiable on \([a,b]\), \(h\) is continuously differentiable on an interval containing \(g([a,b])\), and \(f\) is continuous on an interval containing \(h(g([a,b]))\). Then the definite integral below has a valid nested substitution:

$$ \int_a^b f(h(g(x)))\,h'(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(h(u))\,h'(u)\,du = \int_{h(g(a))}^{h(g(b))} f(v)\,dv. $$

The first change is \(u=g(x)\), so \(du=g'(x)\,dx\). Its endpoints are \(u=g(a)\) and \(u=g(b)\). The second change is \(v=h(u)\), so \(dv=h'(u)\,du\), with endpoints \(v=h(g(a))\) and \(v=h(g(b))\). The formula does not require either substitution to be increasing: if a change reverses endpoint order, the bounds remain in the order obtained by applying the substitution to the original lower and upper endpoints.

In practice, an integral may be presented in a form where the factors for the second substitution become visible only after the first change. In that case, write out the intermediate integral explicitly before making the next change. This makes it possible to check that the new differential really accounts for the factors being replaced.

Why the Nested Rule Works

The chain rule explains the factors in the rule, and the Fundamental Theorem of Calculus turns that derivative into the definite integral. To see this, choose an antiderivative \(F\) of \(f\) on the interval containing the values of \(h(g(x))\). Thus \(F'(v)=f(v)\). The chain rule gives

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

The composition \(F(h(g(x)))\) is continuously differentiable under the stated assumptions, so its derivative is continuous and the Fundamental Theorem of Calculus applies. Therefore,

$$ \int_a^b f(h(g(x)))h'(g(x))g'(x)\,dx = F(h(g(b)))-F(h(g(a))). $$

Applying the same theorem to the transformed integrals gives

$$ \int_{g(a)}^{g(b)} f(h(u))h'(u)\,du = F(h(g(b)))-F(h(g(a))) $$

and

$$ \int_{h(g(a))}^{h(g(b))}f(v)\,dv = F(h(g(b)))-F(h(g(a))). $$

All three integrals therefore have the same value. The continuity assumptions matter: continuous differentiability of the substitutions ensures the displayed integrands are continuous, so these proper definite integrals and the applications of the Fundamental Theorem are justified.

Worked Example: An Exponential After Two Linear Changes

Worked Example: An Exponential After Two Linear Changes

Evaluate \(\displaystyle \int_0^1 2x e^{1+x^2}\,dx\) by making two successive substitutions.

First substitution: Let \(u=x^2\). Then \(du=2x\,dx\). Transform the endpoints: when \(x=0\), \(u=0^2=0\); when \(x=1\), \(u=1^2=1\). Thus

$$ \int_0^1 2x e^{1+x^2}\,dx = \int_0^1 e^{1+u}\,du. $$

Second substitution: Let \(v=1+u\). Then \(dv=du\). The new endpoints are \(v=1+0=1\) and \(v=1+1=2\). Hence

$$ \int_0^1 e^{1+u}\,du = \int_1^2 e^v\,dv = \left[e^v\right]_1^2 = e^2-e. $$

Check: An antiderivative of the original integrand is \(e^{1+x^2}\), since

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

Evaluating it at the original endpoints gives \(e^{1+1^2}-e^{1+0^2}=e^2-e\), agreeing with the substitutions.

Worked Example: A Nonlinear Second Substitution

Worked Example: A Nonlinear Second Substitution

Evaluate \(\displaystyle \int_0^1 2x(1+x^2)^3\,dx\), using a second substitution after simplifying the inner expression.

Let \(u=1+x^2\), so \(du=2x\,dx\). When \(x=0\), \(u=1+0^2=1\); when \(x=1\), \(u=1+1^2=2\). The integral becomes

$$ \int_0^1 2x(1+x^2)^3\,dx = \int_1^2 u^3\,du. $$

Now let \(v=u^2\). Then \(dv=2u\,du\), or \(u\,du=\frac12\,dv\). Since \(u^3\,du=u^2(u\,du)\), and \(u^2=v\), the transformed integrand is \(\frac{v}{2}\,dv\). The endpoints become \(v=1^2=1\) and \(v=2^2=4\). Therefore,

$$ \int_1^2 u^3\,du = \frac12\int_1^4 v\,dv = \frac12\left[\frac{v^2}{2}\right]_1^4 = \frac14(4^2-1^2) = \frac{15}{4}. $$

Check: An antiderivative in the original variable is \(\frac{(1+x^2)^4}{4}\), because

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

Its endpoint difference is \(\frac{(1+1^2)^4}{4}-\frac{(1+0^2)^4}{4}=\frac{16-1}{4}=\frac{15}{4}\), as required.

Worked Example: Tracking Reversed Endpoints

Worked Example: Tracking Reversed Endpoints

Evaluate \(\displaystyle \int_0^1 2(2-x)e^{(2-x)^2}\,dx\) by two substitutions. The first substitution is decreasing over the original interval, so its transformed endpoints will appear in reverse order.

Let \(u=2-x\), so \(du=-dx\). When \(x=0\), \(u=2\); when \(x=1\), \(u=1\). Substituting the integrand, differential, and endpoints gives

$$ \int_0^1 2(2-x)e^{(2-x)^2}\,dx = \int_2^1 -2u e^{u^2}\,du. $$

Now let \(v=u^2\), so \(dv=2u\,du\). At the lower \(u\)-endpoint \(2\), \(v=4\); at the upper \(u\)-endpoint \(1\), \(v=1\). Thus

$$ \int_2^1 -2u e^{u^2}\,du = -\int_4^1 e^v\,dv = -\left[e^v\right]_4^1 = -(e-e^4) = e^4-e. $$

The reversal is handled by the bounds, not by silently changing their order. Equivalently, reversing the final bounds would require changing the sign: \(-\int_4^1 e^v\,dv=\int_1^4 e^v\,dv\).

Check: The function \(-e^{(2-x)^2}\) is an antiderivative of the original integrand, since

$$ \frac{d}{dx}\left(-e^{(2-x)^2}\right) = -e^{(2-x)^2}\cdot 2(2-x)(-1) = 2(2-x)e^{(2-x)^2}. $$

Its endpoint difference is \(-e^{(2-1)^2}-(-e^{(2-0)^2})=-e+e^4=e^4-e\), which confirms the result.

A Common Mistake: Losing a Differential Factor

In the second worked example, after setting \(v=u^2\), it would be incorrect to claim that \(u^3\,du=v^3\,dv\). This replaces the power \(u^3\) with \(v^3\) but ignores the differential. In fact, \(dv=2u\,du\), so one factor of \(u\) belongs with \(du\):

$$ u^3\,du = u^2(u\,du) = v\left(\frac12\,dv\right) = \frac{v}{2}\,dv. $$

The incorrect transformation would produce \(\int_1^4 v^3\,dv=\frac{4^4-1^4}{4}=\frac{255}{4}\), not the correct value \(\frac{15}{4}\). The bounds \(1\) and \(4\) are correct, but correct bounds cannot repair an incorrectly transformed differential. Each substitution must account for the entire product of the integrand and differential.

A Reliable Procedure

When a definite integral calls for successive substitutions, organize the work one variable at a time.

1
Choose the first variable.
Write the substitution and its differential, then compute the images of both original endpoints.
2
Rewrite the entire integral.
Express the integrand, differential, and bounds using the new variable before proceeding.
3
Choose the next variable.
Derive its differential from the new substitution, rewrite every factor, and transform the current bounds.
4
Evaluate and check.
Use the final variable and its bounds throughout the evaluation, then differentiate an antiderivative in the original variable and compare endpoint values.

This procedure is useful because errors often arise from changing only part of an integral. A written intermediate line exposes missing factors, old variables left behind, or endpoints that were not updated. If an endpoint order reverses, retain that order and let the signed definite integral represent the orientation correctly.

Check Your Understanding

For each question, keep the variable, differential, and endpoints in view at every change.

  1. In the substitution \(u=x^2+1\) on \([0,2]\), what are the transformed endpoints?
  2. If \(v=u^3\), what differential relation connects \(dv\) and \(du\), and how would you transform \(u^2\,du\)?
  3. Why must the bounds be transformed again when a second substitution is made?
  4. Suppose a substitution sends the original lower endpoint to a larger new value than the original upper endpoint. What should be done with the transformed bounds?
  5. State the chain-rule identity that justifies the nested substitution formula when \(F'=f\).

Test yourself: Calculus I 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