Module 3's chain rule says that differentiating a composite, F(g(x)), gives F′(g(x))g′(x): the outside's derivative, times the inside's. Substitution runs that backwards. Name the inside function u=g(x) and write its derivative with the dx attached, du=g′(x)dx; then every x in the integral is traded for u: ∫f(g(x))g′(x)dx=∫f(u)du, read aloud: the integral of f of g of x, times g prime of x, dee x, equals the integral of f of u, dee u. For ∫2x(x2+1)3dx: u=x2+1, du=2xdx, and the integral is ∫u3du=4u4+C=4(x2+1)4+C. The check that never lies is to differentiate the answer: the chain rule gives 4(x2+1)3⋅2x/4=2x(x2+1)3, the integrand back.
The trap this lesson is named for is the du factor. ∫x(x2+1)3dx has xdx beside the power, and xdx is only HALF of du=2xdx: so xdx=21du, and the integral is 21∫u3du=8(x2+1)4+C. Ignore the half and the answer is twice too big; differentiate it and 2x(x2+1)3 comes out, not x(x2+1)3. A linear inside works the same way: ∫(2x+1)4dx with u=2x+1, du=2dx, so dx=21du and the answer is 10(2x+1)5+C. Exponentials and trig follow: ∫xex2dx=21ex2+C and ∫cos(2x)dx=21sin(2x)+C. What substitution cannot do is invent a factor: ∫ex2dx has no x beside it, the du is missing by more than a constant, and no u rescues it.