Tutorials › Calculus I › When to Substitute Back in Definite Integrals

Integral Evaluation Strategies · Tutorial 1165 of 1495

When to Substitute Back in Definite Integrals

Learn how to keep variables, bounds, and endpoint evaluation consistent when using substitution in a definite integral.

Advanced 10 min read

What You'll Learn

  • State the regularity conditions for the definite-integral substitution rule.
  • Change both the variable and the bounds, then evaluate entirely in the new variable.
  • Return an antiderivative to the original variable and evaluate at the original bounds.
  • Explain why the two routes agree by the chain rule.
  • Recognize when endpoint bounds differ from the full range of a nonmonotone inner function.
  • Identify and correct the error of changing the variable but keeping the old bounds.

Two Consistent Routes

A substitution in a definite integral changes more than the name of the integration variable. If \(u=g(x)\), then the differential factor changes as well, and the limits must match whichever variable is being used at the point of evaluation.

There are two consistent routes. One is to change to \(u\), transform both bounds, and finish the calculation in \(u\). The other is to find an antiderivative using \(u\), express that antiderivative back in \(x\), and evaluate using the original \(x\)-bounds. The routes give the same value, but mixing their variables and bounds can give a wrong answer.

Key rule: Evaluate an expression using bounds written in the same variable as that expression. If the expression is in \(u\), use \(u\)-bounds. If it is in \(x\), use \(x\)-bounds.

The Substitution Rule and Its Conditions

For the standard proper Riemann-integral substitution rule, the inner function needs enough regularity to make the integrand continuous. In the version used here, \(g\) is continuously differentiable on the closed interval \([a,b]\), and \(h\) is continuous on the range of \(g\) there. The product \(h(g(x))g'(x)\) is then continuous on \([a,b]\), so its proper definite integral is defined.

Theorem: If \(g\in C^1([a,b])\) and \(h\) is continuous on the range of \(g\), then $$ \int_a^b h(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)}h(u)\,du. $$ The bounds on the right are the values of \(g\) at the original endpoints, in that order. The integral is oriented: if \(g(b)<g(a)\), the transformed integral has reversed bounds.

The notation \(g\in C^1([a,b])\) means that \(g\) has a continuous derivative on the interval, including the appropriate one-sided behavior at the endpoints. The theorem does not require \(g\) to be one-to-one for this matched integrand. The derivative factor \(g'(x)\) is essential to the formula; the theorem does not say that an arbitrary factor involving \(g(x)\) can be changed to \(du\).

Why the Two Routes Agree

Here is the reason the two approaches produce the same result. Since \(h\) is continuous, it has an antiderivative \(H\) on the interval containing the range of \(g\). The chain rule gives the derivative of \(H(g(x))\). Applying the standard definite-integral evaluation rule to that derivative proves the substitution identity.

1
Choose an antiderivative in \(u\).
Let \(H'(u)=h(u)\) on an interval containing the range of \(g\).
2
Apply the chain rule.
For \(F(x)=H(g(x))\), we have \(F'(x)=H'(g(x))g'(x)=h(g(x))g'(x)\).
3
Evaluate at the original endpoints.
The definite integral is \(F(b)-F(a)=H(g(b))-H(g(a))\).
4
Recognize the transformed integral.
Since \(H'=h\), the difference \(H(g(b))-H(g(a))\) equals \(\int_{g(a)}^{g(b)}h(u)\,du\).

This also explains the relationship between the two routes. If we integrate in \(u\), we evaluate \(H(u)\) at \(g(a)\) and \(g(b)\). If we write the antiderivative as \(H(g(x))\), we evaluate it at \(a\) and \(b\). These are the same endpoint values expressed in different variables.

Route One: Change the Bounds and Stay in \(u\)

To finish entirely in the new variable, identify \(u=g(x)\), replace the differential factor by \(du=g'(x)\,dx\), and calculate the new bounds by substituting the original endpoints into \(g\). Then integrate and evaluate using those new bounds.

Worked Example: Stay in the New Variable

Evaluate \(\int_1^2 2x\cos(x^2)\,dx\) by changing to \(u=x^2\) and completing the calculation in \(u\).

Set \(u=x^2\). Differentiating gives \(du=2x\,dx\). At the lower endpoint \(x=1\), \(u=1^2=1\). At the upper endpoint \(x=2\), \(u=2^2=4\). Therefore, both the integrand and the bounds change:

$$ \int_1^2 2x\cos(x^2)\,dx = \int_1^4\cos(u)\,du = \sin(u)\bigg|_1^4 = \sin(4)-\sin(1). $$

Check: the antiderivative in the original variable is \(\sin(x^2)\), since \(\frac{d}{dx}\sin(x^2)=2x\cos(x^2)\). Evaluating it at the original bounds gives \(\sin(2^2)-\sin(1^2)=\sin(4)-\sin(1)\), agreeing with the transformed calculation.

Route Two: Return to \(x\) Before Evaluating

Alternatively, use \(u\) to find an antiderivative, then replace \(u\) by \(g(x)\) in that antiderivative. Once the expression is back in \(x\), keep the original \(x\)-bounds. This route is often convenient when the antiderivative is easy to recognize after substitution, but evaluating it in terms of the original endpoints is clearer.

Worked Example: Convert the Antiderivative Back to \(x\)

Evaluate \(\int_0^1 \frac{2x}{1+x^2}\,dx\), returning to \(x\) before applying the bounds.

Set \(u=1+x^2\), so \(du=2x\,dx\). The integral becomes \(\int \frac{1}{u}\,du=\ln|u|+C\). Returning to \(x\) gives \(\ln|1+x^2|+C\). On \([0,1]\), \(1+x^2\) is positive, so this is \(\ln(1+x^2)+C\). Now use the original bounds:

$$ \int_0^1 \frac{2x}{1+x^2}\,dx = \ln(1+1^2)-\ln(1+0^2) = \ln(2)-\ln(1) = \ln(2). $$

Check by differentiating the proposed antiderivative:

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

It matches the integrand, and the endpoint difference is \(\ln(2)\). For comparison, the all-\(u\) route gives bounds \(u=1\) and \(u=2\), and \(\int_1^2 \frac{1}{u}\,du=\ln(2)-\ln(1)=\ln(2)\) as well.

Choosing Between the Routes

Neither route is inherently more correct. Choose the one that makes the variables and endpoint evaluations easiest to manage, while keeping them consistent. Staying in \(u\) is natural when the transformed integrand and bounds are simple. Returning to \(x\) is natural when the antiderivative is easy to express in \(x\), or when it makes the original endpoints especially clear.

RouteExpression at evaluationBounds to use
Stay in \(u\)An antiderivative written in \(u\)\(g(a)\) and \(g(b)\)
Return to \(x\)An antiderivative written in \(x\)\(a\) and \(b\)

In either route, compute the new endpoint values directly from the substitution. Do not assume the new bounds are the minimum and maximum values attained by \(g\); for the substitution formula, they are \(g(a)\) and \(g(b)\), in that order.

Endpoint Bounds and a Nonmonotone Substitution

A useful detail is that the endpoint bounds need not describe the full range of \(g\) in increasing order. When \(g\) is not monotone, the transformed integral still records the signed change along the original interval. The matched substitution formula remains valid under the stated conditions, but replacing its endpoint bounds with the minimum and maximum of the range can change the answer.

Worked Example: The Endpoints Can Have the Same Image

Evaluate \(\int_0^2 2(x-1)e^{(x-1)^2}\,dx\) using \(u=(x-1)^2\).

Set \(u=(x-1)^2\). Then \(du=2(x-1)\,dx\). At both original endpoints, \(u=1\): at \(x=0\), \(u=(-1)^2=1\); at \(x=2\), \(u=1^2=1\). Thus the transformed integral has equal bounds:

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

Check by returning to \(x\): an antiderivative is \(e^{(x-1)^2}\), because its derivative is \(e^{(x-1)^2}\cdot 2(x-1)\). Its endpoint difference is \(e^{(2-1)^2}-e^{(0-1)^2}=e-e=0\). Although \(u\) takes values from \(0\) to \(1\) on the interval, using \(0\) and \(1\) as the transformed bounds would give \(\int_0^1e^u\,du=e-1\), which is not the value of the original integral.

A Common Mistake: Changing the Variable but Not the Bounds

The bounds are part of the variable change. If an integral is written in \(u\), its bounds must be \(u\)-values. Keeping the original \(x\)-bounds generally evaluates the wrong integral, even if the antiderivative itself is correct.

Worked Example: Correcting Unchanged Bounds

Consider again \(\int_1^2 2x\cos(x^2)\,dx\). A mistaken calculation sets \(u=x^2\), \(du=2x\,dx\), but keeps the bounds \(1\) and \(2\):

$$ \text{Incorrect: }\quad \int_1^2\cos(u)\,du = \sin(2)-\sin(1). $$

The error is that the original \(x\)-endpoint \(x=2\) corresponds to \(u=4\), not \(u=2\). The correct calculation is:

$$ \int_1^2 2x\cos(x^2)\,dx = \int_{1^2}^{2^2}\cos(u)\,du = \int_1^4\cos(u)\,du = \sin(4)-\sin(1). $$

The check in \(x\) gives \(\sin(x^2)\big|_1^2=\sin(4)-\sin(1)\), confirming the corrected result. The incorrect calculation paired a \(u\)-antiderivative with bounds that still referred to \(x\).

A Reliable Consistency Check

Before evaluating a substituted definite integral, pause and identify the variable in every part of the expression. If the differential is \(du\), the integrand and bounds should be expressed in \(u\). If the antiderivative has been rewritten in \(x\), use the original \(x\)-bounds. A quick check is to substitute each original endpoint into \(u=g(x)\) and verify that the resulting endpoint values appear in the transformed integral in the correct order.

It is also useful to differentiate the final antiderivative when using the return-to-\(x\) route. This checks that the chain-rule factor was retained. If the transformed integral has reversed or equal bounds, preserve them as written: reversing bounds changes the sign, and equal bounds give zero.

Takeaway: Changing bounds and staying in \(u\), or returning to \(x\) and using the original bounds, are equivalent routes. The substitution is consistent only when the integration variable, antiderivative, differential, and bounds agree.

Check Your Understanding

For each question, keep track of which variable the bounds refer to.

  1. For \(\int_0^2 3x^2\sin(x^3)\,dx\), what are the transformed bounds if \(u=x^3\)?
  2. State the two consistent evaluation routes for a definite integral after setting \(u=g(x)\).
  3. Why does the standard substitution formula used here assume \(g\in C^1([a,b])\) and continuity of \(h\) on the range of \(g\)?
  4. If \(g(a)=g(b)\), what does the transformed integral \(\int_{g(a)}^{g(b)}h(u)\,du\) equal?
  5. What is wrong with keeping the original \(x\)-bounds after rewriting the integral in \(u\)?

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