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\colon \mathbb{C} \smallsetminus \{a_k\}_k \rightarrow \mathbb{C}$$ that is holomorphic except at the discrete points {ak}k, 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)$$, $$\operatorname{Res}_a(f)$$, $$\mathop{\operatorname{Res}}_{z=a}f(z)$$ or $$\mathop{\operatorname{res}}_{z=a}f(z)$$, 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 concept can be used to provide contour integration values of certain contour integral problems considered in the residue theorem. According to the residue theorem, for a meromorphic function $$f$$, the residue at point $$a_k$$ is given as:


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

where $$\gamma$$ is a positively oriented simple closed curve around $$a_k$$ and not including any other singularities on or inside the curve.

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$$.

Contour integral of a monomial
Computing the residue of a monomial


 * $$\oint_C z^k \, dz$$

makes most residue computations easy to do. Since path integral computations are homotopy invariant, we will let $$C$$ be the circle with radius $$1$$ going counter clockwise. Then, using the change of coordinates $$z \to e^{i\theta}$$ we find that


 * $$dz \to d(e^{i\theta}) = ie^{i\theta} \, d\theta$$

hence our integral now reads as



\oint_C z^k dz = \int_0^{2\pi} i e^{i(k+1)\theta} \, d\theta = \begin{cases} 2\pi i & \text{if } k = -1, \\ 0 & \text{otherwise}. \end{cases} $$ Thus, the residue of $$z^k$$ is 1 if integer $$k=-1$$ and 0 otherwise.

Generalization to Laurent series
If a function is expressed as a Laurent series expansion around c as follows:$$f(z) = \sum_{n=-\infty}^\infty a_n(z-c)^n.$$Then, the residue at the point c is calculated as:$$\operatorname{Res}(f,c) = {1 \over 2\pi i} \oint_\gamma f(z)\,dz = {1 \over 2\pi i} \sum_{n=-\infty}^\infty \oint_\gamma a_n(z-c)^n \,dz = a_{-1} $$using the results from contour integral of a monomial for counter clockwise contour integral $$\gamma$$ around a point c. Hence, if a Laurent series representation of a function exists around c, then its residue around c is known by the coefficient of the $$(z-c)^{-1}$$ term.

Application in residue theorem
For a meromorphic function $$f$$, with a finite set of singularities within a positively oriented simple closed curve $$C$$ which does not pass through any singularity, the value of the contour integral is given according to residue theorem, as:$$ \oint_C f(z)\, dz = 2\pi i \sum_{k=1}^n \operatorname{I}(C, a_k) \operatorname{Res}(f, a_k). $$where $$\operatorname{I}(C, a_k)$$, the winding number, is $$1$$ if $$a_k$$ is in the interior of $$C$$ and $$0$$ if not, simplifying to:$$ \oint_\gamma f(z)\, dz = 2\pi i \sum \operatorname{Res}(f, a_k) $$where $$a_k$$ are all isolated singularities within the contour $$C$$.

Calculation of residues
Suppose a punctured disk D = {z : 0 < |z &minus; c| < 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&minus;1 of (z &minus; c)&minus;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 the residue theorem, 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 and does not pass through or contain other singularities within it. We may choose the path γ to be a circle of radius ε around c. Since ε can be as small as we desire it can be made to contain only the singularity of c due to nature of isolated singularities. 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
If c is a simple pole of f, the residue of f is given by:


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

If that limit does not exist, then f instead has an essential singularity at c. If the limit is 0, then f is either analytic at c or has a removable singularity there. If the limit is equal to infinity, then the order of the pole is higher than 1.

It may be that the function f can be expressed as a quotient of two functions, $$f(z)=\frac{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, L'Hôpital's rule can be used to simplify the above formula to:



\begin{align} \operatorname{Res}(f,c) & =\lim_{z\to c}(z-c)f(z) = \lim_{z\to c}\frac{z g(z) - cg(z)}{h(z)} \\[4pt] & = \lim_{z\to c}\frac{g(z) + z g'(z) - cg'(z)}{h'(z)} = \frac{g(c)}{h'(c)}. \end{align} $$

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:


 * $$ \operatorname{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. For essential singularities, no such simple formula exists, and residues must usually be taken directly from series expansions.

Residue at infinity
In general, the residue at infinity is defined as:


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

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:


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

If instead


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

then the residue at infinity is


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

For functions meromorphic on the entire complex plane with finitely many singularities, the sum of the residues at the (necessarily) isolated singularities plus the residue at infinity is zero, which gives:


 * $$ \operatorname{Res}(f(z), \infty) = -\sum_k \operatorname{Res} (f(z), a_k).$$

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. The residue of the function is simply given by the coefficient of $$(z-c)^{-1}$$ in the Laurent series expansion of the function.

Example 1
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



\begin{align} & \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 \\[4pt] = {} & \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. \end{align} $$

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 because of the previous computation. So now the integral around C of every other term not in the form cz&minus;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


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

Example 2
As a second 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$$ \frac{1}{z} = \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 - \sin 1) + (z-1) \left(-\frac{\sin 1}{2!} - \cos1 + \sin 1\right) + \cdots.$$So the residue of f(z) at z = 1 is sin 1.

Example 3
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 $ v_1 \neq 0$. So $ v(z)$ has a local inverse $ V(z)$  at 0, and $ u(1/V(z))$  is meromorphic at 0. Then we have:$$\operatorname{Res}_0 \big(u(1/V(z))\big) = \sum_{k=0}^\infty ku_k v_k. $$Indeed,$$\operatorname{Res}_0\big(u(1/V(z))\big) = \operatorname{Res}_0 \left(\sum_{k\geq 1} u_k V(z)^{-k}\right) = \sum_{k\geq 1} u_k \operatorname{Res}_0 \big(V(z)^{-k}\big)$$because the first series converges uniformly on any small circle around 0. Using the Lagrange inversion theorem$$\operatorname{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 $ u(z)$ and $ v(z)$, it also follows$$\operatorname{Res}_0 \left(u(1/V)\right) = \operatorname{Res}_0\left(v(1/U)\right),$$where $ U(z)$  is a local inverse of $ u(z)$  at 0.