Problem #2
We have,
$$
I=\int_0^1 \frac{\log(x)}{z_1-x}dx- \int_0^1 \frac{\log(x)}{z_0+x}dx=I_1 - I_2
$$
where
$$
z_0=|a|e^{i\phi}
$$
$$
|a| < 1
$$
$$
z_1=z_0+1
$$
Integrate ##I_1## by parts:
$$
I_1=\int_0^{1}\frac{\log{x}}{z_1-x}dx
$$
$$
=-\log(z_1 -x)\log(x)|_0^1 + \int_0^{1}\frac{\log(z_1- x)}{x}dx
$$
$$
=-\log(z_1 -x)\log(x)|_0^1 + \int_0^{1}\frac{\log(z_1)}{x}dx + \int_0^{1}\frac{\log(1-\frac{x}{z_1})}{x}dx
$$
$$
=-\log(z_1 -x)\log(x)|_0^1 + \log(z_1)\log(x)|_0^1 +\int_0^{\frac{1}{z_1}}\frac{\log(1-u)}{u}du
$$
where we have made the substitution ##u=\frac{x}{z_1}## in the last term. The surface terms cancel and we are left with
$$
I_1=-Li_2(\frac{1}{z_1})
$$
where ##Li_2(z)## is the
dilogarithm. In like manner we integrate ##I_2## by parts; again the surface terms cancel and making the substitution ##u=-\frac{x}{z_0}## we are left with,
$$
I_2=-Li_2(-\frac{1}{z_0})
$$
and thus,
$$
I=-(Li_2(\frac{1}{z_1})+Li_2(-\frac{1}{z_0}))=-(Li_2(\frac{1}{z_1})+Li_2(\frac{1}{1-z_1}))
$$
We make use of the property of the dilogarithm function:
$$
Li_2(1-z) + Li_2(1-\frac{1}{z})=-\frac{1}{2}\log^2(z)
$$
by making the change of variables,
$$
\frac{1}{z_1}=1-z
$$
$$
\frac{1}{1-z_1}=1-\frac{1}{z}
$$
to find,
$$
z=\frac{z_0}{z_1}
$$
$$
z=(\frac{|a|}{\sqrt{|a|^2+2\cos(\phi)|a|+1}})e^{i\tan^{-1}(\frac{|a|\sin(\phi)}{|a|+\cos(\phi)})}
$$
Thus,
$$
I=\frac{1}{2}(\log{(\frac{|a|}{\sqrt{|a|^2+2\cos(\phi)|a|+1}})}+i\tan^{-1}(\frac{|a|\sin(\phi)}{|a|+\cos(\phi)}))^2
$$