Integration by substitution

Integration by substitution is the chain rule used backwards1. We check it with ∫2x1+x2 dx\int \dfrac{2x}{1 + x^2}\,dx.

Replacing the denominator

Putting t=1+x2t = 1 + x^2 gives dtdx=2x\dfrac{dt}{dx} = 2x, that is dt=2x dxdt = 2x\,dx. The 2x dx2x\,dx in the numerator turns straight into dtdt.

∫2x1+x2 dx=∫dtt=log⁡∣t∣=log⁡(1+x2)+C\int \frac{2x}{1 + x^2}\,dx = \int \frac{dt}{t} = \log|t| = \log\left( 1 + x^2 \right) + C

Differentiating to check, the chain rule gives {log⁡(1+x2)}′=11+x2⋅2x\left\{ \log\left( 1 + x^2 \right) \right\}' = \dfrac{1}{1 + x^2} \cdot 2x, returning the original.

In a definite integral the limits change too

As xx runs from 00 to 11, the variable tt runs from 11 to 22.

∫012x1+x2 dx=∫12dtt=log⁡2≈0.693\int_0^1 \frac{2x}{1 + x^2}\,dx = \int_1^2 \frac{dt}{t} = \log 2 \approx 0.693

Once the limits are converted to tt, there is no need to return to xx.

The forms it fits

The forms that work are limited: the integrand must look like g(h(x))⋅h′(x)g(h(x)) \cdot h'(x), with the derivative of the inner function multiplied in.

IntegralSubstitutionResult
∫2x1+x2dx\int \dfrac{2x}{1+x^2}dxt=1+x2t = 1+x^2log⁡(1+x2)\log(1+x^2)
∫sin⁡2xcos⁡x dx\int \sin^2 x \cos x\,dxt=sin⁡xt = \sin xsin⁡3x3\dfrac{\sin^3 x}{3}
∫2xcos⁡(x2)dx\int 2x\cos(x^2)dxt=x2t = x^2sin⁡(x2)\sin(x^2)

When the coefficient does not match, adjust with a constant. For ∫x1+x2 dx\int \dfrac{x}{1 + x^2}\,dx the answer is 12log⁡(1+x2)\dfrac{1}{2}\log\left( 1 + x^2 \right): the missing factor of 22 simply comes outside.

Substituting the other way round

The substitution can also be made in the opposite direction. In ∫011−x2 dx\int_0^1 \sqrt{1 - x^2}\,dx, putting x=sin⁡θx = \sin\theta gives dx=cos⁡θ dθdx = \cos\theta\,d\theta.

∫0π/2cos⁡2θ dθ=π4\int_0^{\pi/2} \cos^2\theta\,d\theta = \frac{\pi}{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=2x1+x2y = \dfrac{2x}{1 + x^2}, the ever-rising curve is the antiderivative y=log⁡(1+x2)y = \log\left( 1 + x^2 \right), and the large dots are (1,1)(1, 1) and (1,log⁡2)(1, \log 2).

  1. Integration by substitution, Wikipedia