I am trying to calculate the following integral : $\int_{r=0}^{1}\int_{t=0}^{2\pi} \frac{r}{re^{it}-a} drdt$ where $a$ is a complex number of modulus 1.
According to computation websites, this integral converges ; but I don't manage to make it by hand. I tried to use integration by parts, but the singularity at $a$ makes me feel it will not work... Any ideas?
Hint: Calculate $\int_{|z|=1} \frac 1 {z (z-a)}dz$ using Residue Theorem. [There is a simple pole at $0$]. This integral can be written as $\int_0^{2\pi} \frac 1 {re^{it}-a} idt$. Rest is clear.