Residue Theorem for CSIR NET and GATE Maths: Pole Check
The residue theorem says a closed contour integral equals 2πi times the sum of the residues at the poles inside the contour. Everything then depends on which poles the contour encloses.
By Sunil Bansal, Founder · Updated 31 Oct 2026

Key takeaways
- The residue theorem gives ∮ f(z) dz = 2πi × (sum of residues of f at the poles inside the contour). Poles outside the contour add nothing.
- Run four checks before computing: classify each singularity, list the ones strictly inside, pick the right residue rule, then sum only those residues.
For real integrals, close the line with a large semicircle when the integrand is a fast-decaying rational function. Use a keyhole contour when the integrand has a square root or similar branch, and for a trigonometric integral over [0, 2π] substitute z = e^{iθ} and integrate round the unit circle.
- GATE MA and CSIR NET both examine residues. The CUET PG Mathematics (SCQP19) syllabus stops short of them.
In this article
- 1What does the residue theorem say, and how do you find a residue?
- 2How do you decide which poles count? A four-step pole check
- 3Have you classified every singularity?
- 4Is each pole strictly inside the contour?
- 5Does the residue rule match the pole's order?
- 6Did you sum only the enclosed residues, with the right sign?
- 7Why does the same integral give 0 on one circle and −2πi on another?
- 8How do you evaluate a real integral with the residue theorem?
- 9Which entrance exams need the residue theorem?
- 10How do we teach residue calculus at SBTech Math?
- 11Frequently asked questions
Take f(z) = 1/(z²(z−1)). Integrate it round a circle of radius 2 and the residue theorem gives 0. Shrink the circle to radius ½ and it gives −2πi. Neither answer is a mistake. We checked both by integrating numerically around each circle, and the numbers agree with the theorem.
That is the real difficulty for CSIR NET (the Council of Scientific and Industrial Research National Eligibility Test) and for the Mathematics (MA) paper of GATE (the Graduate Aptitude Test in Engineering). The formula takes one line. The care goes into deciding which singularities a contour encloses, and which contour to draw for a real integral.
The usual errors are summing every pole of a fast-decaying rational function, which gives 0, and closing a real integral with the wrong contour when the integrand has a square root. The sections below deal with both.
What does the residue theorem say, and how do you find a residue?
The residue theorem says that if f is analytic inside and on a simple closed contour C, apart from finitely many isolated singularities z₁,…,zₙ inside C, then ∮_C f(z) dz = 2πi · Σ Res(f, zₖ). C is traversed anticlockwise (Wikipedia: Residue theorem). Traverse it clockwise and the answer changes sign.
Some terms first:
- A contour is a closed curve in the complex plane.
- Analytic means complex-differentiable in a neighbourhood.
- A pole is an isolated singularity where |f| blows up. A pole of order m means (z−c)^m f(z) stays finite and non-zero at c. An order-1 pole is a simple pole.
- A removable singularity is one where f can be redefined at the point to become analytic, such as sin z / z at 0.
- An essential singularity is an isolated singularity that is neither removable nor a pole, such as e^{1/z} at 0.
- The residue Res(f, c) is the coefficient of 1/(z−c) in the Laurent series of f about c.
The rules you need:
- Simple pole at c: Res = lim (z−c) f(z) as z → c.
- Quotient shortcut: if f = g/h with h(c) = 0 and h′(c) ≠ 0, then Res = g(c)/h′(c).
- Pole of order m: Res = [1/(m−1)!] · d^{m−1}/dz^{m−1} [(z−c)^m f(z)], evaluated at c.
- Essential singularity: read the 1/(z−c) coefficient from the Laurent series. For e^{1/z} at 0 it is 1.
How do you decide which poles count? A four-step pole check
Run these four checks, in order, on every residue question. Each has a pass condition you can test.
Have you classified every singularity?
Pass: for each point where the denominator vanishes, you have written "removable", "pole of order m" or "essential", and you know m. Fail: you applied the simple-pole formula without checking the order.
Is each pole strictly inside the contour?
Pass: you have drawn the contour and each pole is plainly inside or plainly outside. For a circle |z| = r, compare |pole| with r. A pole on the contour fails this check. The theorem does not apply directly, and you must indent around the pole.
Does the residue rule match the pole's order?
Pass: you can test your residue another way. For a simple pole, the limit and g/h′ agree. For a higher-order pole, a Laurent expansion gives the same 1/(z−c) coefficient. Fail: only one method was used and the result looks odd.
Did you sum only the enclosed residues, with the right sign?
Pass: the sum contains exactly the poles from step two, and you multiplied by 2πi (or −2πi for a clockwise contour). Fail: any outside pole is in the sum.

When a result looks wrong, use this table:
| What you see | Likely cause | Fix |
|---|---|---|
| The answer is 0 | See the next section on 0 versus −2πi | Recheck which poles are inside |
| A half-line integral comes out wrong by a factor | A semicircle was used on a branch-cut integrand | Switch to a keyhole contour |
| Right size, wrong sign | The contour runs clockwise | Multiply by −1 |
| A higher-order residue seems off | The derivative order is wrong | The rule differentiates m−1 times; confirm with the Laurent series |
Why does the same integral give 0 on one circle and −2πi on another?
The function 1/(z²(z−1)) has a double pole at 0 and a simple pole at 1, and which of them a circle encloses decides the answer.
- Residue at 0: the pole has order 2, so Res = d/dz [1/(z−1)] at 0 = −1/(z−1)² at 0 = −1.
- Residue at 1: a simple pole, so Res = 1/z² at 1 = 1.
- Circle |z| = 2: both poles are inside, so the integral is 2πi(−1 + 1) = 0.
- Circle |z| = ½: only z = 0 is inside, so the integral is 2πi(−1) = −2πi.

We confirmed both by computer on 31 October 2026. We integrated f(z) numerically around each circle with Python's mpmath library (version 1.3), a free package for high-precision numerical mathematics. The |z| = 2 integral came out at about 10⁻³¹, which is zero for practical purposes. The |z| = ½ integral came out as −6.28319i, which is −2πi.
An answer of 0 therefore does not signal an error. It tells you the enclosed residues cancel. Summing every pole of a fast-decaying function such as 1/(z⁴+1) also gives 0, which is why only enclosed poles go into the sum.
How do you evaluate a real integral with the residue theorem?
Extend the real integrand to the complex plane, close the real line with a large arc, and sum the residues of the poles the closed contour encloses. The arc contribution must vanish as its radius grows. For an integral over [0, 2π] of a trigonometric function, substitute z = e^{iθ} and integrate round the unit circle instead.
Example 1: ∫ from −∞ to ∞ of dx/(x⁴+1). Use a semicircle of radius R in the upper half-plane. On the arc |f| ≤ 1/(R⁴−1) and the length is πR, so the arc integral tends to 0.
The poles are the four roots of z⁴ = −1. Using g/h′, Res = 1/(4z³) = −z/4 at each root, because 1/z³ = z/z⁴ = −z.
| Pole | Residue (rounded) | Half-plane |
|---|---|---|
| e^{iπ/4} | −0.1768 − 0.1768i | upper |
| e^{3iπ/4} | +0.1768 − 0.1768i | upper |
| e^{5iπ/4} | +0.1768 + 0.1768i | lower |
| e^{7iπ/4} | −0.1768 + 0.1768i | lower |
The upper two residues sum to −i√2/4. Multiply by 2πi to get π√2/2 = π/√2 ≈ 2.2214. Numerical integration with mpmath (31 October 2026) also gives 2.2214414…, and the two agree to 15 digits.
Add all four residues and you get exactly 0, because the roots of z⁴ + 1 sum to zero and the residues −z/4 sum to zero as well.
Example 2: ∫ from 0 to 2π of dθ/(5 + 4cosθ). Put z = e^{iθ}, so cosθ = (z + 1/z)/2 and dθ = dz/(iz). The integral becomes ∮ dz / (i(2z+1)(z+2)) over |z| = 1. Only z = −½ is inside the unit circle. Its residue is 1/(i · 2 · 1.5) = 1/(3i). Then 2πi · 1/(3i) = 2π/3. Numerical integration gives 2.0943951…, which equals 2π/3.
Example 3: ∫ from 0 to ∞ of √x/(x³+1) dx. The integrand has a branch point at 0, a point around which √z cannot be defined as a single-valued function, so a plain semicircle does not apply. Use a keyhole contour with a branch cut along the positive real axis. A branch cut is a line along which a multi-valued function such as √z is made single-valued. A keyhole contour is a closed path that goes out along the cut on the positive real axis, round a large circle, back along the other side of the cut, and round a tiny circle at 0.
Take arg z between 0 and 2π. On the return path √z has been multiplied by e^{iπ} = −1, so the two sides of the cut add instead of cancelling. The large and small circles contribute 0 in the limit, which leaves 2πi · ΣRes = (1 − e^{iπ}) · I = 2I, where I is the real integral. So I = πi · ΣRes.
The poles of √z/(z³+1) are e^{iπ/3}, −1 and e^{5iπ/3}. All are simple, and Res = √p/(3p²) at each pole p. The residues are −i/3, +i/3 and −i/3, which sum to −i/3. Then I = πi · (−i/3) = π/3 ≈ 1.0472. Numerical integration with mpmath gives 1.0471975…, matching π/3 (31 October 2026).
For integrands like e^{iax}/(x²+1), where the decay is slower, the arc needs Jordan's lemma. Jordan's lemma says the arc integral of e^{iaz}g(z) tends to 0 as the radius grows, provided a > 0 and g decays to 0. Check explicitly that the arc integral vanishes. Do not assume it.
Which entrance exams need the residue theorem?
GATE MA and CSIR NET both examine the residue theorem. The GATE 2027 Mathematics syllabus lists "Residue theorem and applications for evaluating real integrals" under complex integration (IIT Madras, GATE 2027 MA syllabus). As of 31 October 2026, the CSIR HRDG Mathematical Sciences syllabus (file dated 13 November 2018) lists "calculus of residues" in Unit 2 with Taylor and Laurent series (CSIR Human Resource Development Group syllabus).
For how complex analysis fits into the paper, see our guide to the CSIR NET exam pattern for Maths. For GATE, GATE Mathematics previous year papers: marks by section shows where the marks fall.
The complex analysis topics in the CUET PG (Common University Entrance Test Postgraduate) Mathematics syllabus, paper code SCQP19, run from functions of a complex variable through Cauchy's integral formula, Morera's theorem, Liouville's theorem and the Fundamental theorem of Algebra to harmonic functions (CUET PG Mathematics SCQP19 syllabus PDF). Our recommendation: if CUET PG is your only target, spend your time on those topics first and leave contour residues for later.
How do we teach residue calculus at SBTech Math?
Our Pure Combo Live course includes a complex analysis module covering analytic functions, Cauchy-Riemann equations, contour integration, residue calculus and conformal mappings (Pure Combo Live).
The course covers Linear Algebra, Real Analysis and Complex Analysis in 250+ hours of live and recorded lectures. It adds daily practice sheets, assignments, topic-wise previous-year question discussions, weekly tests with detailed solutions, doubt sessions and mentorship for each subject. As of 31 October 2026 the price on the course page is ₹5,999, with 180 days of access, and a ₹999 starter plan is listed beside it.
Free notes and previous-year questions are in the PDF Drive and free study content.
If you are still choosing a course, our complex analysis course guide lists what to check for CSIR NET and GATE.
If you want to ask which of our courses suits your target exam, contact us on +91 81265 45455 or sbtechmath@gmail.com, between 9am and 7pm, Monday to Saturday, or use our contact page.
Learn residue calculus with SBTech Math
Frequently asked questions
Use Res = (1/2!) · d²/dz² [(z−c)³ f(z)] at c. For example, e^z/z³ has a pole of order 3 at 0, and (1/2) · d²/dz² e^z at 0 = 1/2, so the residue is 1/2.
Sources
- 1.GATE 2027 Mathematics (MA) syllabus, IIT Madras
- 2.Mathematical Sciences syllabus (file dated 13 November 2018), CSIR Human Resource Development Group
- 3.CUET PG Mathematics (SCQP19) syllabus PDF
- 4.Residue theorem, for the theorem statement and residue formulas, Wikipedia
- 5.Our own checks: numerical integration and residue calculations run in Python (sympy 1.14, mpmath 1.3) on 31 October 2026, for 1/(z²(z−1)) on |z| = 2 and |z| = ½, 1/(x⁴+1) over the real line, 1/(5+4cosθ) over [0, 2π], and √x/(x³+1) over [0, ∞)., 31 October 2026



