I would like to compute numerically the definite integral below using the Simpson rule:
$$\int\limits_0^1 \ln (x) \ln (1-x)\ dx$$
But I have difficulty trying to remove the singularity in this integral.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityI would like to compute numerically the definite integral below using the Simpson rule:
$$\int\limits_0^1 \ln (x) \ln (1-x)\ dx$$
But I have difficulty trying to remove the singularity in this integral.
If you have a singularity with natural log, then your solution is imaginary. The indefinite integral of $\ln(x)\ln(x-1)$ is $$x((\ln(x-1)-1)\ln(x)-\ln(x-1)+2)+\ln(x-1)+ Li_2 (1-x)+C$$Using integral-calculator.com . Li_2 is $$\displaystyle\sum^{\infty}_{k=1} \frac{x^k}{k^2}$$ Now note that the natural log of -1 is $\pi i$, so our final answer is $$\pi i -2+\frac{\pi^2}{6}$$ Hope this helps :)