Near zero the magnitude of the integrand is of order , and at infinity it is of order . Thus the improper integral converges exactly in the strip
At a boundary of this strip the logarithmic-variable oscillation has no limiting primitive, so conditional convergence does not enlarge it.
Use a keyhole contour about the positive real axis for , taking . The circular arcs vanish in the indicated strip. The upper and lower banks contribute . The only enclosed pole is the double pole at , whose residue is . The residue theorem therefore gives
At the quotient has a removable singularity, with limit one, agreeing with .
For a bounded real function on , convergence of its improper integral means that its restriction to every , , is Riemann integrable and that the finite limit
exists. Boundedness by itself does not guarantee either local Riemann integrability or existence of this limit.
A monotone function on is bounded between its endpoint values. Divide the interval into equal pieces with endpoints . If is nondecreasing, its upper and lower Darboux sums differ by
For nonincreasing , the same calculation with reversed endpoint values gives . Thus in either case . For every one can choose to make this gap smaller than ; the Riemann integrability criterion proves that is Riemann integrable.
Now let be decreasing on with limit zero. For each , . On its monotonicity gives
Summing these bounds, with , yields
Both the partial sums and the truncated integrals are nondecreasing because . The inequalities show that one family is bounded above if and only if the other is. The bounded monotone sequence theorem then gives convergence of the sums exactly when the integer-endpoint integrals converge. For real between and , the integral to lies between the integrals to these integer endpoints; the squeeze theorem supplies the same limit. If either family is unbounded, both tend to . This proves the integral test for convergence in the required form.
For , use , which is decreasing and tends to zero. Its truncated improper integral is
This has a finite limit exactly when . If , the terms do not tend to zero, so the term test for divergence applies. Thus the full p-series criterion is
For every its nonnegative partial sums tend to .
On the top side put , with running from to . Since and , the reversed orientation cancels the minus sign. The two horizontal integrals therefore sum to
If the vertical contributions vanish, the previous residue theorem evaluation yields the Fresnel integral
This also is an ordinary oscillatory improper integral, not merely a symmetric principal value: integration by parts, using , bounds either tail beginning at by a constant times .
For , set . The ordinary change of variables formula gives
Taking is exactly the defining limit of the improper integral. By the improper power integral, it converges for , and
Because solves the differential equation from part (c), the Itô formula makes a local martingale before . The defining improper integral converges at both endpoints: its integrand is asymptotic to near zero and to at minus infinity. Since , both exponents are integrable. Hence
so the stopped local martingale is a bounded martingale.
If , then and . If , then and . The hitting times cannot coincide because stays positive. The optional sampling theorem for a supermartingale and bounded convergence theorem therefore give
Consequently
which is the Two-sided SLE boundary swallowing probability.
For , the preceding change of variables and one integration by parts give
Split the last improper integral at one and add and subtract one on . Since ,
The definition also gives the complex conjugate relation
Consequently, for ,
The Von Mangoldt function is nonnegative and satisfies . Using the Von Mangoldt divisor identity,
For , a comparison with an improper integral gives
Residue theorem Created 2026-09-24 Updated 2026-10-13
Let be a piecewise smooth contour forming a simple closed curve, positively oriented: travel counterclockwise, with the interior on the left. Suppose is holomorphic on an open set containing and its interior, except at finitely many isolated singularities strictly inside. Then
No isolated singularity may lie on : the ordinary contour integral must be defined there. Reversing the direction of the contour reverses the sign of the answer. The theorem applies to essential singularities as well as poles. [ref]
Return to . A counterclockwise circle encloses both simple poles, so
Yet is nonzero everywhere it is defined. A zero contour integral does not imply a zero function, or even absence of poles: the enclosed residues can cancel. By contrast, the counterclockwise circle encloses only , giving
The picture compares these two selections. Changing the shape of a contour while keeping the same enclosed poles leaves the contour integral unchanged, provided the contour deformation stays where is holomorphic.
Figure 1.
Two contour choices for : cancellation around both poles, and integral around
. Details.
This is the practical appeal of the residue theorem: local Laurent coefficients determine a global contour integral. For a rational function, a few simple pole computations can replace a long parametrized calculation. It also makes real improper integrals accessible by treating the real line as part of a closed contour in the complex plane.
To compute , take and travel along the real line from to , then return along the upper semicircle , parametrized by for . This contour is positively oriented and encloses the simple pole only; is outside. Hence
The added arc must be controlled before taking a limit. On , the reverse triangle inequality gives , and the arc length is . The estimation lemma therefore yields
The denominator grows quadratically while the arc length grows only linearly. This quantitative comparison, rather than a sketch alone, explains why closing the contour does not alter the limiting real improper integral. It even supplies an error bound: the difference between and the finite real integral is at most .
For a numerical check, gives the finite real integral , leaving about to reach . The arc bound is , comfortably larger than that error. The graph shows both quantities approaching zero. The exact tail here can be checked with the antiderivative ; the residue theorem method remains useful for improper integrals where a convenient real antiderivative is unavailable.
Figure 2.
Upper semicircle orientation and convergence of the real integral, with the bound
. Details.
Finally, both one-sided improper integrals converge absolutely: for , , whose tails are integrable. Thus the symmetric limit computes the ordinary improper integral, not merely a Cauchy principal value, and
Closing below instead would enclose the simple pole . With the same left-to-right traversal of the real line, that contour is clockwise, so its contour integral is again. This provides a useful sign check: the opposite residue is accompanied by the opposite direction around the enclosed region.
The same strategy extends to many other rational functions: choose a contour, identify its enclosed isolated singularities, compute their residues, and bound the added pieces. The choice of contour and the bound are as much part of the calculation as the residues. [ref]
For a statistically isotropic three-dimensional matter power spectrum , the Fourier transform gives . The improper integral converges at zero precisely when and at infinity when ; it is absolutely convergent only when . Within this range its positive coefficient is , interpreted continuously as at . Outside this range, cutoffs, smoothing or an explicitly stated distributional interpretation are necessary; dimensional scaling alone does not establish an ordinary positive power-law correlation function.