Substitution rule (u-substitution): Rewrite integrals by changing variables

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

The substitution rule rewrites an integral in a new variable so the chain-rule structure becomes easier to integrate: choose u=g(x)u=g(x), replace the matching differential, and integrate in uu. It applies when you can set u=g(x)u=g(x) and match dudx=g(x)\frac{du}{dx}=g'(x) to the integrand, and building that condition check automatically is a core habit in the Unisium Study System.

Unisium hero image titled Substitution rule (u-substitution) showing the principle equation and a conditions card.
The substitution move f(g(x))g(x)dx=f(u)du\int f(g(x))g'(x)\,dx = \int f(u)\,du when u=g(x)u=g(x) and dudx=g(x)\frac{du}{dx}=g'(x).

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


The Principle

The move: Replace a repeated inner expression with a new variable uu, convert the matching differential, and integrate in the simpler variable.

The invariant: This rewrites the integral as an equivalent antiderivative problem under a valid change of variable.

Pattern: f(g(x))g(x)dxf(u)du\int f(g(x))g'(x)\,dx \quad \longrightarrow \quad \int f(u)\,du

Applies directly ✓Does not apply directly ✗
2xcos(x2)dxcos(u)du\int 2x\cos(x^2)\,dx \to \int \cos(u)\,ducos(x2)dx↛cos(u)du\int \cos(x^2)\,dx \not\to \int \cos(u)\,du

Left: choosing u=x2u=x^2 gives du=2xdxdu=2x\,dx, so the needed differential is present. Right: the inner expression x2x^2 is visible, but its derivative factor is missing, so the direct substitution step is not justified yet.


Conditions of Applicability

Condition: u=g(x)u=g(x); dudx=g(x)\frac{du}{dx}=g'(x)

Before applying, check: identify a candidate inner expression g(x)g(x), then confirm the integrand contains the matching differential factor needed to replace g(x)dxg'(x)\,dx by dudu.

If the condition is violated: a direct change of variables drops or invents a factor, so the rewritten integral is not equivalent to the original one.

  • The usable pattern is not just “something complicated inside another function.” The matching derivative factor has to be present, up to a constant multiple you can account for honestly.
  • Constant factors are allowed if you keep them visible, as in cos(5x)dx=15cos(u)du\int \cos(5x)\,dx = \frac{1}{5}\int \cos(u)\,du after u=5xu=5x.
  • If the derivative factor is missing entirely, as in ex2dx\int e^{x^2}\,dx, substitution does not apply directly to the whole integral even though the inner expression is obvious.
  • Compare this move with the derivative chain rule: differentiation multiplies by the inner derivative, while substitution recognizes that same factor during integration.

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


Common Failure Modes

Failure mode: switch to uu because an inner expression looks convenient, but ignore whether the matching differential is present → the new integral is not equivalent to the original one, so the antiderivative is wrong.

Debug: after choosing u=g(x)u=g(x), point to the exact factor in the integrand that becomes dudu. If you cannot point to it, the substitution is not licensed yet.


Elaborative Encoding

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

Within the Principle

  • Why does replacing g(x)g(x) by uu only work when the differential factor g(x)dxg'(x)\,dx is accounted for at the same time?
  • In what sense is the rewritten uu-integral the same antiderivative task rather than a new problem with new meaning?

For the Principle

  • When you scan an integrand, what tells you that an inner expression is genuinely usable for substitution instead of merely noticeable?
  • How do constant multiples change the bookkeeping in a valid substitution without changing whether the move is available?

Between Principles

Generate an Example

  • Create one integral where uu-substitution applies in one step and one near-miss where the inner expression is visible but the differential factor is missing. Explain what condition 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: _____Choose u = g(x), replace the matching differential g'(x) dx by du, and integrate the simpler u-expression.
Write the canonical equation: _____f(g(x))g(x)dx=f(u)du\int f(g(x))g'(x)\,dx = \int f(u)\,du
State the canonical condition: _____u=g(x);dudx=g(x)u=g(x); \frac{du}{dx}=g'(x)

Practice Ground

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

Procedure Walkthrough

Starting from 2xcos(x2+1)dx\int 2x\cos(x^2+1)\,dx, reach a finished antiderivative.

StepExpressionOperation
02xcos(x2+1)dx\int 2x\cos(x^2+1)\,dx-
1cos(u)du\int \cos(u)\,duLet u=x2+1u=x^2+1, so du=2xdxdu=2x\,dx and rewrite the integral in uu
2sin(u)+C\sin(u)+CIntegrate the simpler uu-expression
3sin(x2+1)+C\sin(x^2+1)+CSubstitute back to the original variable

Drills

Forward step (Format A)

Apply substitution directly and finish the antiderivative.

3x2ex3dx\int 3x^2 e^{x^3}\,dx

Reveal

Let u=x3u=x^3, so du=3x2dxdu=3x^2\,dx. Then

3x2ex3dx=eudu=eu+C=ex3+C\int 3x^2 e^{x^3}\,dx = \int e^u\,du = e^u + C = e^{x^3}+C


Apply substitution directly and finish the antiderivative.

cos(5x)dx\int \cos(5x)\,dx

Reveal

Let u=5xu=5x, so du=5dxdu=5\,dx and dx=15dudx=\frac{1}{5}du. Then

cos(5x)dx=15cos(u)du=15sin(u)+C=15sin(5x)+C\int \cos(5x)\,dx = \frac{1}{5}\int \cos(u)\,du = \frac{1}{5}\sin(u)+C = \frac{1}{5}\sin(5x)+C


Does substitution apply directly to the whole integral? Explain before writing anything else.

ex2dx\int e^{x^2}\,dx

Reveal

No. The obvious inner expression is x2x^2, but choosing u=x2u=x^2 gives du=2xdxdu=2x\,dx, and the factor 2x2x is not present.

The near-miss is structural: the inside is visible, but the matching differential is missing, so the direct substitution step is not justified.


Which integrals are direct substitution matches?

(i) 6x(x2+1)4dx\int 6x(x^2+1)^4\,dx \quad (ii) (x2+1)4dx\int (x^2+1)^4\,dx \quad (iii) 1xln(x)dx\int \frac{1}{x}\ln(x)\,dx \quad (iv) sinxdx\int \sin x\,dx

Reveal

(i) and (iii).

  • (i) works with u=x2+1u=x^2+1 and du=2xdxdu=2x\,dx; the constant factor is manageable.
  • (iii) works with u=ln(x)u=\ln(x) and du=1xdxdu=\frac{1}{x}\,dx.
  • (ii) has a visible inner expression but no matching differential.
  • (iv) is integrable, but substitution is not the intended direct move here because there is no inner expression to change variables around.

Apply substitution directly and finish the antiderivative.

13x+2dx\int \frac{1}{3x+2}\,dx

Reveal

Let u=3x+2u=3x+2, so du=3dxdu=3\,dx and dx=13dudx=\frac{1}{3}du. Then

13x+2dx=131udu=13lnu+C=13ln3x+2+C\int \frac{1}{3x+2}\,dx = \frac{1}{3}\int \frac{1}{u}\,du = \frac{1}{3}\ln|u|+C = \frac{1}{3}\ln|3x+2|+C


Action label (Format B)

What was done between these two steps?

4xsin(x2)dx2sin(u)du\int 4x\sin(x^2)\,dx \quad \longrightarrow \quad 2\int \sin(u)\,du

Reveal

Substitution with coefficient bookkeeping. Let u=x2u=x^2, so du=2xdxdu=2x\,dx. Then 4xdx=2du4x\,dx = 2\,du, which leaves

4xsin(x2)dx=2sin(u)du\int 4x\sin(x^2)\,dx = 2\int \sin(u)\,du


What tempting move was attempted here, and why does it not apply directly?

sin(x2)dxsin(u)du\int \sin(x^2)\,dx \quad \longrightarrow \quad \int \sin(u)\,du

Reveal

An invalid direct substitution was attempted.

If u=x2u=x^2, then du=2xdxdu=2x\,dx. The needed differential factor is missing, so the rewritten integral is not equivalent to the original one.


What substitution was used in this step, and why is it valid?

77x1dx1udu\int \frac{7}{7x-1}\,dx \quad \longrightarrow \quad \int \frac{1}{u}\,du

Reveal

Let u=7x1u=7x-1, so du=7dxdu=7\,dx. The numerator 7dx7\,dx matches the new differential exactly, which makes the step valid:

77x1dx=1udu\int \frac{7}{7x-1}\,dx = \int \frac{1}{u}\,du


Transition identification (Format C)

Which transition uses substitution directly?

2x(x2+1)3dx(1)u3du(2)u44+C(3)(x2+1)44+C\int 2x(x^2+1)^3\,dx \xrightarrow{(1)} \int u^3\,du \xrightarrow{(2)} \frac{u^4}{4}+C \xrightarrow{(3)} \frac{(x^2+1)^4}{4}+C

Reveal

Transition (1) uses substitution directly.

  • (1) rewrites the integral with u=x2+1u=x^2+1 and du=2xdxdu=2x\,dx.
  • (2) is the power rule in the new variable.
  • (3) substitutes back.

Which transition is invalid, and why?

ex2dx(1)eudu(2)eu+C(3)ex2+C\int e^{x^2}\,dx \xrightarrow{(1)} \int e^u\,du \xrightarrow{(2)} e^u + C \xrightarrow{(3)} e^{x^2}+C

Reveal

Transition (1) is invalid.

Choosing u=x2u=x^2 would require du=2xdxdu=2x\,dx, but the integrand has only dxdx. Because the matching differential is missing, the first rewrite is not justified and the whole chain collapses.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem: Compute

2xx2+4dx\int 2x\sqrt{x^2+4}\,dx

and simplify the result.

Full solution
StepExpressionMove
02xx2+4dx\int 2x\sqrt{x^2+4}\,dx-
1u1/2du\int u^{1/2}\,duLet u=x2+4u=x^2+4, so du=2xdxdu=2x\,dx
2u3/23/2+C\frac{u^{3/2}}{3/2}+CPower rule in the new variable
323u3/2+C\frac{2}{3}u^{3/2}+CSimplify the coefficient
423(x2+4)3/2+C\frac{2}{3}(x^2+4)^{3/2}+CSubstitute back

Check: differentiating 23(x2+4)3/2\frac{2}{3}(x^2+4)^{3/2} gives 2332(x2+4)1/22x=2xx2+4\frac{2}{3}\cdot \frac{3}{2}(x^2+4)^{1/2}\cdot 2x = 2x\sqrt{x^2+4}, so the antiderivative is consistent.


PrincipleRelationship
Derivative chain ruleDifferentiation creates the inner-derivative factor that substitution later recognizes and reverses during integration
Integral power ruleOften supplies the antiderivative after substitution has rewritten the integral into a simpler power of uu
Indefinite integral as antiderivativeClarifies the object substitution preserves: a family of functions whose derivative returns the original integrand

FAQ

What is the substitution rule for integrals?

It rewrites an integral by choosing a new variable u=g(x)u=g(x) and replacing the matching differential g(x)dxg'(x)\,dx with dudu. The goal is to turn the original integral into a simpler antiderivative problem in uu.

When can I use u-substitution directly?

Use it directly when you can identify an inner expression and the integrand contains the matching differential factor, possibly up to a constant multiple you can handle explicitly. Seeing the inside alone is not enough.

What if the derivative factor is missing?

Then the direct substitution step is not valid for the whole integral. You may need a different technique, a larger strategy, or no elementary antiderivative at all.

Do I always substitute back to x at the end?

For indefinite integrals, yes. The final antiderivative should be written in the original variable unless the context explicitly says otherwise.

They are inverse-looking structures. The chain rule differentiates f(g(x))f(g(x)) by multiplying by g(x)g'(x), while substitution spots that same inner-derivative factor during integration and uses it to change variables.


How This Fits in Unisium

In Unisium, substitution is trained as move selection, not as a reflexive “let uu equal something complicated” slogan. You learn to test whether the matching differential is really present, reject near-misses early, and reinforce that judgment through retrieval practice, self-explanation, and the broader logic of Masterful Learning. After you can spot valid substitutions on sight, practice the same recognition directly in the Unisium app.

Explore further:

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 →