Substitution rule (definite integral): Change variables and bounds together

By Vegard Gjerde Based on Masterful Learning 9 min read
substitution-rule-definite-integral calculus integrals substitution math learning-strategies

Substitution rule (definite integral) lets you change variables inside a definite integral while preserving the integral’s value, provided you change the bounds to match the new variable. It applies when u=g(x)u=g(x) and the endpoints are rewritten as u(a)=g(a)u(a)=g(a) and u(b)=g(b)u(b)=g(b), and building that full variable-and-bounds check is a core habit in the Unisium Study System.

Unisium hero image titled Substitution rule (definite integral) showing the principle equation and a conditions card.
Change variables and bounds together so the rewritten definite integral stays in one variable and keeps the same value.

On this page: The Principle | Conditions | Failure Modes | EE Questions | Retrieval Practice | Practice Ground | Solve a Problem | FAQ | How This Fits


The Principle

The move: Rewrite a definite integral in a new variable and convert the endpoints into that same variable.

The invariant: Under the stated condition, substitution preserves the value of the definite integral while keeping the rewritten integral entirely in one variable.

Pattern: abf(g(x))g(x)dxg(a)g(b)f(u)du\int_a^b f(g(x))g'(x)\,dx \quad \longrightarrow \quad \int_{g(a)}^{g(b)} f(u)\,du

Condition satisfied ✓Condition not satisfied ✗
022xcos(x2)dx04cosudu\int_0^2 2x\cos(x^2)\,dx \to \int_0^4 \cos u\,du022xcos(x2)dx↛02cosudu\int_0^2 2x\cos(x^2)\,dx \not\to \int_0^2 \cos u\,du

Left: the substitution changed both the variable and the bounds. Right: the integrand changed to uu, but the bounds stayed in the original variable, so the rewrite is incomplete and the rule has not been applied correctly.


Conditions of Applicability

Condition: u=g(x)u=g(x); u(a)=g(a)u(a)=g(a); u(b)=g(b)u(b)=g(b)

Before applying, check: after choosing uu, can you rewrite the differential piece and both endpoints in the new variable without leaving stray xx symbols behind?

If the condition is violated: the rewritten integral mixes variables or uses the wrong interval, so the value of the new integral no longer matches the original one.

  • Choose uu so a visible factor becomes dudu, then convert x=ax=a and x=bx=b into the corresponding uu-values before evaluating.
  • After substitution, the new integral should be entirely in uu: integrand, differential, and both bounds. If xx still appears anywhere, the move is unfinished.

Want the complete framework behind this guide? Read Masterful Learning.


Common Failure Modes

Failure mode: substitute inside the integrand but keep the original xx-bounds → the rewritten integral mixes variables, so later evaluation is inconsistent or wrong.

Debug: after the rewrite, scan for exactly one variable. If the integrand is in uu, then the limits and differential must be in uu too.


Elaborative Encoding

Use these questions to build deep understanding. (See Elaborative Encoding for the full method.)

Within the Principle

  • Why does definite-integral substitution require new bounds while indefinite substitution can stop after rewriting the integrand and differential?
  • In abf(g(x))g(x)dx=g(a)g(b)f(u)du\int_a^b f(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du, what part of the original interval is encoded by g(a)g(a) and g(b)g(b)?

For the Principle

  • How do you decide whether a proposed uu makes both the differential and the new bounds simpler rather than harder?
  • Why is changing the bounds part of the rule itself instead of an optional cleanup step after integration?

Between Principles

Generate an Example

  • Create one definite integral where substitution works cleanly after changing bounds and one near-miss where someone forgets the new limits, then explain what structural check separates them.

Retrieval Practice

Answer from memory, then click to reveal and check. (See Retrieval Practice for the full method.)

State the move in one sentence: _____Rewrite a definite integral in a new variable and change the bounds to match that variable.
Write the canonical equation: _____abf(g(x))g(x)dx=g(a)g(b)f(u)du\int_a^b f(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du
State the canonical condition: _____u=g(x);u(a)=g(a);u(b)=g(b)u=g(x); u(a)=g(a); u(b)=g(b)

Practice Ground

Use these exercises to build move-selection fluency. (See Self-Explanation for how to use worked examples effectively.)

Procedure Walkthrough

Starting from 132xx2+1dx\int_1^3 2x\sqrt{x^2+1}\,dx, reach a rewritten uu-integral and evaluate it.

StepExpressionOperation
0132xx2+1dx\int_1^3 2x\sqrt{x^2+1}\,dx-
1210udu\int_2^{10} \sqrt{u}\,duUse u=x2+1u=x^2+1, so du=2xdxdu=2x\,dx, and change bounds from x=1,3x=1,3 to u=2,10u=2,10
2[23u3/2]210\left[\frac{2}{3}u^{3/2}\right]_2^{10}Integrate in uu
323(103/223/2)\frac{2}{3}\left(10^{3/2}-2^{3/2}\right)Evaluate

Drills

Forward step (Format A)

Use u=x2u=x^2 to rewrite the integral with new bounds.

022xex2dx\int_0^2 2x e^{x^2}\,dx

Reveal

Since u=x2u=x^2, we have du=2xdxdu=2x\,dx. The bounds change from x=0,2x=0,2 to u=0,4u=0,4, so

022xex2dx=04eudu\int_0^2 2x e^{x^2}\,dx = \int_0^4 e^u\,du


Use u=x3+4u=x^3+4 to rewrite and evaluate the integral.

123x2x3+4dx\int_1^2 \frac{3x^2}{x^3+4}\,dx

Reveal

With u=x3+4u=x^3+4, we get du=3x2dxdu=3x^2\,dx. The bounds change from x=1,2x=1,2 to u=5,12u=5,12, so

123x2x3+4dx=5121udu=[lnu]512=ln(12)ln(5)\int_1^2 \frac{3x^2}{x^3+4}\,dx = \int_5^{12} \frac{1}{u}\,du = \left[\ln|u|\right]_5^{12} = \ln(12)-\ln(5)


Does the rule apply directly with the suggested substitution? Explain before writing anything else. Use u=x2u=x^2.

01cos(x2)dx\int_0^1 \cos(x^2)\,dx

Reveal

No. The condition is not yet satisfied because du=2xdxdu=2x\,dx, but the integral does not contain the needed 2x2x factor.

The tempting rewrite

01cos(x2)dx↛01cosudu\int_0^1 \cos(x^2)\,dx \not\to \int_0^1 \cos u\,du

is invalid as a direct substitution step. Choosing u=x2u=x^2 does not by itself rewrite the differential correctly.


A student writes

032xsin(x2)dx03sinudu\int_0^3 2x\sin(x^2)\,dx \to \int_0^3 \sin u\,du

What is wrong, and what is the corrected rewrite if u=x2u=x^2?

Reveal

The variable changed to uu, but the bounds stayed at the original xx-values. Since u=x2u=x^2, the correct bounds are u(0)=0u(0)=0 and u(3)=9u(3)=9, so

032xsin(x2)dx=09sinudu\int_0^3 2x\sin(x^2)\,dx = \int_0^9 \sin u\,du


Use u=1+x4u=1+x^4 to rewrite the integral with new bounds.

014x31+x4dx\int_0^1 4x^3\sqrt{1+x^4}\,dx

Reveal

Since u=1+x4u=1+x^4, we have du=4x3dxdu=4x^3\,dx. The bounds change from x=0,1x=0,1 to u=1,2u=1,2, so

014x31+x4dx=12udu\int_0^1 4x^3\sqrt{1+x^4}\,dx = \int_1^2 \sqrt{u}\,du


Action label (Format B)

What was done between these two steps?

256x(x2+1)4dx5263u4du\int_2^5 6x(x^2+1)^4\,dx \quad \longrightarrow \quad \int_5^{26} 3u^4\,du

Reveal

Used u=x2+1u=x^2+1, so du=2xdxdu=2x\,dx, rewrote 6xdx6x\,dx as 3du3\,du, and changed the bounds from x=2,5x=2,5 to u=5,26u=5,26.


Name the rule used in this completed step.

0π/2sinxcosxdx01udu\int_0^{\pi/2} \sin x\cos x\,dx \quad \longrightarrow \quad \int_0^1 u\,du

Reveal

Definite-integral substitution with u=sinxu=\sin x. Then du=cosxdxdu=\cos x\,dx, and the bounds change from x=0,π2x=0,\frac{\pi}{2} to u=0,1u=0,1.


A student ends with

142xx2+3dx[lnu]14\int_1^4 \frac{2x}{x^2+3}\,dx \to \left[\ln u\right]_1^4

What step is missing?

Reveal

The antiderivative was written in uu, but the bounds were left in xx. With u=x2+3u=x^2+3, the new limits are u(1)=4u(1)=4 and u(4)=19u(4)=19, so the correct evaluation is

[lnu]419\left[\ln u\right]_4^{19}

Equivalently, you could convert back to xx before applying the original bounds.


Transition identification (Format C)

Which transition uses the definite-integral substitution rule directly?

012x1+x2dx(1)u=1+x2,du=2xdx(2)121udu(3)[lnu]12(4)ln2\int_0^1 \frac{2x}{1+x^2}\,dx \xrightarrow{(1)} u=1+x^2,\, du=2x\,dx \xrightarrow{(2)} \int_1^2 \frac{1}{u}\,du \xrightarrow{(3)} \left[\ln|u|\right]_1^2 \xrightarrow{(4)} \ln 2

Reveal

Transition (2) uses the rule directly.

  • (1) sets up the substitution.
  • (2) rewrites the definite integral in the new variable and changes the bounds.
  • (3) integrates in uu.
  • (4) evaluates the antiderivative.

Which completed rewrites are eligible direct uses of the rule?

(i) 024x(x2+1)3dx152u3du\int_0^2 4x(x^2+1)^3\,dx \to \int_1^5 2u^3\,du with u=x2+1u=x^2+1

(ii) 02cos(x2)dx04cosudu\int_0^2 \cos(x^2)\,dx \to \int_0^4 \cos u\,du with u=x2u=x^2

(iii) 131xdx0ln3du\int_1^3 \frac{1}{x}\,dx \to \int_0^{\ln 3} du with u=lnxu=\ln x

(iv) 11xex2dx11eudu\int_{-1}^1 x e^{x^2}\,dx \to \int_{-1}^1 e^u\,du with u=x2u=x^2

Reveal

(i) and (iii) are eligible direct rewrites.

  • (i) works because du=2xdxdu=2x\,dx, so 4xdx=2du4x\,dx = 2\,du, and the bounds become 11 and 55.
  • (iii) works because du=1xdxdu=\frac{1}{x}\,dx, and the bounds become 00 and ln3\ln 3.
  • (ii) fails because the needed differential factor is missing.
  • (iv) fails because the new bounds should both be 11, not 1-1 and 11.

Goal micro-chain (Format D)

Starting from 02x(x2+5)7dx\int_0^2 x(x^2+5)^7\,dx, reach a fully evaluated answer in the minimum number of moves.

Reveal

Let u=x2+5u=x^2+5, so du=2xdxdu=2x\,dx and xdx=12dux\,dx=\frac{1}{2}\,du. The bounds change from x=0,2x=0,2 to u=5,9u=5,9, so

02x(x2+5)7dx=1259u7du\int_0^2 x(x^2+5)^7\,dx = \frac{1}{2}\int_5^9 u^7\,du

Integrate and evaluate:

1259u7du=12[u88]59=116(9858)\frac{1}{2}\int_5^9 u^7\,du = \frac{1}{2}\left[\frac{u^8}{8}\right]_5^9 = \frac{1}{16}\left(9^8-5^8\right)


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem: Compute

012x(x2+4)2dx\int_0^1 \frac{2x}{(x^2+4)^2}\,dx

and simplify the result.

Full solution
StepExpressionMove
0012x(x2+4)2dx\int_0^1 \frac{2x}{(x^2+4)^2}\,dx-
145u2du\int_4^5 u^{-2}\,duUse u=x2+4u=x^2+4, so du=2xdxdu=2x\,dx, and change bounds from x=0,1x=0,1 to u=4,5u=4,5
2[u1]45\left[-u^{-1}\right]_4^5Integrate
315(14)-\frac{1}{5} - \left(-\frac{1}{4}\right)Evaluate
4120\frac{1}{20}Simplify

Check: the integrand is positive on [0,1][0,1], so a small positive result is reasonable, and 120\frac{1}{20} matches that sign check.


PrincipleRelationship
Derivative chain ruleThe substitution pattern reverses the same inner-outer structure that the chain rule creates in derivatives
Definite integral (Riemann sum form)Definite substitution preserves the accumulated quantity while re-expressing the interval in a new variable
Fundamental Theorem of Calculus (Part 1)FTC1 differentiates accumulation integrals; definite substitution rewrites them before evaluation

FAQ

What does the substitution rule for definite integrals say?

It says that if you set u=g(x)u=g(x) inside a definite integral, then you must also change the bounds to the corresponding uu-values. The rewritten integral has the same value as the original one when the whole expression is consistently converted.

Do I always have to change the bounds in a definite integral substitution?

Yes, if you want to stay in the new variable all the way through. The point of the rule is that the bounds move with the variable change.

What goes wrong if I keep the old bounds after writing the integral in uu?

You create a mixed-variable expression: the integrand is in uu, but the endpoints still refer to xx. That means the rewrite is not complete, and evaluating it directly is not justified.

What if the needed derivative factor is missing from the integrand?

Then the substitution does not apply directly in one clean step. You may need algebraic manipulation, a different substitution, or a different technique altogether.

Can I change variables and then switch back to xx before evaluating?

Yes. That is a valid alternative workflow. This guide focuses on the cleaner definite-integral version where you change the bounds immediately and finish in the new variable.


How This Fits in Unisium

In Unisium, definite-integral substitution is trained as a move-selection principle: notice the inner function and its differential partner, convert the bounds immediately, and reject half-finished rewrites that mix variables. That makes the rule easier to retrieve under pressure and connects naturally to retrieval practice, self-explanation, and the broader logic of Masterful Learning.

Explore further:

To keep building the same substitution fluency across calculus, practice directly in the Unisium app after you can spot the full variable-and-bounds pattern on sight.

Masterful Learning book cover

Masterful Learning

The study system for physics, math, & programming that works: retrieval, connection, explanation, problem solving, and more.

Read the book (opens in new tab) ISBN 979-8-2652-9642-9

Ready to apply this strategy?

Join Unisium and start implementing these evidence-based learning techniques.

Start Learning with Unisium Read More Guides

Want the complete framework? This guide is from Masterful Learning.

Learn about the book →