Contour integrals in the complex plane, Cauchy's integral theorem and its conditions, path independence, deformation of contours, and the standard integral of (z − a)^n that settles most GATE contour questions.
A contour is a piecewise smooth curve in the complex plane. If is given by , , then
The usual parametrisations:
Curve
Circle , anticlockwise
,
Segment from to
,
A closed contour is written ; the positive direction is anticlockwise (the region stays on the left). Reversing the direction changes the sign of the integral.
For a non-analytic integrand you must parametrise. Example: on , , so
which is not zero, because is analytic nowhere.
ML inequality: if on and has length , then . It is used to show that an integral over a large arc goes to zero.
2. Cauchy's integral theorem
Theorem. If is analytic in a simply connected domain , then for every simple closed contour in
In the form used in questions: if is analytic on and inside a simple closed curve , the integral around is zero.
Why it holds (Green's theorem idea). With and , the integral splits into two real line integrals. Green's theorem turns them into double integrals of and , and the Cauchy–Riemann equations , make both zero.
How to apply it in GATE:
Find every point where is not analytic (zeros of a denominator, points where or a root is undefined, or everywhere for , , ).
Check whether each lies inside . For a circle , the point is inside if .
If none lie inside (and none lie on ), the answer is 0.
Polynomials, , , are entire (analytic everywhere), so their closed integrals are always 0. A rational function is analytic except at the zeros of its denominator; and fail at odd multiples of .
The theorem gives a sufficient condition only. although is singular at 0.
Left: no singularity on or inside C, so the integral is zero. Right: the integral over C equals the integral over a small circle C1 around the only singular point a.
3. Consequences: path independence and deformation
Path independence. In a simply connected domain where is analytic, is the same along every path, because two paths together form a closed contour. If , then
just as in real calculus. So along any path. For a non-analytic (like or ) the value depends on the path, and you must parametrise each piece.
Deformation of contours. If is analytic in the region between two closed curves and (with inside , both anticlockwise), then
So a square, an ellipse or a large circle around a single singular point gives the same value as a tiny circle around .
Multiply connected regions. If encloses several singular points , each surrounded by a small circle , then
This is the bridge to the residue theorem: each small-circle integral is times the residue at that point.
4. The key integral of (z − a)^n
For an integer and a simple closed contour, anticlockwise:
∮C(z−a)ndz={2πi,0,n=−1 and a inside Cotherwise
Check on : with , the integrand becomes . Its integral over to is zero unless , when it is .
Integrand
inside
outside
,
0
0
0
,
0
0
Partial fractions reduce any rational integrand to this table. For example,
On both points are inside: . On only is inside: .
For numerators other than constants, the next tool is Cauchy's integral formula, with analytic and inside .
Formulas to remember
Contour integral by parametrisation
Cauchy's integral theorem analytic on and inside the simple closed curve
Path independence
Key integral for every other integer
Deformation of contour small circles around the singular points inside
ML inequality
Conjugate on a circle
Common mistakes
Applying Cauchy's theorem to a non-analytic integrand such as conj(z), |z| or Re z; these must be parametrised.
Not checking whether each singular point lies inside the contour; for |z - a| = r compare the distance from a with r, not from the origin.
Concluding that the integral is non-zero just because a singular point is inside; terms like 1/(z - a)^2 still integrate to zero.
Forgetting the sign change when the contour is traversed clockwise.
Assuming path independence for a function that is not analytic in the region between the paths.
Missing singular points of tan z or sec z (odd multiples of pi/2) when deciding whether they lie inside the contour.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Singularity outside the contour
numerical
Evaluate .
Step 1: Find where the integrand is not analytic.
Try it on paper first.
Example 2: An integral that does not depend on the path
numerical
Evaluate where is any path from to .
Step 1: Check whether the integrand is analytic.
Try it on paper first.
Example 3: A non-analytic integrand
numerical
Evaluate , anticlockwise.
Step 1: Can Cauchy's theorem be used?
Try it on paper first.
Example 4: Partial fractions and which points are inside
conceptual
Evaluate for (a) and (b) , both anticlockwise.
Step 1: Split into partial fractions.
Try it on paper first.
Previous year questions
1 official GATE EC question on this topic, newest first.
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.