Skip to content
GATEiit

GATE EC · Engineering Mathematics

Residue theorem

Singularities and residues of a complex function, the shortcuts for computing residues at simple and higher-order poles, the residue theorem for closed contours, and its use for real integrals, as GATE asks them.

Before you start

Concept notes

1. Singularities and the residue

A point a is an isolated singularity of f if f is analytic in a punctured disc 0<∣z−a∣<r but not at a. There f has a Laurent series

f(z)=∑n=0∞cn(z−a)n+∑n=1∞bn(z−a)n

The second sum is the principal part. Its shape classifies the singularity:

Type Principal part Example at z=0
Removable none sin⁡zz
Pole of order m finite, last term bm/(z−a)m ezz3 (order 3)
Essential infinitely many terms e1/z, sin⁡(1/z)

A pole of order 1 is a simple pole. For f=p/q with p(a)≠0, a zero of order m of q at a is a pole of order m of f. If p(a)=0 too, cancel the common factor first: z−1(z−1)(z+2) has a removable singularity at 1.

The residue of f at a is the coefficient b1 of 1z−a:

Resz=af(z)=b1=12πi∮Cf(z) dz

where C is a small circle around a enclosing no other singular point. It is the only Laurent coefficient that survives integration, because ∮(z−a)ndz=0 for every integer n≠−1.

At a removable singularity the residue is 0. A pole can still have residue 0 (for example 1/z2 at 0).

2. Computing residues quickly

Situation Residue at a
Simple pole lim⁡z→a(z−a)f(z)
f=pq, p(a)≠0, q(a)=0, q′(a)≠0 p(a)q′(a)
Pole of order m 1(m−1)!lim⁡z→adm−1dzm−1[(z−a)mf(z)]
Essential singularity Read b1 from the Laurent series
Removable singularity 0

Worked shortcuts:

  • 1z2+1 at z=i: pq′=12i=−i2.
  • ez(z−1)2 at z=1 (order 2): ddzez∣z=1=e.
  • cot⁡z=cos⁡zsin⁡z at z=0: cos⁡0cos⁡0=1.
  • e1/z at z=0: 1+1z+12z2+⋯, so the residue is 1.
  • 1−cos⁡zz3 at 0: z2/2−z4/24+⋯z3, so the residue is 12 (only a simple pole, despite the z3).

When the numerator also vanishes at a, expand in series instead of trusting the apparent order of the pole.

3. The residue theorem

Residue theorem. If f is analytic on and inside a simple closed contour C except at finitely many points a1,…,ak inside C, then, with C anticlockwise,

∮Cf(z) dz=2πi∑j=1kResz=ajf(z)

It follows from deforming C onto small circles around each aj (Cauchy's theorem) and the definition of the residue. Cauchy's theorem is the special case with no singular points inside, and Cauchy's integral formula is the case of one simple or higher-order pole.

Procedure:

  1. Find all singular points of f.
  2. Keep only those strictly inside C (for ∣z−c∣=r: ∣a−c∣<r). A pole on C makes the integral improper; GATE avoids this.
  3. Find each residue, add, multiply by 2πi. Use −2πi for a clockwise contour.

Residue at infinity. The sum of the residues at all finite singular points plus the residue at ∞ is zero. When the contour encloses all finite singular points and f=p/q with deg⁡q≥deg⁡p+2, the integral is therefore zero. When deg⁡q=deg⁡p+1, the sum of finite residues is the ratio of leading coefficients.

Re zIm z0132|z| = 2Poles at 0 and 1 count; the pole at 3 does notIm zi2i−i−2i−RRarcOnly upper half-plane poles count
Left: only poles inside the contour contribute. Right: the closed upper semicircle used for real integrals from minus to plus infinity.

4. Real integrals by residues

Type 1: ∫02πR(cos⁡θ,sin⁡θ) dθ. Put z=eiθ on the unit circle:

cos⁡θ=z+z−12,sin⁡θ=z−z−12i,dθ=dziz

The integral becomes a contour integral over ∣z∣=1; add the residues at poles inside the unit circle. A standard result:

∫02πdθa+bcos⁡θ=2πa2−b2,a>∣b∣

(the same holds with sin⁡θ in place of cos⁡θ).

Type 2: ∫−∞∞P(x)Q(x)dx, with Q having no real zeros and deg⁡Q≥deg⁡P+2. Close the real axis with a large semicircle in the upper half-plane. The integral over the arc goes to zero as R→∞ (ML inequality), so

∫−∞∞P(x)Q(x)dx=2πi∑Res (upper half-plane poles)

Example: ∫−∞∞dxx2+a2=2πi⋅12ia=πa for a>0.

The result of a real integral must be real. If your answer has an i left over, a residue or the 2πi factor is wrong.

Formulas to remember

Residue theoremSum over singular points inside C, anticlockwise
∮Cf(z) dz=2πi∑Resz=ajf(z)
Simple pole
Resz=af=lim⁡z→a(z−a)f(z)
Simple pole of p/q
Resz=ap(z)q(z)=p(a)q′(a)
Pole of order m
Resz=af=1(m−1)!lim⁡z→adm−1dzm−1[(z−a)mf(z)]
Trigonometric integrala>∣b∣
∫02πdθa+bcos⁡θ=2πa2−b2
Rational integral over the real linedeg⁡Q≥deg⁡P+2, no real zeros of Q
∫−∞∞P(x)Q(x) dx=2πi∑Im a>0Res PQ
Substitution for type 1
z=eiθ,  cos⁡θ=z+z−12,  dθ=dziz

Common mistakes

  • Adding residues of poles that lie outside the contour; check each pole's distance from the circle's centre.
  • Using the simple-pole formula at a pole of order 2 or more; use the derivative formula or a series.
  • Judging the order of a pole from the denominator alone when the numerator also vanishes there, as in (1 - cos z)/z^3.
  • For integrals over the whole real line, including lower half-plane poles or forgetting the condition deg Q >= deg P + 2.
  • In the z = e^(i theta) substitution, dropping the 1/(iz) factor from d theta.
  • Ending a real integral with an imaginary answer; it signals a lost factor of i.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Two simple poles inside the contour

numerical

Evaluate ∮∣z∣=2z+1z(z−1) dz (anticlockwise).

  1. Step 1: Locate the poles.

    Try it on paper first.

Example 2: A double pole

numerical

Evaluate ∮∣z∣=2ez(z−1)2 dz (anticlockwise).

  1. Step 1: Identify the singularity.

    Try it on paper first.

Example 3: A real integral over the whole line

numerical

Evaluate ∫−∞∞dx(x2+1)(x2+4).

  1. Step 1: Check the degree condition and find the upper half-plane poles.

    Try it on paper first.

Example 4: A trigonometric integral on the unit circle

numerical

Evaluate ∫02πdθ2+cos⁡θ using residues.

  1. Step 1: Substitute $z = e^{i\theta}$.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.