Residue at infinity from an asymptotic constant (source code)

= Residue at infinity from an asymptotic constant

Suppose $F$ is holomorphic outside a disk and $F(z)=L+O(1/z)$ uniformly as $z\to\infty$. Then
$$
\operatorname*{Res}_{z=\infty}\frac{F(z)}z=-L,
\qquad\lim_{R\to\infty}\oint_{|z|=R}\frac{F(z)}z\,dz=2\pi iL,
$$
with counterclockwise large circles. The conventional <residue at infinity> has the opposite sign from the coefficient extracted by that counterclockwise circle.

To check the sign, use $w=1/z$. The differential becomes $-F(1/w)dw/w$, whose residue at zero is $-L$. Alternatively, $F(z)/z=L/z+O(z^{-2})$, and the <large-circle contour estimate> makes the error integral vanish. For the constant function $F=1$, the integral is $2\pi i$ but the residue at infinity is $-1$.