[Math] Definite integral $\int_0^1 \frac{\arctan x}{x\,\sqrt{1-x^2}}\,\text{d}x$

definite integralsreal-analysis

Wanting to calculate the integral $\int_0^1 \frac{\arctan x}{x\,\sqrt{1-x^2}}\,\text{d}x$ it will certainly already known to many of you that an interesting way to attack it is to refer to the method of integration and differentiation with respect to a parameter, getting $\frac{\pi}{2}\,\log\left(1+\sqrt{2}\right)$.

Instead, what it does not at all clear is how software such as Wolfram Mathematica can calculate that result in an exact manner and not only approximate. Can someone enlighten me? Thanks!

Best Answer

Note that

$$\frac{\arctan{x}}{x} = \int_0^1 \frac{du}{1+x^2 u^2} $$

Thus, the integral may be written as

$$\int_0^1 dx \frac1{\sqrt{1-x^2}} \int_0^1 \frac{du}{1+x^2 u^2} = \frac12 \int_0^1 du \, \int_{-1}^1 \frac{dx}{(1+u^2 x^2) \sqrt{1-x^2}}$$

Let's attack the inner integral. We may do this using the residue theorem. Consider the following contour integral:

$$\oint_C \frac{dz}{(1+u^2 z^2) \sqrt{z^2-1}} $$

where $C$ is the following contour:

enter image description here

with the circular-arc detours about the branch points at $z=\pm 1$ have radius $\epsilon$ and the outer circle has radius $R$. The contour integral is equal to

$$\int_{-R}^{-1-\epsilon} \frac{dx}{(1+u^2 x^2) \sqrt{x^2-1}} + i \epsilon \int_{\pi}^0 d\phi \, e^{i \phi} \frac1{[1+u^2 (-1+\epsilon e^{i \phi})^2] \sqrt{(-1+\epsilon e^{i \phi})^2-1}} \\ + e^{-i \pi/2} \int_{-1+\epsilon}^{1-\epsilon} \frac{dx}{(1+u^2 x^2) \sqrt{1-x^2}} + i \epsilon \int_{\pi}^{-\pi} d\phi \, e^{i \phi} \frac1{[1+u^2 (1+\epsilon e^{i \phi})^2] \sqrt{(1+\epsilon e^{i \phi})^2-1}} \\ + e^{i \pi/2} \int_{1-\epsilon}^{-1+\epsilon} \frac{dx}{(1+u^2 x^2) \sqrt{1-x^2}} + i \epsilon \int_{2 \pi}^{\pi} d\phi \, e^{i \phi} \frac1{[1+u^2 (-1+\epsilon e^{i \phi})^2] \sqrt{(-1+\epsilon e^{i \phi})^2-1}} \\ +\int_{-1-\epsilon}^{-R} \frac{dx}{(1+u^2 x^2) \sqrt{x^2-1}} +i R \int_{-\pi}^{\pi} d\theta \, e^{i \theta} \frac1{(1+u^2 R^2 e^{i 2 \phi})\sqrt{R^2 e^{i 2 \phi}-1}}$$

The first and seventh integrals cancel.

We now evaluate the contour integral in the limits as $\epsilon \to 0$ and $R \to \infty$. As $\epsilon \to 0$, the second, fourth, and sixth integrals vanish. As $R \to \infty$, the eighth integral vanishes.

By the residue theorem, the contour integral is equal to $i 2 \pi$ times the sum of the residues of the integrand at the poles $z_{\pm} = \pm i/u$. Thus,

$$-i 2 \int_{-1}^1 \frac{dx}{(1+u^2 x^2)\sqrt{1-x^2}} = i 2 \pi \frac1{u^2} \left [\frac1{(i 2/u) e^{i \pi/2} \sqrt{1/u^2+1}} + \frac1{(-i 2/u) e^{-i \pi/2} \sqrt{1/u^2+1}} \right ]$$

Note that the poles lie on different branches so that the residue add and do not cancel. So...

$$\int_{-1}^1 \frac{dx}{(1+u^2 x^2)\sqrt{1-x^2}} = \frac{\pi}{\sqrt{1+u^2}} $$

Thus,

$$\int_0^1 dx \frac{\arctan{x}}{x \sqrt{1-x^2}} = \frac12 \pi \int_0^1 \frac{du}{\sqrt{1+u^2}} = \frac{\pi}{2} \sinh^{-1}{(1)} = \frac{\pi}{2} \log{\left (1+\sqrt{2} \right )}$$

Related Question