While integrating $\ln(\sec x)$, at one point I managed to break the integral into two. But I wasn't able to integrate one of those parts.
The integral I am having a difficulty with is:
$$\int {\ln x\over 2-x}\,dx$$
I am aware of the fact that this integral cannot be expressed with elementary functions. In fact, my educated guess is that the answer should contain a dilogarithm term.
I have integrated similar functions and used the dilogarithm (or even trilogarithm once), but in this case, I have no idea how to get on solving this integral.
Any help will be appreciated.
Let $x=2-2t$ and use $\int \frac{\ln(1-x)}{x}dx=-\text{Li}_2(x)+C$ $$\int {\ln x\over 2-x}dx=-\int \frac{\ln 2+\ln(1-t)}{t}dt=-\ln 2 \ln t +\text{Li}_2(t)+C$$