Saturday, December 27, 2014

A pair of logarithmic integrals

The first integral we are going to look at on this blog is not particularly difficult, however it represents several advanced techniques that we will use many times. We consider the pair of integrals
$$I = \int_0^1\frac{\log(1+x)}{x}\,dx\\
   I' = \int_0^1\frac{\log(1-x)}{x}\,dx
$$
To begin chewing at this integral, we'll start by looking at the geometric series expansion for $\vert x\vert < 1$. A commonly known classical result is that, when we have convergence, the following is true:
$$\frac{1}{1-x} = 1+x+x^2+x^3+\dots$$
Suppose that, ignoring technical analytic issues such as convergence and constants of integration for now, we were to antidifferentiate each side of this expression. We find:
$$\int (1-x)^{-1}\,dx = \sum_{n=0}^\infty\int x^n\,dx\\\implies\log(1-x) = -\sum_{n=1}^\infty\frac{x^n}n$$
and hence we have derived the Maclaurin series for $\log(1-x)$ when $\vert x\vert < 1$. This result is useful in evaluating $I'$, however we would like to translate this result to the case for $\log(1+x)$. To do this, we simply use the analogous result
$$\log(1+x) = \sum_{n=1}^\infty (-1)^{n+1}\frac{x^n}{n}.$$
We now evaluate $I'$ using our first formula. We have that
$$\int_0^1\frac{\log(1-x)}{x}\,dx = -\sum_{n=1}^\infty\frac 1 n\int_0^1\frac{x^n}x\,dx= -\sum_{n=1}^\infty\frac 1 n\int_0^1x^{n-1}\,dx.$$
Note that we have, essentially, reduced the evaluation of $I'$ to a series problem - the integral $\int_0^1x^{n-1}\,dx = \frac 1 n$ is quite trivial. We therefore find, by recognizing the definition of the Riemann zeta function,
$$I'=-\sum_{n=1}^\infty\frac 1{n^2} = -\zeta(2) = -\frac{\pi^2}{6}.$$
We can perform a similar derivation to find $I$. Skipping the intermediate step of substituting in the Maclaurin series, we eventually find that
$$I = \sum_{n=1}^\infty (-1)^{n+1}\frac{1}{n^2}.$$
To relate this equation to $\zeta(2)$, we decompose as follows:
$$I = \sum_{n\text{ odd}}\frac{1}{n^2}-\sum_{n\text{ even}}\frac{1}{n^2}.$$
Recalling that the first sum is $\frac 1 4\zeta(2)$ and the second sum is $\frac 3 4\zeta(2)$, we then clearly find that
$$I = \left(\frac 3 4-\frac 1 4\right)\zeta(2) = \frac{\zeta(2)}2 = \frac{\pi^2}{12}.$$
Hence we have found simple closed-form expressions for both $I$ and $I'$. The appearance of $\pi$ in such logarithmic integrals is often surprising, however we notice that the main reason for the appearance of $\pi$ is the very "non-circular" series for $\zeta(2)$. Collecting our final results, we have found:
$$\int_0^1\frac{\log(1+x)}x\,dx = \frac{\pi^2}{12}\\\int_0^1\frac{\log(1-x)}x\,dx = -\frac{\pi^2}6$$

No comments:

Post a Comment