The roots are z=(−3±2)/(2−i), only z+=−1/(2−i) lying inside. The derivative of the quadratic at z+ is two, so the residue is 1/(2i). Consequently ∫02πdθ/(3+2cosθ+sinθ)=π. The denominator is positive since 3>5, so no principal-value qualification is required.