Menu Close

Residues and contour integration: UPSC Maths Optional PYQ Solutions (2008–2026)

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

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Use the method of contour integration to prove ∫02πsin2θa+bcosθdθ=2πb2{a−a2−b2},if a>b>0.

2026 · Paper II · Q2c · 20 marks

Solution

Write s=a2−b2s=\sqrt{a^2-b^2} and use sin2θ=12(1−cos2θ)\sin^2\theta=\frac12(1-\cos2\theta): I=12∫02πdθa+bcosθ−12Re∫02πe2iθa+bcosθdθ.I=\frac12\int_0^{2\pi}\frac{d\theta}{a+b\cos\theta}-\frac12\operatorname{Re}\int_0^{2\pi}\frac{e^{2i\theta}}{a+b\cos\theta}\,d\theta .

Contour form. With z=eiθz=e^{i\theta}, cosθ=12(z+z−1)\cos\theta=\frac12(z+z^{-1}), dθ=dzizd\theta=\frac{dz}{iz}: a+bcosθ=bz2+2az+b2z,bz2+2az+b=b(z−α)(z−β),a+b\cos\theta=\frac{bz^2+2az+b}{2z},\qquad bz^2+2az+b=b(z-\alpha)(z-\beta), α=−a+sb,β=−a−sb,αβ=1,α−β=2sb.\alpha=\frac{-a+s}{b},\quad\beta=\frac{-a-s}{b},\quad\alpha\beta=1,\quad\alpha-\beta=\frac{2s}{b}. Since a>b>0a>b>0, |α|<1<|β||\alpha|<1<|\beta|: only α\alpha lies inside |z|=1|z|=1.

  • ∫02πdθa+bcosθ=∮2dzib(z−α)(z−β)=2πi⋅2ib(α−β)=2πs.\displaystyle\int_0^{2\pi}\frac{d\theta}{a+b\cos\theta}=\oint\frac{2\,dz}{i\,b(z-\alpha)(z-\beta)}=2\pi i\cdot\frac{2}{ib(\alpha-\beta)}=\frac{2\pi}{s}.
  • ∫02πe2iθdθa+bcosθ=∮2z2dzib(z−α)(z−β)=2πi⋅2α2ib(α−β)=2πα2s\displaystyle\int_0^{2\pi}\frac{e^{2i\theta}\,d\theta}{a+b\cos\theta}=\oint\frac{2z^2\,dz}{i\,b(z-\alpha)(z-\beta)}=2\pi i\cdot\frac{2\alpha^2}{ib(\alpha-\beta)}=\frac{2\pi\alpha^2}{s} (real).

Combine. I=πs(1−α2),1−α2=b2−(a−s)2b2=2s(a−s)b2I=\frac{\pi}{s}\left(1-\alpha^2\right),\qquad1-\alpha^2=\frac{b^2-(a-s)^2}{b^2}=\frac{2s(a-s)}{b^2} (using b2=a2−s2b^2=a^2-s^2). Hence ∫02πsin2θa+bcosθdθ=2πb2{a−a2−b2}.◼\int_0^{2\pi}\frac{\sin^2\theta}{a+b\cos\theta}\,d\theta=\frac{2\pi}{b^2}\left\{a-\sqrt{a^2-b^2}\right\}. \qquad\blacksquare

✓ Checked by computer We checked by computer: numerical integration agrees with 2πb2(a−a2−b2)\frac{2\pi}{b^2}\left(a-\sqrt{a^2-b^2}\right) (e.g. a=3,b=2a=3,b=2).

↑ Back to the question list

Use the method of contour integration to prove that ∫−∞∞x2−x+2x4+10x2+9dx=5π12.

2025 · Paper II · Q2c · 20 marks

Solution

Let f(z)=z2−z+2(z2+1)(z2+9)f(z)=\dfrac{z^2-z+2}{(z^2+1)(z^2+9)} (note x4+10x2+9=(x2+1)(x2+9)x^4+10x^2+9=(x^2+1)(x^2+9)).

Contour. Take the segment [−R,R][-R,R] and the upper semicircle ΓR\Gamma_R. On ΓR\Gamma_R, |f|≤R2+R+2(R2−1)(R2−9)|f|\le\dfrac{R^2+R+2}{(R^2-1)(R^2-9)}, so |∫ΓRf|≤πR⋅R2+R+2(R2−1)(R2−9)→0\left|\int_{\Gamma_R}f\right|\le\pi R\cdot\dfrac{R^2+R+2}{(R^2-1)(R^2-9)}\to0. Hence ∫−∞∞f(x)dx=2πi∑\int_{-\infty}^{\infty}f(x)\,dx=2\pi i\sum (residues in the upper half-plane).

Poles in the upper half-plane: z=iz=i and z=3iz=3i (simple).

  • Resz=i=i2−i+2(2i)(i2+9)=1−i16i\operatorname{Res}_{z=i}=\dfrac{i^2-i+2}{(2i)(i^2+9)}=\dfrac{1-i}{16i}.
  • Resz=3i=−9−3i+2(−9+1)(6i)=7+3i48i\operatorname{Res}_{z=3i}=\dfrac{-9-3i+2}{(-9+1)(6i)}=\dfrac{7+3i}{48i}.

Sum: 3(1−i)+7+3i48i=1048i=524i\dfrac{3(1-i)+7+3i}{48i}=\dfrac{10}{48i}=\dfrac{5}{24i}. Therefore ∫−∞∞x2−x+2x4+10x2+9dx=2πi⋅524i=5π12.◼\int_{-\infty}^{\infty}\frac{x^2-x+2}{x^4+10x^2+9}\,dx=2\pi i\cdot\frac{5}{24i}=\frac{5\pi}{12}. \qquad\blacksquare

✓ Checked by computer We checked by computer: 2πi2\pi i times the sum of residues is 5π12\frac{5\pi}{12}.

↑ Back to the question list

Evaluate the integral ∮Cezz2(z+1)3dz, C:|z|=2.

2025 · Paper II · Q3a · 15 marks

Solution

The integrand f(z)=ezz2(z+1)3f(z)=\dfrac{e^z}{z^2(z+1)^3} has a pole of order 2 at 00 and of order 3 at −1-1, both inside |z|=2|z|=2.

At z=0z=0: Res=ddz[ez(z+1)3]z=0=[ez(z+1)−3ez(z+1)4]z=0=1−3=−2.\operatorname{Res}=\frac{d}{dz}\left[\frac{e^z}{(z+1)^3}\right]_{z=0}=\left[\frac{e^z(z+1)-3e^z}{(z+1)^4}\right]_{z=0}=1-3=-2 .

At z=−1z=-1: with g(z)=ezz−2g(z)=e^zz^{-2}, g″(z)=ez(z−2−4z−3+6z−4),Res=g″(−1)2!=e−1(1+4+6)2=112e.g''(z)=e^z\left(z^{-2}-4z^{-3}+6z^{-4}\right),\qquad\operatorname{Res}=\frac{g''(-1)}{2!}=\frac{e^{-1}(1+4+6)}{2}=\frac{11}{2e}.

Residue theorem: ∮Cezz2(z+1)3dz=2πi(112e−2)=πi(11e−4)≈0.0467πi.\oint_C\frac{e^z}{z^2(z+1)^3}\,dz=2\pi i\left(\frac{11}{2e}-2\right)=\pi i\left(\frac{11}{e}-4\right)\approx0.0467\pi i .

✓ Checked by computer We checked by computer: residues −2-2 at 00 and 112e\frac{11}{2e} at −1-1.

↑ Back to the question list

Locate the poles and their order for the function f(z)=1z(sinπz)(z+12). Also, find the residue of f(z) at these poles.

2024 · Paper II · Q3a · 15 marks

Solution

f(z)=1zsin(πz)(z+12)f(z)=\dfrac{1}{z\,\sin(\pi z)\left(z+\frac12\right)}.

Poles. sinπz=0\sin\pi z=0 exactly at the integers.

  • z=0z=0: both zz and sinπz\sin\pi z vanish (simply), so zsinπzz\sin\pi z has a double zero: pole of order 2.
  • z=nz=n, n=±1,±2,…n=\pm1,\pm2,\ldots: sinπz\sin\pi z has a simple zero: simple pole.
  • z=−12z=-\frac12: simple zero of z+12z+\frac12, while zsinπz=12≠0z\sin\pi z=\frac12\ne0 there: simple pole.

Residues.

  • At z=−12z=-\frac12: lim(z+12)f(z)=1(−12)sin(−π2)=2\displaystyle\lim\left(z+\tfrac12\right)f(z)=\frac{1}{\left(-\frac12\right)\sin\left(-\frac{\pi}{2}\right)}=2.
  • At z=n≠0z=n\ne0: Res=1n(n+12)⋅1πcosnπ=2(−1)nπn(2n+1)\displaystyle\operatorname{Res}=\frac{1}{n\left(n+\frac12\right)}\cdot\frac{1}{\pi\cos n\pi}=\frac{2(-1)^n}{\pi n(2n+1)} (using Resgh=gh′\operatorname{Res}\frac{g}{h}=\frac{g}{h'} for a simple zero of hh).
  • At z=0z=0: expand. sinπz=πz(1−π2z26+⋯)\sin\pi z=\pi z\left(1-\frac{\pi^2z^2}{6}+\cdots\right) and 1z+12=2(1−2z+4z2−⋯)\frac{1}{z+\frac12}=2(1-2z+4z^2-\cdots), so f(z)=2πz2(1+π2z26+⋯)(1−2z+⋯)=2πz2−4πz+⋯f(z)=\frac{2}{\pi z^2}\left(1+\frac{\pi^2z^2}{6}+\cdots\right)(1-2z+\cdots)=\frac{2}{\pi z^2}-\frac{4}{\pi z}+\cdots The coefficient of 1z\frac1z gives Resz=0f=−4π\operatorname{Res}_{z=0}f=-\dfrac{4}{\pi}.

✓ Checked by computer We checked by computer: residue −4π-\frac4\pi at 0, 22 at −12-\frac12, and 2(−1)nπn(2n+1)\frac{2(-1)^n}{\pi n(2n+1)} at z=nz=n (tested for n=±1,±2n=\pm1,\pm2).

↑ Back to the question list

Evaluate ∫02πcos2θ5+4cosθdθ using contour integration.

2023 · Paper II · Q2c · 20 marks

Solution

Since ∫02πsin2θ5+4cosθdθ=0\int_0^{2\pi}\frac{\sin2\theta}{5+4\cos\theta}\,d\theta=0 (odd under θ→2π−θ\theta\to2\pi-\theta), I=∫02πcos2θ5+4cosθdθ=∫02πe2iθ5+4cosθdθ.I=\int_0^{2\pi}\frac{\cos2\theta}{5+4\cos\theta}\,d\theta=\int_0^{2\pi}\frac{e^{2i\theta}}{5+4\cos\theta}\,d\theta . With z=eiθz=e^{i\theta}: 5+4cosθ=2z2+5z+2z=(2z+1)(z+2)z5+4\cos\theta=\dfrac{2z^2+5z+2}{z}=\dfrac{(2z+1)(z+2)}{z} and dθ=dzizd\theta=\dfrac{dz}{iz}, so I=∮|z|=1z2i(2z+1)(z+2)dz.I=\oint_{|z|=1}\frac{z^2}{i(2z+1)(z+2)}\,dz . The only pole inside |z|=1|z|=1 is z=−12z=-\frac12: Resz=−1/2=z22i(z+2)|z=−1/2=1/42i⋅32=112i.\operatorname{Res}_{z=-1/2}=\frac{z^2}{2i(z+2)}\Big|_{z=-1/2}=\frac{1/4}{2i\cdot\frac32}=\frac{1}{12i}. Hence ∫02πcos2θ5+4cosθdθ=2πi⋅112i=π6.\int_0^{2\pi}\frac{\cos2\theta}{5+4\cos\theta}\,d\theta=2\pi i\cdot\frac{1}{12i}=\frac{\pi}{6}.

✓ Checked by computer We checked by computer: the integral is π6≈0.5236\frac{\pi}{6}\approx0.5236.

↑ Back to the question list

Apply the calculus of residues to evaluate ∫−∞∞cosxdx(x2+a2)(x2+b2), a>b>0.

2022 · Paper II · Q2c · 20 marks

Solution

Consider f(z)=eiz(z2+a2)(z2+b2)f(z)=\dfrac{e^{iz}}{(z^2+a^2)(z^2+b^2)} on the upper semicircular contour. On the arc |z|=R|z|=R, Imz≥0\operatorname{Im}z\ge0, so |eiz|≤1|e^{iz}|\le1 and |∫ΓRf|≤πR(R2−a2)(R2−b2)→0\left|\int_{\Gamma_R}f\right|\le\dfrac{\pi R}{(R^2-a^2)(R^2-b^2)}\to0. So ∫−∞∞eixdx(x2+a2)(x2+b2)=2πi[Resia+Resib].\int_{-\infty}^{\infty}\frac{e^{ix}\,dx}{(x^2+a^2)(x^2+b^2)}=2\pi i\left[\operatorname{Res}_{ia}+\operatorname{Res}_{ib}\right].

  • Resz=ia=e−a2ia(b2−a2)\operatorname{Res}_{z=ia}=\dfrac{e^{-a}}{2ia\,(b^2-a^2)},
  • Resz=ib=e−b2ib(a2−b2)\operatorname{Res}_{z=ib}=\dfrac{e^{-b}}{2ib\,(a^2-b^2)}.

So 2πi[e−b2ib(a2−b2)−e−a2ia(a2−b2)]=πa2−b2(e−bb−e−aa).2\pi i\left[\frac{e^{-b}}{2ib(a^2-b^2)}-\frac{e^{-a}}{2ia(a^2-b^2)}\right]=\frac{\pi}{a^2-b^2}\left(\frac{e^{-b}}{b}-\frac{e^{-a}}{a}\right). This is real, so taking real parts, ∫−∞∞cosxdx(x2+a2)(x2+b2)=πa2−b2(e−bb−e−aa)(a>b>0).\int_{-\infty}^{\infty}\frac{\cos x\,dx}{(x^2+a^2)(x^2+b^2)}=\frac{\pi}{a^2-b^2}\left(\frac{e^{-b}}{b}-\frac{e^{-a}}{a}\right)\qquad(a>b>0).

✓ Checked by computer We checked by computer: numerical integration agrees with the formula (e.g. a=2,b=1a=2,b=1 gives 0.314380.31438).

↑ Back to the question list

Evaluate ∫Cz+4z2+2z+5dz, where C is |z+1−i|=2.

2022 · Paper II · Q3a · 15 marks

Solution

z2+2z+5=0z^2+2z+5=0 gives z=−1±2iz=-1\pm2i. The circle CC has centre −1+i-1+i and radius 2:

  • |(−1+2i)−(−1+i)|=|i|=1<2|(-1+2i)-(-1+i)|=|i|=1<2: inside;
  • |(−1−2i)−(−1+i)|=|−3i|=3>2|(-1-2i)-(-1+i)|=|-3i|=3>2: outside.

Residue at z=−1+2iz=-1+2i: Res=z+4z−(−1−2i)|z=−1+2i=3+2i4i.\operatorname{Res}=\frac{z+4}{z-(-1-2i)}\Big|_{z=-1+2i}=\frac{3+2i}{4i}. By the residue theorem, ∮Cz+4z2+2z+5dz=2πi⋅3+2i4i=π(3+2i)2.\oint_C\frac{z+4}{z^2+2z+5}\,dz=2\pi i\cdot\frac{3+2i}{4i}=\frac{\pi(3+2i)}{2}.

✓ Checked by computer We checked by computer: the value is π(3+2i)2\frac{\pi(3+2i)}{2}.

↑ Back to the question list

Let c:[0,1]→ℂ be the curve, where c(t)=e4πit, 0≤t≤1. Evaluate the contour integral ∫cdz2z2−5z+2.

2021 · Paper II · Q1d · 10 marks

Solution

The curve. c(t)=e4πitc(t)=e^{4\pi it}, 0≤t≤10\le t\le1: as tt runs from 0 to 1 the angle 4πt4\pi t runs from 0 to 4π4\pi, so cc goes twice round the unit circle anticlockwise (winding number 2 about every point inside).

Poles. 2z2−5z+2=(2z−1)(z−2)2z^2-5z+2=(2z-1)(z-2): poles at z=12z=\frac12 (inside) and z=2z=2 (outside). Resz=1/21(2z−1)(z−2)=12(z−2)|z=1/2=12(−32)=−13.\operatorname{Res}_{z=1/2}\frac{1}{(2z-1)(z-2)}=\frac{1}{2(z-2)}\Big|_{z=1/2}=\frac{1}{2\left(-\frac32\right)}=-\frac13 .

Residue theorem with winding number 2: ∫cdz2z2−5z+2=2⋅2πi⋅(−13)=−4πi3.\int_c\frac{dz}{2z^2-5z+2}=2\cdot2\pi i\cdot\left(-\frac13\right)=-\frac{4\pi i}{3}.

✓ Checked by computer We checked by computer: the residue at z=12z=\frac12 is −13-\frac13, giving −4πi3-\frac{4\pi i}{3}.

↑ Back to the question list

Using contour integration, evaluate the integral ∫−∞∞sinxdxx(x2+a2), a>0.

2021 · Paper II · Q4b · 20 marks

Solution

Consider f(z)=eizz(z2+a2)f(z)=\dfrac{e^{iz}}{z(z^2+a^2)}. It has a simple pole at z=0z=0 on the real axis, so use the upper semicircle ΓR\Gamma_R indented by a small semicircle γε\gamma_\varepsilon above 00.

  • ∫ΓRf→0\int_{\Gamma_R}f\to0, since |eiz|≤1|e^{iz}|\le1 there and |f|≤1R(R2−a2)|f|\le\dfrac{1}{R(R^2-a^2)}.
  • Over the small semicircle (traversed clockwise), ∫γεf→−πiResz=0f=−πia2\int_{\gamma_\varepsilon}f\to-\pi i\operatorname{Res}_{z=0}f=-\dfrac{\pi i}{a^2}.
  • The only pole inside is z=iaz=ia: Resz=ia=e−aia⋅2ia=−e−a2a2\operatorname{Res}_{z=ia}=\dfrac{e^{-a}}{ia\cdot2ia}=-\dfrac{e^{-a}}{2a^2}.

So, letting R→∞R\to\infty, ε→0\varepsilon\to0: PV∫−∞∞eixdxx(x2+a2)−πia2=2πi(−e−a2a2)⇒PV∫−∞∞eixdxx(x2+a2)=πia2(1−e−a).\mathrm{PV}\int_{-\infty}^{\infty}\frac{e^{ix}\,dx}{x(x^2+a^2)}-\frac{\pi i}{a^2}=2\pi i\left(-\frac{e^{-a}}{2a^2}\right)\ \Longrightarrow\ \mathrm{PV}\int_{-\infty}^{\infty}\frac{e^{ix}\,dx}{x(x^2+a^2)}=\frac{\pi i}{a^2}\left(1-e^{-a}\right). The imaginary part is an ordinary convergent integral (the integrand sinxx(x2+a2)\frac{\sin x}{x(x^2+a^2)} is bounded near 0). Hence ∫−∞∞sinxdxx(x2+a2)=πa2(1−e−a).\int_{-\infty}^{\infty}\frac{\sin x\,dx}{x(x^2+a^2)}=\frac{\pi}{a^2}\left(1-e^{-a}\right).

✓ Checked by computer We checked by computer: numerical integration agrees with πa2(1−e−a)\frac{\pi}{a^2}(1-e^{-a}) (e.g. a=1.5a=1.5 gives 1.08471.0847).

↑ Back to the question list

Using contour integration, evaluate the integral ∫02π13+2sinθdθ.

2020 · Paper II · Q2c · 20 marks

Solution

With z=eiθz=e^{i\theta}: sinθ=z−z−12i\sin\theta=\dfrac{z-z^{-1}}{2i}, dθ=dzizd\theta=\dfrac{dz}{iz}, so 3+2sinθ=z2+3iz−1iz,∫02πdθ3+2sinθ=∮|z|=1dzz2+3iz−1.3+2\sin\theta=\frac{z^2+3iz-1}{iz},\qquad\int_0^{2\pi}\frac{d\theta}{3+2\sin\theta}=\oint_{|z|=1}\frac{dz}{z^2+3iz-1}. Poles: z=−3i±−9+42=i(−3±5)2z=\dfrac{-3i\pm\sqrt{-9+4}}{2}=\dfrac{i(-3\pm\sqrt5)}{2}.

  • z1=i(5−3)2z_1=\dfrac{i(\sqrt5-3)}{2}: |z1|=3−52≈0.38|z_1|=\dfrac{3-\sqrt5}{2}\approx0.38, inside;
  • z2=−i(3+5)2z_2=-\dfrac{i(3+\sqrt5)}{2}: |z2|≈2.62|z_2|\approx2.62, outside.

Resz1=1z1−z2=1i5.\operatorname{Res}_{z_1}=\frac{1}{z_1-z_2}=\frac{1}{i\sqrt5}. Hence ∫02πdθ3+2sinθ=2πi⋅1i5=2π5.\int_0^{2\pi}\frac{d\theta}{3+2\sin\theta}=2\pi i\cdot\frac{1}{i\sqrt5}=\frac{2\pi}{\sqrt5}.

✓ Checked by computer We checked by computer: the integral is 2π5≈2.8099\frac{2\pi}{\sqrt5}\approx2.8099.

↑ Back to the question list

Show that an isolated singular point z0 of a function f(z) is a pole of order m if and only if f(z) can be written in the form f(z)=ϕ(z)(z−z0)m where ϕ(z) is analytic and non zero at z0. Moreover Resz=z0f(z)=ϕ(m−1)(z0)(m−1)! if m≥1.

2019 · Paper II · Q2d · 15 marks

Solution

Recall: z0z_0 is a pole of order mm if the Laurent series of ff in 0<|z−z0|<r0<|z-z_0|<r is f(z)=∑n=−m∞cn(z−z0)n,c−m≠0.f(z)=\sum_{n=-m}^{\infty}c_n(z-z_0)^n,\qquad c_{-m}\ne0 .

(⇒\Rightarrow) Put ϕ(z)=(z−z0)mf(z)=∑n=−m∞cn(z−z0)n+m=∑k=0∞ck−m(z−z0)k\phi(z)=(z-z_0)^mf(z)=\sum_{n=-m}^{\infty}c_n(z-z_0)^{n+m}=\sum_{k=0}^{\infty}c_{k-m}(z-z_0)^k. This is a power series converging in |z−z0|<r|z-z_0|<r, so (defining ϕ(z0)=c−m\phi(z_0)=c_{-m}) ϕ\phi is analytic at z0z_0, and ϕ(z0)=c−m≠0\phi(z_0)=c_{-m}\ne0. Thus f(z)=ϕ(z)(z−z0)mf(z)=\dfrac{\phi(z)}{(z-z_0)^m}.

(⇐\Leftarrow) If f=ϕ(z−z0)mf=\dfrac{\phi}{(z-z_0)^m} with ϕ\phi analytic and ϕ(z0)≠0\phi(z_0)\ne0, expand ϕ(z)=∑k=0∞bk(z−z0)k\phi(z)=\sum_{k=0}^{\infty}b_k(z-z_0)^k, b0=ϕ(z0)≠0b_0=\phi(z_0)\ne0. Then f(z)=∑k=0∞bk(z−z0)k−m=b0(z−z0)m+⋯,f(z)=\sum_{k=0}^{\infty}b_k(z-z_0)^{k-m}=\frac{b_0}{(z-z_0)^m}+\cdots, a Laurent series whose lowest power is −m-m with non-zero coefficient. So z0z_0 is a pole of order mm.

Residue. The residue is the coefficient of (z−z0)−1(z-z_0)^{-1}, i.e. the term with k−m=−1k-m=-1, k=m−1k=m-1: Resz=z0f(z)=bm−1=ϕ(m−1)(z0)(m−1)!(m≥1),\operatorname*{Res}_{z=z_0}f(z)=b_{m-1}=\frac{\phi^{(m-1)}(z_0)}{(m-1)!}\qquad(m\ge1), since the Taylor coefficients of ϕ\phi are bk=ϕ(k)(z0)k!b_k=\dfrac{\phi^{(k)}(z_0)}{k!}. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Show by applying the residue theorem that ∫0∞dx(x2+a2)2=π4a3, a>0.

2018 · Paper II · Q3b · 15 marks

Solution

The integrand is even, so ∫0∞=12∫−∞∞\displaystyle\int_0^\infty=\frac12\int_{-\infty}^{\infty}.

Let f(z)=1(z2+a2)2=1(z−ia)2(z+ia)2f(z)=\dfrac{1}{(z^2+a^2)^2}=\dfrac{1}{(z-ia)^2(z+ia)^2}. On the upper semicircle ΓR\Gamma_R, |∫ΓRf|≤πR(R2−a2)2→0\left|\int_{\Gamma_R}f\right|\le\dfrac{\pi R}{(R^2-a^2)^2}\to0. The only pole in the upper half-plane is z=iaz=ia, of order 2: Resz=ia=ddz[(z+ia)−2]z=ia=−2(2ia)3=−2−8ia3=14ia3.\operatorname{Res}_{z=ia}=\frac{d}{dz}\left[(z+ia)^{-2}\right]_{z=ia}=-\frac{2}{(2ia)^3}=-\frac{2}{-8ia^3}=\frac{1}{4ia^3}. So ∫−∞∞dx(x2+a2)2=2πi⋅14ia3=π2a3,∫0∞dx(x2+a2)2=π4a3.◼\int_{-\infty}^{\infty}\frac{dx}{(x^2+a^2)^2}=2\pi i\cdot\frac{1}{4ia^3}=\frac{\pi}{2a^3},\qquad\int_0^{\infty}\frac{dx}{(x^2+a^2)^2}=\frac{\pi}{4a^3}. \qquad\blacksquare

✓ Checked by computer We checked by computer: ∫0∞dx(x2+a2)2=π4a3\int_0^\infty\frac{dx}{(x^2+a^2)^2}=\frac{\pi}{4a^3}.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Using contour integral method, prove that ∫0∞xsinmxa2+x2dx=π2e−ma.

2017 · Paper II · Q2b · 15 marks

Solution

The integrand xsinmxa2+x2\dfrac{x\sin mx}{a^2+x^2} is even, so the required integral is half of ∫−∞∞\displaystyle\int_{-\infty}^{\infty}, which is the imaginary part of ∫−∞∞xeimxx2+a2dx\displaystyle\int_{-\infty}^{\infty}\frac{xe^{imx}}{x^2+a^2}\,dx.

Take f(z)=zeimzz2+a2f(z)=\dfrac{ze^{imz}}{z^2+a^2} on the upper semicircular contour.

  • Arc → 0 (Jordan’s lemma). zz2+a2→0\dfrac{z}{z^2+a^2}\to0 uniformly as |z|→∞|z|\to\infty and m>0m>0, so ∫ΓRf→0\int_{\Gamma_R}f\to0. (Here the simple MLML bound is not enough; Jordan’s lemma uses ∫0πe−mRsinθdθ<πmR\int_0^\pi e^{-mR\sin\theta}\,d\theta<\frac{\pi}{mR}.)
  • Residue at z=iaz=ia (the only pole in the upper half-plane): Res=iae−ma2ia=e−ma2.\operatorname{Res}=\frac{ia\,e^{-ma}}{2ia}=\frac{e^{-ma}}{2}.

So ∫−∞∞xeimxx2+a2dx=2πi⋅e−ma2=πie−ma\displaystyle\int_{-\infty}^{\infty}\frac{xe^{imx}}{x^2+a^2}\,dx=2\pi i\cdot\frac{e^{-ma}}{2}=\pi i\,e^{-ma}. Its imaginary part gives ∫−∞∞xsinmxa2+x2dx=πe−ma\displaystyle\int_{-\infty}^{\infty}\frac{x\sin mx}{a^2+x^2}\,dx=\pi e^{-ma}, and therefore ∫0∞xsinmxa2+x2dx=π2e−ma.◼\int_0^{\infty}\frac{x\sin mx}{a^2+x^2}\,dx=\frac{\pi}{2}e^{-ma}. \qquad\blacksquare

✓ Checked by computer We checked by computer: numerical integration agrees with π2e−ma\frac{\pi}{2}e^{-ma} (e.g. m=1.3m=1.3, a=0.8a=0.8). We take m>0m>0, a>0a>0.

↑ Back to the question list

Let γ:[0,1]→ℂ be the curve γ(t)=e2πit,0≤t≤1. Find, giving justifications, the value of the contour integral ∫γdz4z2−1

2016 · Paper II · Q3c · 15 marks

Solution

The curve. γ(t)=e2πit\gamma(t)=e^{2\pi it}, 0≤t≤10\le t\le1, is the unit circle traversed once anticlockwise.

Poles. 4z2−1=(2z−1)(2z+1)4z^2-1=(2z-1)(2z+1): simple poles at z=±12z=\pm\frac12, both inside. Resz=1/214z2−1=18z|1/2=14,Resz=−1/2=18z|−1/2=−14\operatorname{Res}_{z=1/2}\frac{1}{4z^2-1}=\frac{1}{8z}\Big|_{1/2}=\frac14,\qquad\operatorname{Res}_{z=-1/2}=\frac{1}{8z}\Big|_{-1/2}=-\frac14 (using Res1h=1h′\operatorname{Res}\frac{1}{h}=\frac{1}{h'} with h′=8zh'=8z).

Residue theorem: ∫γdz4z2−1=2πi(14−14)=0.\int_\gamma\frac{dz}{4z^2-1}=2\pi i\left(\frac14-\frac14\right)=0 . (Check: the integrand is O(1/|z|2)O(1/|z|^2) at infinity, so its integral over a circle of radius R≥1R\ge1 – which equals the integral over γ\gamma – tends to 0 as R→∞R\to\infty; it must therefore be 0.)

✓ Checked by computer We checked by computer: the residues at ±12\pm\frac12 are ±14\pm\frac14 and add to 0.

↑ Back to the question list

State Cauchy’s residue theorem. Using it, evaluate the integral ∫Cez+1z(z+1)(z−i)2dz;C:|z|=2

2015 · Paper II · Q3a · 15 marks

Solution

Cauchy’s residue theorem. If ff is analytic inside and on a simple closed contour CC except for finitely many isolated singularities z1,…,zkz_1,\ldots,z_k inside CC, then ∮Cf(z)dz=2πi∑j=1kResz=zjf(z).\oint_Cf(z)\,dz=2\pi i\sum_{j=1}^k\operatorname*{Res}_{z=z_j}f(z).

The integrand f(z)=ez+1z(z+1)(z−i)2f(z)=\dfrac{e^z+1}{z(z+1)(z-i)^2} has simple poles at 00 and −1-1 and a double pole at ii, all inside |z|=2|z|=2.

  • At z=0z=0: e0+1(1)(−i)2=2−1=−2\dfrac{e^0+1}{(1)(-i)^2}=\dfrac{2}{-1}=-2.
  • At z=−1z=-1: e−1+1(−1)(−1−i)2=1+e−1−2i=i2(1+1e)\dfrac{e^{-1}+1}{(-1)(-1-i)^2}=\dfrac{1+e^{-1}}{-2i}=\dfrac i2\left(1+\frac1e\right), since (−1−i)2=2i(-1-i)^2=2i.
  • At z=iz=i: ddz[ez+1z2+z]z=i=[ez(z2+z)−(ez+1)(2z+1)(z2+z)2]z=i\dfrac{d}{dz}\left[\dfrac{e^z+1}{z^2+z}\right]_{z=i}=\left[\dfrac{e^z(z^2+z)-(e^z+1)(2z+1)}{(z^2+z)^2}\right]_{z=i}. With z2+z=−1+iz^2+z=-1+i, (z2+z)2=−2i(z^2+z)^2=-2i, 2z+1=1+2i2z+1=1+2i: Res=ei(−2−i)−(1+2i)−2i=(12−i)ei+1−i2.\operatorname{Res}=\frac{e^i(-2-i)-(1+2i)}{-2i}=\left(\tfrac12-i\right)e^i+1-\tfrac i2 .

Sum and integral. The residues add to −1+i2e+(12−i)ei-1+\dfrac{i}{2e}+\left(\dfrac12-i\right)e^{i}, so ∮Cf(z)dz=2πi[−1+i2e+(12−i)ei]=π[(2+i)ei−1e−2i]≈−0.404+0.701i.\oint_Cf(z)\,dz=2\pi i\left[-1+\frac{i}{2e}+\left(\frac12-i\right)e^{i}\right]=\pi\left[(2+i)e^{i}-\frac1e-2i\right]\approx-0.404+0.701i .

✓ Checked by computer We checked by computer: residues −2-2, i2(1+1e)\frac i2\left(1+\frac1e\right), (1−i2)+(12−i)ei(1-\frac i2)+(\frac12-i)e^{i}, and the value ≈−0.4045+0.7013i\approx-0.4045+0.7013i.

↑ Back to the question list

Evaluate the integral ∫0πdθ(1+12cosθ)2 using residues.

2014 · Paper II · Q3c · 20 marks

Solution

The integrand is even about θ=π\theta=\pi, so I=∫0πdθ(1+12cosθ)2=12∫02πdθ(1+12cosθ)2\displaystyle I=\int_0^\pi\frac{d\theta}{\left(1+\frac12\cos\theta\right)^2}=\frac12\int_0^{2\pi}\frac{d\theta}{\left(1+\frac12\cos\theta\right)^2}.

With z=eiθz=e^{i\theta}: 1+12cosθ=z2+4z+14z1+\frac12\cos\theta=\dfrac{z^2+4z+1}{4z}, dθ=dzizd\theta=\dfrac{dz}{iz}, so ∫02πdθ(1+12cosθ)2=∮|z|=116zi(z2+4z+1)2dz.\int_0^{2\pi}\frac{d\theta}{\left(1+\frac12\cos\theta\right)^2}=\oint_{|z|=1}\frac{16z}{i(z^2+4z+1)^2}\,dz . z2+4z+1=(z−α)(z−β)z^2+4z+1=(z-\alpha)(z-\beta) with α=−2+3\alpha=-2+\sqrt3 (inside, |α|≈0.27|\alpha|\approx0.27) and β=−2−3\beta=-2-\sqrt3 (outside). At the double pole α\alpha: Res=16iddz[z(z−β)2]α=16i⋅−(α+β)(α−β)3=16i⋅4(23)3=833i.\operatorname{Res}=\frac{16}{i}\frac{d}{dz}\left[\frac{z}{(z-\beta)^2}\right]_{\alpha}=\frac{16}{i}\cdot\frac{-(\alpha+\beta)}{(\alpha-\beta)^3}=\frac{16}{i}\cdot\frac{4}{(2\sqrt3)^3}=\frac{8}{3\sqrt3\,i}. So ∫02π=2πi⋅833i=16π33\displaystyle\int_0^{2\pi}=2\pi i\cdot\frac{8}{3\sqrt3\,i}=\frac{16\pi}{3\sqrt3}, and ∫0πdθ(1+12cosθ)2=8π33=83π9.\int_0^{\pi}\frac{d\theta}{\left(1+\frac12\cos\theta\right)^2}=\frac{8\pi}{3\sqrt3}=\frac{8\sqrt3\,\pi}{9}.

✓ Checked by computer We checked by computer: the integral is 8π33≈4.8368\frac{8\pi}{3\sqrt3}\approx4.8368.

↑ Back to the question list

Prove that if bea+1<1 where a and b are positive and real, then the function zne−a−bez has n zeroes in the unit circle.

2013 · Paper II · Q1d · 10 marks

Solution

Rouché’s theorem. If f,gf,g are analytic inside and on a simple closed curve CC and |g|<|f||g|<|f| on CC, then ff and f+gf+g have the same number of zeros inside CC.

Take C:|z|=1C:|z|=1, f(z)=zne−af(z)=z^ne^{-a} and g(z)=−bezg(z)=-be^z.

  • On |z|=1|z|=1: |f(z)|=e−a|f(z)|=e^{-a}.
  • On |z|=1|z|=1: |g(z)|=beRez≤be|g(z)|=b\,e^{\operatorname{Re}z}\le b\,e.

The hypothesis bea+1<1be^{a+1}<1 means be<e−abe<e^{-a}, so |g|<|f||g|<|f| on CC.

By Rouché, f+g=zne−a−bezf+g=z^ne^{-a}-be^z has as many zeros in |z|<1|z|<1 as f=zne−af=z^ne^{-a}, which has exactly nn (a zero of order nn at z=0z=0). Hence zne−a−bezz^ne^{-a}-be^z has nn zeros in the unit circle. ◼\blacksquare

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

Using Cauchy’s residue theorem, evaluate the integral I=∫0πsin4θdθ

2013 · Paper II · Q4b · 15 marks

Solution

sin4θ\sin^4\theta is symmetric about θ=π\theta=\pi, so I=12∫02πsin4θdθI=\dfrac12\displaystyle\int_0^{2\pi}\sin^4\theta\,d\theta.

With z=eiθz=e^{i\theta}: sinθ=z−z−12i\sin\theta=\dfrac{z-z^{-1}}{2i}, so sin4θ=(z−z−1)416\sin^4\theta=\dfrac{(z-z^{-1})^4}{16} and dθ=dzizd\theta=\dfrac{dz}{iz}: ∫02πsin4θdθ=116i∮|z|=1(z−z−1)4zdz.\int_0^{2\pi}\sin^4\theta\,d\theta=\frac{1}{16i}\oint_{|z|=1}\frac{(z-z^{-1})^4}{z}\,dz . Expand: (z−z−1)4=z4−4z2+6−4z−2+z−4(z-z^{-1})^4=z^4-4z^2+6-4z^{-2}+z^{-4}. So (z−z−1)4z\dfrac{(z-z^{-1})^4}{z} has a pole only at 00, with residue equal to the constant term 66. Hence ∫02πsin4θdθ=116i⋅2πi⋅6=3π4,I=∫0πsin4θdθ=3π8.\int_0^{2\pi}\sin^4\theta\,d\theta=\frac{1}{16i}\cdot2\pi i\cdot6=\frac{3\pi}{4},\qquad I=\int_0^{\pi}\sin^4\theta\,d\theta=\frac{3\pi}{8}.

✓ Checked by computer We checked by computer: ∫0πsin4θdθ=3π8\int_0^\pi\sin^4\theta\,d\theta=\frac{3\pi}{8}.

↑ Back to the question list

Evaluate by contour integration I=∫02πdθ1−2acosθ+a2,a2<1.

2012 · Paper II · Q3d · 15 marks

Solution

With z=eiθz=e^{i\theta}, cosθ=12(z+z−1)\cos\theta=\frac12(z+z^{-1}): 1−2acosθ+a2=1+a2−a(z+1z)=−az2+(1+a2)z−az=(1−az)(z−a)z.1-2a\cos\theta+a^2=1+a^2-a\left(z+\frac1z\right)=\frac{-az^2+(1+a^2)z-a}{z}=\frac{(1-az)(z-a)}{z}. So I=∮|z|=1z(1−az)(z−a)⋅dziz=∮|z|=1dzi(1−az)(z−a).I=\oint_{|z|=1}\frac{z}{(1-az)(z-a)}\cdot\frac{dz}{iz}=\oint_{|z|=1}\frac{dz}{i(1-az)(z-a)} . Since |a|<1|a|<1, the pole z=az=a is inside and z=1az=\frac1a is outside. (If a=0a=0 the integral is simply 2π2\pi.) Resz=a=1i(1−a2)⇒I=2πi⋅1i(1−a2)=2π1−a2.\operatorname{Res}_{z=a}=\frac{1}{i(1-a^2)}\quad\Longrightarrow\quad I=2\pi i\cdot\frac{1}{i(1-a^2)}=\frac{2\pi}{1-a^2}.

✓ Checked by computer We checked by computer: numerical integration agrees with 2π1−a2\frac{2\pi}{1-a^2} (e.g. a=0.6a=0.6). We take aa real.

↑ Back to the question list

Evaluate by Contour integration, ∫01dx(x2−x3)1/3

2011 · Paper II · Q3c · 15 marks

Solution

Reduce to a standard integral. (x2−x3)1/3=x2/3(1−x)1/3(x^2-x^3)^{1/3}=x^{2/3}(1-x)^{1/3}, so I=∫01x−2/3(1−x)−1/3dx.I=\int_0^1x^{-2/3}(1-x)^{-1/3}\,dx . Substitute x=t1+tx=\dfrac{t}{1+t} (0≤t<∞0\le t<\infty): dx=dt(1+t)2dx=\dfrac{dt}{(1+t)^2}, 1−x=11+t1-x=\dfrac{1}{1+t}. Then x−2/3(1−x)−1/3=t−2/3(1+t)2/3(1+t)1/3=t−2/3(1+t)x^{-2/3}(1-x)^{-1/3}=t^{-2/3}(1+t)^{2/3}(1+t)^{1/3}=t^{-2/3}(1+t), and I=∫0∞t−2/31+tdt=∫0∞tp−11+tdt,p=13.I=\int_0^{\infty}\frac{t^{-2/3}}{1+t}\,dt=\int_0^{\infty}\frac{t^{p-1}}{1+t}\,dt,\qquad p=\frac13 .

Keyhole contour. Let f(z)=zp−11+zf(z)=\dfrac{z^{p-1}}{1+z} with the branch cut along the positive real axis, 0<argz<2π0<\arg z<2\pi. Integrate round the keyhole: large circle |z|=R|z|=R, small circle |z|=ε|z|=\varepsilon, and the two edges of the cut.

  • Large circle: |f|≤Rp−1R−1|f|\le\dfrac{R^{p-1}}{R-1}, so its contribution is O(Rp−1)→0O(R^{p-1})\to0 (as p<1p<1). Small circle: O(εp)→0O(\varepsilon^{p})\to0 (as p>0p>0).
  • Upper edge gives II; on the lower edge zp−1=tp−1e2πi(p−1)z^{p-1}=t^{p-1}e^{2\pi i(p-1)}, and it is traversed backwards, giving −e2πi(p−1)I-e^{2\pi i(p-1)}I.
  • The only pole is z=−1=eiπz=-1=e^{i\pi}: Res=eiπ(p−1)\operatorname{Res}=e^{i\pi(p-1)}.

So (1−e2πi(p−1))I=2πieiπ(p−1)\left(1-e^{2\pi i(p-1)}\right)I=2\pi i\,e^{i\pi(p-1)}, i.e. I=2πie−iπ(p−1)−eiπ(p−1)=2πi−2isin(πp−π)=πsinπp.I=\frac{2\pi i}{e^{-i\pi(p-1)}-e^{i\pi(p-1)}}=\frac{2\pi i}{-2i\sin(\pi p-\pi)}=\frac{\pi}{\sin\pi p}.

Answer. With p=13p=\frac13: ∫01dx(x2−x3)1/3=πsin(π/3)=2π3≈3.628.\int_0^1\frac{dx}{(x^2-x^3)^{1/3}}=\frac{\pi}{\sin(\pi/3)}=\frac{2\pi}{\sqrt3}\approx3.628 .

✓ Checked by computer We checked by computer: numerical integration gives 3.62760=2π33.62760=\frac{2\pi}{\sqrt3}.

↑ Back to the question list

Let f(z)=a0+a1z+⋯⋯+an−1zn−1b0+b1z+⋯⋯+bnzn, bn≠0. Assume that the zeroes of the denominator are simple. Show that the sum of the residues of f(z) at its poles is equal to an−1bn.

2009 · Paper II · Q1e · 12 marks

Solution

Let P(z)=a0+⋯+an−1zn−1P(z)=a_0+\cdots+a_{n-1}z^{n-1} and Q(z)=b0+⋯+bnznQ(z)=b_0+\cdots+b_nz^n, so f=P/Qf=P/Q. All the poles of ff are zeros of QQ, so they lie in some disc |z|<R0|z|<R_0.

Step 1 – sum of residues as a contour integral. For R>R0R>R_0, by the residue theorem, ∑Resf=12πi∮|z|=Rf(z)dz,\sum\operatorname{Res}f=\frac{1}{2\pi i}\oint_{|z|=R}f(z)\,dz, and the left side does not depend on RR.

Step 2 – behaviour for large |z||z|. zf(z)=an−1zn+an−2zn−1+⋯bnzn+bn−1zn−1+⋯→an−1bn(|z|→∞).zf(z)=\frac{a_{n-1}z^n+a_{n-2}z^{n-1}+\cdots}{b_nz^n+b_{n-1}z^{n-1}+\cdots}\ \longrightarrow\ \frac{a_{n-1}}{b_n}\quad(|z|\to\infty). Write f(z)=an−1bn⋅1z+h(z)f(z)=\dfrac{a_{n-1}}{b_n}\cdot\dfrac1z+h(z); then |h(z)|≤K|z|2|h(z)|\le\dfrac{K}{|z|^2} for large |z||z|.

Step 3 – evaluate. 12πi∮|z|=Rfdz=an−1bn⋅12πi∮|z|=Rdzz+12πi∮|z|=Rhdz=an−1bn+εR,\frac{1}{2\pi i}\oint_{|z|=R}f\,dz=\frac{a_{n-1}}{b_n}\cdot\frac{1}{2\pi i}\oint_{|z|=R}\frac{dz}{z}+\frac{1}{2\pi i}\oint_{|z|=R}h\,dz=\frac{a_{n-1}}{b_n}+\varepsilon_R, with |εR|≤12π⋅2πR⋅KR2→0|\varepsilon_R|\le\dfrac{1}{2\pi}\cdot2\pi R\cdot\dfrac{K}{R^2}\to0. Since the left side is independent of RR, εR=0\varepsilon_R=0, and ∑polesResf=an−1bn.◼\sum_{\text{poles}}\operatorname{Res}f=\frac{a_{n-1}}{b_n}. \qquad\blacksquare

(With simple zeros zkz_k of QQ the residues are P(zk)Q′(zk)\dfrac{P(z_k)}{Q'(z_k)}; the result says ∑kP(zk)Q′(zk)=an−1bn\sum_k\dfrac{P(z_k)}{Q'(z_k)}=\dfrac{a_{n-1}}{b_n}.)

✓ Proof checked step by step Proof checked step by step.

↑ Back to the question list

If α, β, γ are real numbers such that α2>β2+γ2 show that : ∫02πdθα+βcosθ+γsinθ=2πα2−β2−γ2.

2009 · Paper II · Q4a · 30 marks

Solution

Reduce to one trigonometric term. Let r=β2+γ2r=\sqrt{\beta^2+\gamma^2} and choose δ\delta with β=rcosδ\beta=r\cos\delta, γ=rsinδ\gamma=r\sin\delta. Then βcosθ+γsinθ=rcos(θ−δ)\beta\cos\theta+\gamma\sin\theta=r\cos(\theta-\delta), and since the integrand has period 2π2\pi, I=∫02πdθα+rcos(θ−δ)=∫02πdϕα+rcosϕ(α>r≥0).I=\int_0^{2\pi}\frac{d\theta}{\alpha+r\cos(\theta-\delta)}=\int_0^{2\pi}\frac{d\phi}{\alpha+r\cos\phi}\qquad(\alpha>r\ge0). (If r=0r=0 the answer is 2πα\frac{2\pi}{\alpha} directly.)

Contour integration. With z=eiϕz=e^{i\phi}: α+rcosϕ=rz2+2αz+r2z,I=∮|z|=12dzi(rz2+2αz+r).\alpha+r\cos\phi=\frac{rz^2+2\alpha z+r}{2z},\qquad I=\oint_{|z|=1}\frac{2\,dz}{i\,(rz^2+2\alpha z+r)}. The roots are z1,2=−α±α2−r2rz_{1,2}=\dfrac{-\alpha\pm\sqrt{\alpha^2-r^2}}{r}, with z1z2=1z_1z_2=1. Since α>r>0\alpha>r>0, |z1|<1<|z2||z_1|<1<|z_2|. The residue at z1z_1 is 2ir(z1−z2)=2ir⋅2α2−r2r=1iα2−r2.\frac{2}{ir(z_1-z_2)}=\frac{2}{ir\cdot\frac{2\sqrt{\alpha^2-r^2}}{r}}=\frac{1}{i\sqrt{\alpha^2-r^2}}. Hence ∫02πdθα+βcosθ+γsinθ=2πi⋅1iα2−r2=2πα2−β2−γ2.◼\int_0^{2\pi}\frac{d\theta}{\alpha+\beta\cos\theta+\gamma\sin\theta}=2\pi i\cdot\frac{1}{i\sqrt{\alpha^2-r^2}}=\frac{2\pi}{\sqrt{\alpha^2-\beta^2-\gamma^2}}. \qquad\blacksquare

✓ Checked by computer We checked by computer: numerical integration agrees with 2πα2−β2−γ2\frac{2\pi}{\sqrt{\alpha^2-\beta^2-\gamma^2}} (e.g. α=3,β=1.2,γ=−1.5\alpha=3,\beta=1.2,\gamma=-1.5). We flag one point: the formula as stated needs α>0\alpha>0; for α<0\alpha<0 the integral is the negative of this.

↑ Back to the question list

Find the residue of cotzcothzz3atz=0

2008 · Paper II · Q1e · 12 marks

Solution

Use the Laurent expansions about 00: cotz=1z−z3−z345−⋯,cothz=1z+z3−z345+⋯\cot z=\frac1z-\frac z3-\frac{z^3}{45}-\cdots,\qquad\coth z=\frac1z+\frac z3-\frac{z^3}{45}+\cdots Multiply: cotzcothz=1z2+(13−13)+(−145−19−145)z2+⋯=1z2−745z2+⋯\cot z\coth z=\frac{1}{z^2}+\left(\frac13-\frac13\right)+\left(-\frac{1}{45}-\frac19-\frac{1}{45}\right)z^2+\cdots=\frac{1}{z^2}-\frac{7}{45}z^2+\cdots Dividing by z3z^3: cotzcothzz3=1z5−745⋅1z+⋯\frac{\cot z\coth z}{z^3}=\frac{1}{z^5}-\frac{7}{45}\cdot\frac1z+\cdots The coefficient of 1z\frac1z is the residue: Resz=0cotzcothzz3=−745.\operatorname*{Res}_{z=0}\frac{\cot z\coth z}{z^3}=-\frac{7}{45}.

✓ Checked by computer We checked by computer: cotzcothz=1z2−745z2+⋯\cot z\coth z=\frac{1}{z^2}-\frac{7}{45}z^2+\cdots, so the residue is −745-\frac{7}{45}.

↑ Back to the question list

Evaluate ∫C[ezz2(z2+2z+2)+log(z−6)+1(z−4)2]dz where C is the circle |z|=3. State the theorems you use in evaluating above integral.

2008 · Paper II · Q4a · 15 marks

Solution

Split the integral into three parts.

∮Clog(z−6)dz=0\oint_C\log(z-6)\,dz=0. log(z−6)\log(z-6) has its branch point at z=6z=6; taking the branch cut along [6,∞)[6,\infty), it is analytic in a domain containing |z|≤3|z|\le3. By the Cauchy–Goursat theorem its integral round CC is 0.

∮Cdz(z−4)2=0\oint_C\dfrac{dz}{(z-4)^2}=0. The only singularity, z=4z=4, is outside |z|=3|z|=3; again by Cauchy–Goursat the integral is 0.

The first term (residue theorem). g(z)=ezz2(z2+2z+2)g(z)=\dfrac{e^z}{z^2(z^2+2z+2)} has a double pole at 00 and simple poles at z=−1±iz=-1\pm i (roots of z2+2z+2z^2+2z+2), all inside |z|=3|z|=3 since |−1±i|=2|-1\pm i|=\sqrt2.

  • At z=0z=0: Res=ddz[ezz2+2z+2]z=0=[ez(z2+2z+2)−ez(2z+2)(z2+2z+2)2]0=2−24=0\operatorname{Res}=\dfrac{d}{dz}\left[\dfrac{e^z}{z^2+2z+2}\right]_{z=0}=\left[\dfrac{e^z(z^2+2z+2)-e^z(2z+2)}{(z^2+2z+2)^2}\right]_{0}=\dfrac{2-2}{4}=0.
  • At z=−1+iz=-1+i: Res=ezz2(2z+2)\operatorname{Res}=\dfrac{e^z}{z^2(2z+2)}; here z2=−2iz^2=-2i, 2z+2=2i2z+2=2i, so Res=e−1+i4\operatorname{Res}=\dfrac{e^{-1+i}}{4}.
  • At z=−1−iz=-1-i: z2=2iz^2=2i, 2z+2=−2i2z+2=-2i, so Res=e−1−i4\operatorname{Res}=\dfrac{e^{-1-i}}{4}.

Sum of residues: e−14(ei+e−i)=cos12e\dfrac{e^{-1}}{4}\left(e^{i}+e^{-i}\right)=\dfrac{\cos1}{2e}. By the residue theorem, ∮Cg(z)dz=2πi⋅cos12e=πicos1e.\oint_Cg(z)\,dz=2\pi i\cdot\frac{\cos1}{2e}=\frac{\pi i\cos1}{e}.

Answer: ∮C[ezz2(z2+2z+2)+log(z−6)+1(z−4)2]dz=πicos1e≈0.624i.\oint_C\left[\frac{e^z}{z^2(z^2+2z+2)}+\log(z-6)+\frac{1}{(z-4)^2}\right]dz=\frac{\pi i\cos1}{e}\approx0.624\,i .

✓ Checked by computer We checked by computer: residues 00, e−1+i4\frac{e^{-1+i}}{4}, e−1−i4\frac{e^{-1-i}}{4}, and the integral πicos1e≈0.6244i\frac{\pi i\cos1}{e}\approx0.6244i.

↑ Back to the question list

More on Complex Analysis

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper II, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted