10

In Closed form of $\int_{0}^{1} \frac{\log(1+x)\log(2+x) \log(3+x)}{1+x}\,dx$ I have proposed an integral which I could not solve, and though there were some upvotes on the question no solution was provided. Hence I looked for simplifications which still are not trivial.

Here's an example where I found a closed expression with the help of Mathematica which can be verified numerically but I'm lacking a proof.

Hence my question is

Prove that

$$\int_0^1 \log(x)\log(x+1)\log(x+2)\,dx \\ = -6+3 \log ^3(2)-\frac{\log ^3(3)}{3}+\frac{\log ^2(2)}{2}-3 \log (3) \log (2)+6 \log (3)\\+\zeta(2) (1-2 \log (2))-\frac{13 \zeta (3)}{8}\\-\operatorname{Li}_2\left(-\frac{1}{2}\right)-6 \operatorname{Li}_2\left(-\frac{1}{2}\right) \log (2)+4 \operatorname{Li}_2\left(\frac{1}{4}\right) \log (2)\\-2 \operatorname{Li}_2\left(\frac{1}{3}\right) \log (3)+\operatorname{Li}_2\left(-\frac{1}{3}\right) \log (3)\\ -4 \operatorname{Li}_3\left(-\frac{1}{2}\right)-2 \operatorname{Li}_3\left(\frac{1}{3}\right)+\operatorname{Li}_3\left(-\frac{1}{3}\right)+2 \operatorname{Li}_3\left(\frac{1}{4}\right)\\\simeq -0.18403235664237885896 $$

Notice that the expression is composed of $\pi$, $\log(s)$, $\zeta(s)$, and $\operatorname{Li}_{s}(t)$.

Remark 1: Mathematica was able to find the antiderivative but it turned out to contain complex valued summands. These cancelled out numerically but I could not prove mathematically that their contribution vanishes.

Remark 2: I have not found the present class of integrals (product of logs with successively shifted arguments) in the 60 problems the of the book "(Almost) Impossible Integrals, Sums, and Series" by Cornel Ioan Valean (https://it.b-ok2.org/book/4996918/0df734) which is famous and frequently quoted in this forum. So this type of problem seems to be new.

3 Answers3

4

By the variable change $1/(1+x)=t$ and then integration by parts, it's easy to observe the main integral reduces easily to $$\int_0^1\log(x)\log(1+x)\log(2+x)\textrm{d}x=\int_{1/2}^1\frac{\displaystyle \log\left(\frac{t}{1-t}\right)\log(t)\log\left(\frac{1+t}{t}\right)}{t^2}\textrm{d}t$$ $$=7 \log ^2(2)-\log ^3(2)-3 \log (2)\log (3)+\log ^2(2)\log (3)$$ $$+2\underbrace{\int_{1/2}^1 \frac{\log \left(1-t^2\right)}{t^2}\textrm{d}t}_{\text{Trivial}}-3\underbrace{\int_{1/2}^1\frac{\log ^2(t)}{t^2}\textrm{d}t}_{\text{Trivial}}-4\underbrace{\int_{1/2}^1 \frac{\log (t)}{1-t^2}\textrm{d}t}_{\text{Trivial}}-\underbrace{2\int_{1/2}^1 \frac{ \log ^2(t)}{1-t^2}\textrm{d}t}_{\text{Trivial}}$$ $$+\underbrace{\int_{1/2}^1\frac{\displaystyle \log \left(\frac{1-t}{2}\right)}{1+t}\textrm{d}t}_{\text{Trivial}}+\underbrace{\int_{1/2}^1\frac{\displaystyle \log \left(\frac{1+t}{2}\right)}{1-t}\textrm{d}t}_{\text{Trivial}}+\underbrace{\int_{1/2}^1\frac{\log (1+t)}{t}\textrm{d}t}_{\text{Trivial}}-\underbrace{\int_{1/2}^1\frac{\log (1-t)}{t}\textrm{d}t}_{\text{Trivial}} $$ $$+\underbrace{\int_{1/2}^1\frac{\log (1+t) \log (t)}{t}\textrm{d}t}_{\text{Trivial}}-\underbrace{\int_{1/2}^1\frac{\log (1-t) \log (t)}{t}\textrm{d}t}_{\text{Trivial}}$$ $$+\underbrace{\int_{1/2}^1\frac{\log (1-t) \log (1+t)}{t}\textrm{d}t}_{\displaystyle \mathcal{I}}+2\underbrace{\int_{1/2}^1\frac{ \log (1-t) \log (t)}{1+t}\textrm{d}t}_{\displaystyle \mathcal{J}}.$$ The integral $\mathcal{I}$ is straightforward if we use that $$\log(1-t)\log(1+t)=\frac{1}{2} \left(\log ^2(1-t)+\log ^2(1+t)-\log ^2\left(\frac{1-t}{1+t}\right)\right),$$ and when expanding the right-hand side and then taking the integral, it's clear that for the last integral we might like to make the change of variable $\displaystyle t\mapsto\frac{1-t}{1+t}$. The rest is known and easy.

With respect to the integral $\mathcal{J}$ we may use the same idea and use the algebraic identity above, but first we might want to make some rearrangements. Well, we see that $$\int_{1/2}^1 \frac{\log (1-t) \log (t)}{1+t} \textrm{d}t=\underbrace{\int_0^1 \frac{\log (1-t) \log (t)}{1+t} \textrm{d}t}_{\displaystyle 13/8\zeta (3)- \pi ^2 \log (2)/4}-\underbrace{\int_0^{1/2} \frac{\log (1-t) \log (t)}{1+t} \textrm{d}t}_{\displaystyle \mathcal{K}},$$ and for the last integral, which is $\mathcal{K}$, we make the change of variable $t\mapsto 1/2-t$ (that is in a way the magical part that soon allows us to connect things to the algebraic identity above), and then we have $$\mathcal{K}=\int_0^{1/2} \frac{\log (1-t) \log (t)}{1+t} \textrm{d}t=\int_0^{1/2} \frac{\log (1/2-t) \log (1/2+t)}{3/2-t} \textrm{d}t$$ and then let $t\mapsto t/2$ to arrive at $$\mathcal{K}=\frac{1}{3} \int_0^1 \frac{(\log (1-t)-\log (2)) (\log (1+t)-\log (2))}{1-t/3} \textrm{d}t.$$ What now? When expanding the integral, all the resulting integrals are easy to calculate except the integral $$\int_0^1 \frac{\log (1-t)\log (1+t)}{1-t/3} \textrm{d}t.$$ At this point we use again that $$\log(1-t)\log(1+t)=\frac{1}{2} \left(\log ^2(1-t)+\log ^2(1+t)-\log ^2\left(\frac{1-t}{1+t}\right)\right),$$ and the first two integrals are extracted with simple integration by parts or by using geometric series after arranging properly the argument of log in the numerator with the proper variable change, and for the last integral we use again the variable change $\displaystyle t\mapsto\frac{1-t}{1+t}$, and we are finally done.

End of story.

A first note: Here is the generalization of one of the integrals I used above (the case $n=1$),

Let $n\ge1$ be a positive integer. Then $$\int_0^1 \frac{\log ^{2n-1}(x) \log(1-x)}{1+x} \textrm{d}x$$ $$=\frac{1}{2}(2n)!\zeta (2n+1)-2\log(2)(1 -2^{-2n})(2n-1)!\zeta (2n)$$ $$-2^{-1-2n} (2n+1-2^{1+2n})(2n-1)!\zeta(2n+1)$$ $$-(2n-1)!\sum_{k=1}^{n-1}\zeta (2k)\zeta (2n-2k+1)+2^{-2n}(2n-1)!\sum_{k=1}^{n-1}2^{2k}\zeta (2k)\zeta (2n-2k+1),$$ where $\zeta$ represents the Riemann zeta function.

The generalization is presented and proved in the paper, A note presenting the generalization of a special logarithmic integral by C.I. Valean.

A second note: The calculation of the integral $\mathcal{K}$ is even simpler if we consider writing that

$$\int_0^{1/2}\frac{\log(1-t)\log(t)}{1+t} \textrm{d}t$$ $$=\frac{1}{2}\int_0^{1/2}\frac{\log^2(1-t)}{1+t} \textrm{d}t+\frac{1}{2}\int_0^{1/2}\frac{\log^2(t)}{1+t} \textrm{d}t-\frac{1}{2}\int_0^{1/2}\frac{\displaystyle \log^2\left(\frac{t}{1-t}\right)}{1+t} \textrm{d}t,$$ where in the last integral let $\displaystyle t\mapsto \frac{t}{1-t}$. This integral over the unit interval is also met in the book, (Almost) Impossible Integrals, Sums, and Series (and, of course, in the paper above which uses a very simple strategy for this particular case).

user97357329
  • 5,319
  • 1
    Very nice substitution I missed it. What about the clever integration by parts? You meant to leave it for the readers? What I think is to use $\int 1/x^2\ dx=-1/x$. – Ali Shadhar Jan 25 '20 at 15:44
  • 1
    Awesome.. thanks – Ali Shadhar Jan 25 '20 at 15:45
  • @AliShather integration by parts for these integrals when one has $t^2$ in denominator is one very obvious thing to do in the next step rather than something clever, sophisticated. It's just the natural way to continue the solution. – user97357329 Jan 26 '20 at 08:06
  • @user97357329 +1 Phantastic virtuosity in playing on the piano of integral substitutions and recognizing trivial and non trivil cases (in both cases of my recent problems). Just one remark: I find it surprising that in the present case Mathematica does all this (even the indefinite integral) in a few seconds (plus some manal finishing to remove the spurious imaginaiy parts). – Dr. Wolfgang Hintze Jan 26 '20 at 11:35
  • @Dr.WolfgangHintze Thank you! :-) Indeed, I noticed that Mathematica successfully deals with this integral, getting a fast evaluation. Combining integration by parts in the form $\int_0^1 (x(\log(x)-1))' \log(1+x)\log(2+x)\textrm{d}x$ with inspecting the polylogarithms of higher order given by Mathematica, we immediately may figure out how the machine absorbs the resulting integrals of the integration by parts process into polylogarithms. This is less obvious for human beings, but easy for a machine. – user97357329 Jan 26 '20 at 12:37
2

We have to calculate the integral

$$i = \int_0^1 \log(x)\log(1+x)\log(2+x)\,dx\tag{1}$$

1. My derivation of the closed expression

First I tried to find the indefinite integral (the antiderivative of the integrand)

$$a(x)=\int \log(x)\log(1+x)\log(2+x)\,dx\tag{2}$$

I was lucky, Mathematica quickly returned an expression the drivative of which gave back the integrand.

It turned out that $a(0)=0$ so that $i = a(1)$. The result is also numerically correct to a good approximation.

The expression $a(1)$ formally still contained an imaginary part. But this imaginary part turns out to be numerically zero, i.e.

$$a_i = -2 \operatorname{Li}_2\left(\frac{1}{3}\right)+\text{Li}_2\left(-\frac{1}{3}\right)+\frac{\pi ^2}{6}-\frac{1}{2} \log ^2(3)= 0\tag{3}$$

I'm sure that $(3)$ holds exactly but I haven't yet found the dilog relation to prove it.

Notice that this derivation is a valid proof: we have used a heuristic tool to find a solution which could be verified.

2. attempt using parametric derivatives, double series

My first solution attempt starts with generating the logs by differentiating the function

$$f=x^a (x+1)^b (x+2)^c$$

with respect to the parameters $a$, $b$, and $c$, and then letting the parameters go to $0$.

Let us expand $f$ into a double binomial series

$$f_s = 2^c x^a \sum _{n=0}^{\infty } \sum _{m=0}^{\infty } \frac{x^m x^n \binom{b}{m} \binom{c}{n}}{2^n}$$

performing the integral gives for the summand

$$s(n,m)=\frac{2^{c-n} \binom{b}{m} \binom{c}{n}}{a+m+n+1}$$

The drivatives and the respective limits are

$$s_a=\frac{\partial s(n,m)}{\partial a}|_{a\to 0} = -\frac{2^{c-n} \binom{b}{m} \binom{c}{n}}{(m+n+1)^2}$$

$$s_b = \frac{\partial s_a}{\partial b}|_{b\to 0} = -\frac{\binom{0}{m} 2^{c-n} (-\psi ^{(0)}(1-m)-\gamma ) \binom{c}{n}}{(m+n+1)^2}$$

$$s_c = \frac{\partial s_b}{\partial c}|_{c\to 0} =-\frac{2^{-n} \binom{0}{m} \binom{0}{n} H_{-m} \left(H_{-n}-\log (2)\right)}{(m+n+1)^2}$$

We observe that harmonicnumbers have een generated but in a peculiar combination with the binomial coefficient.

We know that $H_{z}$ has simple poles at negatives integer $z$. On the other hand $\binom{0}{k}=0$ at natural $k$. In fact there is cancellation described by the formula

$$\lim_{m\to 0} \, \binom{0}{m} H_{-m}= 0$$

$$\lim_{m\to 1} \, \binom{0}{m} H_{-m}=\frac{(-1)^m}{m}$$

For $n=0$ the summand becomes

$$\lim_{n\to 0} \, -\frac{2^{-n} \binom{0}{m} \binom{0}{n} H_{-m} \left(H_{-n}-\log (2)\right)}{(m+n+1)^2}=\frac{\log (2) \binom{0}{m} H_{-m}}{(m+1)^2}$$

So that the remaining $m$-sum starts at $m=1$ and gives

$$\sum _{m=1}^{\infty } \frac{(-1)^m \log (2)}{m (m+1)^2}=\left(-\frac{\pi ^2}{12}+2-2 \log (2)\right) \log (2) $$

Now the true double sum has $n\ge1$, $m\ge1$ so that $\log (2) \binom{0}{n}=0$ and the sum becomes

$$-\sum _{n=1}^{\infty } \sum _{m=1}^{\infty } \frac{2^{-n} (-1)^{m+n}}{m n (m+n+1)^2}$$

I'm just seeing that I have made a simple thing compilcated. We better expand the two logs with the shift into a power series ...

(to be continued).

  • @ Ali Shather I know that you are very firm in dilog relations. I tried for some time but no avail. Could you help me and prove $0=-2 \operatorname{Li}_2\left(\frac{1}{3}\right)+\operatorname{Li}_2\left(-\frac{1}{3}\right)+\frac{\pi ^2}{6}-\frac{1}{2} \log ^2(3)$? – Dr. Wolfgang Hintze Jan 26 '20 at 17:29
2

Incomplete solution

First write $\ln(2+x)=\ln2+\ln(1+x/2)$

$$\Longrightarrow I=\ln2\int_0^1 \ln x\ln(1+x)\ dx+\int_0^1\ln x\ln(1+x)\ln(1+x/2)\ dx$$

$$=\ln2 I_1+I_2$$

Apply integration by parts for $I_1$

$$I_1=(x\ln x-x)\ln(1+x)|_0^1-\int_0^1\frac{x\ln x-x}{1+x}\ dx=\boxed{2-2\ln2-\frac12\zeta(2)}$$

For $I_2$, write $\displaystyle\ln(1+x/2)=-\sum_{n=1}^\infty\frac{(-1)^n}{2^nn}x^n=\frac12\sum_{n=2}^\infty\frac{(-1)^n}{2^n(n-1)}x^{n-1}$

$$\Longrightarrow I_2=\frac12\sum_{n=2}^\infty\frac{(-1)^n}{2^n(n-1)}\int_0^1 x^{n-1}\ln x\ln(1+x)\ dx$$

Now use the identity

$$\int_0^1\frac{x^{2n}}{1+x}dx=\ln2+H_n-H_{2n}$$

By integration by parts we have

$$\int_0^1 x^{2n-1}\ln(1+x)\ dx=\frac{H_{2n}-H_n}{2n}$$

replace $2n$ with $n$ then differentiate with respect to $n$

$$\int_0^1 x^{n-1}\ln x\ln(1+x)\ dx=\frac{H_{n/2}}{n^2}+\frac{H_{n/2}^{(2)}}{2n}-\frac{H_n}{n^2}-\frac{H_n^{(2)}}{n}+\frac{\zeta(2)}{2n}$$

Therefore

$$I_2=\frac12\sum_{n=2}^\infty\frac{(-1)^nH_{n/2}}{2^n(n-1)n^2}+\frac14\sum_{n=2}^\infty\frac{(-1)^nH_{n/2}^{(2)}}{2^n(n-1)n}-\frac12\sum_{n=2}^\infty\frac{(-1)^nH_{n}}{2^n(n-1)n^2}-\frac12\sum_{n=2}^\infty\frac{(-1)^nH_n^{(2)}}{2^n(n-1)n}\\ +\frac{\zeta(2)}{4}\sum_{n=2}^\infty\frac{(-1)^n}{2^n(n-1)n}$$

For the first and second sum, we can use

$$\sum_{n=2}^\infty f(n)=\sum_{n=1}^\infty f(2n)+\sum_{n=1}^\infty f(2n+1)$$

Ali Shadhar
  • 25,498