maths.freeComplex Analysis › Integration › Residue theorem

Residue theorem

In complex analysis, the residue theorem, sometimes called Cauchy's residue theorem, is a powerful tool to evaluate line integrals of analytic functions over closed curves; it can often be used to compute real integrals…

Residue theorem

In complex analysis, the residue theorem, sometimes called Cauchy's residue theorem, is a powerful tool to evaluate line integrals of analytic functions over closed curves; it can often be used to compute real integrals and infinite series as well. It generalizes the Cauchy integral theorem and Cauchy's integral formula. The residue theorem should not be confused with special cases of the generalized Stokes' theorem; however, the latter can be used as a component of its proof.

Statement of Cauchy's residue theorem

The statement is as follows:

The relationship of the residue theorem to Stokes' theorem is given by the Jordan curve theorem. The general plane curve γ must first be reduced to a set of simple closed curves \(\{\gamma_i\}\) whose total is equivalent to \(\gamma\) for integration purposes; this reduces the problem to finding the integral of \(f\, dz\) along a Jordan curve \(\gamma_i\) with interior ⁠\(V\)⁠. The requirement that \(f\) be holomorphic on \(U_0 = U \smallsetminus \{a_k\}\) is equivalent to the statement that the exterior derivative \(d(f\, dz) = 0\) on ⁠\(U_0\)⁠. Thus if two planar regions \(V\) and \(W\) of \(U\) enclose the same subset \(\{a_j\}\) of ⁠\(\{a_k\}\)⁠, the regions \(V \smallsetminus W\) and \(W \smallsetminus V\) lie entirely in ⁠\(U_0\)⁠, hence \[\int_{V \smallsetminus W} d(f \, dz) - \int_{W \smallsetminus V} d(f \, dz)\] is well-defined and equal to zero. Consequently, the contour integral of \(f\, dz\) along \(\gamma_j = \partial V\) is equal to the sum of a set of integrals along paths ⁠\(\gamma_j\)⁠, each enclosing an arbitrarily small region around a single \(a_j\), the residues of \(f\) (up to the conventional factor \(2\pi i\) at ⁠\(\{a_j\}\)⁠. Summing over ⁠\(\{\gamma_j\}\)⁠, we recover the final expression of the contour integral in terms of the winding numbers ⁠\(\{\operatorname{I}(\gamma, a_k)\}\)⁠.

In order to evaluate real integrals, the residue theorem is used in the following manner: the integrand is extended to the complex plane and its residues are computed (which is usually easy), and a part of the real axis is extended to a closed curve by attaching a half-circle in the upper or lower half-plane, forming a semicircle. The integral over this curve can then be computed using the residue theorem. Often, the half-circle part of the integral will tend towards zero as the radius of the half-circle grows, leaving only the real-axis part of the integral, the one we were originally interested in.

Calculation of residues

Suppose a punctured disk ⁠D = \{ z : 0 < \vert z-c \vert < R \}\)⁠ in the complex plane is given and ⁠\(f\)⁠ is a holomorphic function defined (at least) on ⁠\(D\)⁠. The residue ⁠\(\operatorname{Res}(f, c)\)⁠ of ⁠\(f\)⁠ at ⁠\(c\)⁠ is the coefficient ⁠\(a_{-1}\)⁠ of ⁠\((z - c)^{-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 ⁠\(\gamma\)⁠ 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 ⁠\(\gamma\)⁠ to be a circle of radius ⁠\(\varepsilon\)⁠ around ⁠\(c\)⁠. Since ⁠\(\varepsilon\)⁠ 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 ⁠\vert y - c \vert < R\)⁠, then ⁠\(\operatorname{Res}(f,c) = 0\)⁠. The converse is not in general 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)={g(z)}/{h(z)}\)⁠, where ⁠\(g\)⁠ and ⁠\(h\)⁠ are holomorphic functions in a neighbourhood of ⁠\(c\)⁠, with ⁠\(h(c) = 0\)⁠ and ⁠\(h'(c) \ne 0\)⁠. In such a case, L'Hôpital's rule can be used to simplify the above formula to:

\(\begin{aligned} \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{aligned}\)

Limit formula for higher-order poles

More generally, if ⁠\(c\)⁠ is a pole of order ⁠\(p\)⁠, then the residue of ⁠\(f\)⁠ around ⁠\(z = c\)⁠ can be found by the formula:

\(\operatorname{Res}(f,c) = \frac{1}{(p-1)!} \lim_{z \to c} \frac{d^{p-1}}{dz^{p-1}} \left( (z-c)^p 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 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 f'(z).\)

For functions that are 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.

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)={g(z)}/{h(z)}\)⁠, where ⁠\(g\)⁠ and ⁠\(h\)⁠ are holomorphic functions in a neighbourhood of ⁠\(c\)⁠, with ⁠\(h(c) = 0\)⁠ and ⁠\(h'(c) \ne 0\)⁠. In such a case, L'Hôpital's rule can be used to simplify the above formula to:

\(\begin{aligned} \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{aligned}\)

Limit formula for higher-order poles

More generally, if ⁠\(c\)⁠ is a pole of order ⁠\(p\)⁠, then the residue of ⁠\(f\)⁠ around ⁠\(z = c\)⁠ can be found by the formula:

\(\operatorname{Res}(f,c) = \frac{1}{(p-1)!} \lim_{z \to c} \frac{d^{p-1}}{dz^{p-1}} \left( (z-c)^p 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 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 f'(z).\)

For functions that are 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.

An integral along the real axis

The integral \[\int_{-\infty}^\infty \frac{e^{itx}}{x^2+1}\,dx\]

arises in probability theory when calculating the characteristic function of the Cauchy distribution. It resists the techniques of elementary calculus but can be evaluated by expressing it as a limit of contour integrals.

Suppose t > 0 and define the contour C that goes along the real line from −a to a and then counterclockwise along a semicircle centered at 0 from a to −a. Take a to be greater than 1, so that the imaginary unit i is enclosed within the curve. Now consider the contour integral \[\int_C {f(z)}\,dz = \int_C \frac{e^{itz}}{z^2+1}\,dz.\]

Since e is an entire function (having no singularities at any point in the complex plane), this function has singularities only where the denominator z + 1 is zero. Since z + 1 = (z + i)(zi), that happens only where z = i or z = −i. Only one of those points is in the region bounded by this contour. Because f(z) is \[\begin{aligned} \frac{e^{itz}}{z^2+1} & =\frac{e^{itz}}{2i}\left(\frac{1}{z-i}-\frac{1}{z+i}\right) \\ & =\frac{e^{itz}}{2i(z-i)} -\frac{e^{itz}}{2i(z+i)} , \end{aligned}\] the residue of f(z) at z = i is \[\operatorname{Res}_{z=i}f(z)=\frac{e^{-t}}{2i}.\]

According to the residue theorem, then, we have \[\int_C f(z)\,dz=2\pi i\cdot\operatorname{Res}\limits_{z=i}f(z)=2\pi i \frac{e^{-t}}{2i} = \pi e^{-t}.\]

The contour C may be split into a straight part and a curved arc, so that \[\int_{\mathrm{straight}} f(z)\,dz+\int_{\mathrm{arc}} f(z)\,dz=\pi e^{-t}\] and thus \[\int_{-a}^a f(z)\,dz =\pi e^{-t}-\int_{\mathrm{arc}} f(z)\,dz.\]

Using some estimations, we have \[\left|\int_{\mathrm{arc}}\frac{e^{itz}}{z^2+1}\,dz\right| \leq \pi a \cdot \sup_{\text{arc}} \left| \frac{e^{itz}}{z^2+1} \right| \leq \pi a \cdot \sup_{\text{arc}} \frac{1}{|z^2+1|} \leq \frac{\pi a}{a^2 - 1},\] and \[\lim_{a \to \infty} \frac{\pi a}{a^2-1} = 0.\]

Condensed: the full section is in Wikipedia.

Evaluating zeta functions

The fact that π cot(πz) has simple poles with residue 1 at each integer can be used to compute the sum \[\sum_{n=-\infty}^\infty f(n).\]

Consider, for example, f(z) = z. Let ΓN be the rectangle that is the boundary of [−N − ⁠1/2⁠, N + ⁠1/2⁠] with positive orientation, with an integer N. By the residue formula, \[\frac{1}{2 \pi i} \int_{\Gamma_N} f(z) \pi \cot(\pi z) \, dz = \operatorname{Res}\limits_{z = 0} + \sum_{n = -N \atop n\ne 0}^N n^{-2}.\]

The left-hand side goes to zero as N → ∞ since \(|\cot(\pi z)|\) is uniformly bounded on the contour, thanks to using \(x = \pm \left(\frac 12 + N\right)\) on the left and right side of the contour, and so the integrand has order \(O(N^{-2})\) over the entire contour. On the other hand, \[\frac{z}{2} \cot\left(\frac{z}{2}\right) = 1 - B_2 \frac{z^2}{2!} + \cdots\] where the Bernoulli number ⁠\(B_2 = \frac{1}{6}\)⁠.

(In fact, ⁠z/2⁠ cot(⁠z/2⁠) = ⁠iz/1 − e⁠ − ⁠iz/2⁠.) Thus, the residue Resz=0 is −⁠π/3⁠. We conclude: \[\sum_{n = 1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}\] which is a proof of the Basel problem.

The same argument works for all \(f(x) = x^{-2n}\) where \(n\) is a positive integer, giving us\[\zeta(2n) = \frac{(-1)^{n+1}B_{2n}(2\pi)^{2n}}{2(2n)!}.\] The trick does not work when ⁠\(f(x) = x^{-2n-1}\)⁠, since in this case, the residue at zero vanishes, and we obtain the useless identity ⁠\(0 + \zeta(2n+1) - \zeta(2n+1) = 0\)⁠.

Evaluating Eisenstein series

The same trick can be used to establish the sum of the Eisenstein series:\[\pi \cot(\pi z) = \lim_{N \to \infty} \sum_{n=-N}^N (z - n)^{-1}.\]

Proof

Pick an arbitrary ⁠\(w \in \mathbb C\setminus \Z\)⁠. As above, define \[g(z) := \frac{1}{w-z} \pi \cot(\pi z)\]

By the Cauchy residue theorem, for all \(N\) large enough such that \(\Gamma_N\) encircles ⁠\(w\)⁠, \[\frac{1}{2 \pi i} \oint_{\Gamma_N} g(z) dz = -\pi \cot(\pi w) + \sum_{n=-N}^N \frac{1}{w-n}\]

It remains to prove the integral converges to zero. Since \(\pi\cot(\pi z) /z\) is an even function, and \(\Gamma_N\) is symmetric about the origin, we have ⁠\(\oint_{\Gamma_N} \pi\cot(\pi z) /z dz = 0\)⁠, and so \[\oint_{\Gamma_N} g(z) dz = \oint_{\Gamma_N} \left(\frac 1z + \frac{1}{w-z}\right) \pi\cot(\pi z)dz = -w \oint_{\Gamma_N} \frac{1}{z(z-w)} \pi\cot(\pi z) dz = O(1/N)\]

Haddaad Ma jiro xisaabis oo ku nool midkan, laakiin qaybaha ka mid ah waa la xisaabi karaa. Ku raaxayso mid ka hooseeya, ama ku qor adiga kuu gaar ah.

Ku hay shaqadaada

A xisaab bilaash ah oo ku daray qoraalada waxbarasho kasta, diiwaanka waxa aad dhamaatay, dhibaatooyinka aad xal u tahay meel kaliya, iyo macallinka aad weydiisan kartaa oo ku saabsan bogga. Xisaabta oo keliya waa u furan yahay qof kasta, la diiwaan geliyey ama aan.

Ku soo biir Ku soo gal

Calaamadaha la isticmaalay halkan

Taab calaamad kasta oo loogu talagalay qeexidda buuxda, sawir, iyo waxa xarfaha oo dhan ka mid ah ka dhigan tahay.

Su'aalaha dadku waydiiyaan

Why is complex differentiability so much stronger than real?

The limit must be the same from every direction in the plane, not just two. That forces the Cauchy-Riemann equations, which in turn force infinitely many derivatives and a convergent Taylor series.

What is a residue?

The coefficient of 1/(z − a) in the Laurent series at a singularity a. The residue theorem says a contour integral equals 2πi times the sum of the residues inside, which evaluates many real integrals in one line.

Qaybaha ee boggaan waxaa la beddelay ka Wikipedia (CC BY-SA 4.0). Condensed iyo dib-oo halkan lagu sharaxay; khaladaadka waa inoo.

In ka badan Complex Analysis