Substitution is the chain rule run backward. When an integrand has the form f(g(x)) · g′(x) — a function of an inner function, times the inner function's derivative — set u = g(x), so du = g′(x) dx, and the integral becomes ∫ f(u) du. Integrate in u, then write the answer back in x. A missing constant factor can be fixed by multiplying and dividing. For a definite integral, change the limits to u-values too, and there is no need to go back to x.
What you'll learn
Recognize integrands of the form f(g(x)) · g′(x)
Carry out a substitution, including constant adjustments
Change the limits of a definite integral under substitution
The chain rule says dxd(x2+1)6=6(x2+1)5⋅2x. So, reading it
backward,
∫12x(x2+1)5dx=(x2+1)6+C
The integrand has an inner function, x2+1, and next to it that inner
function’s derivative, 2x. Spotting that pattern is the whole skill;
substitution is the bookkeeping that follows.
Suppose F is an antiderivative of f. By the chain rule,
dxdF(g(x))=F′(g(x))g′(x)=f(g(x))g′(x)
So F(g(x)) is an antiderivative of f(g(x))g′(x). Writing u=g(x) and
du=g′(x)dx is shorthand for exactly this. Substitution does not invent a
new rule; it is the chain rule, recognized inside an integral.
u=x2+4, du=2xdx: ∫udu=ln∣u∣+C. Since x2+4>0, the absolute value can go.
Find ∫e3x+1dx.
Answer
31e3x+1+C
Full solution
u=3x+1, du=3dx: 31∫eudu.
Find ∫xx2+9dx.
Answer
31(x2+9)3/2+C
Full solution
u=x2+9, xdx=2du: 21∫u1/2du=21⋅32u3/2.
Find ∫xlnxdx.
Answer
2(lnx)2+C
Full solution
u=lnx, du=xdx: ∫udu=2u2+C.
Evaluate ∫02x(x2+1)2dx.
Answer
362
Full solution
u=x2+1 runs from 1 to 5, and xdx=2du: 21∫15u2du=21⋅3125−1=362.
Evaluate ∫0π/2sinxcos2xdx.
Answer
31
Full solution
u=cosx runs from 1 to 0, and sinxdx=−du: −∫10u2du=∫01u2du=31.
Find ∫1+4x21dx.
Answer
21arctan(2x)+C
Full solution
u=2x, dx=2du: 21∫1+u2du=21arctanu+C.
A student evaluates ∫012x(x2+1)dx with u=x2+1 as ∫01udu=21. What went wrong?
Hint
What are the u-values at x=0 and x=1?
Answer
The limits were not changed. They are 1 to 2, and the integral is 23.
Full solution
At x=0, u=1; at x=1, u=2. So the integral is ∫12udu=24−1=23.
Check directly: ∫01(2x3+2x)dx=21+1=23.
Frequently asked questions
When should I use u-substitution?
When the integrand contains an inner function together with that inner function's derivative, possibly off by a constant factor — such as 2x and x² + 1 in 2x(x² + 1)⁵.
How do I choose u?
Usually u is the inner function: the expression inside a power, root, exponential or trig function, whose derivative also appears in the integrand.
What if the derivative is off by a constant?
Multiply and divide by that constant. For ∫ x e^(x²) dx, du = 2x dx, so x dx = du/2.
How do the limits change in a definite integral?
Replace each limit x = a and x = b with u = g(a) and u = g(b). Then evaluate in u, with no need to substitute back.
Why does substitution work?
By the chain rule, the derivative of F(g(x)) is f(g(x)) g′(x) when F′ = f. So F(g(x)) is an antiderivative of the integrand.