First off: I know that "almost everywhere" has a legitimate meaning in measure theory, but I'm not referring to that in this case, really. I'm talking about the case where there are only a small (finite) number of points where the function is not analytic inside a piecewise-smooth simple closed curve.
I am wondering why we can't use Cauchy's Integral Formula or Cauchy's theorem in this case.
Some examples of what I'm referring to:
a) $\int_\gamma f(z) dz = \int_\gamma \frac{e^{z^2}}{z(z-2)}dz$ where $\gamma(t) = 3+2e^{it}$, $0 \leq t \leq 2pi$
b) $\int_\gamma g(z) dz=\int_\gamma \frac{z^2 - 1}{z^2 + 1}$ where $\gamma(t) = 1-i+2e^{it}$, $0 \leq t \leq 2pi$
In the first instance, $f$ is analytic on $\mathbb{C} \setminus \{2\}$ but unfortunately, the curve $\gamma$, which is the circle of radius $2$ centred at $3$, includes this point.
In the second instance, $g$ is analytic on $\mathbb{C} \setminus \{i, -i\}$ but, the curve, which is the circle of radius $2$ centred at $1-i$, includes these points.
I used WolframAlpha to evaluate the second integral using the standard definition of a line integral for a smooth curve, and got that the result is $2\pi$.
My question is, why does having a small number of "holes" make the integral evaluate to a larger number (if there weren't any holes, it would have evaluated to 0 from Cauchy's Theorem)? It seems counterintuitive (given my understanding of integration in the reals).
Also, are there any tips or tricks for attacking these types of integrals? They are difficult to work with (computationally) which is why I was hoping to find a way to use some of the nicer formulae.