Singularities at infinity I'm a little confused on the concept of singularities at infinity.
For example, take the function $f(z) = 1/z$.
This has a removable singularity at infinity, since $f(1/z) = z$
is analytic at zero.
However, the residue of $f(z)$ at infinity is by definition
$$\text{Res } 1/z^2 f(z) = -1.$$
which is nonzero.
This seems bizarre; for removable singularities in the regular complex plane
have residue equal to zero. If we intuitively think of the definition of a residue to mean
the coefficient of $z^{-1}$, then it also appears that we have a 'pole' of order at least one at infinity, despite the fact that it vanishes at infinity. Again, this is in contrast to points in the plane where functions always blow up at poles.
I think this shows that Cauchy's integral theorem fails at infinity, so a function
analytic in a neighborhood of infinity does not necessarily have a zero contour integral over a curve enclosing infinity.
What other pathologies do singularities at infinity exhibit? Can anybody clarify just what is going on here and what to watch out for? Or provide a good reference?
 A: Functions do not have residues, but rather differentials do. When you are calculating the residue of a function $f(z)$ at a point in the (finite) plane, you are really calculating the residue of the $1$-form $f(z)\,dz$. 
If you try to calculate the "residue of a function" on a Riemann surface, you'll find that the result depends on the chart chosen, which makes no sense. However, the residue of a differential is invariant under a change of chart.
The differential $\frac{dz}{z}$, in the coordinate $w=1/z$, is $-\frac{dw}{w}$, which has residue $-1$ at $w=0$. Thus, even though $1/z$ is holomorphic at $\infty$ (and even has a simple zero there!), the differential $dz/z$ has a simple pole there. (In fact the differential $dz$ has a double pole at infinity!) Thus $dz/z$ has residues of equal magnitude and opposite signs at $0$ and $\infty$.
It is true that if $f(z)\,dz$ is holomorphic at $\infty$ then the integral of $f(z)\,dz$ around a small circle centred at $\infty$ is $0$. The point at infinity is not any different than any other point.
