Mathworld while explaining (rather very briefly) the Leibnitz rule of integration, aka derivative under an integral sign, mentions that this method may be used to evaluate peculiar integrals such as $$\phi(\alpha)=\int_0^{\pi}\ln(1-2\alpha \cos x+\alpha^2)~\mathrm dx=2\pi \ln|\alpha| \\ \text{for}~~ |\alpha|>1$$
This seems a tricky (or peculiar one) indeed!
How would one go about proving it?
I was able to find the full text for the source that Wolfram Mathworld mentions. See page 144 of the text, or page 160 of the electronic document. It reads:
And it goes on. Note that by the properties of $\log$, $\pi\log(\alpha^2)=2\pi\log |\alpha|$, so there are no problems.