# Cauchy Integral Formula

How can I apply the Cauchy Integral Formula if given a contour, two singular points are inside it? for example, how could I evaluate $\int \frac{dz}{z(z-2)}$ given $C: z = 3e^{i\theta}$

-

By the Cauchy-Goursat theorem, deforming a contour continuously within a region where the integrand is analytic won't change the value of the integral. Your contour deforms to two circles, each enclosing just one of the poles (discontinuities) of the integrand, connected by a line segment. That line segment is traversed backwards once and forwards once, so cancels itself in the integral. Therefore you can just add the integrals around little circles around each pole. (This argument works in generality when you are integrating a function that's holomorphic away from a finite set of points and is not special to your particular integral.)

-
Note that when you join the outer countour $\,C:=\{z\in\Bbb C\;;\;|z|=3\}\,$ with these little contours around the poles, the integrals on the joining lines vanish (once in one direction in, the other direction out!) , so at the end you get your integral on your wanted contour.
$$2\pi i\left(Res_{z=0}(f)+Res_{z=2}(f)\right)\;\;,\;\;\text{with}\;\;\;f(z)=\frac{1}{z(z-2)}$$