The chain rule differentiates composite functions: the derivative of sin(x2) is cos(x2)⋅2x — differentiate the outer function, then multiply by the derivative of the inside. Integration asks the reverse: given cos(x2)⋅2x, find the original function. That's what u substitution does — it reverses the chain rule.
The Core Intuition
When an integral looks like "a function times the derivative of its inside," substitute the inside with u and the derivative of the inside with du. Consider:
∫2xcos(x2)dx
Here 2x is the derivative of x2, and x2 is the inside of cos(x2). Let u=x2, so du=2xdx:
∫cos(u)du=sin(u)+C=sin(x2)+C
Check: the derivative of sin(x2) is cos(x2)⋅2x.
The Precise Statement
∫f(g(x))⋅g′(x)dx=∫f(u)duwhere u=g(x),du=g′(x)dx
Valid provided g is differentiable and the resulting integral in u is simpler.
The Step-by-Step Method
Identify a function g(x) whose derivative g′(x) also appears (possibly up to a constant factor).
Setu=g(x), compute du=g′(x)dx.
Rewrite the entire integral in u and du — every x and dx must be replaced.
Integrate with respect to u.
Substitute backu=g(x).
Watch out
You cannot mix variables. If any x remains after substitution, you chose the wrong u (or must solve for x in terms of u — rare).
A Second Example (with a constant factor)
Evaluate ∫xx2+1dx. Let u=x2+1, so xdx=21du:
∫u⋅21du=21⋅32u3/2+C=31(x2+1)3/2+C
When Does It Work?
When the integrand is something times the derivative of something inside. Common patterns:
The integral simplifies by noticing the numerator is the derivative of the denominator. Using the substitution u=x+sinx, the integral becomes ∫u1du=log∣u∣+C. The final answer is log∣x+sinx∣+C.
The key insight here is pattern recognition: when you see an integral of the form ∫f(x)f′(x)dx, the answer is always log∣f(x)∣+C. This is the natural logarithm rule in reverse — the derivative of log∣f(x)∣ is f(x)f′(x).
Let’s check if our integrand fits that pattern. The denominator is x+sinx. Its derivative is 1+cosx — which is exactly the numerator! That’s no coincidence; the problem was designed this way.
So we set u=x+sinx. Then du=(1+cosx)dx, and the integral transforms cleanly.
Identify the substitution.
Let u=x+sinx. Then du=(1+cosx)dx.
Rewrite the integral in terms of u.
The original integral is ∫x+sinx1+cosxdx. Substituting, the numerator 1+cosx becomes du/dx, and the denominator becomes u:
∫x+sinx1+cosxdx=∫u1du.
Integrate with respect to u.
The integral of u1 is log∣u∣+C:
Use this when an integrand is a fraction whose numerator is (a constant multiple of) the derivative of its denominator. It is the fastest route for many "rational-looking" trig/algebra integrals.
Steps
Step 1: Name the denominator f(x) and differentiate it.
Here f(x)=x+sinx, so f′(x)=1+cosx.
Step 2: Compare f′(x) with the numerator.
If the numerator equals f′(x) (or a constant times it), the log pattern applies. Any constant factor c simply rides along: ∫fcf′=clog∣f∣.
Why it's wrong: expanding or using half-angle formulas on x+sinx1+cosx misses that 1+cosx is exactly dxd(x+sinx). Correct approach: test the f′/f pattern first.
Mistake 2: Dropping the absolute value.
Why it's wrong: x+sinx can be negative, so log(x+sinx) is invalid there. Correct approach: write log∣x+sinx∣+C. …