Im trying to solve the following integral using the residual theorem: $$ \int\limits_0^{2\pi} \frac{\mathrm{d}\phi}{3 + 2\cos \phi} $$ Using $2\cos \phi = z - \overline z$ and $\frac{\mathrm{d}z}{\mathrm{d}\varphi} = \mathrm{i} z$ I transformed the integral to $$ \int\limits_{|z|=1} -\frac{\mathrm{i}}{z(3 + z - \overline z)} \mathrm{d}z $$ Since the only pole in the unit circle is at $z=0$ (the others beeing of the form $z=-3/2 + \mathrm{i}b, \ b\in \mathbb{R}$) I concluded using the residual theorem that $$ \int\limits_0^{2\pi} \frac{\mathrm{d}\phi}{3 + 2\cos \phi} = 2\pi \mathrm{i} \lim_{z\to 0} \frac{-\mathrm{i}z}{z(3 + z - \overline z)} = \frac{2\pi}{3} $$
But Wolframalpha says it's $\frac{2\pi}{\sqrt{5}}$ and I don't think it is wrong since it even has a closed form for the undefined integral. So did I miss a pole or what is going on?