All 24 questions UPSC has asked on residues and contour integration in the Mathematics Optional (Paper II, Complex Analysis) from 2008 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Complex Analysis topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the answer was worked out again independently with computer algebra (SymPy).
- ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 2c 2025 · 2c 2025 · 3a 2024 · 3a 2023 · 2c 2022 · 2c 2022 · 3a 2021 · 1d 2021 · 4b 2020 · 2c 2019 · 2d 2018 · 3b 2017 · 2b 2016 · 3c 2015 · 3a 2014 · 3c 2013 · 1d 2013 · 4b 2012 · 3d 2011 · 3c 2009 · 1e 2009 · 4a 2008 · 1e 2008 · 4a
Use the method of contour integration to prove
Solution
Write and use :
Contour form. With , , : Since , : only lies inside .
- (real).
Combine. (using ). Hence
✓ Checked by computer We checked by computer: numerical integration agrees with (e.g. ).
Use the method of contour integration to prove that .
Solution
Let (note ).
Contour. Take the segment and the upper semicircle . On , , so . Hence (residues in the upper half-plane).
Poles in the upper half-plane: and (simple).
- .
- .
Sum: . Therefore
✓ Checked by computer We checked by computer: times the sum of residues is .
Evaluate the integral , .
Solution
The integrand has a pole of order 2 at and of order 3 at , both inside .
At :
At : with ,
Residue theorem:
✓ Checked by computer We checked by computer: residues at and at .
Locate the poles and their order for the function Also, find the residue of at these poles.
Solution
.
Poles. exactly at the integers.
- : both and vanish (simply), so has a double zero: pole of order 2.
- , : has a simple zero: simple pole.
- : simple zero of , while there: simple pole.
Residues.
- At : .
- At : (using for a simple zero of ).
- At : expand. and , so The coefficient of gives .
✓ Checked by computer We checked by computer: residue at 0, at , and at (tested for ).
Evaluate using contour integration.
Solution
Since (odd under ), With : and , so The only pole inside is : Hence
✓ Checked by computer We checked by computer: the integral is .
Apply the calculus of residues to evaluate , .
Solution
Consider on the upper semicircular contour. On the arc , , so and . So
- ,
- .
So This is real, so taking real parts,
✓ Checked by computer We checked by computer: numerical integration agrees with the formula (e.g. gives ).
Evaluate , where is .
Solution
gives . The circle has centre and radius 2:
- : inside;
- : outside.
Residue at : By the residue theorem,
✓ Checked by computer We checked by computer: the value is .
Let be the curve, where , . Evaluate the contour integral .
Solution
The curve. , : as runs from 0 to 1 the angle runs from 0 to , so goes twice round the unit circle anticlockwise (winding number 2 about every point inside).
Poles. : poles at (inside) and (outside).
Residue theorem with winding number 2:
✓ Checked by computer We checked by computer: the residue at is , giving .
Using contour integration, evaluate the integral , .
Solution
Consider . It has a simple pole at on the real axis, so use the upper semicircle indented by a small semicircle above .
- , since there and .
- Over the small semicircle (traversed clockwise), .
- The only pole inside is : .
So, letting , : The imaginary part is an ordinary convergent integral (the integrand is bounded near 0). Hence
✓ Checked by computer We checked by computer: numerical integration agrees with (e.g. gives ).
Using contour integration, evaluate the integral .
Solution
With : , , so Poles: .
- : , inside;
- : , outside.
Hence
✓ Checked by computer We checked by computer: the integral is .
Show that an isolated singular point of a function is a pole of order if and only if can be written in the form where is analytic and non zero at . Moreover if .
Solution
Recall: is a pole of order if the Laurent series of in is
() Put . This is a power series converging in , so (defining ) is analytic at , and . Thus .
() If with analytic and , expand , . Then a Laurent series whose lowest power is with non-zero coefficient. So is a pole of order .
Residue. The residue is the coefficient of , i.e. the term with , : since the Taylor coefficients of are .
✓ Proof checked step by step Proof checked step by step.
Show by applying the residue theorem that , .
Solution
The integrand is even, so .
Let . On the upper semicircle , . The only pole in the upper half-plane is , of order 2: So
✓ Checked by computer We checked by computer: .
Using contour integral method, prove that
Solution
The integrand is even, so the required integral is half of , which is the imaginary part of .
Take on the upper semicircular contour.
- Arc → 0 (Jordan’s lemma). uniformly as and , so . (Here the simple bound is not enough; Jordan’s lemma uses .)
- Residue at (the only pole in the upper half-plane):
So . Its imaginary part gives , and therefore
✓ Checked by computer We checked by computer: numerical integration agrees with (e.g. , ). We take , .
Let Find, giving justifications, the value of the contour integral
Solution
The curve. , , is the unit circle traversed once anticlockwise.
Poles. : simple poles at , both inside. (using with ).
Residue theorem: (Check: the integrand is at infinity, so its integral over a circle of radius – which equals the integral over – tends to 0 as ; it must therefore be 0.)
✓ Checked by computer We checked by computer: the residues at are and add to 0.
State Cauchy’s residue theorem. Using it, evaluate the integral
Solution
Cauchy’s residue theorem. If is analytic inside and on a simple closed contour except for finitely many isolated singularities inside , then
The integrand has simple poles at and and a double pole at , all inside .
- At : .
- At : , since .
- At : . With , , :
Sum and integral. The residues add to , so
✓ Checked by computer We checked by computer: residues , , , and the value .
Evaluate the integral using residues.
Solution
The integrand is even about , so .
With : , , so with (inside, ) and (outside). At the double pole : So , and
✓ Checked by computer We checked by computer: the integral is .
Prove that if where and are positive and real, then the function has zeroes in the unit circle.
Solution
Rouché’s theorem. If are analytic inside and on a simple closed curve and on , then and have the same number of zeros inside .
Take , and .
- On : .
- On : .
The hypothesis means , so on .
By Rouché, has as many zeros in as , which has exactly (a zero of order at ). Hence has zeros in the unit circle.
✓ Proof checked step by step Proof checked step by step.
Using Cauchy’s residue theorem, evaluate the integral
Solution
is symmetric about , so .
With : , so and : Expand: . So has a pole only at , with residue equal to the constant term . Hence
✓ Checked by computer We checked by computer: .
Evaluate by contour integration
Solution
With , : So Since , the pole is inside and is outside. (If the integral is simply .)
✓ Checked by computer We checked by computer: numerical integration agrees with (e.g. ). We take real.
Evaluate by Contour integration,
Solution
Reduce to a standard integral. , so Substitute (): , . Then , and
Keyhole contour. Let with the branch cut along the positive real axis, . Integrate round the keyhole: large circle , small circle , and the two edges of the cut.
- Large circle: , so its contribution is (as ). Small circle: (as ).
- Upper edge gives ; on the lower edge , and it is traversed backwards, giving .
- The only pole is : .
So , i.e.
Answer. With :
✓ Checked by computer We checked by computer: numerical integration gives .
Let , . Assume that the zeroes of the denominator are simple. Show that the sum of the residues of at its poles is equal to .
Solution
Let and , so . All the poles of are zeros of , so they lie in some disc .
Step 1 – sum of residues as a contour integral. For , by the residue theorem, and the left side does not depend on .
Step 2 – behaviour for large . Write ; then for large .
Step 3 – evaluate. with . Since the left side is independent of , , and
(With simple zeros of the residues are ; the result says .)
✓ Proof checked step by step Proof checked step by step.
If , , are real numbers such that show that :
Solution
Reduce to one trigonometric term. Let and choose with , . Then , and since the integrand has period , (If the answer is directly.)
Contour integration. With : The roots are , with . Since , . The residue at is Hence
✓ Checked by computer We checked by computer: numerical integration agrees with (e.g. ). We flag one point: the formula as stated needs ; for the integral is the negative of this.
Find the residue of
Solution
Use the Laurent expansions about : Multiply: Dividing by : The coefficient of is the residue:
✓ Checked by computer We checked by computer: , so the residue is .
Evaluate where is the circle . State the theorems you use in evaluating above integral.
Solution
Split the integral into three parts.
. has its branch point at ; taking the branch cut along , it is analytic in a domain containing . By the Cauchy–Goursat theorem its integral round is 0.
. The only singularity, , is outside ; again by Cauchy–Goursat the integral is 0.
The first term (residue theorem). has a double pole at and simple poles at (roots of ), all inside since .
- At : .
- At : ; here , , so .
- At : , , so .
Sum of residues: . By the residue theorem,
Answer:
✓ Checked by computer We checked by computer: residues , , , and the integral .
More on Complex Analysis
- Complex Analysis topic-wise PYQs (questions only, for practice)
- Mathematics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Mathematics booklist
Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

