Integral $\int_0^1\frac{\log(x)\log(1+x)}{\sqrt{1-x}}\,dx$

I'm trying to evaluate this definite integral: $$\int_0^1\frac{\log(x) \log(1+x)}{\sqrt{1-x}} dx$$ It's clear that the result can be expressed in terms of derivatives of a hypergeometric function with respect to its parameters. I obtained the following form: $$4 \left(1 - \log 2\right){_2F_1}^{(0,1,0,0)}\left(1, 0; \tfrac{3}{2}; -1\right) - 2 {_2F_1}^{(1,1,0,0)}\left(1, 0; \tfrac{3}{2}; -1\right) - 2{_2F_1}^{(0,1,1,0)}\left(1, 0; \tfrac{3}{2}; -1\right)$$ Is it possible to expand these derivatives to some explicit form and further simplify this result? Or maybe you could suggest a different way to evaluate this integral that gives a simpler result without going through hypergeometric functions?

• To many terms (log and di-log) to reasonably be done by hand, you'll have to settle for symbolic systems. – Zach466920 Jul 24 '15 at 18:36
• @Zach466920 Actually, it's been my consistent experience with integrals like these that quite the opposite is the case. Wolfram Alpha in particualr can be quite bad at recognizing when massive cancellation is possible among even just a moderate handful of polylog terms. The most reliable way of obtaining the most compact final values tends to be by hand. – David H Jul 24 '15 at 19:30
• First, let $~t=\sqrt{1-x}~$ or $~x=1-t^2,~$ then write $~\ln(2+t^2)=\ln\bigg[2~\bigg(1+\dfrac{t^2}2\bigg)\bigg],~$ and use the properties of the natural logarithm to break up the initial integral into a sum of two other ones. The smaller of these two is trivial; simply expand the integrand into its well-known Mercator series, and reverse the order of summation and integration. The larger one can be evaluated by Mathematica. – Lucian Jul 24 '15 at 19:57

The integral may readily be decomposed into a sum of integrals of products of log-linear terms:

\begin{align} \mathcal{I} &=\int_{0}^{1}\frac{\ln{\left(x\right)}\ln{\left(1+x\right)}}{\sqrt{1-x}}\,\mathrm{d}x\\ &=2\int_{0}^{1}\ln{\left(1-y^2\right)}\ln{\left(2-y^2\right)}\,\mathrm{d}y;~~~\small{\left[\sqrt{1-x}=y\right]}\\ &=2\int_{0}^{1}\ln{\left(1-y\right)}\ln{\left(\sqrt{2}-y\right)}\,\mathrm{d}y\\ &~~~~~+2\int_{0}^{1}\ln{\left(1-y\right)}\ln{\left(\sqrt{2}+y\right)}\,\mathrm{d}y\\ &~~~~~+2\int_{0}^{1}\ln{\left(1+y\right)}\ln{\left(\sqrt{2}-y\right)}\,\mathrm{d}y\\ &~~~~~+2\int_{0}^{1}\ln{\left(1+y\right)}\ln{\left(\sqrt{2}+y\right)}\,\mathrm{d}y.\\ \end{align}

Each of these four integrals can be resolved in terms of dilogarithms in a systematic manner, for instance by using the general closed forms for two integrals I derive below. Since a final result has already been provided in another response, I leave the plugging-and-chugging step as an exercise to the fearless reader.

Suppose $0<a\land0<a+b$. Then we find:

\begin{align} J{(a,b)} &=\int_{0}^{1}\ln{\left(1-y\right)}\ln{\left(a+by\right)}\,\mathrm{d}y\\ &=\int_{0}^{1}\ln{\left(w\right)}\ln{\left(a+b-bw\right)}\,\mathrm{d}w;~~~\small{\left[1-y=w\right]}\\ &=\small{-\int_{0}^{1}\frac{1}{w}\left[\frac{\left(a+b\right)\ln{\left(a+b\right)}}{b}-\frac{bw+\left(a+b-bw\right)\ln{\left(a+b-bw\right)}}{b}\right]\,\mathrm{d}w}\\ &=\int_{0}^{1}\frac{bw-bw\ln{\left(a+b\right)}+\left(a+b-bw\right)\ln{\left(1-\frac{b}{a+b}w\right)}}{bw}\,\mathrm{d}w\\ &=1-\ln{\left(a+b\right)}+\int_{0}^{1}\frac{\left(a+b-bw\right)\ln{\left(1-\frac{b}{a+b}w\right)}}{bw}\,\mathrm{d}w\\ &=1-\ln{\left(a+b\right)}+\int_{0}^{1}\frac{\left(1-cw\right)\ln{\left(1-cw\right)}}{cw}\,\mathrm{d}w;~~~\small{\left[c:=\frac{b}{a+b}\right]}\\ &=\small{1-\ln{\left(a+b\right)}-\int_{0}^{1}\ln{\left(1-cw\right)}\,\mathrm{d}w+\frac{1}{c}\int_{0}^{1}\frac{\ln{\left(1-cw\right)}}{w}\,\mathrm{d}w}\\ &=1-\ln{\left(a+b\right)}+1+\frac{1-c}{c}\ln{\left(1-c\right)}-\frac{1}{c}\,\operatorname{Li}_{2}{\left(c\right)}\\ &=2-\ln{\left(a+b\right)}+\frac{1-c}{c}\ln{\left(1-c\right)}-\frac{1}{c}\,\operatorname{Li}_{2}{\left(c\right)}\\ &=2+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}-\left(a+b\right)\operatorname{Li}_{2}{\left(\frac{b}{a+b}\right)}}{b}\\ \end{align}

Suppose $0<a\land0<a+b\land0<a-b$. Then we find:

\begin{align} K{(a,b)} &=\int_{0}^{1}\ln{\left(1+y\right)}\ln{\left(a+by\right)}\,\mathrm{d}y\\ &=\small{\ln{(2)}\ln{\left(a+b\right)}-\int_{0}^{1}y\left[\frac{b\ln{\left(1+y\right)}}{a+by}+\frac{\ln{\left(a+by\right)}}{1+y}\right]\,\mathrm{d}y}\\ &=\ln{(2)}\ln{\left(a+b\right)}\\ &~~~~~\small{-\int_{0}^{1}\left[\ln{\left(1+y\right)}-\frac{a\ln{\left(1+y\right)}}{a+by}+\ln{\left(a+by\right)}-\frac{\ln{\left(a+by\right)}}{1+y}\right]\,\mathrm{d}y}\\ &=\small{\ln{(2)}\ln{\left(a+b\right)}-\left(2\ln{(2)}-1\right)+\frac{b+a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}}{b}}\\ &~~~~~\small{+\int_{0}^{1}\frac{a\ln{\left(1+y\right)}}{a+by}\,\mathrm{d}y+\int_{0}^{1}\frac{\ln{\left(a+by\right)}}{1+y}\,\mathrm{d}y}\\ &=\small{2-2\ln{(2)}+\ln{(2)}\ln{\left(a+b\right)}+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}}{b}}\\ &~~~~~\small{+\int_{0}^{1}\frac{a\ln{\left(1+y\right)}}{a+by}\,\mathrm{d}y+\ln{(2)}\ln{\left(a+b\right)}-\int_{0}^{1}\frac{b\ln{\left(1+y\right)}}{a+by}\,\mathrm{d}y}\\ &=\small{2-2\ln{(2)}+2\ln{(2)}\ln{\left(a+b\right)}+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}}{b}}\\ &~~~~~\small{+\left(a-b\right)\int_{0}^{1}\frac{\ln{\left(1+y\right)}}{a+by}\,\mathrm{d}y}\\ &=\small{2-2\ln{(2)}+2\ln{(2)}\ln{\left(a+b\right)}+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}}{b}}\\ &~~~~~\small{+\left(a-b\right)\int_{1}^{2}\frac{\ln{\left(w\right)}}{a-b+bw}\,\mathrm{d}w};~~~\small{\left[1+y=w\right]}\\ &=\small{2-2\ln{(2)}+2\ln{(2)}\ln{\left(a+b\right)}+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}}{b}}\\ &~~~~~\small{+\int_{0}^{2}\frac{\ln{\left(w\right)}}{1+\frac{b}{a-b}w}\,\mathrm{d}w-\int_{0}^{1}\frac{\ln{\left(w\right)}}{1+\frac{b}{a-b}w}\,\mathrm{d}w}\\ &=\small{2-2\ln{(2)}+2\ln{(2)}\ln{\left(a+b\right)}+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}}{b}}\\ &~~~~~\small{+2\int_{0}^{1}\frac{\ln{\left(2u\right)}}{1+\frac{2b}{a-b}u}\,\mathrm{d}u-\frac{a-b}{b}\operatorname{Li}_{2}{\left(-\frac{b}{a-b}\right)}};~~~\small{\left[w=2u\right]}\\ &=\small{2-2\ln{(2)}+2\ln{(2)}\ln{\left(a+b\right)}+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}}{b}}\\ &~~~~~+2\ln{(2)}\int_{0}^{1}\frac{\mathrm{d}u}{1+\frac{2b}{a-b}u}+2\int_{0}^{1}\frac{\ln{\left(u\right)}}{1+\frac{2b}{a-b}u}\,\mathrm{d}u\\ &~~~~~-\frac{a-b}{b}\operatorname{Li}_{2}{\left(-\frac{b}{a-b}\right)}\\ &=2-2\ln{(2)}+2\ln{(2)}\ln{\left(a+b\right)}\\ &~~~~~+\frac{a\ln{\left(a\right)}-\left(a+b\right)\ln{\left(a+b\right)}+\left(a-b\right)\ln{(2)}\ln{\left(\frac{a+b}{a-b}\right)}}{b}\\ &~~~~~+\frac{a-b}{b}\left[\operatorname{Li}_{2}{\left(-\frac{2b}{a-b}\right)}-\operatorname{Li}_{2}{\left(-\frac{b}{a-b}\right)}\right].\\ \end{align}

• Very nice! How do we get only one dilog term at the end? – Vladimir Reshetnikov Jul 24 '15 at 22:53
• @VladimirReshetnikov Note that the integrals we need to calculate correspond to plugging in the values $a=\sqrt{2}$ and $b=\pm1$ into the general expressions I derived. When you go to compute the arguments of all the dilog terms required, you'll find that they're all expressible in terms of the silver ratio or its negative/reciprocal/etc., so it's not surprising most of the dilog terms can be eliminated. Also, see my response here. – David H Jul 24 '15 at 23:20

$$\int_0^1\frac{\ln(1+x)\ln x}{\sqrt{1-x}}dx=16-8\ln2+4\ln^2\left(1+\sqrt2\right)\\+\sqrt2\left[2\ln^22+8\left(\ln2-1\right)\ln\left(1+\sqrt2\right)-\frac{7\pi^2}3+16\operatorname{Li}_2\!\left(\frac1{\sqrt{2}}\right)\right].$$

• I think users should start downvoting non-answers like this one, despite the fact they show strong skills. We are interested in the technique, not in the mere closed form. You was able to compute it, good for you. Will you please share how? – Jack D'Aurizio Jul 24 '15 at 20:33
• This integral is in a sense trivial, because the integrand has an antiderivative in terms of elementary functions and dilogarithms -- its correctness can be proved using differentiation by hand. Then it is just a matter of elementary transformations and well-known dilogarithm rules (see Lewin). – Cleo Jul 24 '15 at 20:48
• is it so difficult to make an explicit mention of the antiderivative and of the elementary transformations used to compute it? Otherwise, this is simply not an answer (notice that we have no function to differentiate at the moment). Everyone with a powerful enough CAS would have been able to write just the same. – Jack D'Aurizio Jul 24 '15 at 20:52
• +1 considering that the Op thinks hyper geometric representations are "clear" and 'obvious', your answer is appropriate. If I may ask, how much by hand tedious work was there? Did you have to do a lot of by hand cancellation, or was the answer I see basically already in this form? – Zach466920 Jul 24 '15 at 21:31
• – user21820 Nov 28 '16 at 10:08
