Calculus I › Integrals › full formula sheet
u-substitution
The chain rule in reverse — spot the inside function and its derivative, rename the clutter, and the integral simplifies itself.
Notation on this page: u = g(x) is the substitution, and du = g′(x) dx is its differential.
Before this lesson: Chain rule
Where it comes from
The problem: the chain rule d/dx [F(g(x))] = F′(g(x))·g′(x) tells you how to differentiate a composition. But integrals like ∫ 2x·ex² dx stare back at you — no basic rule fits, because the integrand is a composition with its chain-rule factor still attached. u-substitution reads the chain rule backwards.
The tempting “integrate each part”:
Before reading on: differentiate the wrong guess x2·ex2 with the product rule. Do you get 2x·ex2 back — or does an extra term appear that exposes the guess?
Kill it by differentiating the claimed answer (product rule!): d/dx [x²·ex²] = 2x·ex² + x²·2x·ex² ≠ 2x·ex². An extra term appears — “integrating each part” is the product-rule fallacy in reverse. The correct move is to notice that 2x is exactly the derivative of the inside function x²:
Intuition: u-substitution is renaming for clarity. The integrand was always “(something) times the derivative of its inside” — writing u just makes that structure visible so the basic rules can fire.
Derivation
Let F′ = f, and set u = g(x). The chain rule applied to F(g(x)) produces exactly the integrand pattern — so integrating reverses it.
Definite integrals: when x runs from a to b, u runs from g(a) to g(b) — change the bounds when you substitute, then never substitute back. Equivalently, keep x-bounds, substitute back to x, then evaluate. Pick one; do not mix them.
How to use it
Before reading on: after substituting u = x2, the integral speaks u but the bounds 0 and 1 still speak x. Before reading: what goes wrong if you evaluate a u-integral at x-bounds — and what are the two legal fixes?
The procedure, every time:
- Spot the inside function g(x) — the cluttered part (an exponent, a denominator, inside a root or trig function). Ask: “is its derivative (up to a constant factor) also in the integrand?”
- Set u = g(x) and compute du = g′(x) dx.
- Rewrite everything in u. Every x must disappear — including the dx. If a stray x remains that is not part of du, the substitution fails; pick a new u.
- Fix constant factors: if du = 2x dx but you only have x dx, write x dx = du/2 and carry the 1/2 along. Constants are adjustable; missing variables are fatal.
- Integrate in u, then substitute back (indefinite) — or change the bounds to u-values and never look back (definite).
Choosing u: the two best candidates
The inside of a composition: in ∫ x·√(x²+1) dx, u = x²+1 (inside the root). The denominator: in ∫ x/(x²+1) dx, u = x²+1 (du = 2x dx covers the numerator). If neither candidate’s derivative appears, u-substitution is the wrong tool.
Worked examples
Four problems, easiest first. In each one, read every step — the why of each move is the lesson.
Example 1 — the basic move: ∫ 2x·ex² dx
- Choose u. The inside function is x²; its derivative 2x is sitting in the integrand. Set u = x².
- Compute du: du = 2x dx — exactly the leftover factor. (Why this u? Because du matches what is there.)
- Rewrite: ∫ eu du = eu + C.
- Substitute back: ex² + C.
- Check: d/dx [ex²] = 2x·ex² (chain rule). Matches ✓
Your turn: Compute ∫ 3x2·ex3 dx.
Answer: ex3 + C
Inside function x3, derivative 3x2 present: set u = x3, du = 3x2 dx. Rewrite: ∫ eu du = eu + C = ex3 + C. Check: d/dx [ex3] = 3x2ex3. ✓
Example 2 — constant-factor fix: ∫ x·√(x²+1) dx
- Choose u. Inside the root: u = x² + 1. Then du = 2x dx.
- Fix the constant. We have x dx but need 2x dx: x dx = du/2. (Why legal? Constants factor — only the variable part must match.)
- Rewrite: ∫ √u·(du/2) = (1/2)∫ u1/2 du = (1/2)·(2/3)u3/2 = (1/3)u3/2.
- Substitute back: (1/3)(x²+1)3/2 + C.
- Check: d/dx = (1/3)(3/2)(x²+1)1/2·2x = x·√(x²+1). Matches ✓
Your turn: Compute ∫ x·(x2+1)2 dx.
Answer: (x2+1)3/6 + C
Set u = x2 + 1, du = 2x dx, so x dx = du/2. Rewrite: (1/2)∫ u2 du = (1/2)(u3/3) = u3/6 = (x2+1)3/6 + C. Check: d/dx = (1/6)·3(x2+1)2·2x = x(x2+1)2. ✓
Example 3 — definite, change the bounds: ∫01 x·ex² dx
- Choose u = x², du = 2x dx, so x dx = du/2.
- Change the bounds: x = 0 → u = 0; x = 1 → u = 1. (Why? The integral is now in u — x-bounds would be nonsense.)
- Rewrite: (1/2)∫01 eu du = (1/2)[eu]01 = (e − 1)/2.
- Sanity check: on [0,1], x·ex² runs from 0 to e ≈ 2.718, curving upward; the area should be well under the 1·e rectangle. (e−1)/2 ≈ 0.86 fits. ✓
Your turn: Compute ∫12 x·ex2 dx.
Answer: (e4 − e)/2 ≈ 25.94
Set u = x2, x dx = du/2. Change bounds: x = 1 → u = 1; x = 2 → u = 4. Rewrite: (1/2)∫14 eu du = (1/2)(e4 − e). Sanity: on [1,2], x·ex2 runs ≈2.7→≈109 curving upward; 25.94 sits inside. ✓
Example 4 — linear inside: ∫ cos(5x) dx
- Choose u = 5x (the inside of the cosine). Then du = 5 dx, so dx = du/5.
- Rewrite: ∫ cos u·(du/5) = (1/5)∫ cos u du = (1/5) sin u.
- Substitute back: sin(5x)/5 + C.
- Check: d/dx = (1/5)·5 cos(5x) = cos(5x). Matches ✓
Your turn: Compute ∫ sin(3x) dx.
Answer: −cos(3x)/3 + C
Inside 3x: set u = 3x, dx = du/3. Rewrite: (1/3)∫ sin u du = −(1/3) cos u + C = −cos(3x)/3 + C. Check: d/dx [−cos(3x)/3] = −(1/3)(−3 sin(3x)) = sin(3x). ✓
Memorization tips
- Say it aloud: “u is the inside; du must be there.” If du (up to a constant) is not in the integrand, abort the substitution.
- Constants bend, variables break: a missing 2 is fixable (du/2); a missing x is fatal. That one distinction sorts working substitutions from dead ones.
- Bounds travel with the variable: switch to u → switch the bounds. Say “new variable, new bounds” every time.
- Linear-inside shortcut: ∫ f(ax+b) dx = (1/a)∫ f(u) du — just divide by a. (It is still u-substitution, with the bookkeeping done once.)
- The check is the proof: differentiate your answer with the chain rule. If the chain factor does not reproduce the integrand exactly, recheck du.
- Name the failure: ∫ ex² dx has no x factor — no substitution can conjure one. Recognizing “no elementary antiderivative” is itself a skill.
Final challenge
Five mixed questions — bounds, constant fixes, and the failure case. Score 5/5 and u-substitution is yours.
← Back to the Calculus I formula sheet
How to learn a formula here
- Read each section in order — every section ends with a short quiz. Take it before moving on; the questions test exactly what you just read.
- Work the examples with the answers covered, then uncover one step at a time and compare.
- Finish with the final challenge — five mixed questions including the classic traps.
- Retake what you miss — every quiz reshuffles each attempt, and every answer explains itself.
Frequently asked questions
What is u-substitution?
The chain rule in reverse: if the integrand looks like f(g(x))·g′(x), set u = g(x) so du = g′(x) dx, and the integral becomes the simpler ∫ f(u) du.
How do I choose u?
Pick the “inside” function — the cluttered part whose derivative (up to a constant factor) also appears in the integrand. In ∫ 2x·ex² dx, u = x² because du = 2x dx is sitting right there.
What if du is off by a constant factor?
That’s fine — constants can be adjusted. In ∫ x·ex² dx, du = 2x dx but you only have x dx, so write x dx = du/2 and carry the 1/2 along.
Do I change the bounds in a definite integral?
Yes — when you switch to u, the bounds must switch too: x = a becomes u = g(a), x = b becomes u = g(b). Then never substitute back.
When does u-substitution fail?
When the derivative of your candidate u doesn’t appear in the integrand (not even up to a constant). ∫ ex² dx has no x factor, so no substitution can fix it — it has no elementary antiderivative.
More from the codex
Support the codex
This page is free, with no account and no ads. If it helped you learn, consider supporting the indie dev behind it.
Questions or a bug to report? Email [email protected].