Tutorials › Calculus I › Transforming Bounds Under A Change Of Variable

Substitution and Reversing the Chain Rule · Tutorial 1139 of 1495

Transforming Bounds Under A Change Of Variable

Learn to replace the original limits with the values of the substitution at the endpoints, and to evaluate definite integrals in the new variable.

Intermediate 8 min read

What You'll Learn

  • State the conditions for the definite change-of-variable rule.
  • Derive the rule from the Fundamental Theorem of Calculus and the chain rule.
  • Transform limits by evaluating the substitution at the original endpoints.
  • Apply the rule to polynomial, affine, and trigonometric substitutions.
  • Identify and correct errors caused by mixing variables and bounds.

Why the Bounds Must Change

A definite integral has both an integrand and limits that describe the variable over which the accumulation is measured. If a substitution replaces \(x\) by a new variable \(u=g(x)\), the limits must describe the corresponding values of \(u\). Keeping the original numerical limits while changing the integration variable generally changes the interval and therefore the integral.

The rule is simple: evaluate the substitution at the original lower and upper endpoints. If \(x=a\) corresponds to \(u=g(a)\), and \(x=b\) corresponds to \(u=g(b)\), then the integral in \(u\) has endpoints \(g(a)\) and \(g(b)\), in that order. The differential must also be expressed in terms of \(u\), as in the earlier material on substitution.

Key rule: Under \(u=g(x)\), transform the endpoints by \(a\mapsto g(a)\) and \(b\mapsto g(b)\). Do not carry the original \(x\)-limits into an integral whose variable is \(u\).

The Definite Substitution Rule

Here is a precise version of the endpoint rule. Let \(a<b\), let \(g\) be continuously differentiable on \([a,b]\), and suppose its values lie in an interval \(I\). Let \(h\) be continuous on \(I\). Then the integrand \(h(g(x))g'(x)\) is continuous, and

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

The formula does not require \(g\) to be increasing. The endpoints on the right are always written as \(g(a)\) followed by \(g(b)\), so their order is determined by the images of the original endpoints. In the examples below, the substitutions are increasing over the intervals used.

In practice, substitution is useful when the integrand can be written as a function of \(g(x)\) multiplied by \(g'(x)\), possibly with a constant factor that can be handled separately. Once \(u=g(x)\) and \(du=g'(x)\,dx\) are identified, the endpoint calculations are direct substitutions into \(g\).

Why the Rule Works

The proof connects the substitution rule to the Fundamental Theorem of Calculus and the chain rule. Because \(h\) is continuous, it has an antiderivative \(H\) on \(I\), with \(H'(u)=h(u)\). The chain rule gives the derivative of the composite function \(H(g(x))\):

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

Thus \(H(g(x))\) is an antiderivative of the original integrand. Applying the Fundamental Theorem of Calculus and then using \(H'=h\) gives

$$ \begin{aligned} \int_a^b h(g(x))g'(x)\,dx &=H(g(b))-H(g(a))\\ &=\int_{g(a)}^{g(b)}h(u)\,du. \end{aligned} $$

This proves the rule, including why the transformed endpoints are the values of \(g\) at the original endpoints. The same endpoint values appear because the antiderivative is evaluated at \(x=b\) and \(x=a\), producing \(H(g(b))\) and \(H(g(a))\).

Worked Examples

Worked Example: A Polynomial Substitution

Evaluate \(\displaystyle \int_0^2 2x(x^2+1)^3\,dx\) by setting \(u=x^2+1\).

First, differentiate the substitution: \(du=2x\,dx\). The original endpoints are \(x=0\) and \(x=2\), so transform each one:

$$ u(0)=0^2+1=1,\qquad u(2)=2^2+1=5. $$

The factor \(2x\,dx\) is \(du\), and \((x^2+1)^3=u^3\). Therefore

$$ \begin{aligned} \int_0^2 2x(x^2+1)^3\,dx &=\int_1^5 u^3\,du\\ &=\left[\frac{u^4}{4}\right]_1^5\\ &=\frac{5^4}{4}-\frac{1^4}{4}\\ &=\frac{625-1}{4}\\ &=156. \end{aligned} $$

Check: an antiderivative in \(x\) is \(\frac{(x^2+1)^4}{4}\), since

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

Its endpoint difference is \(\frac{5^4}{4}-\frac{1^4}{4}=156\), agreeing with the transformed integral.

Worked Example: An Affine Substitution

Evaluate \(\displaystyle \int_0^2 3(3x-1)^4\,dx\) using \(u=3x-1\).

Differentiate to get \(du=3\,dx\). Transform the endpoints by evaluating the affine expression at each original endpoint:

$$ u(0)=3(0)-1=-1,\qquad u(2)=3(2)-1=5. $$

Since \(3\,dx=du\) and \((3x-1)^4=u^4\), the integral becomes

$$ \begin{aligned} \int_0^2 3(3x-1)^4\,dx &=\int_{-1}^5 u^4\,du\\ &=\left[\frac{u^5}{5}\right]_{-1}^5\\ &=\frac{5^5}{5}-\frac{(-1)^5}{5}\\ &=625+\frac{1}{5}\\ &=\frac{3126}{5}. \end{aligned} $$

Check: differentiating \(\frac{(3x-1)^5}{5}\) gives \(\frac{1}{5}\cdot5(3x-1)^4\cdot3=3(3x-1)^4\). Evaluating this antiderivative at the original endpoints gives \(\frac{5^5-(-1)^5}{5}=\frac{3126}{5}\), as required.

Worked Example: A Trigonometric Substitution

Evaluate \(\displaystyle \int_0^{\pi/3}\frac{\cos x}{(2+\sin x)^2}\,dx\) using \(u=2+\sin x\).

The derivative is \(du=\cos x\,dx\). Evaluate \(u\) at both original endpoints. At \(x=0\), \(\sin 0=0\), so \(u=2\). At \(x=\pi/3\), \(\sin(\pi/3)=\sqrt{3}/2\), so \(u=2+\sqrt{3}/2\). Thus

$$ \begin{aligned} \int_0^{\pi/3}\frac{\cos x}{(2+\sin x)^2}\,dx &=\int_2^{2+\sqrt{3}/2}\frac{1}{u^2}\,du\\ &=\int_2^{2+\sqrt{3}/2}u^{-2}\,du\\ &=\left[-\frac{1}{u}\right]_2^{2+\sqrt{3}/2}\\ &=-\frac{1}{2+\sqrt{3}/2}+\frac{1}{2}\\ &=\frac{1}{2}-\frac{2}{4+\sqrt{3}}. \end{aligned} $$

Check: an antiderivative in \(x\) is \(-1/(2+\sin x)\), because

$$ \frac{d}{dx}\left(-\frac{1}{2+\sin x}\right) = \frac{\cos x}{(2+\sin x)^2}. $$

Evaluating it at \(x=\pi/3\) and \(x=0\) gives \(-1/(2+\sqrt{3}/2)+1/2\), the same value as the transformed integral.

A Reliable Endpoint Procedure

Writing the endpoint transformation explicitly is a useful way to prevent a variable mismatch. A complete substitution can be organized as follows:

1
Choose the inner expression.
Write \(u=g(x)\) and identify how the remaining factors in the integrand relate to \(g'(x)\,dx\).
2
Transform both endpoints.
Calculate \(g(a)\) and \(g(b)\) from the original limits \(x=a\) and \(x=b\).
3
Rewrite the whole integral.
Express the integrand, differential, and limits in terms of \(u\), so no original \(x\)-limits remain.
4
Evaluate and check.
Find the transformed integral and, when useful, verify the answer using an antiderivative in the original variable.

Common Mistakes

A frequent error is to change the integrand and differential but keep the old numerical limits. For example, in the first worked example, the substitution is \(u=x^2+1\), and the original \(x\)-limits are \(0\) and \(2\). The incorrect calculation is

$$ \int_0^2 u^3\,du = \left[\frac{u^4}{4}\right]_0^2 = 4. $$

This calculation integrates \(u^3\) over \(0\leq u\leq2\), but the substitution maps the original endpoints to \(u=1\) and \(u=5\). It therefore uses the wrong interval. The corrected calculation is

$$ \int_1^5 u^3\,du = \left[\frac{u^4}{4}\right]_1^5 = 156. $$

Another mistake is to transform the limits but leave part of the integrand in \(x\). For instance, after setting \(u=3x-1\), the expression \((3x-1)^4\) becomes \(u^4\), and \(3\,dx\) becomes \(du\). The transformed integral must use \(u\) throughout; writing \(u^4\,dx\) would still mix variables and would not be the result of the substitution.

Check before evaluating: The integration variable, integrand, differential, and both limits must all belong to the same variable. If the integral is in \(u\), its limits must be \(u\)-values.

When the Endpoint Rule Applies

The theorem applies when the integrand has the form \(h(g(x))g'(x)\), with \(g\) continuously differentiable on the original closed interval and \(h\) continuous on an interval containing the values of \(g\). In practical problems, the derivative factor may appear exactly as \(g'(x)\,dx\), as in the examples, or be identified after algebraic rearrangement. If it appears multiplied by a constant, that factor must be accounted for rather than silently discarded.

These conditions ensure that the integrand is continuous and that the Fundamental Theorem of Calculus and chain rule can be used as in the proof. The rule is not a license to replace an arbitrary expression by a new variable without checking the derivative factor and the limits. A correct substitution accounts for all three: the inner expression, its differential, and the images of the endpoints.

Check Your Understanding

For each question, keep track of which variable is being integrated and calculate endpoint images before evaluating.

  1. Under \(u=x^2+3\), what are the transformed endpoints when the original interval is \(0\leq x\leq2\)?
  2. For \(\displaystyle\int_1^4 2(2x+1)^3\,dx\), set \(u=2x+1\). What are the new limits and the resulting integral in \(u\)?
  3. State the continuity and differentiability conditions used in the definite substitution rule.
  4. Explain why \(\displaystyle\int_0^2 u^3\,du\) does not represent the first worked example after substituting \(u=x^2+1\).
  5. For \(u=1+\sin x\) on \(0\leq x\leq\pi/6\), calculate the transformed lower and upper endpoints.
  6. In one sentence, explain why \(g(a)\) and \(g(b)\) are the limits after the substitution \(u=g(x)\).

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