WhatsApp us
University Maths25 Nov 2026

Cauchy Residue Theorem: Formula and Worked Examples for Engineering Maths

The Cauchy residue theorem explained through six original worked examples: simple and higher-order poles, a Laurent series residue, rational and trigonometric real integrals, and a Jordan's lemma integral, plus the slips that cost marks.

Cauchy Residue Theorem: Formula and Worked Examples for Engineering Maths

The Cauchy residue theorem says that if f is analytic inside and on a closed contour C except at finitely many isolated singularities z₁, …, zₖ inside C, then ∮_C f(z) dz = 2πi × (sum of the residues of f at z₁, …, zₖ). So every contour integral question comes down to three jobs: find the singularities, decide which lie inside C, and compute each residue with the right formula.

Below are six original examples in rising difficulty, the residue formulas side by side, and the exam slips we correct most often.

Residue formulas at a glance

The residue of f at z = a is the coefficient of 1/(z − a) in the Laurent series of f about a. In practice you rarely write the full series; you use one of these.

Type of singularity at aResidue formulaWhen to use it
Simple polelim (z − a) f(z) as z → adenominator has a single factor (z − a)
Simple pole, f = p/qp(a)/q′(a), with p(a) ≠ 0, q(a) = 0, q′(a) ≠ 0q is hard to factor, e.g. z⁴ + 1 or sin z
Pole of order m(1/(m − 1)!) × lim dᵐ⁻¹/dzᵐ⁻¹ [(z − a)ᵐ f(z)]repeated factor (z − a)ᵐ
Essential singularityread the 1/(z − a) coefficient from the Laurent seriese^(1/z), sin(1/z) and similar
Removable singularity0the limit of f exists and is finite

The Cauchy integral formula is the order-m case in disguise: ∮_C g(z)/(z − a)ⁿ⁺¹ dz = 2πi g⁽ⁿ⁾(a)/n! when g is analytic inside C.

Complex analysis is often the unit B.Tech students find least like school maths. Our engineering maths tutoring page explains how online sessions with Ajay Vatsyayan work through your own syllabus and past papers.

Example 1: simple poles and choosing the contour

Evaluate ∮_C (z + 1)/(z² − 3z + 2) dz for (a) C: |z| = 3/2 and (b) C: |z| = 3.

Step 1: find the poles. z² − 3z + 2 = (z − 1)(z − 2), so there are simple poles at z = 1 and z = 2.

Step 2: compute the residues.

At z = 1: lim (z − 1) × (z + 1)/((z − 1)(z − 2)) = (1 + 1)/(1 − 2) = −2.

At z = 2: lim (z − 2) × (z + 1)/((z − 1)(z − 2)) = (2 + 1)/(2 − 1) = 3.

Step 3: decide what is inside.

(a) |z| = 3/2 contains z = 1 only (|2| = 2 > 3/2). The integral is 2πi(−2) = −4πi.

(b) |z| = 3 contains both. The integral is 2πi(−2 + 3) = 2πi.

Write "z = 2 lies outside C since |2| > 3/2" in your answer. Examiners give a mark for that line.

Example 2: a pole of order 3

Evaluate ∮_C e^(2z)/(z + 1)³ dz where C is |z| = 2.

The only singularity is z = −1, a pole of order 3, and it lies inside C. With m = 3:

Res = (1/2!) × d²/dz² [e^(2z)] at z = −1 = (1/2) × 4e^(−2) = 2e^(−2)

So the integral is 2πi × 2e^(−2) = 4πi e^(−2) ≈ 1.7007i.

The Cauchy integral formula with g(z) = e^(2z) and n = 2 gives the same: 2πi × g″(−1)/2! = 2πi × 4e^(−2)/2.

Example 3: a residue from a Laurent series

Evaluate ∮_C z² sin(1/z) dz where C is |z| = 1.

z = 0 is an essential singularity, so no pole formula applies. Expand instead:

sin(1/z) = 1/z − 1/(6z³) + 1/(120z⁵) − …

z² sin(1/z) = z − 1/(6z) + 1/(120z³) − …

The coefficient of 1/z is −1/6, so the residue is −1/6 and the integral is 2πi(−1/6) = −πi/3.

A common error is to say "no pole, so the integral is 0". An essential singularity can still have a non-zero residue.

Example 4: a rational integral over the whole real line

Evaluate ∫₋∞^∞ dx / ((x² + 4)(x² + 9)).

Why it works. The degree of the denominator (4) exceeds the numerator's (0) by at least 2, so the integral over a large semicircle in the upper half-plane tends to 0. The real integral equals 2πi × (sum of residues in the upper half-plane).

Poles in the upper half-plane: z = 2i and z = 3i (ignore −2i and −3i).

Res at 2i = 1/[(z + 2i)(z² + 9)] at z = 2i = 1/[(4i)(−4 + 9)] = 1/(20i)

Res at 3i = 1/[(z² + 4)(z + 3i)] at z = 3i = 1/[(−9 + 4)(6i)] = −1/(30i)

Sum = 1/(20i) − 1/(30i) = 1/(60i).

∫₋∞^∞ dx / ((x² + 4)(x² + 9)) = 2πi × 1/(60i) = π/30

Check the sign: the integrand is positive, so the answer must be positive. If you get a negative or imaginary answer, a residue is wrong.

Example 5: a trigonometric integral on [0, 2π]

Evaluate ∫₀^2π dθ / (3 + 2 sin θ).

Step 1: substitute z = e^(iθ). On the unit circle, sin θ = (z − 1/z)/(2i) and dθ = dz/(iz).

Step 2: simplify.

3 + 2 sin θ = 3 + (z − 1/z)/i = (z² + 3iz − 1)/(iz)

so the integrand becomes [iz/(z² + 3iz − 1)] × dz/(iz) = dz/(z² + 3iz − 1).

Step 3: find the poles. z² + 3iz − 1 = 0 gives z = i(−3 ± √5)/2, that is z₁ ≈ −0.382i and z₂ ≈ −2.618i. Only z₁ is inside |z| = 1.

Step 4: residue. Res at z₁ = 1/(z₁ − z₂) = 1/(i√5).

Step 5: answer. ∫₀^2π dθ/(3 + 2 sin θ) = 2πi × 1/(i√5) = 2π/√5 ≈ 2.8099.

The general pattern ∫₀^2π dθ/(a + b sin θ) = 2π/√(a² − b²) for a > |b| is a good check, but most papers want the contour working.

Example 6: Jordan's lemma and a cosine integral

Evaluate ∫₋∞^∞ cos 3x / (x² + 4) dx.

Do not use cos 3z directly: it grows like e^(3|y|) in both half-planes. Use e^(3iz), which decays in the upper half-plane, and take the real part at the end.

The pole in the upper half-plane is z = 2i:

Res at 2i of e^(3iz)/(z² + 4) = e^(3i × 2i)/(2i + 2i) = e^(−6)/(4i)

∫₋∞^∞ e^(3ix)/(x² + 4) dx = 2πi × e^(−6)/(4i) = (π/2) e^(−6)

The answer is already real, so ∫₋∞^∞ cos 3x/(x² + 4) dx = (π/2)e^(−6) ≈ 0.003894, and the matching sine integral is 0 (the integrand is odd).

How to recognise which type you have

  1. ∮ over a named circle or square: find poles, test each with |zₖ| against the radius, sum the residues inside.
  2. Repeated factor in the denominator: order-m formula, or the Cauchy integral formula.
  3. e^(1/z), sin(1/z), cos(1/z): Laurent series.
  4. ∫₀^2π of a function of sin θ and cos θ: substitute z = e^(iθ) and integrate round |z| = 1.
  5. ∫₋∞^∞ p(x)/q(x) with deg q ≥ deg p + 2: upper half-plane semicircle.
  6. ∫₋∞^∞ with cos kx or sin kx on top: replace by e^(ikz), use the upper half-plane, take the real or imaginary part.

Where students lose marks

  • Including a pole outside the contour. Always test |zₖ| against the radius and say so.
  • Using the simple-pole formula on a double pole. Look at the power of each factor first.
  • Dropping 1/(m − 1)! in the order-m formula. For m = 3 it is 1/2, not 1.
  • Forgetting dz/(iz) in the θ-substitution, or simplifying the denominator with a sign slip. Multiply out once more before finding poles.
  • Taking the wrong root in Example 5-type questions. Of the two roots, exactly one is usually inside |z| = 1; check by computing its modulus.
  • Using lower half-plane poles for an upper half-plane contour. Only poles with positive imaginary part count.
  • Not checking reasonableness. A positive integrand cannot give a negative or imaginary answer.

Practice set

  1. Find the residues of (2z + 1)/(z(z − 1)) and evaluate the integral round |z| = 2.
  2. Evaluate ∮ cos z / z³ dz round |z| = 1.
  3. Evaluate ∫₋∞^∞ dx/(x² + 2x + 5).
  4. Evaluate ∫₀^2π dθ/(2 + cos θ).
  5. Evaluate ∫₋∞^∞ x sin x/(x² + 9) dx.
  6. Evaluate ∮ e^z/(z²(z − 2)) dz round |z| = 3.

Answers. (1) Residues −1 at z = 0 and 3 at z = 1; integral 4πi. (2) Residue −1/2; integral −πi. (3) π/2 (pole at −1 + 2i with residue 1/(4i)). (4) 2π/√3 ≈ 3.6276. (5) πe^(−3) ≈ 0.1564. (6) Residues −3/4 at 0 and e²/4 at 2; integral πi(e² − 3)/2.

Where residues are used next

Residues give a quick route to inverse Laplace transforms (the complex inversion formula sums residues of e^(st)F(s)), which links this unit to our exam guide on Laplace transforms. Cauchy's theorem itself can be proved from Green's theorem, covered in the guide to Green's, Stokes' and divergence theorems. If complex numbers in polar form still feel shaky, the complex numbers revision guide is a quick refresher, and the Fourier series coefficients walkthrough leads into the Fourier transform, where contour integration appears again.

How Maths Bodhi helps

We build the pole-finding and residue routine until it is automatic, practise the four real-integral types from your past papers, and review your own written solutions. The university maths tutoring hub lists the other courses we support.

Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.

Written and checked by the Maths Bodhi team (November 2026).

Frequently asked questions

What is the Cauchy residue theorem formula?
∮_C f(z) dz = 2πi × (sum of residues of f at the singularities inside C), for f analytic on and inside C apart from those points.
How do you find the residue at a pole of order 2?
Res = lim as z → a of d/dz [(z − a)² f(z)].
What is the difference between Cauchy's integral formula and the residue theorem?
The integral formula handles one point a inside C; the residue theorem handles any finite number of singularities and covers the formula as a special case.
Can the residue be non-zero at an essential singularity?
Yes; read it from the 1/(z − a) coefficient of the Laurent series, for example z² sin(1/z) has residue −1/6 at 0.
How do you evaluate real integrals using residues?
Turn the integral into a contour integral (unit circle for 0 to 2π, upper half-plane semicircle for −∞ to ∞) and sum the residues inside.
Why use e^(ikz) instead of cos kz in contour integration?
Because e^(ikz) decays in the upper half-plane for k > 0, so the semicircle contribution vanishes, while cos kz grows.
Cauchy residue theoremcomplex analysiscontour integrationengineering mathematicsB.Tech maths

Related guides

Keep exploring this maths topic

University Maths25 Nov 2026

Beta and Gamma Functions in Engineering Maths: Formulas and Worked Examples

Beta and gamma functions for B.Tech engineering maths: the definitions, the key properties and the beta-gamma relation, with six original worked integrals, the trigonometric form, and the slips that cost marks.

beta functiongamma functionengineering mathematicsimproper integrals

By Maths Bodhi Team

Read guide

University Maths2 Nov 2026

Laplace Transforms in Engineering Maths: An Exam Guide with Worked Examples

The Laplace transform questions that come up most in B.Tech and first-year engineering maths, the formula table to learn, six worked examples from direct transforms to unit-step initial value problems, the slips that cost marks, and a practice set with answers.

Laplace transformengineering mathematicsM2M3

By Maths Bodhi Team

Read guide

University Maths18 Nov 2026

Fourier Series in Engineering Maths: Coefficients, Square Wave and Half-Range Series

How to find Fourier series coefficients step by step, with five original worked examples (square wave, general period, half-range, harmonic analysis from a table) and the slips that cost marks in B.Tech exams.

Fourier seriesengineering mathematicshalf-range seriesharmonic analysis

By Maths Bodhi Team

Read guide

University Maths2 Nov 2026

How to Clear an Engineering Maths Back Paper (M1, M2 or M3)

A realistic plan for B.Tech students re-taking Engineering Mathematics M1, M2 or M3: confirm your scheme, map past papers, revise unit by unit, and master the high-yield question types through seven worked examples and a practice set with answers.

engineering maths back paperM1 back paperM2 back paperM3 back paper

By Maths Bodhi Team

Read guide

University Maths25 Nov 2026

Simpson's Rule and the Trapezoidal Rule: Formulas, Error Bounds and Worked Examples

Simpson's 1/3 rule, Simpson's 3/8 rule and the trapezoidal rule worked on the same integrals, with the error formulas, how to choose the number of intervals, a data-table question and practice with checked answers.

Simpson's ruletrapezoidal rulenumerical integrationnumerical methods

By Maths Bodhi Team

Read guide

University Maths25 Nov 2026

Runge-Kutta Method (4th Order): Formula, Worked Examples and Euler vs RK4

The fourth-order Runge-Kutta formula explained with full k₁ to k₄ working, an Euler vs RK4 error table against the exact solution, a nonlinear example, a second-order ODE as a system, and practice with checked answers.

Runge-Kutta methodRK4numerical methodsEuler method

By Maths Bodhi Team

Read guide