Integration by substitution is the chain rule used backwards1. We check it with ∫1+x22xdx.
Replacing the denominator
Putting t=1+x2 gives dxdt=2x, that is dt=2xdx. The 2xdx in the numerator turns straight into dt.
∫1+x22xdx=∫tdt=log∣t∣=log(1+x2)+C
Differentiating to check, the chain rule gives {log(1+x2)}′=1+x21⋅2x, returning the original.
In a definite integral the limits change too
As x runs from 0 to 1, the variable t runs from 1 to 2.
∫011+x22xdx=∫12tdt=log2≈0.693
Once the limits are converted to t, there is no need to return to x.
The forms it fits
The forms that work are limited: the integrand must look like g(h(x))⋅h′(x), with the derivative of the inner function multiplied in.
Integral
Substitution
Result
∫1+x22xdx
t=1+x2
log(1+x2)
∫sin2xcosxdx
t=sinx
3sin3x
∫2xcos(x2)dx
t=x2
sin(x2)
When the coefficient does not match, adjust with a constant. For ∫1+x2xdx the answer is 21log(1+x2): the missing factor of 2 simply comes outside.
Substituting the other way round
The substitution can also be made in the opposite direction. In ∫011−x2dx, putting x=sinθ gives dx=cosθdθ.
∫0π/2cos2θdθ=4π
That is the area of a quarter circle. This pattern, killing a root with a trigonometric function, recurs throughout integrals involving circles and ellipses.
The humped curve on the graph is y=1+x22x, the ever-rising curve is the antiderivative y=log(1+x2), and the large dots are (1,1) and (1,log2).