When a pole lies outside the circle of integration, what does Cauchy integral formula state?

I have the following complex line integral: $$ \int_{|z| = 2} \frac{z}{z - 3} $$

My prof said it is $0$, but did not explain. He just said that the point $3+0i$ lies outside the circle.

But the Cauchy integral theorem does not mention anything about it. Can anybody give me the proof and also mention does this happen even if the point lies outside the circle/loop and the function is not analytic inside it.


The reason the answer is zero is because the function

$f(z)=\frac{z}{z-3}$

is analytic inside the circle. It is generally true that the integral around a simple closed curve of a function that is analytic in the interior is 0. So you are not using the Cauchy integral formula in this case.

If you are trying to calculate

$\int\frac{f(z)}{z-a}$

around some curve $\gamma$ where $f$ is not analytic Cauchy integral formula does not say anything about the integral no matter where $a$ is located.