The math optional, made finite. Daily Practice

Contour integration of real integrals using residues

At a Glance

Why This Chapter Matters

Contour integration is the single highest-mark topic in Paper 2 Complex Analysis — every question so far has been worth 15 or 20 marks, and the pattern holds year after year. There are exactly two question types and each has a four-step algorithm. The hard part is not the method (it is mechanical) but the residue calculation, especially for double poles or when two poles are enclosed simultaneously. A student who can reliably compute residues at simple and order-2 poles and correctly apply Jordan’s lemma will bank 20 marks on a predictable question.

Minimum Theory

Residue theorem. If ff is analytic inside and on a simple closed contour CC except at finitely many isolated singularities, then Cf(z)dz=2πikResz=zkf\oint_C f(z)\,dz = 2\pi i\sum_k \operatorname{Res}_{z=z_k} f, where the sum is over all poles inside CC, and CC is traversed counterclockwise.

Computing residues. At a simple pole z=az=a: Resaf=limza(za)f(z)\operatorname{Res}_a f = \lim_{z\to a}(z-a)f(z); if f=p/qf=p/q with q(a)=0q(a)=0, p(a)0p(a)\neq0, q(a)0q'(a)\neq0 then Resaf=p(a)/q(a)\operatorname{Res}_a f = p(a)/q'(a). At an order-mm pole: Resaf=1(m1)!limzadm1dzm1[(za)mf(z)]\operatorname{Res}_a f = \dfrac{1}{(m-1)!}\lim_{z\to a}\dfrac{d^{m-1}}{dz^{m-1}}[(z-a)^m f(z)].

Jordan’s lemma and arc estimates. For the upper semicircle ΓR\Gamma_R: if g(z)0g(z)\to0 uniformly on ΓR\Gamma_R as RR\to\infty and m>0m>0, then ΓRg(z)eimzdz0\int_{\Gamma_R}g(z)e^{imz}\,dz\to0 (Jordan’s lemma — valid for eimze^{imz} even when gC/R|g|\sim C/R rather than C/R2C/R^2). For integrands without an oscillatory factor, the cruder ML estimate suffices: if fM/R1+ε|f|\le M/R^{1+\varepsilon} on ΓR\Gamma_R then ΓRfπRM/R1+ε0|\int_{\Gamma_R}f|\le \pi R\cdot M/R^{1+\varepsilon}\to0. Indent around a simple pole on the real axis: a small upper semicircle of radius ε\varepsilon traversed clockwise (from ε-\varepsilon to +ε+\varepsilon on the real axis) contributes πiRes0f-\pi i\cdot\operatorname{Res}_0 f in the limit ε0\varepsilon\to0.

Semicircular contour in the upper half-plane: residue theorem, Jordan's lemma, and indented-contour rule

Question Archetypes

Two patterns cover every question in the corpus. Classify in seconds by looking at the integration limits and the integrand type.

ArchetypeYou are seeing this when…
real-line-integral-contourlimits are 00 to \infty or -\infty to \infty; integrand is rational or rational ×\times sin/cos\sin/\cos
trig-integral-contourlimits are 00 to π\pi or 00 to 2π2\pi; integrand involves sinθ\sin\theta and/or cosθ\cos\theta

real-line-integral-contour (5 question(s); 2017, 2018, 2021, 2022, 2025)

Recognition Cues

Solution Template

  1. Symmetrise. If the integrand is even, write I=12I = \tfrac{1}{2}\int_{-\infty}^{\infty}.
  2. Replace trig. Replace sinmx\sin mx by Im(eimz)\operatorname{Im}(e^{imz}), or cosx\cos x by Re(eiz)\operatorname{Re}(e^{iz}). This gives a complex function f(z)f(z) that decays in the upper half-plane.
  3. Choose contour. CR=[R,R]ΓRC_R = [-R,R]\cup\Gamma_R (upper semicircle). Close in the upper half-plane (use lower if m<0m<0).
  4. Identify poles of ff in the upper half-plane (those with Imz>0\operatorname{Im}z>0). Check if any lie on the real axis (requiring an indent).
  5. Vanishing of ΓR\Gamma_R. For eimze^{imz} factor with m>0m>0: apply Jordan’s lemma. Without: use ML estimate (denominator degree \geq numerator degree +2+2).
  6. Compute residues at each enclosed pole (simple or order-2 formula).
  7. Apply residue theorem: f(x)dx=2πiRes\int_{-\infty}^{\infty}f(x)\,dx = 2\pi i\sum\operatorname{Res} (plus πiRes0-\pi i\cdot\operatorname{Res}_0 if z=0z=0 is indented).
  8. Extract the real part (for cos\cos) or imaginary part (for sin\sin). Halve if symmetrised in step 1.

Worked Example(s)

2017 Paper 2, 2017-P2-Q2b (15 marks)

Prove 0xsinmxa2+x2dx=π2ema\displaystyle\int_0^\infty\frac{x\sin mx}{a^2+x^2}\,dx=\frac{\pi}{2}e^{-ma} (m,a>0m,a>0).

1 — Symmetrise. Integrand is even, so I=12xsinmxa2+x2dxI=\tfrac12\int_{-\infty}^\infty\dfrac{x\sin mx}{a^2+x^2}\,dx.

2 — Replace. Let J=xeimxa2+x2dxJ=\int_{-\infty}^\infty\dfrac{xe^{imx}}{a^2+x^2}\,dx; then I=12ImJI=\tfrac12\operatorname{Im}J.

3–4 — Contour and poles. f(z)=zeimz(zia)(z+ia)f(z)=\dfrac{ze^{imz}}{(z-ia)(z+ia)}. Upper-half-plane pole: z=iaz=ia only.

5 — Arc vanishes. z/(a2+z2)0|z/(a^2+z^2)|\to0 on ΓR\Gamma_R; Jordan’s lemma (with m>0m>0) kills the arc.

6 — Residue. Simple pole at z=iaz=ia: Resz=iaf=iaeim(ia)2ia=ema2.\operatorname{Res}_{z=ia}f=\frac{ia\,e^{im(ia)}}{2ia}=\frac{e^{-ma}}{2}.

7–8 — Conclude. J=2πiema2=πiema.ImJ=πema.I=π2ema.J=2\pi i\cdot\frac{e^{-ma}}{2}=\pi i\,e^{-ma}.\qquad\operatorname{Im}J=\pi e^{-ma}.\qquad I=\frac{\pi}{2}e^{-ma}.\quad\blacksquare


2018 Paper 2, 2018-P2-Q3b (15 marks)

Show 0dx(x2+a2)2=π4a3\displaystyle\int_0^\infty\frac{dx}{(x^2+a^2)^2}=\frac{\pi}{4a^3} (a>0a>0).

1. Even integrand: I=12f(x)dxI=\tfrac12\int_{-\infty}^\infty f(x)\,dx with f(z)=1(z2+a2)2=1(zia)2(z+ia)2f(z)=\dfrac{1}{(z^2+a^2)^2}=\dfrac{1}{(z-ia)^2(z+ia)^2}.

5. fC/R4|f|\le C/R^4 on ΓR\Gamma_R, so ΓRπRC/R40|\int_{\Gamma_R}|\le \pi R\cdot C/R^4\to0 (ML estimate).

6 — Order-2 residue at z=iaz=ia: Resz=iaf=limziaddz1(z+ia)2=2(2ia)3=28ia3=14ia3.\operatorname{Res}_{z=ia}f=\lim_{z\to ia}\frac{d}{dz}\frac{1}{(z+ia)^2}=\frac{-2}{(2ia)^3}=\frac{-2}{-8ia^3}=\frac{1}{4ia^3}.

7–8. fdx=2πi14ia3=π2a3.I=12π2a3=  π4a3.  \int_{-\infty}^\infty f\,dx=2\pi i\cdot\frac{1}{4ia^3}=\frac{\pi}{2a^3}.\qquad I=\frac12\cdot\frac{\pi}{2a^3}=\boxed{\;\frac{\pi}{4a^3}.\;}\quad\blacksquare


2021 Paper 2, 2021-P2-Q4b (20 marks)

Evaluate sinxx(x2+a2)dx\displaystyle\int_{-\infty}^\infty\frac{\sin x}{x(x^2+a^2)}\,dx (a>0a>0).

Setup. f(z)=eizz(zia)(z+ia)f(z)=\dfrac{e^{iz}}{z(z-ia)(z+ia)}. The real-axis pole z=0z=0 forces an indented contour: standard CRC_R but with a small upper semicircle of radius ε\varepsilon bypassing z=0z=0.

Poles in upper half-plane: z=iaz=ia (simple). Pole at z=0z=0 is on the real axis — indented around.

Residues. Resz=iaf=eaia2ia=ea2a2,Resz=0f=e0(ia)(ia)=1a2.\operatorname{Res}_{z=ia}f=\frac{e^{-a}}{ia\cdot 2ia}=\frac{e^{-a}}{-2a^2},\qquad\operatorname{Res}_{z=0}f=\frac{e^0}{(-ia)(ia)}=\frac{1}{a^2}.

Apply contour theorem. Jordan kills ΓR\Gamma_R; small CW semicircle at 00 contributes πiRes0f=πi/a2-\pi i\cdot\operatorname{Res}_0 f=-\pi i/a^2: f(x)dx+(πia2)=2πiea2a2=πieaa2.\int_{-\infty}^\infty f(x)\,dx+\left(-\frac{\pi i}{a^2}\right)=2\pi i\cdot\frac{e^{-a}}{-2a^2}=-\frac{\pi i e^{-a}}{a^2}. f(x)dx=πia2πieaa2=πi(1ea)a2.\int_{-\infty}^\infty f(x)\,dx=\frac{\pi i}{a^2}-\frac{\pi i e^{-a}}{a^2}=\frac{\pi i(1-e^{-a})}{a^2}.

Take Im:   sinxx(x2+a2)dx=π(1ea)a2.  \boxed{\;\int_{-\infty}^\infty\frac{\sin x}{x(x^2+a^2)}\,dx=\frac{\pi(1-e^{-a})}{a^2}.\;}


2022 Paper 2, 2022-P2-Q2c (20 marks)

Evaluate cosx(x2+a2)(x2+b2)dx\displaystyle\int_{-\infty}^\infty\frac{\cos x}{(x^2+a^2)(x^2+b^2)}\,dx (a>b>0a>b>0).

Setup. Replace cosx\cos x with Re(eiz)\operatorname{Re}(e^{iz}). f(z)=eiz(z2+a2)(z2+b2)f(z)=\dfrac{e^{iz}}{(z^2+a^2)(z^2+b^2)}. Upper-half-plane poles: z=iaz=ia and z=ibz=ib (both simple).

Residues (a>b>0a>b>0 so a2>b2a^2>b^2): Resz=iaf=ea2ia(b2a2)=ea2ia(a2b2),Resz=ibf=eb2ib(a2b2).\operatorname{Res}_{z=ia}f=\frac{e^{-a}}{2ia(b^2-a^2)}=\frac{-e^{-a}}{2ia(a^2-b^2)},\qquad\operatorname{Res}_{z=ib}f=\frac{e^{-b}}{2ib(a^2-b^2)}.

Sum and multiply by 2πi2\pi i (Jordan kills arc): fdx=2πi12i(a2b2) ⁣(ebbeaa)=πa2b2 ⁣(ebbeaa).\int_{-\infty}^\infty f\,dx=2\pi i\cdot\frac{1}{2i(a^2-b^2)}\!\left(\frac{e^{-b}}{b}-\frac{e^{-a}}{a}\right)=\frac{\pi}{a^2-b^2}\!\left(\frac{e^{-b}}{b}-\frac{e^{-a}}{a}\right).

This is already real, so:   cosx(x2+a2)(x2+b2)dx=πa2b2 ⁣(ebbeaa).  \boxed{\;\int_{-\infty}^\infty\frac{\cos x}{(x^2+a^2)(x^2+b^2)}\,dx=\frac{\pi}{a^2-b^2}\!\left(\frac{e^{-b}}{b}-\frac{e^{-a}}{a}\right).\;}


2025 Paper 2, 2025-P2-Q2c (20 marks)

Prove x2x+2x4+10x2+9dx=5π12\displaystyle\int_{-\infty}^\infty\frac{x^2-x+2}{x^4+10x^2+9}\,dx=\frac{5\pi}{12}.

Factor denominator. x4+10x2+9=(x2+1)(x2+9)=(zi)(z+i)(z3i)(z+3i)x^4+10x^2+9=(x^2+1)(x^2+9)=(z-i)(z+i)(z-3i)(z+3i).

Upper-half-plane poles: z=iz=i and z=3iz=3i (both simple). Use q(z)=4z3+20zq'(z)=4z^3+20z.

Residues via p(z0)/q(z0)p(z_0)/q'(z_0):

At z=iz=i: p(i)=i2i+2=1ip(i)=i^2-i+2=1-i; q(i)=4i3+20i=4i+20i=16iq'(i)=4i^3+20i=-4i+20i=16i. Resz=if=1i16i=(1i)(i)16=i11611=116i16.\operatorname{Res}_{z=i}f=\frac{1-i}{16i}=\frac{(1-i)(-i)}{16}=\frac{-i-1}{16}\cdot\frac{-1}{-1}=-\frac{1}{16}-\frac{i}{16}.

At z=3iz=3i: p(3i)=(3i)23i+2=73ip(3i)=(3i)^2-3i+2=-7-3i; q(3i)=4(27i)+60i=48iq'(3i)=4(-27i)+60i=-48i. Resz=3if=73i48i=(7+3i)(i)48=37i48=1167i48.\operatorname{Res}_{z=3i}f=\frac{-7-3i}{-48i}=\frac{(7+3i)(-i)}{48}=\frac{3-7i}{48}=\frac{1}{16}-\frac{7i}{48}.

Arc estimate. fCR2/R4=C/R2|f|\le CR^2/R^4=C/R^2, so ΓRfπC/R0|\int_{\Gamma_R}f|\le\pi C/R\to0.

Sum residues and multiply by 2πi2\pi i: Sum=(116+116)+i(116748)=i(3+748)=10i48=5i24.\text{Sum}=\left(-\frac{1}{16}+\frac{1}{16}\right)+i\left(-\frac{1}{16}-\frac{7}{48}\right)=i\left(-\frac{3+7}{48}\right)=-\frac{10i}{48}=-\frac{5i}{24}. fdx=2πi(5i24)=10π24=  5π12.  \int_{-\infty}^\infty f\,dx=2\pi i\cdot\left(-\frac{5i}{24}\right)=\frac{10\pi}{24}=\boxed{\;\frac{5\pi}{12}.\;}\quad\blacksquare

Common Traps


trig-integral-contour (4 question(s); 2013, 2014, 2020, 2023)

Recognition Cues

Solution Template

  1. Extend to [0,2π][0,2\pi] if necessary, using a symmetry of the integrand. Record the factor (often 1/21/2).
  2. Substitute z=eiθz=e^{i\theta}: cosθ=z+z12\cos\theta=\tfrac{z+z^{-1}}{2}, sinθ=zz12i\sin\theta=\tfrac{z-z^{-1}}{2i}, dθ=dzizd\theta=\tfrac{dz}{iz}. Clear all znz^{-n} by multiplying numerator and denominator by znz^n.
  3. Factor the denominator of the resulting rational integrand in zz. Find the poles.
  4. Check which poles lie inside z=1|z|=1 (if z0<1|z_0|<1 it is inside; z0>1|z_0|>1 outside).
  5. Compute residues at interior poles (simple or order-2).
  6. Apply residue theorem: z=1g(z)dz=2πiRes\oint_{|z|=1}g(z)\,dz=2\pi i\sum\operatorname{Res}.
  7. Undo the extension (divide by 2 if step 1 doubled the range). Box the answer.

Unit-circle contour for trigonometric integrals: z=e^{i\theta} substitution

Worked Example(s)

2013 Paper 2, 2013-P2-Q4b (15 marks)

Evaluate 0πsin4θdθ\displaystyle\int_0^\pi\sin^4\theta\,d\theta using Cauchy’s residue theorem.

1 — Extend. sin4(θ+π)=sin4θ\sin^4(\theta+\pi)=\sin^4\theta, so 02πsin4θdθ=2I\int_0^{2\pi}\sin^4\theta\,d\theta=2I.

2 — Substitute. sinθ=zz12i\sin\theta=\dfrac{z-z^{-1}}{2i}, dθ=dzizd\theta=\dfrac{dz}{iz}. Then sin4θ=(zz1)416\sin^4\theta=\dfrac{(z-z^{-1})^4}{16}.

Expand by binomial: (zz1)4=z44z2+64z2+z4(z-z^{-1})^4=z^4-4z^2+6-4z^{-2}+z^{-4}. After multiplying by dz/(iz)dz/(iz): 2I=116iz=1 ⁣(z34z+6z4z3+1z5)dz.2I=\frac{1}{16i}\oint_{|z|=1}\!\left(z^3-4z+\frac{6}{z}-\frac{4}{z^3}+\frac{1}{z^5}\right)dz.

3–4 — Pole and residue. Only z=0z=0 is inside z=1|z|=1. The only z1z^{-1} term has coefficient 66, so Resz=0(integrand)=6\operatorname{Res}_{z=0}(\text{integrand})=6.

5–7. 2I=116i2πi6=12π16=3π42I=\dfrac{1}{16i}\cdot2\pi i\cdot6=\dfrac{12\pi}{16}=\dfrac{3\pi}{4}.

  I=0πsin4θdθ=3π8.  \boxed{\;I=\int_0^\pi\sin^4\theta\,d\theta=\frac{3\pi}{8}.\;}


2014 Paper 2, 2014-P2-Q3c (20 marks)

Evaluate 0πdθ(1+12cosθ)2\displaystyle\int_0^\pi\frac{d\theta}{(1+\tfrac{1}{2}\cos\theta)^2} using residues.

1. cosθ\cos\theta is even, so 02π=20π\int_0^{2\pi}=2\int_0^\pi.

2. 1+12cosθ=z2+4z+14z1+\tfrac12\cos\theta=\dfrac{z^2+4z+1}{4z}, giving the contour integral 02π()dθ=16iz=1zdz(z2+4z+1)2.\int_0^{2\pi}(\cdots)\,d\theta=\frac{16}{i}\oint_{|z|=1}\frac{z\,dz}{(z^2+4z+1)^2}.

3–4. Roots of z2+4z+1z^2+4z+1: z1,2=2±3z_{1,2}=-2\pm\sqrt3. z1=230.27<1|z_1|=2-\sqrt3\approx0.27<1 (inside); z2=2+3>1|z_2|=2+\sqrt3>1 (outside). Factor: (z2+4z+1)2=(zz1)2(zz2)2(z^2+4z+1)^2=(z-z_1)^2(z-z_2)^2. Order-2 pole at z1z_1.

5. Order-2 residue of z/(zz1)2(zz2)2z/(z-z_1)^2(z-z_2)^2 at z1z_1: Resz1=ddz ⁣[z(zz2)2]z=z1=z1z2(z1z2)3=4(23)3=4243=318.\operatorname{Res}_{z_1}=\frac{d}{dz}\!\left[\frac{z}{(z-z_2)^2}\right]\bigg|_{z=z_1}=\frac{-z_1-z_2}{(z_1-z_2)^3}=\frac{4}{(2\sqrt3)^3}=\frac{4}{24\sqrt3}=\frac{\sqrt3}{18}. (Used z1+z2=4z_1+z_2=-4 and z1z2=23z_1-z_2=2\sqrt3.)

6–7. 16i2πi318=16π390π=8π39.\frac{16}{i}\cdot2\pi i\cdot\frac{\sqrt3}{18}=\frac{16\pi\sqrt3}{9}\qquad\Longrightarrow\qquad\int_0^\pi=\frac{8\pi\sqrt3}{9}.

  0πdθ(1+12cosθ)2=8π39.  \boxed{\;\int_0^\pi\frac{d\theta}{(1+\tfrac12\cos\theta)^2}=\frac{8\pi\sqrt3}{9}.\;}

Standard-formula check: 02πdθ(a+bcosθ)2=2πa(a2b2)3/2\int_0^{2\pi}\frac{d\theta}{(a+b\cos\theta)^2}=\frac{2\pi a}{(a^2-b^2)^{3/2}} gives 16π39\frac{16\pi\sqrt3}{9}, halved is 8π39\frac{8\pi\sqrt3}{9} ✓.


2020 Paper 2, 2020-P2-Q2c (20 marks)

Evaluate 02πdθ3+2sinθ\displaystyle\int_0^{2\pi}\frac{d\theta}{3+2\sin\theta} by contour integration.

1. Limits already [0,2π][0,2\pi]. 2. sinθ=(zz1)/(2i)\sin\theta=(z-z^{-1})/(2i); after simplification: 3+2sinθ=3i(zz1)    I=z=1dziz23zi(1).3+2\sin\theta=3-i(z-z^{-1})\;\Longrightarrow\; I=\oint_{|z|=1}\frac{dz}{iz^2-3z-i}\cdot(-1).

3–4. Quadratic iz23zi=0iz^2-3z-i=0 gives z1,2=i(35)2z_{1,2}=-\tfrac{i(3\mp\sqrt5)}{2} (purely imaginary). z1=(35)/20.38<1|z_1|=(3-\sqrt5)/2\approx0.38<1 (inside); z22.62>1|z_2|\approx2.62>1.

5. Simple-pole residue at z1z_1 (leading coeff ii): Resz1=1i(z1z2)=1ii5=15.\operatorname{Res}_{z_1}=\frac{1}{i(z_1-z_2)}=\frac{1}{i\cdot i\sqrt5}=-\frac{1}{\sqrt5}. Accounting for the overall factor, the residue of the integrand is i/5-i/\sqrt5.

6–7. I=2πi(i5)=2π5=  2π55.  I=2\pi i\cdot\left(-\frac{i}{\sqrt5}\right)=\frac{2\pi}{\sqrt5}=\boxed{\;\frac{2\pi\sqrt5}{5}.\;}

Check: standard formula 2π/a2b22\pi/\sqrt{a^2-b^2} with a=3,b=2a=3,b=2 gives 2π/52\pi/\sqrt5 ✓.


2023 Paper 2, 2023-P2-Q2c (20 marks)

Evaluate 02πcos2θ5+4cosθdθ\displaystyle\int_0^{2\pi}\frac{\cos2\theta}{5+4\cos\theta}\,d\theta by contour integration.

2. Use cosθ=z+z12\cos\theta=\tfrac{z+z^{-1}}{2} and cos2θ=z2+z22\cos2\theta=\tfrac{z^2+z^{-2}}{2}. After clearing denominators: I=z=1z4+12iz2(2z+1)(z+2)dz.I=\oint_{|z|=1}\frac{z^4+1}{2iz^2(2z+1)(z+2)}\,dz.

3–4. Poles: z=0z=0 (order 2, inside), z=12z=-\tfrac12 (simple, inside), z=2z=-2 (simple, outside).

5 — Residue at z=12z=-\tfrac12 (simple): numerator (12)4+1=1716(\tfrac{1}{2})^4+1=\tfrac{17}{16}; denominator factor 2iz22(z+2)2iz^2\cdot2\cdot(z+2) at z=12z=-\tfrac12 gives 3i2\tfrac{3i}{2}. Resz=1/2=17/163i/2=1724i=17i24.\operatorname{Res}_{z=-1/2}=\frac{17/16}{3i/2}=\frac{17}{24i}=-\frac{17i}{24}.

Residue at z=0z=0 (order 2): let h(z)=z4+12i(2z+1)(z+2)h(z)=\dfrac{z^4+1}{2i(2z+1)(z+2)}. Then h(0)=14ih(0)=\tfrac{1}{4i}, h(0)=5/42i=58i=5i8h'(0)=\dfrac{-5/4}{2i}=\dfrac{-5}{8i}=\dfrac{5i}{8}. Resz=0=h(0)=5i8.\operatorname{Res}_{z=0}=h'(0)=\frac{5i}{8}.

6–7. I=2πi ⁣(17i24+5i8)=2πi17i+15i24=2πi2i24=4π24=  π6.  I=2\pi i\!\left(-\frac{17i}{24}+\frac{5i}{8}\right)=2\pi i\cdot\frac{-17i+15i}{24}=2\pi i\cdot\frac{-2i}{24}=\frac{4\pi}{24}=\boxed{\;\frac{\pi}{6}.\;}

Common Traps


Marks-Aware Writing

15-mark questions (2017, 2018, 2013): Five numbered steps are sufficient — symmetrize, complexify, state the pole(s) and their location, compute the residue explicitly, apply the theorem and halve. The arc-vanishing argument must be stated in one sentence (Jordan’s lemma / ML estimate) — omitting it loses method marks.

20-mark questions (2021, 2022, 2023, 2025, 2014, 2020): Identical structure but expect to compute two or more residues (2022, 2025), handle a double pole (2018 if it were 20 marks, 2014, 2023), or manage an indented contour (2021). Each residue computation should be a labelled sub-step. Show the ii cancellation explicitly: writing 2πi(k/i)=2πk2\pi i\cdot(k/i)=2\pi k is worth a mark.

For both mark levels: box the numerical answer; verify by the standard formula if one exists (2π/a2b22\pi/\sqrt{a^2-b^2} for 02πdθ/(a+bcosθ)\int_0^{2\pi}d\theta/(a+b\cos\theta), etc.).

Practice Set

YearPaper/QMarksArchetypeOne-line hint
2025P2-Q2c20real-line-integral-contourFactor z4+10z2+9=(z2+1)(z2+9)z^4+10z^2+9=(z^2+1)(z^2+9); use p(z0)/q(z0)p(z_0)/q'(z_0) at z=iz=i and z=3iz=3i; imaginary parts cancel
2023P2-Q2c20trig-integral-contourcos2θ=(z2+z2)/2\cos2\theta=(z^2+z^{-2})/2; double pole at z=0z=0 needs one derivative; simple pole at z=1/2z=-1/2
2022P2-Q2c20real-line-integral-contourReplace cosx\cos x with Re(eiz)\operatorname{Re}(e^{iz}); two simple poles ia,ibia,ib; ii‘s cancel to leave a real answer
2021P2-Q4b20real-line-integral-contourPole at z=0z=0 on real axis: indent; small CW semicircle gives πiRes0-\pi i\cdot\operatorname{Res}_0
2020P2-Q2c20trig-integral-contour3+2sinθiz23zi3+2\sin\theta\to iz^2-3z-i; roots i(3±5)/2-i(3\pm\sqrt5)/2; pick z<1\|z\|<1
2018P2-Q3b15real-line-integral-contourPole of order 2 at z=iaz=ia: differentiate (z+ia)2(z+ia)^{-2}; i3=ii^3=-i in (2ia)3(2ia)^3
2017P2-Q2b15real-line-integral-contourEven integrand, halve; replace sinmx\sin mx by Im(eimz)\operatorname{Im}(e^{imz}); simple pole at z=iaz=ia
2014P2-Q3c20trig-integral-contourDouble root inside: z1=2+3z_1=-2+\sqrt3; residue of z/(zz1)2(zz2)2z/(z-z_1)^2(z-z_2)^2 via quotient derivative
2013P2-Q4b15trig-integral-contourExtend to [0,2π][0,2\pi] via sin4\sin^4 periodicity; only z1z^{-1} term (coefficient 6) contributes

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.