How to calculate the Poisson integration?

When solving Laplacian equation, I need to integrate the following integration:

$$\int_0^{2\pi}\frac{1+3\text{sin}\theta}{a^2+r^2-2ar\text{cos}(\theta-\phi)}\text{d}\theta$$

How to work it out?

-

$$\int_0^{2\pi}\frac{1+3\text{sin}\theta}{a^2+r^2-2ar\text{cos}(\theta-\phi)}\text{d}\theta= \int_0^{2\pi}\frac{1+3\text{sin}\theta}{a^2+r^2-2ar\,({\cos}(\theta)\cos(\phi)+\sin(\theta)\sin(\phi))}\text{d}\theta \,.$$
I think that the observation $$a^2 + r^2 - 2ar\cos(\theta-\phi) = \left|ae^{i\phi} - z\right|^2 = (ae^{i\phi} - z)(ae^{-i\phi} - \bar{z})$$ for $z = re^{i\theta}$ will also help apply residue theorem. –  Sangchul Lee Nov 25 '12 at 6:06