Home / Courses / GATE Physics / Practice / The residue theorem and real integrals

The residue theorem and real integrals

Mathematical methods · 78 questions and templates for GATE Physics, in order from warm-up to top rank. Check each answer, then read the full solution.

New to this topic? Read the lesson first: The residue theorem and real integrals.

Loading questions… (they need JavaScript; nothing you type is sent anywhere)

Written questions with solutions

The same questions as a list, so you can print them or read without the practice box. Templates (fresh numbers) appear only in the practice box above.

  1. NATWarm-up

    The residue of 1z(z−3) at z=0 is ______ (to three decimal places).
    Answer and solution

    Answer: -0.333 (±0.002)

    At a simple pole, Resz0f=limz→z0⁡(z−z0)f(z). Here limz→0⁡1z−3=−13≈−0.333.

    Why people get this wrong: Evaluating at the other pole: 13 is the residue at z=3.

  2. MCQWarm-up

    The residue of ezz3 at z=0 is
    1. 1
    2. 12
    3. 16
    4. 0
    Answer and solution

    Answer: B

    ezz3=1z3(1+z+z22+⋯). The coefficient of 1/z comes from the z2/2 term: 12.

    Why people get this wrong: The residue is the coefficient of z−1, not of z−3.

  3. NATWarm-up

    The integral ∮|z|=23z+1z(z−1)dz (anticlockwise) equals kπi. The value of k is ______.
    Answer and solution

    Answer: 6

    Both poles are inside. Res0=10−1=−1 and Res1=3+11=4. The integral is 2πi(−1+4)=6πi.

    Why people get this wrong: The residue theorem has 2πi, so k is twice the sum of residues.

  4. MCQWarm-up

    If p(z0)≠0, q(z0)=0 and q′(z0)≠0, the residue of p(z)/q(z) at z0 is
    1. p′(z0)/q(z0)
    2. p(z0)q′(z0)
    3. p′(z0)/q′(z0)
    4. p(z0)/q′(z0)
    Answer and solution

    Answer: D

    z0 is a simple pole, and lim⁡(z−z0)pq=p(z0)lim⁡q(z)−q(z0)z−z0=p(z0)q′(z0).

    Why people get this wrong: This is not L'Hôpital on p/q: only the denominator is differentiated.

  5. MCQWarm-up

    The residue of cot⁡z at z=0 is
    1. 0
    2. −1
    3. 1
    4. π
    Answer and solution

    Answer: C

    cot⁡z=cos⁡z/sin⁡z; with p=cos⁡z and q=sin⁡z, p(0)/q′(0)=1/1=1. In fact cot⁡z has residue 1 at every nπ, which is why πcot⁡πz is used to sum series.

    Why people get this wrong: Even though cot⁡ is an odd function, its residue is not zero: odd functions have only odd powers, and 1/z is odd.

  6. MCQWarm-up

    The residue of 1z2+1 at z=i is
    1. i2
    2. −i2
    3. 12
    4. −12
    Answer and solution

    Answer: B

    1(z−i)(z+i), so the residue is 12i=−i2 (multiply top and bottom by −i).

    Why people get this wrong: 1/i=−i, not +i.

  7. MCQWarm-up

    The residue of z+1z−2 at z=2 is
    1. 1
    2. 3
    3. 2
    4. 0
    Answer and solution

    Answer: B

    At a simple pole z0, Res=limz→z0⁡(z−z0)f(z). Here that is the numerator at z=2: 2+1=3.

    Why people get this wrong: The residue is the value of the rest of the function at the pole, not the coefficient 1 in front of z.

  8. NATStandard

    The value of ∫−∞∞dxx2+4 is ______ (to two decimal places).
    Answer and solution

    Answer: 1.57 (±0.01)

    Close with a large semicircle in the upper half-plane; the arc contributes nothing because the integrand falls like 1/R2 while the arc length grows like R. The only enclosed pole is 2i, with residue 14i. So the integral is 2πi⋅14i=π2≈1.57.

    Why people get this wrong: Including the pole at −2i too: only poles inside the chosen contour count.

  9. MCQStandard

    The residue of z(z−1)2 at z=1 is
    1. 1
    2. 0
    3. 2
    4. 12
    Answer and solution

    Answer: A

    For a double pole, Res=ddz[(z−1)2f]z=1=ddzz=1. (Or write z=1+(z−1): f=1(z−1)2+1z−1.)

    Why people get this wrong: Using the simple-pole formula on a double pole: (z−1)f still blows up.

  10. MSQStandard

    For ∫−∞∞eikxf(x)dx with f(z)→0 uniformly as |z|→∞, which statements are true?
    1. For k>0, the integral over the large upper semicircle tends to 0 (Jordan's lemma)
    2. For k>0 we close in the upper half-plane because |eikz|=e−kImz decays there
    3. For k<0 we close in the lower half-plane, and the result is −2πi times the sum of residues there
    4. Jordan's lemma needs f to fall faster than 1/|z|2
    Answer and solution

    Answer: A, B, C

    Jordan's lemma: ∫0πe−kRsin⁡θdθ<π/(kR), so the arc integral is at most πkmaxarc⁡|f|→0 whenever f→0; f∼1/z is enough. That is the whole point: without the exponential you would need faster decay. For k<0 the exponential decays in the lower half-plane, and that contour runs clockwise, hence the minus sign.

    Why people get this wrong: The 1/|z|2 condition is for integrals without an oscillating factor.

  11. NATStandard

    The value of ∫02πdθ2+cos⁡θ is ______ (to two decimal places).
    Answer and solution

    Answer: 3.63 (±0.01)

    Put z=eiθ: cos⁡θ=z+z−12, dθ=dziz. The integral becomes ∮|z|=12dzi(z2+4z+1). The roots are −2±3; only z+=−2+3 is inside, with residue 2i(z+−z−)=223i. So the integral is 2πi⋅13i=2π3≈3.63. (General: ∫02πdθa+bcos⁡θ=2πa2−b2.)

    Why people get this wrong: Picking the root −2−3, which lies outside the unit circle.

  12. MCQStandard

    The residue of eizz2+1 at z=i is
    1. e2i
    2. e−12
    3. e−12i
    4. ie−1
    Answer and solution

    Answer: C

    Simple pole: eizz+i at z=i gives ei⋅i2i=e−12i.

    Why people get this wrong: ei⋅i=e−1, not e.

  13. NATStandard

    The value of ∫−∞∞cos⁡xx2+1dx is ______ (to two decimal places).
    Answer and solution

    Answer: 1.16 (±0.01)

    Write cos⁡x=Reeix and integrate eizz2+1 round the upper semicircle (Jordan's lemma kills the arc). Residue at i: e−12i. So ∫eixx2+1dx=2πi⋅e−12i=πe, which is already real. Answer π/e≈1.16.

    Why people get this wrong: Using cos⁡z itself on the contour fails: cos⁡z grows like e|Imz| on both half-planes.

  14. MCQStandard

    To evaluate ∫02πR(cos⁡θ,sin⁡θ)dθ for a rational function R, the usual contour is
    1. a large semicircle in the upper half-plane
    2. a keyhole contour round the positive real axis
    3. a rectangle of height 2π
    4. the unit circle, with z=eiθ
    Answer and solution

    Answer: D

    With z=eiθ, cos⁡θ=(z+1/z)/2, sin⁡θ=(z−1/z)/(2i) and dθ=dz/(iz), so the integral over one period becomes a closed contour integral round |z|=1 of a rational function of z. Only poles inside the unit circle count.

    Why people get this wrong: Semicircles are for integrals along the whole real line; keyholes for xa or ln⁡x on (0,∞).

  15. MCQStandard

    The sum of the residues of z2+1z(z−2)(z+3) at its three poles is
    1. 0
    2. 1
    3. −1
    4. 16
    Answer and solution

    Answer: B

    Directly: Res0=1(−2)(3)=−16, Res2=52⋅5=12, Res−3=10(−3)(−5)=23; sum =1. Quick check: for large |z|, f≈1/z, so a big circle gives 2πi⋅1; the residue at infinity is −1 and all residues add to zero.

    Why people get this wrong: Assuming the finite residues always add to 0: that needs f to fall faster than 1/z.

  16. MSQStandard

    For which integrals does closing along the real axis with a large semicircle in the UPPER half-plane work (the arc contribution vanishes)?
    1. ∫−∞∞dxx2+1
    2. ∫−∞∞e2ixx2+9dx
    3. ∫−∞∞e−2ixx2+9dx
    4. ∫−∞∞dxx4+1
    Answer and solution

    Answer: A, B, D

    Rational integrands falling like 1/R2 or faster give vanishing arcs in either half-plane. e2iz decays for Imz>0, so the upper arc vanishes. But |e−2iz|=e2Imz blows up in the upper half-plane; that one must be closed below.

    Why people get this wrong: Sign of k in eikz decides the half-plane: k>0 up, k<0 down.

  17. MCQStandard

    The residue of f(z)=1/z at z=∞ is
    1. 0
    2. 1
    3. −1
    4. 2πi
    Answer and solution

    Answer: C

    The residue at infinity is −12πi∮fdz round a large anticlockwise circle (anticlockwise as seen from infinity means clockwise for us), equal to minus the coefficient of 1/z in the expansion at large |z|: −1. With the residue +1 at 0, the total is 0, as it must be.

    Why people get this wrong: 1/z is perfectly regular at infinity (it tends to 0), yet its residue there is not 0.

  18. NATStandard

    The residue of e2z(z−1)2 at z=1 is ______ (two decimal places).
    Answer and solution

    Answer: 14.78 (±0.02)

    For a pole of order 2, Res=limz→1⁡ddz[(z−1)2f(z)]=ddze2z|z=1=2e2≈14.78.

    Why people get this wrong: Evaluating e2z at the pole (e2≈7.39) treats a double pole as a simple one.

  19. MCQStandard

    The residue of 1sin⁡z at z=π is
    1. 1
    2. π
    3. 0
    4. −1
    Answer and solution

    Answer: D

    sin⁡z has a simple zero at π, so for p/q with q(π)=0, q′(π)≠0: Res=1cos⁡π=−1. (Near π, sin⁡z=−(z−π)+…)

    Why people get this wrong: Copying the residue at z=0 (which is +1) to every zero of sin⁡z; the sign alternates.

  20. NATExam level

    The value of ∫−∞∞dxx4+1 is ______ (to two decimal places).
    Answer and solution

    Answer: 2.22 (±0.01)

    Poles in the upper half-plane: z1=eiπ/4 and z2=e3iπ/4. At a root of z4=−1, Res=14z3=z4z4=−z4. Sum: −14(eiπ/4+e3iπ/4)=−14⋅i2. Times 2πi: 2π24=π2≈2.22.

    Why people get this wrong: The trick 14z3=−z4 (using z4=−1) saves a lot of algebra.

  21. NATExam level

    The value of ∫−∞∞xsin⁡xx2+4dx is ______ (to three decimal places).
    Answer and solution

    Answer: 0.425 (±0.003)

    It is Im∫xeixx2+4dx. Here zz2+4 falls only like 1/z, but Jordan's lemma still kills the upper arc because of eiz. Residue at 2i: 2ie−24i=e−22. So ∫xeixx2+4=2πi⋅e−22=iπe−2, and the imaginary part is πe−2≈0.425.

    Why people get this wrong: Without Jordan's lemma the 1/R decay would look too slow; the exponential is what makes the arc vanish.

  22. MCQExam level

    The value of ∫−∞∞sin⁡3xxdx is
    1. 3π
    2. π
    3. π/3
    4. 0
    Answer and solution

    Answer: B

    Substitute u=3x: ∫sin⁡uu/3du3=∫sin⁡uudu=π. By contour integration: the principal value of ∫eiaxxdx is iπ for any a>0 (half a residue from the indented pole at 0), and its imaginary part is π.

    Why people get this wrong: The scale factor cancels; only the sign of a matters (−π for a<0).

  23. NATExam level

    The Cauchy principal value of ∫−∞∞dx(x−1)(x2+1) is ______ (to two decimal places).
    Answer and solution

    Answer: -1.57 (±0.01)

    Pole on the axis at 1 (counts with πi, half of 2πi) and pole at i in the upper half-plane. Res1=12; Resi=1(i−1)2i=1−2−2i=−1−i4. PV =2πi(−1−i4)+πi⋅12=−πi−π2+πi2=−π2≈−1.57. The imaginary parts cancel, as they must for a real integrand.

    Why people get this wrong: Giving the axis pole a full 2πi leaves an imaginary part, a sure sign of a slip.

  24. MSQExam level

    For f(z)=1z2(z−1), which statements are true?
    1. Resz=0f=−1
    2. Resz=1f=1
    3. ∮|z|=2fdz=0
    4. ∮|z|=1/2fdz=2πi
    Answer and solution

    Answer: A, B, C

    Double pole at 0: ddz1z−1|0=−1(0−1)2=−1. Simple pole at 1: 112=1. The big circle encloses both: 2πi(−1+1)=0 (also because f∼1/z3). The small circle encloses only 0: −2πi.

    Why people get this wrong: Forgetting the minus sign from differentiating 1/(z−1).

  25. MCQExam level

    For a>0, ∫0∞dx(x2+a2)2 equals
    1. π4a3
    2. π2a3
    3. π4a2
    4. π2a
    Answer and solution

    Answer: A

    The integrand is even, so take half the integral over the whole line. Double pole at ia: Res=ddz(z+ia)−2|ia=−2(2ia)−3=14ia3. Whole line: 2πi⋅14ia3=π2a3; half: π4a3. Dimension check: [x]−3 ✓.

    Why people get this wrong: Forgetting to halve for the range 0 to ∞ gives π/(2a3).

  26. NATExam level

    The value of ∫02πcos⁡2θ5−4cos⁡θdθ is ______ (to three decimal places).
    Answer and solution

    Answer: 0.524 (±0.003)

    Write cos⁡2θ=Rez2 and 5−4cos⁡θ=5−2(z+1/z)=−(2z−1)(z−2)z. Then ∫e2iθdθ5−4cos⁡θ=∮z2−(2z−1)(z−2)dzi. Only z=12 is inside: residue of −z2i(2z−1)(z−2) there is −1/4i⋅2⋅(−3/2)=112i. Times 2πi: π6≈0.524, real, so this is the answer.

    Why people get this wrong: Replacing cos⁡2θ by (z2+z−2)/2 brings a pole at 0 as well; using Rez2 avoids it.

  27. MCQExam level

    The residue of 1z2sin⁡z at z=0 is
    1. 0
    2. −16
    3. 1
    4. 16
    Answer and solution

    Answer: D

    z2sin⁡z=z3(1−z26+⋯), so 1z2sin⁡z=1z3(1+z26+⋯). The z−1 coefficient is 16.

    Why people get this wrong: Inverting 1−z2/6 gives 1+z2/6, not 1−z2/6.

  28. NATExam level

    The value of ∫−∞∞dxx2+2x+2 is ______ (to two decimal places).
    Answer and solution

    Answer: 3.14 (±0.01)

    Roots of z2+2z+2: −1±i. Upper one: −1+i, residue 1(−1+i)−(−1−i)=12i. Integral =2πi⋅12i=π. (Check: completing the square gives ∫dx(x+1)2+1=π.)

    Why people get this wrong: Shifting the pole sideways does not change the answer; only the imaginary part of the pole matters here.

  29. MCQExam level

    The value of ∫−∞∞e−3ixx2+1dx is
    1. πe−3
    2. πe3
    3. 2πe−3
    4. −πe−3
    Answer and solution

    Answer: A

    |e−3iz|=e3Imz decays in the lower half-plane, so close there; the contour then runs clockwise, giving −2πi× the residue at −i: e−3i(−i)−2i=e−3−2i. Result: −2πi⋅e−3−2i=πe−3. (As expected, since the integral is ∫cos⁡3xx2+1dx, the same for ±3.)

    Why people get this wrong: Closing in the upper half-plane picks up e+3, a huge value for a bounded integrand.

  30. MSQExam level

    Let f=P/Q be rational with deg⁡Q≥deg⁡P+2. Which statements are true?
    1. The residues of f at all its finite poles add up to zero
    2. The residue of f at infinity is zero
    3. The integral of f round any circle enclosing all its poles is zero
    4. f has no poles
    Answer and solution

    Answer: A, B, C

    For large |z|, |f|≲C/|z|2, so the integral round a circle of radius R is at most 2πR⋅C/R2→0; but it is the same for every R large enough, so it is exactly 0. Hence the finite residues add to zero, and so does the residue at infinity (no 1/z term). f can have poles, e.g. 1/(z2−1) with residues ±12.

    Why people get this wrong: The sum vanishing does not mean each residue vanishes.

← All topics · Timed mock test →