For , suppose are holomorphic on a neighborhood of the closed radius- disc. Subtract their Cauchy integral formula expressions on that circle. Its length is , and the distance from an interior point with modulus at most to the circle is at least . The estimation lemma gives the displayed bound. Uniform convergence on that circle therefore implies uniform convergence of each fixed-order derivative on the smaller disc. The positive separation from the contour is essential for a uniform bound.
For an entire function , use the complex logarithm with argument in . The unit-circle integral in the title uses the branch's one-sided boundary values at its crossing with the cut. On a keyhole contour, the outward upper bank has , and the inward lower bank has . Their combined integral of is . The inner circle contributes , which vanishes. The Cauchy integral theorem on the slit plane therefore gives the identity.
On , . The estimation lemma consequently gives
Subtracting the middle branch value centres the weight and produces this bound. The contour crosses the cut only in the limiting boundary-value interpretation, so it is not a closed contour inside the logarithm's domain.
Figure 1.
Opposite bank orientations turn a logarithmic jump into a real-segment integral
. Details.
Let . The useful identity on the square contour is
On the vertical edges the first term equals one; on the horizontal edges and . Thus on every edge. Also and the contour has length , so the estimation lemma gives
At every nonzero integer , the residue is . At zero the Laurent series is
so the residue there is . The positive orientation and the residue theorem therefore give
Letting yields the alternating reciprocal-square sum
The integrand has simple poles at and . Only the first is inside the upper contour, and its residue is
The residue theorem therefore gives, for every ,
On the upper semicircle, and . The estimation lemma bounds the arc contribution by . Hence the real-axis integral has the same limit, and taking its real part gives
The imaginary part vanishes independently because is odd. The real integral converges absolutely, since the denominator grows quadratically.
Use the principal branch of the complex logarithm for . Its branch cut is the ray , , lying below the real axis. Thus it is analytic in the upper half-plane, where the only pole of the integrand is .
Close the real interval by a large upper semicircle. The estimation lemma bounds the arc integral by , so it vanishes. The simple-pole residue is
The residue theorem then gives
For real , . Taking real parts and then using evenness of the real integrand yields
Both endpoints converge: the integrand is near zero and at infinity. This also agrees with the logarithmic parameter integral with Cauchy weight at parameter one.
Close the interval with an upper semicircle, traversed counterclockwise. On its large arc,
so the estimation lemma bounds the arc integral by . The enclosed residues are those at and , whose sum is . The residue theorem therefore gives
The positive sign agrees with the nonnegative real integrand.
Choose , so on the arc. Its clockwise orientation gives
Because is an analytic function at zero, uniformly on the small arc. Integration then gives
Therefore
The estimation lemma also gives . Hence a sufficient large-arc condition is
For example uniformly on the arc, with , suffices. Under the stronger literal assumption that is analytic at infinity, its Laurent expansion is ; the necessary and sufficient condition is then . A nonzero constant term would instead give the growing contribution .
For the usual piecewise smooth complex path , let denote its finite length. The estimation lemma gives
By uniform convergence, the supremum tends to zero, so
The uniform limit is continuous on the path, so its integral exists. This is uniform convergence and contour integration; the path length is fixed while the functions vary.
Put and . Traverse the rectangle with positive orientation of a contour, taking . Part (i) shows that the only enclosed poles of are
They are simple poles because
The residue formula for a quotient at a simple denominator zero gives
Their imaginary terms cancel and their residues sum to . Thus Cauchy's residue theorem gives
Figure 1.
The positively oriented contour encloses the two poles at
. The top edge is traversed from right to left. Its reversed orientation of a contour and the imaginary shift in the numerator produce times the desired real integral. Details.
The choice of numerator makes the horizontal sides useful. The hyperbolic sine satisfies , so . Consequently the lower and upper contour integrals, with their actual orientations, add to
It remains to justify discarding both vertical sides. On either side , , the reverse triangle inequality and part (b)(ii) imply
This lower bound is positive for sufficiently large . Also and each vertical side has length . The estimation lemma bounds the absolute value of the sum of the vertical contributions by
The real improper integral converges absolutely, since its integrand is continuous on the real axis and decays like at infinity. Combining all four sides and taking gives
Therefore
An independent real-variable check uses the hyperbolic tangent substitution : the integral becomes . Its antiderivative uses the inverse hyperbolic tangent, giving . As , this tends to , agreeing with and checking the factor of two.
For , and . The triangle inequality for an integral applied to the parametrized contour integral gives
This is the circular-contour instance of the estimation lemma.
Fix and . On and , the reverse triangle inequality gives . Subtract the two Cauchy integral formula expressions and apply the estimation lemma, using circle length :
Thus every fixed-order derivative converges uniformly on each smaller disc. The right-hand factor tends to zero by the assumed uniform convergence on . Keeping a positive gap from the integration contour is the essential feature of this Cauchy derivative convergence bound. If , the specified open disc is empty and the claim is vacuous.
Morera's theorem states that a continuous function on a domain is holomorphic if its contour integral around every triangle whose filled-in interior lies in the domain is zero.
The uniform limit is a continuous function, by the uniform limit theorem. For any such triangle , the estimation lemma gives
Each integral of vanishes by the Cauchy integral theorem. Hence the integral of vanishes too, and Morera's theorem proves is holomorphic on . This is the basic locally uniform convergence of holomorphic functions argument; the given uniform convergence on all of is more than needed.
For , integrate
along the contour consisting of and the upper semicircle, with positive orientation of a contour and . Its enclosed simple poles are and , with residues
On the upper semicircle, . The reverse triangle inequality gives and , so the estimation lemma gives
The integral along the real axis is absolutely convergent: the denominator stays nonzero on bounded real intervals, and the integrand is at infinity. The residue theorem therefore gives
Take real parts. The real integrand is an even function, so
To include , fix and let . For , the absolute value of the integrand is bounded by
an integrable function on . The dominated convergence theorem justifies passing the limit under the integral. If , then , and
Hence
Use the principal logarithm with , whose branch cut is the negative real axis. For this choice,
has three simple poles away from the cut: , , and . The pole at , caused by , must be included.
Choose and , and use a positively oriented keyhole contour around the negative real axis: the large circle is traversed counterclockwise, the upper bank from to , the small circle clockwise, and the lower bank from to . Formally, use radial segments at arguments , then let with fixed. The function has continuous limiting values on each compact bank, which justifies this limit.
Figure 1.
Keyhole contour around the negative real axis, including the logarithm's pole at 1
. Details.
Put . The residues are
The first follows from ; the other two follow from the simple zeros of . Their sum is
These expressions are valid also for , since never vanish for real .
On the outer circle, for and . On the inner circle, and . Thus the estimation lemma bounds the two arc integrals by
respectively, as and .
On the upper bank, gives ; on the lower bank it gives . Accounting for the opposite orientations, their combined integral is
The real improper integral converges: its integrand is bounded near zero by and at infinity by . Taking the arc limits in the residue theorem gives , hence
The final subtraction is exactly the contribution of the pole at .
The improper integral converges: its integrand is bounded near zero and at most for , which is integrable because .
Set , and . Apply the residue theorem to on the positively oriented sector contour consisting of the segment , the arc for , and the segment , with . No pole lies on the boundary. Exactly one root of is inside this sector, namely ; it is a simple pole. Part (a) gives
On the returning ray, put with decreasing from to zero. Since , the two ray contributions are
On the arc, , so the estimation lemma bounds its contour integral by
The residue theorem and the convergence already established now give
Using , we conclude
The sector also works for , when it is the upper semicircle. Its angle is chosen so that has the same value on the two rays.
Factor the denominator as and integrate
over followed by the upper semicircle, for . The enclosed simple poles are and . The local quotient formula from part (a) gives
On this arc, and , . Thus the estimation lemma gives
On the real line, , so the improper integral is absolutely convergent. Hence the residue theorem yields
Taking real parts is justified by absolute convergence. Therefore
The imaginary part vanishes as a further check, since the sine integrand is odd.
On the upper semicircular contour, and the reverse triangle inequality gives . Its arc length is , so the estimation lemma gives
The arc is open, so an ordinary integral sign is appropriate even though the source uses a closed-integral symbol there. Subtracting the vanishing arc contribution from the closed contour integral gives the real-line improper integral . Its integrand is an even function, and its tail is , ensuring convergence. Thus
On the small clockwise contour , decreases from to . Uniformly on that arc, , and hence
The large arcs also vanish. To make this precise for the displayed geometry, take them on the left semicircle , , split at the cut. On the principal holomorphic branch, , , and . The estimation lemma gives
For the last bound, symmetry and on imply that the angular integral is at most . The exact choice of large arcs does not affect the limiting result. The vertical improper integral converges absolutely because decays as .
Taking limits in the closed contour integral now yields , where . Thus
As an optional explicit evaluation, put and define . Differentiation under the integral sign and the Gaussian integral give and . Therefore and in terms of the error function and complementary error function.
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]