4.10.6 · D4Advanced Topics (Elite Level)

Exercises — Residue theorem — computing real integrals

1,808 words8 min readBack to topic

Before we start, one shared picture of the two contours we will use over and over.

Figure — Residue theorem — computing real integrals

The blue semicircle in the upper half-plane (UHP) is for integrals over . The orange unit circle is for integrals over . Every problem below picks one of these two loops.


Level 1 — Recognition

Here you only need to name the right tool and locate the trapped poles — no heavy computation.

Recall Solution (L1.1)

Tool: rational function, denominator degree , numerator degree , so the degree gap is — the semicircle machine in the UHP works (the arc dies like ). Poles: as a complex equation gives , i.e. . The blue UHP loop encloses only (positive imaginary part). The pole sits in the lower half — outside our loop, ignored. Answer: UHP semicircle; enclosed pole only.

Recall Solution (L1.2)

Tool: the integrand is a function of over a full period — this is already a loop. Substitute , which traces the unit circle once counter-clockwise as runs . Recall the dictionary: and . Answer: substitute ; integrate on the orange unit circle , CCW.


Level 2 — Application

Run each machine end-to-end for a single answer.

Recall Solution (L2.1)

Enclosed pole: (from L1.1). It is a simple pole (the denominator has a single zero there). Residue via : with , , , Why ? For a simple pole this avoids factoring — fastest route. Assemble: Sanity: ; over this is . ✓

Recall Solution (L2.2)

Substitute , , : Multiply top and bottom by to clear the : Poles: solve : , giving and . Inside ? ✓; ✗. Only is trapped. Residue (simple), using with , , : Assemble: Sanity: the standard formula with gives . ✓


Level 3 — Analysis

Now you must choose the tool consciously and reason about why the arc dies.

Recall Solution (L3.1)

Choose the right complex function. We want , but never use — it grows in the UHP. Instead use because decays upward. At the end take the real part. Arc dies by Jordan's Lemma: here as ; combined with the exponential kills the UHP arc even though we'd only get a degree gap of anyway — Jordan is the clean justification for the oscillatory factor. Enclosed pole: ; UHP gives (simple). Residue via , , : Assemble: Take the real part (the imaginary part is the integral, which is by oddness):

Recall Solution (L3.2)

Check the machine applies: numerator degree , denominator degree , gap ✓, and there are no real poles (roots are ). UHP semicircle, arc dies. Enclosed poles: and (both simple, both in the UHP). Write . Use where , so At (): , , so At (): , , so Sum: Assemble: Answer:


Level 4 — Synthesis

Combine several ideas: higher-order poles, oscillation, or a pole on the contour.

Recall Solution (L4.1)

Set-up. We have , so use (with ) and take the imaginary part at the end. Arc dies by Jordan's Lemma: as (numerator degree , denominator ), and , so the UHP arc vanishes — note the raw degree gap is only , so Jordan is essential here; the plain rational bound would fail. Enclosed pole: (simple). Residue with , : Assemble: Take the imaginary part (this is ; the real part is by oddness):

Recall Solution (L4.2)

Why a principal value? The integrand is actually finite at (limit ), but our complex tool has a genuine simple pole at sitting on the real axis — right on the contour. We handle it with an indented contour: a tiny semicircle of radius that detours over the pole, plus a big UHP semicircle. See Principal Value Integrals.

Figure — Residue theorem — computing real integrals

The closed contour (real axis with a small bump around , closed by the big arc) encloses no poles, so by the residue theorem the whole loop integral is : Big arc by Jordan's Lemma (, ). Small arc : a clockwise semicircle around a simple pole contributes (half of , minus for clockwise). Here , so . Let : Take the imaginary part ( is the imaginary part of ; the real part is odd and gives in P.V.):


Level 5 — Mastery

Fresh terrain: a parameter, a higher-order pole, and a quadratic-in- trig integral.

Recall Solution (L5.1)

Machine check: denominator degree , numerator degree , gap — UHP semicircle, arc dies. Enclosed pole: , so is a pole of order in the UHP. Order-2 residue (differentiate time): Assemble: Check : ✓ — matches the parent note's double-pole example.

Recall Solution (L5.2)

Substitute , , . Then So the integrand becomes Poles: . Inside : ✓ (order ); ✗. The extra did not add a pole at because the numerator cancels it — good, check confirmed. Write so that near ; the order-2 residue is Let . With , At : , . Since (sum of roots), . Thus Assemble: Sanity: the known formula with gives ✓. Answer:


Recall One-line summary of the whole workflow

Pick the loop ::: UHP semicircle for , unit circle for ; indent around real-axis poles for P.V. Kill the arc ::: degree gap (rational) or Jordan's Lemma (oscillatory , ). Finish ::: sum residues of enclosed poles only, multiply by ; a clockwise half-indent gives .

Connections