The substitution x → 1/x

On integrals from 0 to infinity, swapping x for 1/x maps the range to itself. Combine the two forms and hard integrals collapse.

Level: STEP 2. Uses A-level Mathematics only.

The idea

Reflecting the variable works on a finite interval. Integrals from 0 to infinity have their own symmetry: the map that sends xx to 1/x1/x. It sends the interval from 0 to 1 onto the interval from 1 to infinity, and back again, so it maps the whole range of integration to itself.

With u=1/xu=1/x we have dx=−du/u2dx=-du/u^2, and uu runs from infinity down to 0. The minus sign turns the limits back round, so

∫0∞f(x) dx=∫0∞f ⁣(1u)duu2.\begin{aligned}\int_0^\infty f(x)\,dx&=\int_0^\infty f\!\left(\frac1u\right)\frac{du}{u^2}.\end{aligned}

As with reflection, the substitution gives you a second expression for the same integral. The work is in noticing when that second expression combines well with the first.

One integrand that does not change

Before the examples, look at what the substitution does to dx1+x2\dfrac{dx}{1+x^2}:

11+1/u2⋅duu2=duu2+1.\frac{1}{1+1/u^2}\cdot\frac{du}{u^2}=\frac{du}{u^2+1}.

It is unchanged. This is why 1+x21+x^2 appears so often in integrals designed for this trick: it lets you focus on what the substitution does to the rest of the integrand.

Example 1: an integral that must be zero

Show that

I=∫0∞ln⁡x1+x2 dx=0.\begin{aligned}I&=\int_0^\infty\frac{\ln x}{1+x^2}\,dx\\&=0 .\end{aligned}

(The integral converges: near 0 the logarithm grows more slowly than any power of 1/x1/x, and for large xx the integrand is smaller than 1/x3/21/x^{3/2}.) Substitute u=1/xu=1/x. The factor dx1+x2\dfrac{dx}{1+x^2} is unchanged, and ln⁡x=ln⁡(1/u)=−ln⁡u\ln x=\ln(1/u)=-\ln u. So

I=∫0∞−ln⁡u1+u2 du=−I,\begin{aligned}I&=\int_0^\infty\frac{-\ln u}{1+u^2}\,du\\&=-I,\end{aligned}

and therefore I=0I=0. The picture: the negative area between 0 and 1 is exactly matched by the positive area from 1 to infinity.

Example 2: an answer that does not depend on n

For a positive integer nn, find

J=∫0∞dx(1+x2)(1+xn).J=\int_0^\infty\frac{dx}{(1+x^2)(1+x^n)} .

There is no hope of a partial-fraction approach for general nn. Substitute u=1/xu=1/x. The factor dx1+x2\dfrac{dx}{1+x^2} is unchanged, and

11+u−n=unun+1.\frac{1}{1+u^{-n}}=\frac{u^n}{u^n+1}.

So

J=∫0∞un(1+u2)(1+un) du.J=\int_0^\infty\frac{u^n}{(1+u^2)(1+u^n)}\,du .

Add the two forms. The fractions 11+xn\dfrac1{1+x^n} and xn1+xn\dfrac{x^n}{1+x^n} add to 1:

2J=∫0∞dx1+x2=π2,soJ=π4  for every n.\begin{aligned}2J&=\int_0^\infty\frac{dx}{1+x^2}\\&=\frac{\pi}{2},\\[6pt]\text{so}\quad J&=\frac{\pi}{4}\ \text{ for every } n .\end{aligned}

An answer that does not depend on a parameter is a strong hint that a symmetry is at work. If you ever compute such a family for a few values and get the same answer each time, look for the substitution that explains it.

When to reach for it

  • The range is 0 to infinity, or from 1/a1/a to aa for some aa: both are mapped to themselves.
  • The integrand contains 1+x21+x^2, ln⁡x\ln x, or powers xnx^n that turn into x−nx^{-n}.
  • The question asks you to show two integrals are equal, or that an integral is zero.

Try this

Let

K=∫0∞dx1+x4.K=\int_0^\infty\frac{dx}{1+x^4}.

Show that KK is also equal to the same integral with x2x^2 in the numerator. By adding the two and substituting t=x−1xt=x-\dfrac1x, show that

K=π22.K=\frac{\pi}{2\sqrt2}.
Hint

Divide the numerator and denominator of 1+x21+x4\dfrac{1+x^2}{1+x^4} by x2x^2, and write x2+1x2x^2+\dfrac1{x^2} in terms of x−1xx-\dfrac1x.

Solution

With u=1/xu=1/x,

K=∫0∞11+u−4⋅duu2=∫0∞u2u4+1 du.\begin{aligned}K&=\int_0^\infty\frac{1}{1+u^{-4}}\cdot\frac{du}{u^2}\\&=\int_0^\infty\frac{u^2}{u^4+1}\,du .\end{aligned}

Adding the two forms,

2K=∫0∞1+x21+x4 dx=∫0∞1+1/x2x2+1/x2 dx=∫0∞1+1/x2(x−1/x)2+2 dx.\begin{aligned}2K&=\int_0^\infty\frac{1+x^2}{1+x^4}\,dx\\&=\int_0^\infty\frac{1+1/x^2}{x^2+1/x^2}\,dx\\&=\int_0^\infty\frac{1+1/x^2}{(x-1/x)^2+2}\,dx .\end{aligned}

Now t=x−1xt=x-\dfrac1x has dt=(1+1x2)dxdt=\Bigl(1+\dfrac1{x^2}\Bigr)dx, and tt increases from −∞-\infty to ∞\infty as xx goes from 0 to infinity. So

2K=∫−∞∞dtt2+2=12[arctan⁡t2]−∞∞=π2,\begin{aligned}2K&=\int_{-\infty}^{\infty}\frac{dt}{t^2+2}\\&=\frac{1}{\sqrt2}\Bigl[\arctan\frac{t}{\sqrt2}\Bigr]_{-\infty}^{\infty}\\&=\frac{\pi}{\sqrt2},\end{aligned}

and K=π22K=\dfrac{\pi}{2\sqrt2}.

Want more like this? STEP Module 1: Structure and symmetry teaches ideas of this kind in depth, with exercises and a full STEP question. The STEP Starter Pack has all four modules and three practice papers. Or start free with the STEP sample question.