Evaluate the integral $$\int_{C}\frac{z^2}{z^2+9}dz$$ where C is the circle $|z|=4$
I know that if f is analytic in simply connected domain $D$, $C$ a simple closed positively oriented contour that lies in D and $z_o$ lies interior to $C$, then $$\int_{C}\frac{f(z)}{z-z_o}dz=2\pi i f(z_o)$$
But for this problem, the circle contains both interior points which is $3i$ and $-3i$. And I found that reducing the fraction into partial fraction seems to be useless in solving the problem. So what is the $f(z)$ here?
You can rewrite
$$\frac{z^2}{z^2+9} = 1 - \frac{9}{z^2+9} = 1 - \frac{9}{(z+i 3)(z-i 3)} = 1+\frac{i 3/2}{z-i 3} - \frac{i 3/2}{z+i 3}$$
Now apply Cauchy's integral formula.