# Residue (complex analysis)

In mathematics, more specifically complex analysis, the residue is a complex number proportional to the contour integral of a meromorphic function along a path enclosing one of its singularities. (More generally, residues can be calculated for any function $f: \mathbb{C} \setminus \{a_k\} \rightarrow \mathbb{C}$ that is holomorphic except at the discrete points {ak}, even if some of them are essential singularities.) Residues can be computed quite easily and, once known, allow the determination of general contour integrals via the residue theorem.

## Definition

The residue of a meromorphic function $f$ at an isolated singularity $a$, often denoted $\operatorname{Res}(f,a)$ or $\operatorname{Res}_a(f)$, is the unique value $R$ such that $f(z)- R/(z-a)$ has an analytic antiderivative in a punctured disk $0<\vert z-a\vert<\delta$.

Alternatively, residues can be calculated by finding Laurent series expansions, and one can define the residue as the coefficient a-1 of a Laurent series.

The definition of a residue can be generalized to arbitrary Riemann surfaces. Suppose $\omega$ is a 1-form on a Riemann surface. Let $\omega$ be meromorphic at some point $x$, so that we may write $\omega$ in local coordinates as $f(z) \; dz$. Then the residue of $\omega$ at $x$ is defined to be the residue of $f(z)$ at the point corresponding to $x$.

## Example

As an example, consider the contour integral

$\oint_C {e^z \over z^5}\,dz$

where C is some simple closed curve about 0.

Let us evaluate this integral using a standard convergence result about integration by series. We can substitute the Taylor series for $e^z$ into the integrand. The integral then becomes

$\oint_C {1 \over z^5}\left(1+z+{z^2 \over 2!} + {z^3\over 3!} + {z^4 \over 4!} + {z^5 \over 5!} + {z^6 \over 6!} + \cdots\right)\,dz.$

Let us bring the 1/z5 factor into the series. The contour integral of the series then writes

$\oint_C \left({1 \over z^5}+{z \over z^5}+{z^2 \over 2!\;z^5} + {z^3\over 3!\;z^5} + {z^4 \over 4!\;z^5} + {z^5 \over 5!\;z^5} + {z^6 \over 6!\;z^5} + \cdots\right)\,dz$
$=\oint_C \left({1 \over\;z^5}+{1 \over\;z^4}+{1 \over 2!\;z^3} + {1\over 3!\;z^2} + {1 \over 4!\;z} + {1\over\;5!} + {z \over 6!} + \cdots\right)\,dz.$

Since the series converges uniformly on the support of the integration path, we are allowed to exchange integration and summation. The series of the path integrals then collapses to a much simpler form: recall that

$\oint_C {1 \over z^n} \,dz=0,\quad n \in \mathbb{Z},\mbox{ for }n \ne 1.$

So now the integral around C of every other term not in the form cz−1 is zero, and the integral is reduced to

$\oint_C {1 \over 4!\;z} \,dz={1 \over 4!}\oint_C{1 \over z}\,dz={1 \over 4!}(2\pi i) = {\pi i \over 12}.$

The value 1/4! is the residue of ez/z5 at z = 0, and is denoted

$\mathrm{Res}_0 {e^z \over z^5},\ \mathrm{or}\ \mathrm{Res}_{z=0} {e^z \over z^5},\ \mathrm{or}\ \mathrm{Res}(f,0).$

## Calculating residues

Suppose a punctured disk D = {z : 0 < |zc| < R} in the complex plane is given and f is a holomorphic function defined (at least) on D. The residue Res(f, c) of f at c is the coefficient a−1 of (zc)−1 in the Laurent series expansion of f around c. Various methods exist for calculating this value, and the choice of which method to use depends on the function in question, and on the nature of the singularity.

According to Cauchy's integral formula, we have:

$\operatorname{Res}(f,c) = {1 \over 2\pi i} \oint_\gamma f(z)\,dz$

where γ traces out a circle around c in a counterclockwise manner. We may choose the path γ to be a circle of radius ε around c, where ε is as small as we desire. This may be used for calculation in cases where the integral can be calculated directly, but it is usually the case that residues are used to simplify calculation of integrals, and not the other way around.

### Removable singularities

If the function f can be continued to a holomorphic function on the whole disk { y :; c| < R }, then Res(f, c) = 0. The converse is not generally true.

### Simple poles

At a simple pole c, the residue of f is given by:

$\operatorname{Res}(f,c)=\lim_{z\to c}(z-c)f(z).$

It may be that the function f can be expressed as a quotient of two functions, f(z)=g(z)/h(z), where g and h are holomorphic functions in a neighbourhood of c, with h(c) = 0 and h'(c) ≠ 0. In such a case, the above formula simplifies to:

$\operatorname{Res}(f,c) = \frac{g(c)}{h'(c)}.$

### Limit formula for higher order poles

More generally, if c is a pole of order n, then the residue of f around z = c can be found by the formula:

$\mathrm{Res}(f,c) = \frac{1}{(n-1)!} \lim_{z \to c} \frac{d^{n-1}}{dz^{n-1}}\left( (z-c)^{n}f(z) \right).$

This formula can be very useful in determining the residues for low-order poles. For higher order poles, the calculations can become unmanageable, and series expansion is usually easier. Also for essential singularities, residues often must be taken directly from series expansions.

### Residue at infinity

If the following condition is met:

$\lim_{|z| \to \infty} f(z) = 0$,

then the residue at infinity can be computed using the following formula:

$\mathrm{Res}(f, \infty) = -\lim_{|z| \to \infty} z \cdot f(z)$.

$\lim_{|z| \to \infty} f(z) = c \neq 0$,

then the residue at infinity is

$\mathrm{Res}(f, \infty) = -\lim_{|z| \to \infty} z^2 \cdot f'(z)$.

The residue at infinity is also given by:

$\mathrm{Res}(f(z), \infty) = -\mathrm{Res}\left(\frac{1}{z^2}f\left(\frac{1}{z}\right), 0\right)$.

### Series methods

If parts or all of a function can be expanded into a Taylor series or Laurent series, which may be possible if the parts or the whole of the function has a standard series expansion, then calculating the residue is significantly simpler than by other methods.

1. As a first example, consider calculating the residues at the singularities of the function

$f(z)={\sin{z} \over z^2-z}$

which may be used to calculate certain contour integrals. This function appears to have a singularity at z = 0, but if one factorizes the denominator and thus writes the function as

$f(z)={\sin{z} \over z(z-1)}$

it is apparent that the singularity at z = 0 is a removable singularity and then the residue at z = 0 is therefore 0.

The only other singularity is at z = 1. Recall the expression for the Taylor series for a function g(z) about z = a:

$g(z) = g(a) + g'(a)(z-a) + {g''(a)(z-a)^2 \over 2!} + {g'''(a)(z-a)^3 \over 3!}+ \cdots$

So, for g(z) = sin z and a = 1 we have

$\sin{z} = \sin{1} + \cos{1}(z-1)+{-\sin{1}(z-1)^2 \over 2!} + {-\cos{1}(z-1)^3 \over 3!}+\cdots.$

and for g(z) = 1/z and a = 1 we have

$\frac1z = \frac1 {(z-1)+1} = 1 - (z-1) + (z-1)^2 - (z-1)^3 + \cdots.$

Multiplying those two series and introducing 1/(z − 1) gives us

$\frac{\sin{z}} {z(z-1)} = {\sin{1} \over z-1} + (\cos{1}-\sin1) + (z-1) \left(-\frac{\sin{1}}{2!} - \cos1 + \sin1\right) + \cdots.$

So the residue of f(z) at z = 1 is sin 1.

2. The next example shows that, computing a residue by series expansion, a major role is played by the Lagrange inversion theorem. Let

$u(z):=\sum_{k\geq 1}u_k z^k$

be an entire function, and let

$v(z):=\sum_{k\geq 1}v_k z^k$

with positive radius of convergence, and with $\textstyle v_1\neq 0$. So $\textstyle v(z)$ has a local inverse $\textstyle V(z)$ at 0, and $\textstyle u(1/V(z))$ is meromorphic at 0. Then we have:

$\mathrm{Res_0}\big(u(1/V(z))\big)= \sum_{k=0}^{\infty} ku_k v_k$.

Indeed,

$\mathrm{Res_0}\big(u(1/V(z))\big)=\mathrm{Res_0}\Big(\sum_{k\geq 1}u_k V(z)^{-k}\Big)=\sum_{k\geq 1} u_k \mathrm{Res_0}\big(V(z)^{-k}\big)$

because the first series converges uniformly on any small circle around 0. Using the Lagrange inversion theorem

$\mathrm{Res_0}\big(V(z)^{-k}\big)=kv_k$,

and we get the above expression. For example, if $u(z)=z+z^2$ and also $v(z)=z+z^2$, then $V(z)=\frac{2z}{1+\sqrt{1+4z}}$ and $u(1/V(z))=\frac{1+\sqrt{1+4z}}{2z}+\frac{1+2z+\sqrt{1+4z}}{2z^2}$. The first term contributes 1 to the residue, and the second term contributes 2 since it is asymptotic to $1/z^2+2/z$.

Note that, with the corresponding stronger symmetric assumptions on $\textstyle u(z)$ and $\textstyle v(z)$, it also follows

$\mathrm{Res_0}\big(u(1/V)\big)=\mathrm{Res_0}\big(v(1/U)\big)$ ,

where $\textstyle U(z)$ is a local inverse of $\textstyle u(z)$ at 0.