On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Introduction to Calculus · Grade 9-12

u-Substitution

u-Substitution is an integration technique that reverses the chain rule: when an integrand contains a composite function and its inner derivative, you let u be the inner function so the integral simplifies to ∫f(u) du.

∫f(g(x)) g′(x) dx=∫f(u) duwhere u=g(x)
For definite integrals: change the bounds too! If u=g(x), then when x=a, u=g(a).

Quick Answer

u-Substitution is an integration technique that reverses the chain rule: when an integrand contains a composite function and its inner derivative, you let u be the inner function so the integral simplifies to ∫f(u) du. Use it on integrals like ∫2xcos⁡(x2) dx, ∫3x2x3+1 dx or ∫(5x−2)8 dx, where one function sits inside another and the inside's derivative appears as a factor, up to a constant. In terms of u, the integral is usually a basic rule.

Why This Matters

Integrals that come from real formulas are rarely bare power rules: they contain (3x+1)5, xe−x2/2 or sin⁡(ωt). Substitution reduces them to integrals you already know, and it is why you can integrate any f(ax+b) once you can integrate f. Without it you would be expanding (3x+1)20 by hand, or guessing antiderivatives and hoping they differentiate back correctly.

Intuitive Explanation

Start from a derivative you already know. The chain rule says ddxsin⁡(x2)=cos⁡(x2)⋅2x. Read backward, that means ∫2xcos⁡(x2) dx=sin⁡(x2)+C. The integrand carries a fingerprint left by the chain rule: an outer function (cos⁡) of an inner function (x2), multiplied by the inner function's derivative (2x). u-substitution is a systematic way to spot that fingerprint and undo it.

The bookkeeping goes like this. Name the inner function u=x2. Its differential is du=2x dx, so the factor 2x dx becomes du and the integral becomes ∫cos⁡u du=sin⁡u+C; then put x2 back in place of u. A derivative that is off by a constant can be fixed: in ∫xcos⁡(x2) dx, x dx=12du, so the answer is 12sin⁡(x2)+C. A missing x cannot be fixed this way. ∫cos⁡(x2) dx has no elementary antiderivative at all.

Not every product is a substitution problem. In ∫xcos⁡x dx nothing sits inside cos⁡ except x itself, and the factor x is not the derivative of anything inside. That is a product of two unrelated functions, which integration by parts handles. So ask two questions in order: what is inside what, and is the inside's derivative sitting outside?

Think of it like this. Paying in euros for a price listed in dollars works only if you also convert with the exchange rate. In u-substitution, u=g(x) is the new currency and du=g′(x) dx is the exchange rate; forgetting to convert dx is like paying the dollar figure in euros. Unlike a fixed exchange rate, g′(x) changes from point to point, so it must already be in the integrand.

Core idea. u-Substitution sets u=g(x) so du=g′(x) dx, collapsing a composite-times-inner-derivative integral into a simple one in u.


When to Use

Look for a function inside another function, such as (3x+1)5, ex2, 1+x3 or ln⁡(cos⁡x), together with the inner function's derivative as a factor, allowing a constant multiple. A fraction whose top is the derivative of its bottom, like 2xx2+1, is the same pattern and gives a logarithm. If the integrand is a product of unrelated functions like xex, use integration by parts. If nothing is nested, use a basic antiderivative rule.

Tip. Ask: Is there an inner function g(x) inside, with its derivative g′(x) also present as a factor?

How to Recognize It

Before integrating, pick the most promising inner expression and look for its derivative elsewhere in the integrand.

  1. Is the inner expression linear, as in (4x+1)6 or 3x−2?

    Yes means a quick substitution with a constant du: u=4x+1, du=4 dx, so ∫(4x+1)6 dx=(4x+1)728+C. With no inner expression at all, as in x6, the integral power rule applies directly.

  2. Is the integrand a fraction whose top is, up to a constant, the derivative of its bottom?

    Yes means u is the bottom and the answer is a logarithm: ∫6x2x3+5 dx=2ln⁡∣x3+5∣+C. For ∫1x2+1 dx, with no such match, use the direct antiderivative arctan⁡x+C.

  3. Is the integrand two unrelated factors multiplied, like xln⁡x or xsin⁡x?

    Yes means substitution will not tidy it, because neither factor is the derivative of something inside the other, so use integration by parts. If nothing is nested at all, as in ∫(x2+3x) dx, a direct antiderivative is enough.

  4. Does the integral have bounds?

    Yes means convert them to u-values as you substitute, or switch back to x before evaluating; mixing x bounds with a u expression is the classic slip. An indefinite answer must end in x with a +C.

u-Substitution compared with Chain rule, Integration by parts, and Direct antiderivative

Each row turns on how an expression was built, so the choice is easy to get wrong. Ask what you face: a composite beside its inner derivative (u-substitution), unrelated factors multiplied (parts), a plain basic function (direct antiderivative), or a composite to differentiate (chain rule).

u-Substitution

Meaning
Use this when an integrand is a composite function multiplied by (a constant times) the derivative of its inner part.
Key test
Is there an inner function g(x) inside, with its derivative g′(x) also present as a factor?
Formula
∫f(g(x)) g′(x) dx=∫f(u) duwhere u=g(x)
For definite integrals: change the bounds too! If u=g(x), then when x=a, u=g(a).
Example
Find ∫2xcos⁡(x2) dx.

Chain rule

Meaning
The forward operation u-substitution reverses; differentiates composites.
Key test
Use when differentiating a composite, not integrating one.
Formula
(f∘g)′=f′(g(x))g′(x)
Example
Differentiating sin⁡(x2) vs integrating 2xcos⁡(x2)

Integration by parts

Meaning
Handles products of unrelated functions, not composite-plus-inner-derivative.
Key test
Use when the integrand is a product like xex with no inner-derivative match.
Formula
∫u dv=uv−∫v du
Example
∫xcos⁡x dx needs parts, not substitution

Direct antiderivative

Meaning
Just reverse a basic rule when no composition is present (valid for n≠−1; for n=−1 the integral is ln⁡∣x∣+C).
Key test
Use when the integrand is a plain power or basic function.
Formula
∫xndx=xn+1n+1+C
Example
∫x2 dx needs no substitution

Formula & Notation

∫f(g(x)) g′(x) dx=∫f(u) duwhere u=g(x)
For definite integrals: change the bounds too! If u=g(x), then when x=a, u=g(a).
If g is differentiable on [a,b] and f is continuous on the range of g, then ∫abf(g(x))⋅g′(x) dx=∫g(a)g(b)f(u) du where u=g(x).

How to read it: Let u=g(x), then du=g′(x) dx. After integrating in terms of u, substitute back to express the result in terms of x.

Worked Examples

Example 1 — Reverse the chain rule

Easy

Find ∫2xcos⁡(x2) dx.
Show the steps and the answer
  1. Spot the nesting: cos⁡(x2) has x2 inside, and ddxx2=2x is the other factor.

    An inner function with its derivative beside it is exactly what the chain rule leaves behind.

  2. Set u=x2, so du=2x dx.

    The product 2x dx in the integral is replaced by du, and no x is left over.

  3. Rewrite and integrate: ∫cos⁡u du=sin⁡u+C.

    In terms of u, the integral is a basic rule.

  4. Substitute back: sin⁡(x2)+C. Check: ddxsin⁡(x2)=cos⁡(x2)⋅2x.

    Differentiating the answer returns the integrand, which confirms it.

Answer: sin⁡(x2)+C

Takeaway: Choose u as the inner function whose derivative is also a factor; then du absorbs that factor along with dx.

Example 2 — A product needs parts

Standard

Find ∫xcos⁡x dx.
Show the steps and the answer
  1. Look for nesting: cos⁡x has only x inside.

    Setting u=x would just rename the variable and change nothing.

  2. Try u=cos⁡x anyway: du=−sin⁡x dx, but no sin⁡x factor is present.

    Substitution needs the inner derivative in the integrand; here the leftover x cannot be absorbed.

  3. Use integration by parts with u=x, dv=cos⁡x dx: du=dx, v=sin⁡x, so the integral is xsin⁡x−∫sin⁡x dx=xsin⁡x+cos⁡x+C.

    Differentiating x turns it into 1, which is what makes parts work on this product.

  4. Check: ddx(xsin⁡x+cos⁡x)=sin⁡x+xcos⁡x−sin⁡x=xcos⁡x.

    The derivative returns the integrand exactly.

Answer: xsin⁡x+cos⁡x+C

Takeaway: A product of two unrelated functions, with nothing nested, is a job for integration by parts, not substitution.

Example 3 — Find the mistake: the limits

Application

Evaluate ∫02x(x2+1)3 dx. Kim writes: "Let u=x2+1, so x dx=12du and the integral is 12∫02u3 du=12⋅244=2." Find the mistake and correct it.
Show the steps and the answer
  1. Check Kim's substitution: u=x2+1 gives du=2x dx, so x dx=12du.

    This part is right; the integrand does become 12u3 du.

  2. Find the error: the limits 0 and 2 are x-values, but Kim used them as u-values.

    Once the integral is written in u, its limits must be values of u too.

  3. Convert the limits: x=0 gives u=02+1=1, and x=2 gives u=22+1=5.

    Each limit goes through the same rule, u=x2+1.

  4. Evaluate: 12[u44]15=12⋅625−14=78.

    Check in x: [(x2+1)48]02=6258−18=78.

Answer: 78

Takeaway: In a definite integral, change the limits along with the variable, or substitute back to x before using the original limits.

Where You'll See It

  • Deriving the volume of a sphere

    Slicing a ball of radius R into cylindrical shells gives V=∫0R4πxR2−x2 dx. The substitution u=R2−x2, du=−2x dx turns it into 2π∫0R2u du=43πR3, the familiar formula.

  • Average size of a bell-curve error

    The normal curve contains e−x2/2. The integral ∫xe−x2/2 dx, needed for the average size of a normal measurement error, becomes −e−x2/2+C with u=−x22, because du=−x dx is already in the integrand.

  • Power in an AC circuit

    For a capacitor, voltage and current are a quarter-cycle apart, so power involves ∫sin⁡(ωt)cos⁡(ωt) dt. With u=sin⁡(ωt) this is sin⁡2(ωt)2ω+C, which returns to its starting value every cycle: the capacitor stores and gives back energy but uses none on average.

Common Mistakes

  1. The slip: Forgetting to convert dx via du=g′(x) dx

    Instead: you must replace dx too, not just the inner expression.

  2. The slip: Leaving the answer in terms of u for an indefinite integral

    Instead: substitute back to x at the end.

  3. The slip: Not changing the bounds for a definite integral

    Instead: either switch limits to u-values or convert back before evaluating.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find ∫3x2(x3+4)5 dx.

    Hint: Let u be the expression inside the power. Is its derivative already in the integral?

  2. Find ∫xx2+1 dx.

    Hint: Let u=x2+1. You will need to adjust by a constant factor.

  3. Find ∫sin⁡4xcos⁡x dx.

    Hint: Which function's derivative is cos⁡x?

  4. Evaluate ∫02x(x2+1)2 dx by substitution, changing the bounds.

    Hint: With u=x2+1, find the u-values when x=0 and x=2.

  5. Which of these suits u-substitution: ∫x2ex3 dx or ∫x2ex dx?

    Hint: Look for a factor that is the derivative of an inner expression.

  6. For ∫012x(x2+1)3 dx, a student sets u=x2+1 and writes "∫01u3 du=14." Correct the work.

    Hint: When x goes from 0 to 1, what does u=x2+1 go from and to?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

What if the inner derivative is there except for a constant, as in ∫xcos⁡(x2) dx?

That is fine. With u=x2u=x^2, du=2x dxdu=2x\,dx, so x dx=12dux\,dx=\frac{1}{2}du and the integral becomes 12∫cos⁡u du=12sin⁡(x2)+C\frac{1}{2}\int\cos u\,du=\frac{1}{2}\sin(x^2)+C. A missing constant can be fixed by multiplying and dividing, because constants slide in and out of an integral. A missing xx cannot be fixed that way: ∫cos⁡(x2) dx\int\cos(x^2)\,dx has no antiderivative made of familiar functions at all.

How can I check an answer I got by substitution?

Differentiate it and see whether the integrand comes back. For 110(x2+1)5+C\frac{1}{10}(x^2+1)^5+C, the chain rule gives 110⋅5(x2+1)4⋅2x=x(x2+1)4\frac{1}{10}\cdot5(x^2+1)^4\cdot2x=x(x^2+1)^4, so ∫x(x2+1)4 dx\int x(x^2+1)^4\,dx was done correctly. The check takes seconds and catches the usual errors: a lost constant such as the 110\frac{1}{10}, or a uu left in the final answer.

Can u be something other than the inside of a function?

Yes. In ∫ln⁡xx dx\int\frac{\ln x}{x}\,dx, let u=ln⁡xu=\ln x, since du=1x dxdu=\frac{1}{x}\,dx is already present, which gives 12(ln⁡x)2+C\frac{1}{2}(\ln x)^2+C. In ∫xx+1 dx\int x\sqrt{x+1}\,dx, let u=x+1u=x+1 and rewrite the extra xx as u−1u-1, so the integral becomes ∫(u−1)u du\int(u-1)\sqrt{u}\,du. If one choice stalls, try another; any choice that turns the integral into one you can do is correct.

Learning Path

← Before

IntegralChain Rule
u-Substitution

You are here

You need Integral (antiderivatives and basic rules) and the Chain Rule, since substitution is the chain rule run backward. u-Substitution adds a change of variable, u=g(x) with du=g′(x) dx, plus new limits for definite integrals. Next, Integration by Parts reverses the product rule and handles products such as xcos⁡x that substitution cannot simplify.

See Also