How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
The Residue Theorem and the Evaluation of Real Integrals
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Analyticity of Holomorphic Functions; Liouville and Morera
- Arc Length and Rectifiable Curves
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Variation and the Riemann–Stieltjes Integral
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Differentiability and the Cauchy–Riemann Equations
- Complex Power Series and Analytic Functions
- Connectedness
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Contour Integration
- Convexity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Function Space Topologies and the Exponential Law
- Fundamental Trigonometric Identities
- Goursat's Theorem and Cauchy's Theorem in a Convex Domain
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Improper Integrals
- Isolated Singularities and Laurent Series
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Line Integrals and the Gradient Theorem
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Metric Spaces
- Mixed Partials, Taylor Formulae, and Extrema
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Partitions of Unity and Paracompactness
- pi: the Equivalent Characterizations
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Subspaces, Products, and Quotients
- Suprema and Infima
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Fundamental Theorems of Calculus
- The Identity Theorem, the Maximum Principle and the Open Mapping Theorem
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The Total Derivative in ℝᵐ → ℝⁿ
- The Winding Number and the Global Cauchy Theorem
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page packages the residue theorem in the homological language already built for winding numbers and global Cauchy theory, then uses it to evaluate several families of definite integrals and bilateral series. The contour part is not just the local Laurent coefficient formula: the finiteness of the residue sum, the null-homology hypothesis, and the exact contour conventions all matter and are made explicit here.
The application half isolates the standard estimates and bookkeeping that are reused later: large semicircles, Jordan's lemma, upper and lower indentations, unit-circle substitutions for trigonometric integrals, keyhole branches for Mellin-type integrals, and rectangle contours for cotangent and cosecant summation. The companion page records the canonical worked evaluations and the standard failure modes these contour methods are designed to avoid.
3 · Logical flowchart
4 · Definitions, theorems and proofs
This page keeps Cauchy principal values distinct from genuine improper convergence
Remark
Cauchy principal values at a finite singularity and on the real line and Conventions and proved scope for improper integrals already distinguish two notions: an improper integral on the real line exists only when the one-sided tails or endpoint pieces converge separately, while a principal value couples symmetric truncations and can exist even when the separate one-sided limits diverge.
This page keeps that distinction rigid. A contour with a real-axis indentation usually computes a principal value first. It gives an ordinary improper value only when the real integral has already been shown to converge by an independent tail or endpoint argument.
Standard semicircle, rectangle, keyhole, indentation, and sector contours
Definition
All contours on this page are positively oriented unless a local direction is stated explicitly.
- The upper semicircle contour of radius is the union of the real segment and the arc for .
- The lower semicircle contour of radius traverses the real segment from to and then the lower arc with decreasing from to .
- The rectangle contour is the positively oriented boundary of the Euclidean rectangle with vertices .
- The keyhole contour about the positive real axis with radii is the positively oriented boundary of the slit annulus : it consists of the upper lip from to , the outer circle run counterclockwise, the lower lip from to , and the inner circle run clockwise.
- An upper indentation arc around a real point of radius is the clockwise semicircle for ; a lower indentation arc is the counterclockwise semicircle for .
- The sector contour with opening angles and radii is the positively oriented boundary of .
When a keyhole or sector contour is used with a complex power, this page states the branch explicitly. In the default keyhole convention the slit is the positive real axis and is taken with ; the principal branch from Complex logarithms, the principal logarithm, and principal and multivalued complex powers and The principal logarithm is the normalised holomorphic branch on the slit plane is used only when the slit is the negative real axis.
Admissible cycles for the residue theorem
Definition
Let be open, let be meromorphic on in the sense of Meromorphic functions on a plane domain, and let be its pole set. By Poles of a meromorphic function form a closed discrete set and are at most countable, is closed and discrete in .
A complex cycle is admissible for the residue theorem in when
- ,
- is null-homologous in in the sense of Null-homologous cycles and homologous cycles in an open set.
For such a pair the candidate residue sum is
Only points with nonzero index can contribute, and the next lemma shows that there are only finitely many of them.
Only finitely many singularities contribute to the residue sum of an admissible cycle
Statement
Let be meromorphic on an open set , let be its pole set, and let be admissible for the residue theorem in . Then
is a finite set.
Facts & Assumptions
Given: A meromorphic on an open set , its pole set , and an admissible cycle in .
The index of a cycle is locally constant off its trace and vanishes sufficiently far from the trace (The index of a cycle is locally constant off its trace and vanishes far from it).
The pole set of a meromorphic function is closed and discrete in the ambient open set (Poles of a meromorphic function form a closed discrete set and are at most countable).
Proof
Let By the local constancy part of [L1], is open in . The same local constancy also shows that if , then a whole neighbourhood of lies outside , so every limit point of outside the trace already lies in . Therefore .
By the far-from-the-trace clause of [L1], the set is bounded. Since the trace is compact, step 1.1 makes a bounded closed subset of , hence compact.
Because is admissible, its trace avoids the pole set. Thus [given, step 2.1, L2] ∎ The right-hand set is a closed discrete subset of the compact set by, and every closed discrete subset of a compact metric space is finite. So only finitely many poles have nonzero index.
The residue theorem for a null-homologous cycle
Statement
Let be open, let be meromorphic on with pole set , and let be admissible for the residue theorem in . Then
where only finitely many terms are nonzero.
Facts & Assumptions
Given: An open set , a meromorphic function on with pole set , and an admissible cycle in .
Only finitely many poles have nonzero index with respect to (Only finitely many singularities contribute to the residue sum of an admissible cycle).
For a sufficiently small positively oriented circle around an isolated singularity , the integral of on that circle is (The residue is the normalized small-circle integral).
If two cycles are homologous in an open set on which a function is holomorphic, then their contour integrals agree (Holomorphic integrals agree on homologous cycles).
A positively oriented circle around has index inside and outside (A circle traversed times has winding number inside and outside).
Proof
By [L1], the set is finite. For each choose so small that the closed discs are pairwise disjoint, lie in , meet no pole other than , and are disjoint from . Let be the positively oriented circle .
Put [step 1.1, L4] For every one has . Indeed, if then admissibility makes , and every lies in , so gives as well. If , then [L4] gives and for , so . Therefore and are homologous in .
The function is holomorphic on , so [L3] applied to step 2.1 yields
Each encloses only the pole , so [L2] gives Substituting this into step 3.1 proves the displayed formula. Since the set is finite, the residue sum has only finitely many nonzero terms.
A positively oriented circle integral is the sum of the enclosed residues
Statement
Let be a positively oriented circle, and let be meromorphic on a neighbourhood of the closed disc with no pole on the circle. Then
the sum being over the poles of inside the circle.
Facts & Assumptions
Given: A positively oriented circle and a meromorphic on a neighbourhood of with no pole on the circle.
The residue theorem holds for an admissible cycle (The residue theorem for a null-homologous cycle).
A positively oriented circle has index at interior points and at exterior points (A circle traversed times has winding number inside and outside).
Proof
The circle is null-homologous in any open set containing the closed [given, L1] disc it bounds, so applies to it.
By [L2], every pole with contributes the factor [step 1.1, L2] ∎ , while every pole outside the circle contributes the factor . Substituting those indices into gives the formula.
A rational large-semicircle integral vanishes under the zR(z) to 0 condition
Statement
Let be a rational function, and for let for . Assume that meets no pole of for all sufficiently large , and that
Then
Facts & Assumptions
Given: A rational function and the upper semicircles .
Proof
Along one has , so
The arc length of is . Therefore the ML estimate gives
The right-hand side tends to by hypothesis, so the arc integral tends to as claimed.
Jordan's lemma for rational functions of one complex variable
Statement
Let , let be a rational function, and let for . Assume that meets no pole of for all sufficiently large , and that
Then
Facts & Assumptions
Given: A real number , a rational function , and the upper semicircles .
If a twice differentiable function on an interval has nonnegative second derivative, then it is convex (A twice-differentiable function on an open interval is convex if and only if its second derivative is nonnegative).
Proof
For on the upper semicircle,
On the function has [L1, algebra] , so makes convex there. A convex graph lies below the chord joining its endpoint values, hence and therefore By symmetry, also
Put Then along the arc So
Splitting the integral at and using step 1.2 gives Hence
Since , the bound in step 3.1 tends to . Therefore the arc integral tends to .
An indented arc around a simple singularity contributes the expected residue fraction
Statement
Let have a simple pole at , let , and for arbitrary real angles let be the circular arc oriented from angle to angle inside . Then
In particular, an upper indentation from left to right contributes and a lower indentation contributes .
Facts & Assumptions
Given: A simple pole of at and the oriented arc .
At a simple pole, the Laurent principal part is , where ; hence with holomorphic near (Simple poles, The residue of an isolated singularity).
Proof
Write as in [L1]. Along the arc, put . Then and , so
The holomorphic function is bounded on a small closed disc around , say by . Hence which tends to with .
Adding the two parts from steps 1.1 and 2.1 proves the limit formula. The two indentation special cases are the choices and .
Rational improper integrals without real poles are upper-half-plane residue sums
Statement
Let be a rational function with , and assume that has no real zero. Then
converges, and
where the sum runs over the poles of in the upper half-plane.
Facts & Assumptions
Given: A rational function with and no real pole.
The residue theorem holds for the large upper semicircle contour (The residue theorem for a null-homologous cycle).
If , then the upper semicircle integral tends to (A rational large-semicircle integral vanishes under the zR(z) to 0 condition).
The degree gap makes on the real line, so the improper integral converges by comparison with the rational -test at exponent (The improper -test for rational exponents).
Proof
By [L3], the real improper integral converges. The same degree gap implies as , because the numerator degree is at least two less than the denominator degree.
Let be the contour formed by and the upper semicircle [L1] . For all sufficiently large , the contour avoids every pole of and encloses exactly the poles of with positive imaginary part. So gives
By step 1.1 and [L2], the arc integral tends to as . The straight-piece integral tends to by step 1.1. Passing to the limit in step 2.1 yields the residue formula.
Indented real-axis contours compute principal values with half-residue corrections
Statement
Let , where are nonzero, be a rational function with , and assume that its real poles are simple. For large enough to contain all these poles and for pairwise disjoint symmetric deletion radii , put
where the integral is the sum over the remaining compact intervals. In this statement,
When , the deleted union is empty and only remains. Indent every real pole above the real axis and close the contour in the upper half-plane. Then this principal value exists and
The correction term is the sum of the usual positive half-residues.
Facts & Assumptions
Given: A rational function with a two-degree denominator gap and only simple real poles, all indented above the real axis.
At a finite singularity, a principal value uses equal left and right deletions, while on the real line it uses the symmetric truncation ; neither assertion implies separate improper convergence (Cauchy principal values at a finite singularity and on the real line, This page keeps Cauchy principal values distinct from genuine improper convergence).
For an admissible cycle, the residue theorem gives its contour integral as times the index-weighted sum of the enclosed residues (The residue theorem for a null-homologous cycle).
If the large upper semicircle meets no pole and , then its integral tends to (A rational large-semicircle integral vanishes under the zR(z) to 0 condition).
An upper indentation contributes in the limit (An indented arc around a simple singularity contributes the expected residue fraction).
Proof
For large and small pairwise disjoint indentation radii , form the contour specified in the statement. It is an admissible positively oriented cycle, avoids every real pole, and encloses precisely the nonreal poles in the upper half-plane, so [L2] applies.
The contour pieces have their asserted limits as and every .
Indeed, the straight pieces sum to from the statement. The degree gap gives , so the large semicircle eventually meets no pole and satisfies the hypothesis of [L3]. Thus its integral tends to . Finally, [L4] makes the th upper indentation tend to . [given, step 1.1, L1, L3, L4, algebra]
The residue theorem and step 2.1 give Hence the joint limit exists, and moving the indentation term to the right proves the formula.
Rational Fourier integrals are evaluated by residues and Jordan's lemma
Statement
Let and let be a rational function such that as , with at most simple poles on the real axis. Then the oscillatory integral
is evaluated by closing in the upper half-plane when and in the lower half-plane when . More precisely:
- if and has no real poles, then
- if and has no real poles, then
- if the real poles are simple, then when , while for it equals
Facts & Assumptions
Given: A nonzero real and a rational function with at infinity and at most simple poles on the real axis.
For , Jordan's lemma kills the upper large semicircle for , and after replacing by it kills the lower large semicircle for as well (Jordan's lemma for rational functions of one complex variable).
The residue theorem evaluates the closed contour integral by the enclosed residues (The residue theorem for a null-homologous cycle).
Indentation arcs around simple real poles contribute the signed half-residue terms (An indented arc around a simple singularity contributes the expected residue fraction).
The real-axis indentation formulas compute principal values, not automatic improper convergence (This page keeps Cauchy principal values distinct from genuine improper convergence).
Proof
Assume first that and that has no real pole. Apply [L2] to [assume-case positive, L1, L2] the contour formed by and the upper semicircle. The arc term tends to by, so the real-line integral is the sum of the residues of in the upper half-plane.
If and has no real pole, close instead by the lower semicircle. The same computation gives a minus sign because the positively oriented contour now traverses the real segment from back to , so the real integral equals times the sum of the residues in the lower half-plane.
If has simple real poles and , indent them above the axis. Each indentation excludes its pole and contributes times its residue by [L3]; the residue theorem therefore gives the first displayed principal-value formula. If , use lower indentations and the lower semicircle. Each indentation contributes times its residue, while the clockwise outer contour contributes times the lower-half-plane residue sum, giving the second formula.
Steps 1.1, 1.2, and 1.3 prove all cases listed in the statement.
Trigonometric integrals become contour integrals by the unit-circle substitution
Statement
Let be a rational expression in two variables, and assume that after the substitution
the resulting rational function
has no pole on . Then
where the right-hand side is taken on the positively oriented unit circle.
Facts & Assumptions
Given: A rational expression whose transformed integrand has no pole on the unit circle.
Euler's formula gives (Euler's formula: for every real ).
Proof
Put . By [L1], Differentiating gives , so .
As runs from to , the variable traverses the unit circle once in the positive direction. Substituting the identities of step 1.1 into the real integral gives exactly the contour integral of . The hypothesis that has no pole on is what makes the contour integral well defined.
A keyhole contour sees the two boundary values of z^(alpha-1)
Statement
Fix , and on the slit plane define
with . Then for every the two boundary values on the positive axis satisfy
Facts & Assumptions
Given: A complex exponent and the branch with .
Proof
On the upper lip of the slit one has , so and therefore
On the lower lip one has , so Hence
Keyhole contours evaluate Mellin-type rational integrals
Statement
Let , let be a rational function with no pole on , and define
on the slit plane with . Assume that the improper integral converges and that the outer and inner circles of the keyhole contour contribute in the limits and . Then
where the sum runs over the poles of away from the positive real axis.
Facts & Assumptions
Given: A rational function , a complex exponent , and the keyhole branch of with .
The two boundary values on the positive axis differ by the factor (A keyhole contour sees the two boundary values of z^(alpha-1)).
The residue theorem evaluates the full keyhole contour integral by the sum of the enclosed residues (The residue theorem for a null-homologous cycle).
Proof
Let be the keyhole contour of inner radius and outer radius . Applying [L2] to on the slit annulus gives where the sum is over the enclosed poles away from the positive axis.
The contour integral splits into outer circle, upper lip, inner circle, and lower lip. By hypothesis the two circular contributions vanish. The assumed convergence of the improper integral and the upper boundary value in [L1] make the upper lip tend to . The lower lip has the reverse orientation and boundary value , so it tends to .
Taking and in step 1.1 and substituting the boundary terms from step 1.2 yields The finite set of poles of the rational factor is eventually enclosed, so this is the sum over all poles of away from the positive axis and hence the claimed keyhole identity.
Cotangent residues sum a rational function over the integers
Statement
Let be a rational function such that is defined for every and as . Then
where the sum on the right is over the nonintegral poles of .
Facts & Assumptions
Given: A rational function with no integer pole and with at infinity.
The zeros of are exactly the integers, and they are simple because does not vanish there (The zeros of complex sine are the integer multiples of pi, and the zeros of complex cosine are the odd half-integer multiples of pi, Complex sine, cosine, hyperbolic sine, and hyperbolic cosine are entire with their standard derivatives).
If has a simple zero at , then (Residues of p over q at a simple zero of q).
The residue theorem applies on expanding rectangles (The residue theorem for a null-homologous cycle).
Proof
Let . By [L1], has a simple zero at [L1, L2, algebra] each integer , so applied to gives
Integrate around the rectangle with vertices and . On the vertical sides one has because , so is uniformly bounded there. On the horizontal sides tends uniformly to as . Since , the integrand is on every side, and the boundary integral tends to .
By [L3], the sum of all residues of inside the rectangle is therefore . Those residues are the integer residues from step 1.1 together with the nonintegral poles of . Letting yields which is the stated identity.
Cosecant residues sum an alternating rational series over the integers
Statement
Let be a rational function such that is defined for every and as . Then
where the sum on the right is over the nonintegral poles of .
Facts & Assumptions
Given: A rational function with no integer pole and with at infinity.
Residues at simple zeros are computed by the quotient rule (Residues of p over q at a simple zero of q).
The residue theorem applies on expanding rectangles (The residue theorem for a null-homologous cycle).
Proof
Let . By [L1], has a simple zero at [L1, L2, algebra] each integer , and gives
On the same rectangles used for the cotangent theorem, the factor is uniformly bounded on the vertical sides because , and on the horizontal sides it decays exponentially like . Since , the boundary integral of tends to .
Applying [L3] and letting the rectangle expand gives Rearranging yields the stated alternating summation formula.
The Basel sum is pi squared over six by a residue computation
Statement
This computation uses directly. It does not follow by substituting into the cotangent summation theorem, because that theorem excludes integer poles of .
Facts & Assumptions
Given: The meromorphic function .
The residue theorem applies on expanding rectangles, and the same boundary estimate as in the cotangent summation proof makes the rectangle integral of tend to (The residue theorem for a null-homologous cycle).
Proof
At every nonzero integer , the function has residue , so has residue there.
Near one has so Therefore and the residue of at is .
Integrate around the rectangles used in the cotangent theorem. By [L2], the boundary integral tends to , so the sum of the enclosed residues tends to . Hence which rearranges to the Basel value.
FALSE: the residue theorem applies to every cycle in the ambient domain
Statement
False claim: if is meromorphic on an open set and is any cycle in , then
The missing hypothesis is that be null-homologous in .
Facts & Assumptions
Given: The punctured plane , the function , and the positively oriented unit circle .
The residue theorem requires an admissible cycle, hence in particular null-homology in the ambient open set (Admissible cycles for the residue theorem, The residue theorem for a null-homologous cycle).
Refutation
In the punctured plane , the unit circle is not null-homologous: its winding number about the omitted point is , not .
The function is holomorphic on , so its pole set in the ambient domain is empty and the right-hand sum in the false claim is . However, the contour integral around the unit circle is . Thus the displayed equality fails, exactly because the cycle is not null-homologous in .
FALSE: existence of a Cauchy principal value forces improper convergence
Statement
False claim: if exists, then exists as an ordinary improper integral.
Facts & Assumptions
Given: The odd rational function .
Principal value is defined by symmetric truncation and does not by itself assert separate one-sided convergence (Cauchy principal values at a finite singularity and on the real line, This page keeps Cauchy principal values distinct from genuine improper convergence).
Ordinary improper convergence implies principal-value convergence, but the implication is not stated as an equivalence (Separate improper convergence implies convergence of the principal value).
Refutation
Because is odd, [given, L1] for every , so gives
On one has , so diverges to , and by oddness the left tail diverges to . Therefore the ordinary improper integral does not exist.
So the existence of a principal value does not force ordinary improper convergence.
FALSE: denominator degree one more than numerator degree already forces convergence
Statement
False claim: if is rational and , then must converge.
Facts & Assumptions
Given: The rational function on , or symmetrically on the punctured real line.
The two-degree gap in the rational residue theorem is the one used for unconditional improper convergence (Rational improper integrals without real poles are upper-half-plane residue sums).
The rational -test diverges at exponent (The improper -test for rational exponents).
Refutation
A degree drop by one means that at infinity the rational function behaves like with . The model case is exactly the tail in [L2], whose integral diverges logarithmically.
Therefore the hypothesis does not force improper [step 1.1, L1] ∎ convergence. The theorem uses the stronger two-degree gap for a reason.
FALSE: pointwise decay alone makes every large semicircle integral vanish
Statement
False claim: if pointwise on the upper semicircle as , then
Facts & Assumptions
Given: The function and the upper semicircles .
The correct large-arc lemma assumes control of , not only of itself (A rational large-semicircle integral vanishes under the zR(z) to 0 condition).
Refutation
Along the upper semicircle, pointwise. But
So the arc integral does not tend to even though the pointwise values do. [step 1.1, L1] ∎ This is exactly why requires the stronger hypothesis on .
5 · Examples, counterexamples and false statements
None yet.
Sources
- L. V. Ahlfors, Complex Analysis, 3rd ed., Ch. 4 §5.3
- R. Howell and J. Mathews, Complex Analysis, Ch. 8
- L. V. Ahlfors, Complex Analysis, 3rd ed., Ch. 4 §5.1
- L. V. Ahlfors, Complex Analysis, 3rd ed., Ch. 4 §5.1, Theorem 17
- E. Stein and R. Shakarchi, Complex Analysis, Ch. 3 §2
- E. Stein and R. Shakarchi, Complex Analysis, Ch. 3, Corollary 2.3
- E. Stein and R. Shakarchi, Complex Analysis, Ch. 3 §2.1
- R. Howell and J. Mathews, Complex Analysis, Ch. 8 §8.5
- R. Howell and J. Mathews, Complex Analysis, Ch. 8 §8.3
- R. Howell and J. Mathews, Complex Analysis, Ch. 8 §8.4
- R. Howell and J. Mathews, Complex Analysis, Ch. 8 §8.2
- R. Howell and J. Mathews, Complex Analysis, Ch. 8 §8.6
- W. F. Trench, Introduction to Real Analysis, Section 3.4