Show that $\int_{0}^{\pi} \frac{1}{3+2\cos(t)}\mathrm{d}t = \frac{\pi}{\sqrt{5}}$ I need to proof that 
\begin{align}
\int_{0}^{\pi} \frac{1}{3+2\cos(t)}\mathrm{d}t = \frac{\pi}{\sqrt{5}}
\end{align}
is correct. The upper limit $\pi$ seems to cause me some problems. I thought about solving this integral by using the residual theorem: 
I started with $\gamma: [0,\pi] \to \mathbb{C}, t \to e^{2it}$. Since $\cos(t) = \frac{1}{2}\left(e^{it}+e^{-it}\right)$ and $\gamma'(t) = 2ie^{2it}$ we find that 
\begin{align}
\int_{0}^{\pi} \frac{1}{3+2\cos(t)}\mathrm{d}t = \int_{0}^{\pi} \frac{1}{3+\left(e^{it}+e^{-it}\right)} \cdot \frac{2ie^{2it}}{2ie^{2it}}\mathrm{d}t = \int_{0}^{\pi} \frac{1}{3+\left(\sqrt{\gamma}+\frac{1}{\sqrt{\gamma}}\right)} \cdot \frac{-i\gamma'}{2\gamma}\mathrm{d}t 
\end{align}
I did this with the aim to use 
\begin{align}
\int_{\gamma} f(z) \mathrm{d}z = \int_{a}^{b} (f\circ \gamma)(t)\gamma'(t) \mathrm{d}t,
\end{align}
so we find 
\begin{align}
\int_{0}^{\pi} \frac{1}{3+\left(\sqrt{\gamma}+\frac{1}{\sqrt{\gamma}}\right)} \cdot \frac{-i\gamma'}{2\gamma}\mathrm{d}t = \int_{\gamma} \frac{-i}{6z+2z\sqrt{z}+2\sqrt{z}}  \mathrm{d}z 
\end{align}
At this point I don't know how to continue. Can anyone help?

We proved here that
$$\frac{1}{a+b\cos t}=\frac{1}{\sqrt{a^2-b^2}}+\frac{2}{\sqrt{a^2-b^2}}\sum_{n=1}^{\infty}\left(\frac{\sqrt{a^2-b^2}-a}{b}\right)^n\cos{(nt)},\  a>b$$
set $a=3$ and $b=2$ then integrate both sides we have 
$$\int_0^\pi\frac{dt}{3+2\cos t}=\int_0^\pi\frac{dt}{\sqrt{5}}+\frac{2}{\sqrt{5}}\sum_{n=1}^\infty\left(\frac{\sqrt{5}-3}{2}\right)^n\underbrace{\int_0^\pi\cos(nt)\ dt}_{0}=\frac{\pi}{\sqrt{5}}$$
