Let f be holomorphic in a punctured neighbourhood of z0, with Laurent expansion f=∑n=−∞+∞an(z−z0)n.
Definition. The residue of f at z0 is the coefficient a−1:
Res(f,z0)=a−1=2πi1∮γf(z)dz,
with γ a simple closed counterclockwise curve around z0 and no other singularity.
Why a−1: ∮(z−z0)ndz is 0 for n=−1 and 2πi for n=−1. Integrating the Laurent series term by term (allowed: uniform convergence on the circle) only a−1(z−z0)−1 survives, giving 2πia−1.
Examples: z(z−2)1=−2z1⋅1−z/21=−2z1−41−⋯, so Res(f,0)=−21. e1/z=∑n!zn1 has a−1=1, i.e. Res(e1/z,0)=1, although the singularity is essential.
Computing residues at poles
Simple poles.Res(f,z0)=z→z0lim(z−z0)f(z).
If f=QP with P(z0)=0, Q(z0)=0, Q′(z0)=0: Res(f,z0)=Q′(z0)P(z0). Example: z2−11 has poles ±1; with Q′=2z: Res(f,1)=21, Res(f,−1)=−21, the coefficients of z−11 and z+11 in 21(z−11−z+11).
Poles of order n.Res(f,z0)=(n−1)!1z→z0limdzn−1dn−1[(z−z0)nf(z)].
Example: f=z3ez at 0, n=3: z3f=ez, second derivative ez, so Res=2!1⋅1=21, the coefficient of z1 in z31+z21+2z1+⋯.
Example with a double pole: f=z2(z−1)1. At 0 (n=2): z2f=z−11, derivative −(z−1)21, equal to −1 at 0: Res(f,0)=−1. At 1: Res=limz21=1. The sum of residues is 0.
The residue theorem
Theorem. Let γ be a simple closed counterclockwise curve in a simply connected domain, f analytic inside and on γ except for finitely many isolated singularities z1,…,zk inside γ. Then
∮γf(z)dz=2πij=1∑kRes(f,zj).
It generalizes Cauchy's integral formula. Why: surround each interior singularity with a small circle; by deformation of paths (the function is holomorphic in the region between γ and the circles, with the inner boundaries oriented backwards) the integral over γ is the sum of the integrals over the circles, each equal to 2πiRes(f,zj).
Examples:
∮∣z∣=1zezdz=2πi (residue e0=1).
∮∣z∣=1z(z−2)dz: singularities 0 and 2; ∣0∣≤1 is inside, ∣2∣>1 outside. Res(f,0)=limz−21=−21, so the integral is 2πi(−21)=−πi.
∮∣z∣=2z2(z−1)dz: both poles inside, 2πi(−1+1)=0. On ∣z∣=21 only z=0 is inside: −2πi.
Real improper integrals of rational functions
For R(x)=Q(x)P(x) with (1) Q=0 on R and (2) degQ≥degP+2:
∫−∞+∞Q(x)P(x)dx=2πiImzj>0∑Res(QP,zj).
Method: integrate f=QP on the closed curve made of [−R,R] and the upper semicircle γR. Why the arc disappears: for ∣z∣=R large ∣f∣≤R2C and the arc has length πR, so by the estimate ML its integral is at most RCπ→0. For large R the curve contains all poles of the upper half-plane.
Example.∫−∞+∞x2+1dx: f=(z−i)(z+i)1, poles ±i, only i in the upper half-plane; Res(f,i)=2i1; I=2πi⋅2i1=π, matching [arctanx]−∞+∞=π.
Double pole.∫−∞+∞(x2+1)2dx: double pole at i, (z−i)2f=(z+i)−2, derivative −2(z+i)−3, equal at i to (2i)3−2=4i1. J=2πi⋅4i1=2π.
Residues at essential singularities
There is no limit formula: the residue is the coefficient of z1 of the Laurent series, found by multiplying the series of the factors.
Example.f=(z−1)2e1/z has an essential singularity at 0 and a double pole at 1.
At 1 (n=2): (z−1)2f=e1/z, derivative −z2e1/z, equal to −e at 1: Res(f,1)=−e.
At 0, for 0<∣z∣<1: e1/z=∑k≥0k!z−k and (1−z)21=∑n≥0(n+1)zn. The product has terms zn−k; z−1 arises for n=k−1 (k≥1): ∑k≥1k!k=∑k≥1(k−1)!1=e. So Res(f,0)=e.
The sum of residues is e−e=0, consistent with f∼z21 at infinity.
Trigonometric integrals
∫02πR(cosθ,sinθ)dθ, with R rational, becomes an integral on ∣z∣=1 with z=eiθ:
cosθ=2z+z−1,sinθ=2iz−z−1,dθ=izdz.
Compute with residues using only poles with ∣z∣<1.
Example.I=∫02π2+cosθdθ: 2+cosθ=2zz2+4z+1, so I=∮∣z∣=1z2+4z+12z⋅izdz=i2∮∣z∣=1z2+4z+1dz. Roots −2±3; only z0=−2+3≈−0.27 is inside. Simple pole, Q′=2z+4: Res=2z0+41=231. Then I=i2⋅2πi⋅231=32π. (The factor i always cancels: if an i remains there is an error.)
Integrals with exponentials: Jordan's lemma
For ∫−∞+∞R(x)cos(ax)dx or ∫R(x)sin(ax)dx with a>0, consider ∫R(x)eiaxdx, whose real and imaginary parts are the wanted integrals (eiax=cosax+isinax).
Jordan's lemma. Let a>0 and f holomorphic in the upper half-plane except finitely many singularities, with f(z)→0 as ∣z∣→∞ (Imz≥0). Then the integral of f(z)eiaz over the semicircle z=Reiθ, θ∈[0,π], tends to 0 as R→∞.
Here f→0 suffices: for QP it is enough that degQ≥degP+1 (not +2), because on the semicircle ∣eiaz∣=e−aRsinθ is small except near θ=0,π. If Q has no real zeros:
∫−∞+∞R(x)eiaxdx=2πiImzj>0∑Res(R(z)eiaz,zj).
(For a<0 close in the lower half-plane, with a minus sign.)
Example.∫x2+1cosxdx: f=z2+1eiz, simple pole i in the upper half-plane, Res=2iei⋅i=2ie−1, so ∫x2+1eixdx=2πi⋅2ie−1=eπ. Real part: ∫x2+1cosxdx=eπ; imaginary part: ∫x2+1sinxdx=0 (odd integrand).
Two poles in the upper half-plane.∫x4+1dx: poles are the fourth roots of −1, eiπ/4,e3iπ/4,e5iπ/4,e7iπ/4; the first two lie in the upper half-plane. At a simple pole zj: 4zj31=4zj4zj=−4zj (since zj4=−1). Sum: −4eiπ/4+e3iπ/4=−4i2 (real parts cancel, imaginary parts are 22 each). The integral is 2πi(−4i2)=2π2=2π.
Logarithmic derivative and the argument principle
Near a zero of order k, f=(z−z0)kg gives ff′=z−z0k+gg′ with gg′ holomorphic: a simple pole with residue k. Near a pole of order m, f=(z−z0)−mh gives residue −m. So the residue of ff′ is the order of f, positive at zeros and negative at poles.
Theorem (argument principle). If f has no zeros or poles on the simple closed counterclockwise curve γ,
2πi1∮γf(z)f′(z)dz=N−P,
where N,P are the numbers of zeros and poles inside γ counted with multiplicity.
Proof: apply the residue theorem to ff′, whose only singular points are zeros and poles of f. Geometrically N−P is the number of times f∘γ winds around 0. A clockwise curve reverses the sign.
Examples.
z2+1 on ∣z∣=2: both zeros ±i inside, N−P=2, ∮ff′=4πi (check: z2+12z=z−i1+z+i1).
f=z(z+2)(z−1)2: double zero at 1, simple poles at 0 and −2. On ∣z∣=3: N−P=2−2=0; on ∣z∣=21 (only 0): N−P=−1, integral −2πi; on ∣z−1∣=21 (only the zero 1): N−P=2, integral 4πi.
Procedure. Find zeros and poles (simplifying fractions); decide which are inside the curve (for ∣z−c∣=R compare ∣zj−c∣<R); compute N−P with multiplicities and multiply by 2πi with the orientation sign.
Common mistakes
Residue of an essential singularity by a limit: for e1/z or coshz1 there is no formula; multiply the series and read the coefficient of z1.
Trigonometric integrals: including poles with ∣z∣>1, or forgetting the factor iz1 from dθ.
Summing residues of all poles instead of only those inside the curve (or in the upper half-plane for real integrals).
Using the simple-pole formula for a higher-order pole (e.g. a squared factor in the denominator).
Orientation: the theorem needs counterclockwise travel; clockwise means multiply by −1.
Counting removable singularities as zeros or poles, ignoring multiplicity, or counting points on the curve in the argument principle.
Versione ripasso
Residue.Res(f,z0)=a−1=2πi1∮γfdz (coefficient of (z−z0)−1; only that term survives integration on a circle).
Simple pole: limz→z0(z−z0)f(z); for QP: Q′(z0)P(z0) (z2−11: residues ±21 at ±1).
Pole of order n: (n−1)!1limdzn−1dn−1[(z−z0)nf] (z3ez at 0: 21; z2(z−1)1: −1 at 0, 1 at 1).
Theorem.γ simple closed counterclockwise, finitely many singularities zj inside:
∮γfdz=2πij∑Res(f,zj).
Real integrals of rational functions (Q=0 on R, degQ≥degP+2):
∫−∞+∞QPdx=2πiImzj>0∑Res.
The arc is bounded by RCπ→0. ∫x2+1dx=2πi⋅2i1=π; ∫(x2+1)2dx=2π (double pole at i, derivative of (z+i)−2 gives 4i1).
Essential singularities. Multiply the series. f=(z−1)2e1/z: Res(f,1)=−e; at 0, e1/z=∑k!z−k and (1−z)21=∑(n+1)zn give ∑k≥1k!k=e.
Trigonometric integrals.z=eiθ: cosθ=2z+z−1, sinθ=2iz−z−1, dθ=izdz; poles with ∣z∣<1 only. ∫02π2+cosθdθ=i2∮z2+4z+1dz, interior pole −2+3 with residue 231: 32π.
Jordan's lemma.a>0, f→0 at infinity in the upper half-plane: the arc integral of feiaz tends to 0 (degQ≥degP+1 suffices).
∫R(x)eiaxdx=2πiImzj>0∑Res(R(z)eiaz,zj).∫x2+1cosxdx=eπ (residue 2ie−1; sine part 0). ∫x4+1dx=2π (poles eiπ/4,e3iπ/4, residues −4zj, sum −4i2).
Argument principle. Residue of ff′ is the order (k at a zero of order k, −m at a pole of order m):
2πi1∮γff′dz=N−P.z2+1 on ∣z∣=2: 4πi. f=z(z+2)(z−1)2: ∣z∣=3: 0; ∣z∣=21: −2πi; ∣z−1∣=21: 4πi. Procedure: find zeros and poles (simplify first), keep those inside, multiply N−P by 2πi.
Typical errors. Limit formula for essential singularities; poles with ∣z∣>1 or missing iz1; summing residues outside the curve or lower half-plane; simple-pole formula for higher order; wrong orientation sign; counting removable singularities, multiplicity, points on the curve.