advanced30 min studyLesson 366 in Mathematics

Residue calculus and real integrals

Reduce suitable contour integrals to local coefficients and justify the limiting arcs needed for real integrals.

On this page

What you’ll understand

  • Apply the residue theorem to a pole-free boundary with finitely many interior poles.
  • Calculate simple and higher-order pole residues.
  • Justify a real-integral contour by estimating its auxiliary arc.

A residue is local information: one Laurent coefficient at an isolated singularity. The residue theorem turns a contour integral into the sum of those local contributions, weighted by how the contour surrounds them. Evaluating a real integral adds another step. The chosen contour must include the real segment of interest, and every auxiliary part must be evaluated or shown to vanish in a justified limit. Listing poles and multiplying by 2πi does not remove that analytic obligation.

A contour collects local negative first powers

For a simple positively oriented piecewise smooth closed contour, assume f is meromorphic on an open neighborhood of the enclosed closed region, has no pole on the contour, and has only finitely many poles inside. Remove small disjoint circles around those poles. Cauchy's theorem on the remaining region relates the outer integral to the small-circle integrals. In each local Laurent series, every power except the negative first power integrates to zero, leaving 2πi times the residue.

The contour need not pass near a pole to register its contribution; the integral records enclosure. A reversed contour changes the sign. More general closed curves require winding numbers and appropriate domain hypotheses rather than counting every pole once. A singularity lying exactly on the integration path is excluded from the ordinary theorem. A principal-value prescription or an indented contour is a different problem whose extra contribution and limiting interpretation must be stated explicitly.

∮γf(z) dz=2πi∑a inside γRes⁡(f,a)\oint_\gamma f(z)\,dz=2\pi i\sum_{a\ \mathrm{inside}\ \gamma}\operatorname{Res}(f,a)
Here γ is a positively oriented simple closed piecewise C¹ contour; f is meromorphic on a neighborhood of its enclosed closed region with finitely many interior poles and none on γ.↔ Scroll wide equations horizontally.

Compute the right local coefficient

At a simple pole a, multiply by z−a and take the limit. If f is a quotient p/q with holomorphic numerator and denominator, q(a)=0, and q′(a)≠0, the residue is p(a)/q′(a). This formula assumes the denominator zero is simple; using it at a double zero would divide by zero and miss the needed expansion. Cancellation can also remove a proposed pole, so check the numerator before assigning an order.

For a pole of order m, write f as a holomorphic numerator h divided by (z−a)m(z-a)^m. The residue is the coefficient of degree m−1 in h's Taylor series, hence its derivative of that order divided by the factorial. This method and direct Laurent expansion are equivalent. A residue can be zero at a genuine higher-order pole, so the contour contribution and the singularity's severity remain distinct quantities.

Res⁡(p/q,a)=p(a)q′(a)(q(a)=0, q′(a)≠0),Res⁡ ⁣(h(z)(z−a)m,a)=h(m−1)(a)(m−1)!\operatorname{Res}(p/q,a)=\frac{p(a)}{q'(a)}\quad(q(a)=0,\ q'(a)\ne0),\qquad \operatorname{Res}\!\left(\frac{h(z)}{(z-a)^m},a\right)=\frac{h^{(m-1)}(a)}{(m-1)!}
The numerator functions are holomorphic near a. The second formula applies when h(a)≠0 gives a pole of order m, and also extracts the residue if cancellation lowers the apparent order.↔ Scroll wide equations horizontally.

The closing arc has to disappear for a reason

To integrate a rational function over the whole real line, a large upper semicircle is often useful when no pole lies on the real axis. The closed integral equals the real segment integral plus the arc integral. If the rational function decays like one over the square of the modulus uniformly on the arc, its length grows only linearly, so the arc contribution tends to zero. State the actual denominator bound rather than inferring uniform complex decay from behavior on the real axis.

Exponential factors require particular care: a factor that decays in one half-plane can grow in the other, and an oscillatory real-axis expression does not select its contour by itself. Branch powers require a chosen branch and often a cut contour. In every case, specify the desired real integral's convergence, the contour orientation, enclosed singularities, and auxiliary limits. Residue arithmetic is usually the shortest part of a correct contour argument; the contour choice supplies the bridge to the real quantity.

Close an absolutely convergent real integral

Evaluate ∫−∞∞dx/(x2+4)\int_{-\infty}^{\infty}dx/(x^2+4) using an upper semicircle and an explicit arc estimate.

  1. The real integral converges absolutely because its integrand behaves as 1/x² at infinity and has no real singularity. The upper half-plane contains the simple pole a=2i of f(z)=1/(z2+4)f(z)=1/(z^2+4). Its residue is 1/(2a)=1/(4i)1/(2a)=1/(4i).

  2. For a semicircle of radius R>2, the reverse triangle inequality gives ∣z2+4∣≥R2−4|z^2+4|\ge R^2-4. The arc integral therefore has modulus at most πR/(R2−4)\pi R/(R^2-4), which tends to zero.

  3. For every such R the positively oriented closed contour encloses only 2i, so its integral is 2πi/(4i)=π/22\pi i/(4i)=\pi/2. Let R tend to infinity and subtract the vanishing arc contribution.

The result

The real integral equals π/2. The residue identifies the closed integral, and the uniform arc estimate justifies replacing it by the real-line limit.

Explore the model

Interactive lab

Interactive lab · vectors

Locate a pole and its residue in the complex plane

Pause and Reset; set Angle=90 degrees,Magnitude=2 to display the pole 2i. For a fresh comparison Reset and set Angle=−90 degrees,Magnitude=0.25 to display residue 1/(4i)=−i/4. Predict the sign before inspecting the projections. The vector lab locates these already calculated numbers; it does not discover poles, integrate the semicircle, or establish the large-radius bound.

Locate a pole and its residue in the complex planePlayback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Current readings: x component: 1.393; y component: 0.975; Magnitude: 1.7. All parameters are adjustable with the labeled controls below.−7.46−3.7303.737.46−3.5−1.7501.753.5xyvvₓ = 1.39
Vectorx / y projectionsTrace marker
x component
1.393
y component
0.975
Magnitude
1.7
t = 0 s

Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forLocal residue values and global contour estimates play different roles in a real-integral calculation.

Check your understanding

What must be checked before replacing a closed-contour residue result by a whole-real-line integral?

Try it yourself

Evaluate ∫−∞∞dx/(x2+4)2\int_{-\infty}^{\infty}dx/(x^2+4)^2 by an upper semicircle. Calculate the double-pole residue and give an arc bound that tends to zero.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

At 2i, use h(z)=1/(z+2i)² and differentiate once. On |z|=R>2, reuse the reverse triangle inequality before squaring it.

Compare with the solution

The residue at 2i is h′(2i)=−2/(4i)3=1/(32i)h'(2i)=-2/(4i)^3=1/(32i). The arc bound is πR/(R2−4)2→0\pi R/(R^2-4)^2\to0. The real integral is absolutely convergent, and the upper contour has only that double pole. Thus its limit is 2πi/(32i)=π/162\pi i/(32i)=\pi/16. A simple-pole quotient formula would be invalid at this double pole.

Take it with you

  • Residues are local coefficients collected by an appropriate global contour.
  • Pole order determines which residue formula is valid.
  • A real-integral evaluation must justify every auxiliary contour limit.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.