Skip to content

Integration by substitution, step by step

6 min read

Short answer

Choose uu as the inside of a composition so that its derivative du=u′(x) dxdu=u'(x)\,dx also appears in the integrand. Rewrite the entire integral in terms of uu, integrate, and substitute back. It is the chain rule run in reverse.

Steps1Pick u = the inner function(or the messy part)2Compute du = u′(x) dx andmatch it to the integrand3Replace everything: x, dx and limits become u4Integrate in u5Substitute back to x (orevaluate at the new limits)If any x is left over after substituting, rethink the choice of u.
A good u turns the integral into a basic one.

Why it works

The chain rule says ddxF(g(x))=F′(g(x)) g′(x)\dfrac d{dx}F(g(x))=F'(g(x))\,g'(x). Therefore ∫f(g(x)) g′(x) dx=F(g(x))+C\displaystyle\int f(g(x))\,g'(x)\,dx=F(g(x))+C where F′=fF'=f. Setting u=g(x)u=g(x) turns it into ∫f(u) du\int f(u)\,du.

Definite integrals

Either change the limits to uu-values as you substitute, and never go back to xx, or find the antiderivative in xx and use the original limits. Do not mix the two.

Worked example

Evaluate ∫012x x2+1 dx\displaystyle\int_0^1 2x\,\sqrt{x^2+1}\,dx.

Let u=x2+1u=x^2+1, so du=2x dxdu=2x\,dx. Limits: x=0→u=1x=0\to u=1, x=1→u=2x=1\to u=2. Then ∫12u du=23u3/2∣12=23(22−1)≈1.219\displaystyle\int_1^2\sqrt u\,du=\tfrac23u^{3/2}\Big|_1^2=\tfrac23\big(2\sqrt2-1\big)\approx1.219.

Try it yourself

Find ∫x ex2 dx\displaystyle\int x\,e^{x^2}\,dx.

Show the answer

Let u=x2u=x^2, so du=2x dxdu=2x\,dx and x dx=12dux\,dx=\tfrac12du. Then 12∫eu du=12ex2+C\tfrac12\int e^u\,du=\tfrac12e^{x^2}+C.

Keep going with practice

Vidi's integral lessons use this same substitution in polar coordinates and the Jacobian.