I have $$ \int{\frac{dz}{z^2+9}} $$ Also I'm given 2 different conditions. First is $|z|=\pi$, second is $|z-2i|=2$.
Okay, so for the integral i have $\int{\frac{dz}{(z+3i)(z-3i)}}$.
For the first condition, if I draw a circle, then $\pi$ will be outside the circle so I can't continue integral calculation using Cauchy's theorem. And for the second one, I'm again not sure how to proceed.
Please shed some light here. Thanks.
For $\mid z\mid=\pi$ the poles are both inside the circle. For $\mid z-2i\mid =2$ only $3i$ is within the region.
Now use the residue theorem. That is, $f(z)=\frac1{z^2+9}=\frac1{6i}(\frac1{z-3i}-\frac1{z+3i})$. The residue at $3i$ is $\frac1{6i}$. So the second integral is $2\pi i\cdot\frac1{6i}=\frac{\pi}3$.
As for the first, we get the difference of the integrals over two smaller contours, both of which are $\frac{\pi}3$, so $0$.