Computing Real Integrals with Residues
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn the four standard contour techniques for real integrals: the semicircle for rational functions, the semicircle with Jordan’s lemma for oscillatory integrands, the unit circle for trigonometric integrals over a full period, and the keyhole for branch cuts.
The Concept
Section titled “The Concept”The strategy
Section titled “The strategy”Every method in this lesson follows the same four steps.
- Choose a contour that includes the real integral you want as one of its pieces.
- Apply the residue theorem to get the total around the closed contour.
- Show the unwanted pieces vanish, usually by the ML inequality.
- Solve for the piece you wanted.
The art is entirely in step 1. Steps 2 to 4 are mechanical.
Type 1: rational functions over
Section titled “Type 1: rational functions over R\mathbb{R}R”For with having no real zeros and , use the semicircular contour in the upper half plane:
The degree condition is what makes the arc vanish. On the integrand is while the arc length is , so the ML bound is . With only one degree of decay the bound would be and the method fails.
The figure carries out the whole argument for , computing the residues, the numerical value of the real integral, and the ML bound on the arc at two radii. All three agree on .
You could close in the lower half plane instead, picking up those residues with a sign flip from the reversed orientation. The answer is the same, which is a good consistency check.
Type 2: oscillatory integrands, with Jordan’s lemma
Section titled “Type 2: oscillatory integrands, with Jordan’s lemma”For or with , replace the trigonometric factor by and take the appropriate part at the end. The tool that makes the arc vanish is stronger than ML alone:
Jordan’s lemma. If uniformly as in the upper half plane, and , then
on the semicircular arc in the upper half plane.
The reason is that is exponentially small over most of the upper arc. This buys you a full degree: only is needed, rather than decay.
The sign of decides the half plane. For close upward, for close downward, because that is where decays.
Type 3: trigonometric integrals over a period
Section titled “Type 3: trigonometric integrals over a period”For , substitute so the interval becomes the unit circle:
The integral becomes a contour integral of a rational function around , evaluated by residues at whichever poles land inside. A real trigonometric integral becomes rational algebra, which is usually a large simplification.
Type 4: branch cuts and the keyhole
Section titled “Type 4: branch cuts and the keyhole”Integrals like involve a non-integer power, so the integrand has a branch point at 0. The standard contour is the keyhole: out along one side of the positive real axis, around a large circle, back along the other side, and around a small circle at the origin.
Because the two straight pieces sit on opposite sides of the cut, the multi-valued factor differs between them by , and they do not cancel. Instead they combine to give a multiple of the integral you want. That deliberate use of the branch jump is the whole trick.
Principal values and poles on the contour
Section titled “Principal values and poles on the contour”If the integrand has a pole on the real axis, the integral only exists as a Cauchy principal value, and the contour is indented with a small semicircle around the pole. A small semicircle over a simple pole contributes exactly times the residue - half of the full , as the half-turn suggests. This is how is evaluated, and the in the answer comes from precisely that half-loop.
Worked Examples
Section titled “Worked Examples”Example 1: Evaluate .
Solution. Poles at ; only is in the upper half plane. With and ,
✓ Consistent with evaluated from to .
The degree condition holds since .
Example 2: Evaluate .
Solution. The poles are the fourth roots of , namely , , , . The first two are in the upper half plane.
Since has , and at each pole,
Summing over the two upper poles:
∎
Try this with real methods. Partial fractions over requires factoring into two irreducible quadratics with irrational coefficients, and the resulting integrals are unpleasant. The contour method does not care about the degree.
Example 3: Evaluate .
Solution. Consider on the upper semicircle. Since , Jordan’s lemma applies and the arc vanishes.
The only pole in the upper half plane is , with
So
The result is real, so taking real parts,
∎
And as a bonus, the imaginary part gives , which is also obvious by oddness. Two integrals for the price of one is typical of this method.
Example 4: Evaluate .
Solution. Substitute , so and :
The denominator has roots . Only is inside the unit circle.
∎
Checking which root is inside is the crucial step, and it is where most errors in this type occur.
Example 5: Evaluate .
Solution. Consider on a contour indented by a small semicircle above the pole at 0. There are no poles enclosed, so the total is 0.
The large arc vanishes by Jordan’s lemma. The small semicircle above a simple pole, traversed clockwise, contributes .
So the two straight pieces sum to , giving
Taking imaginary parts, , and by evenness of ,
∎
The comes from the half-loop around the pole. This integral, the Dirichlet integral, has no elementary antiderivative at all.
Example 6: Evaluate .
Solution. The integrand is not even, so a full-line contour will not work directly. Instead use a sector contour of angle , since maps the positive real axis to the other ray and multiplies the integrand in a controlled way.
On the returning ray, substituting gives , so the integrand is unchanged while picks up a factor . The sector encloses the single pole , with residue evaluated there.
Carrying this out gives
∎
Match the contour to the symmetry of the integrand. A cube in the denominator suggests a sector, just as a fourth power suggests .
Example 7: A keyhole integral.
Set up .
Solution. The integrand has a branch point at 0 and a pole at . Use a keyhole around the positive real axis with the branch cut there.
On the lower edge of the cut, has picked up a factor relative to the upper edge, so the two straight contributions add rather than cancel, giving where is the wanted integral. The residue at , with the branch chosen so , is .
Verification by real methods: substituting turns it into … which is Example 2’s cousin, and indeed gives . ✓
Real-World Applications
Section titled “Real-World Applications”Fourier transforms. Most transforms in a table were computed by contour integration, and the transform of being is Example 3 with a parameter. Every filter design that uses a closed-form transform relies on this.
Inverse Laplace transforms. The Bromwich contour integral is evaluated by residues, with each pole contributing an exponential mode. This is the mathematics behind step and impulse responses in control theory.
Diffraction and scattering. The Sommerfeld theory of diffraction, and optical propagation integrals, are evaluated by steepest-descent and residue methods along contours in the complex plane.
Dispersion relations. The Kramers–Kronig relations connect the real and imaginary parts of a material’s response, and they are derived by contour integration with a principal value exactly like Example 5. They are used to check the consistency of measured optical data.
Statistical mechanics. Partition functions and their asymptotics are extracted by contour integration around singularities, which is how phase transitions show up as singularity locations.
Signal processing. The function’s integral, Example 5, is the reason ideal low-pass filters have the impulse response they do, and its slow decay is why real filters must be windowed.
Retrying will remove your ✅ checkmark until you pass again.