Contents / Real Analysis / Riemann Integration
Chapter 5
Riemann Integration
Darboux upper and lower sums, refinement and Riemann's criterion; continuity and monotonicity as sufficient conditions; Lebesgue's criterion stated and located; both parts of the Fundamental Theorem of Calculus; improper integrals with the p-tests, comparison and principal value; and Riemann-Stieltjes integrals with integration by parts, unifying sums and integrals.
Introduction
Differentiation, developed in Differentiation, asks a local question: how fast is changing at a point? Integration asks a global one: what is the total accumulated effect of across an interval? The two questions look unrelated, and historically they were pursued separately for two thousand years — areas by exhaustion, tangents by algebra. The Fundamental Theorem of Calculus, proved twice over in this chapter, says they are inverse to one another, and that discovery is what turned a collection of clever area computations into a subject.
This chapter builds the integral the way Riemann and Darboux did: trap the region under a graph between rectangles that fit underneath and rectangles that cover, and declare the area to exist when the two estimates can be squeezed together. That definition is deliberately unambitious, and the first half of the chapter is an inventory of exactly what it can and cannot do. It handles every continuous function, every monotone function, and every bounded function whose discontinuities are sparse in a sense made precise by Lebesgue's criterion. It fails, flatly, on the indicator function of the rationals — and understanding why it fails is worth more than any number of successful computations, because that failure is the entire motivation for the Lebesgue theory in the next chapter.
The second half extends the integral in two directions the basic definition forbids. Improper integrals relax the requirements that the interval be bounded and the integrand be bounded, by integrating over a shrinking or growing family of honest intervals and taking a limit; the price is that convergence becomes a question in its own right, with tests that mirror the series tests of Sequences and Series almost word for word. Riemann–Stieltjes integrals replace the width of a subinterval with the increment of a monotone weight function. That single change makes sums and integrals the same object: choose to be a staircase and is a sum, choose and it is the Riemann integral, and the theory covers both at once. Probability is the standard beneficiary, since holds whether is discrete, continuous, or neither.
Throughout, is real-valued and is a closed bounded interval with . Compactness of , the Heine–Borel theorem, and the uniform continuity of a continuous function on a compact set are taken from Limits and Continuity and Metric Spaces; the Mean Value Theorem comes from Differentiation; the completeness of , in the form that every bounded set has a supremum, comes from The Real Number System and is used on almost every page.
5.1Partitions, Upper Sums and Lower Sums
The construction starts by refusing to define area directly. Instead it defines two approximations, one guaranteed too small and one guaranteed too large, and lets the definition of the integral be the statement that the gap between them closes.
Definition 5.1 (Partition, refinement, and mesh). A partition of is a finite set of points
and we write for the length of the -th subinterval. The mesh of is . A partition is a refinement of if , that is, if is obtained from by adding finitely many new division points.
Definition 5.2 (Darboux sums). Let be bounded on and let be a partition. On the -th subinterval put
The lower sum and upper sum of over are
Boundedness is not a convenience here, it is what makes the definition legal: an unbounded has on some subinterval and is not a real number. This is why the Riemann integral is defined only for bounded functions on bounded intervals, and why every unbounded case in the second half of the chapter has to be reached by a limit rather than by the definition.
Since on each piece, for every single partition . What is not obvious — and is the technical heart of the construction — is that every lower sum is below every upper sum, even when the two partitions have nothing to do with each other. The route to that fact runs through refinement.
Lemma 5.3 (Refinement narrows the bracket). If is a refinement of , then
Proof. It suffices to treat the case where adds a single point to , since a general refinement adds finitely many points one at a time and the inequalities compose.
Say lies in the -th subinterval, . Every subinterval other than the -th is untouched, so its contribution to both sums is unchanged. Write
Both and are subsets of , and the infimum over a subset is at least the infimum over the whole set — fewer values to go below. Hence and , and so
The left side is what contributes where contributed the right side, so . The argument for upper sums is identical with the inequalities reversed, since a supremum over a subset is at most the supremum over the whole set. The middle inequality holds for any partition.∎
The lemma says something geometrically obvious once it is said: cutting a rectangle in two and letting each half rise to its own lowest height can only raise the total, never lower it. The refinement lemma is the workhorse of the whole section, and the next result is its first consequence.
Lemma 5.4 (Every lower sum is below every upper sum). For any two partitions and of , .
Proof. Let , the common refinement, which is a partition refining both. By Lemma Refinement narrows the bracket applied twice,
So the set of all lower sums lies entirely to the left of the set of all upper sums on the real line. Each set is therefore bounded — every upper sum is an upper bound for the lower sums — and by the completeness of each has the supremum or infimum we need.
Definition 5.5 (Upper and lower integrals; the Riemann integral). For bounded on define the lower and upper integrals
the supremum and infimum being over all partitions of . Lemma Every lower sum is below every upper sum gives always. The function is Riemann integrable on , written , when the two agree, and their common value is the integral or .
Intuition. Two surveyors measure a field bounded by a curved river. One is paid to under-report and lays out rectangles that stay strictly on dry land; the other is paid to over-report and lays out rectangles that cover every last puddle. Each is free to choose his own grid, and refining a grid helps both — the cautious surveyor's estimate goes up, the generous one's goes down.
Integrability is the claim that the two men, pushed to their respective best, arrive at the same number. Non-integrability is the claim that a stubborn gap remains no matter how fine the grids get, in which case "the area" is not a well-posed quantity for that function at all.
Example 5.7 (The integral of from the definition). Using only Definition Upper and lower integrals; the Riemann integral, show that .
Solution.
- Take the uniform partition with , so . Since is increasing, the infimum on is at the left endpoint and the supremum at the right: and .
- Therefore
- Both sequences converge to , and .
- Consequently and . Combined with this forces both to equal .
- Sanity check: the region is a triangle with legs and , of area . The definition reproduces elementary geometry, which is the least it must do to deserve the name area.
Example 5.8 (Computing by squeezing). Evaluate from upper and lower sums on the uniform partition.
Solution.
- With and increasing, and .
- Using ,
- Likewise .
- Both tend to , and the gap is . Hence .
- Sanity check against the figure: at the formula gives and , whose difference is exactly , as the caption claims, and sits between them.
5.2The Riemann Criterion and the Basic Integrability Theorems
Verifying integrability from the definition means computing two suprema over the infinite family of all partitions — unpleasant. The following reformulation replaces that with a single existential statement, and every integrability proof in this chapter goes through it.
Theorem 5.9 (Riemann's criterion for integrability). A bounded function on is Riemann integrable if and only if for every there exists a partition with
Proof. () Suppose such a exists for each . Then
using that the upper integral is an infimum over partitions (so at most ) and the lower integral is a supremum (so at least ). A non-negative number smaller than every is zero, so the two integrals agree.
() Suppose is integrable with integral , and let . By definition of the infimum there is a partition with , and by definition of the supremum a partition with . Let be their common refinement. By Lemma Refinement narrows the bracket, and , so
The quantity deserves a name, because reading it correctly is the whole skill. The factor is the oscillation of on the -th subinterval, and the sum is a weighted total oscillation. To make it small there are two independent levers: make the oscillation small on every piece, or confine the large oscillations to pieces of tiny total length. Continuity pulls the first lever; the finitely-many-discontinuities theorem pulls the second; Lebesgue's criterion says that those two levers, used together, are the only way it can ever be done.
Theorem 5.10 (Continuous functions are integrable). If is continuous on , then .
Proof. The interval is closed and bounded, hence compact, so by the theorem Heine–Cantor: continuity on a compact set is uniform of Limits and Continuity, is uniformly continuous on — and bounded, so upper and lower sums are defined at all.
Let . Uniform continuity supplies a , valid at every point simultaneously, such that
Choose any partition with mesh ; the uniform partition into pieces will do. On each subinterval , is continuous on a compact set, so by the extreme value theorem it attains its supremum at some and its infimum at some in that subinterval. Since ,
Summing with weights , which total ,
Riemann's criterion applies.∎
Pitfall. Read the proof again and notice which hypothesis actually did the work: uniform continuity, not continuity. Plain continuity gives a that may depend on the point, and a partition would then need its mesh below , an infimum that can be zero. Compactness of is what upgrades one to the other, and it is the reason the basic theory insists on a closed bounded interval. On the continuous function has no such uniform , and is not even bounded — both are outside the reach of the definition, and both come back as improper integrals later.
Continuity is sufficient but far from necessary, and the next theorem covers a class of functions that may be discontinuous at infinitely many points.
Theorem 5.11 (Monotone functions are integrable). If is monotone on , then .
Proof. Assume is increasing; the decreasing case follows by applying the result to . A monotone function on is bounded, with .
Take the uniform partition with . Because increases, the infimum on is and the supremum is . Hence
the sum telescoping. Given , choose to make this less than , and apply Riemann's criterion.∎
That proof is worth pausing on, because it never mentions continuity and never needs it. An increasing function may have a jump at every rational in — build one as over an enumeration of the rationals — and the telescoping argument still applies verbatim. Monotonicity forces the total jump to be at most , so the jumps cannot be both numerous and large, and the weighted oscillation collapses.
Theorem 5.12 (Algebra of integrable functions). If and , then , , and are all in , and
Moreover pointwise implies , and .
Proof. For the sum, note that on any subinterval and , so the oscillation of is at most the sum of the oscillations. Given , pick with and likewise for , and let be their common refinement; by the refinement lemma both bounds persist, so , and is integrable by Riemann's criterion. The inequalities then trap within of for every , giving equality. Scaling by multiplies both sums by ; for the roles of sup and inf swap, and the two sign changes cancel.
For , the key inequality is that the oscillation of on a set never exceeds that of : for any , , and taking suprema over turns each side into the respective oscillation. Hence and Riemann's criterion transfers. For the product, write and reduce to squares; the oscillation of is bounded by times that of where , since .
Monotonicity of the integral is immediate from for every . The final inequality follows by applying it to .∎
Theorem 5.13 (Additivity over subintervals). Let . Then if and only if and , and in that case
Proof. Suppose is integrable on both pieces and let . Choose partitions of and of each with oscillation sum below . Their union is a partition of containing , and because the subintervals of are exactly those of together with those of ,
so and is integrable on . Letting in the same identity gives the additivity of the values.
Conversely, if , take with and refine it by inserting ; by Lemma Refinement narrows the bracket the gap does not increase. Splitting the refined partition at gives partitions of and whose oscillation sums are each at most , since both are non-negative and add to less than .∎
Remark (Orientation). By convention and . With that convention the additivity identity holds for any three points in any order, which is what makes the accumulation function of the next section behave well on both sides of its base point.
5.3Discontinuities and the Lebesgue Criterion
Continuity and monotonicity are sufficient conditions, and neither is necessary. This section finds the exact condition, which turns out to be a statement about the size of the discontinuity set rather than about its cardinality.
Proposition 5.14 (Finitely many discontinuities are harmless). If is bounded on and continuous except at finitely many points, then .
Proof. Let , so every oscillation is at most , and let be the discontinuities. Fix .
Cover each by an open interval of length , where is chosen so small that , that is . Removing the from leaves finitely many closed intervals on which is continuous, hence uniformly continuous by compactness. As in the proof of the theorem Continuous functions are integrable, choose working simultaneously on all the so that whenever lie in the same with .
Build a partition from the endpoints of the together with a subdivision of each of mesh below . The subintervals of split into two families. Those inside some contribute at most in total. Those inside some contribute at most . Hence , and Riemann's criterion applies.∎
The proof used the finiteness of the bad set in exactly one place: to cover it by finitely many intervals of arbitrarily small total length. Nothing else about "finite" mattered — which suggests replacing it by that property directly.
Definition 5.15 (Measure zero). A set has measure zero if for every there is a countable family of open intervals with
where denotes the length of .
Every finite set has measure zero, and so does every countable set: enumerate it as and put an interval of length around , for a total below . In particular has measure zero, which is the fact that makes Thomae's function integrable below. Uncountable sets of measure zero also exist — the Cantor set is the standard one, met in Metric Spaces.
Theorem 5.16 (Lebesgue's criterion for Riemann integrability). A bounded function on is Riemann integrable if and only if its set of points of discontinuity has measure zero. Briefly: is Riemann integrable exactly when is continuous almost everywhere.
Remark (Why this one is quoted rather than proved). This is the only result in the chapter stated without proof, and the omission is deliberate rather than lazy. A complete argument requires the oscillation function , the fact that is compact, and a Heine–Borel extraction on each such set; it is proved in full in Lebesgue Integration, where measure-zero sets are the native language rather than an import. What matters here is how to use it, and the two examples below are the standard test cases it separates.
Everything proved so far is a special case. A continuous function has empty discontinuity set. A monotone function has at most countably many discontinuities — each jump contains a distinct rational — so its discontinuity set has measure zero. A function with finitely many discontinuities is immediate. The criterion also settles at once which functions are hopeless.
Example 5.17 (Dirichlet's function is not integrable). Let for and otherwise. Show directly that , and reconcile this with Lebesgue's criterion.
Solution.
- Let be any partition. Every subinterval , having positive length, contains both a rational and an irrational, by the density theorems of The Real Number System.
- Hence and on every subinterval, for every partition, so
- Therefore and . The gap is and no refinement touches it, so Riemann's criterion fails as badly as it possibly can.
- Reconciliation: is discontinuous at every point of — near any there are both rationals and irrationals, so the values and both occur in every neighbourhood. The discontinuity set is itself, which has measure , not zero.
- Sanity check on the moral: the problem is not that the bad set is infinite, it is that the bad set is fat. The next example has an infinite discontinuity set too, and is integrable.
Example 5.18 (Thomae's function is integrable, with integral zero). Define if in lowest terms with , and if is irrational. Show and .
Solution.
- Every subinterval contains irrationals, so for every partition and always; hence and the only issue is the upper integral.
- Fix and choose with . The set consists of the rationals in with denominator at most , and there are at most of them — a finite set.
- Cover by intervals of total length less than (possible since is finite), and use their endpoints, plus a subdivision of what remains, to build a partition .
- On subintervals meeting , bound , so their total contribution to is at most . On the remaining subintervals every value of is below , so they contribute at most .
- Hence , and since we get . Riemann's criterion gives integrability, and for every forces .
- Cross-check with Lebesgue's criterion: is continuous at every irrational and discontinuous at every rational — approaching a rational along irrationals gives limit . The discontinuity set is , countable, hence of measure zero. The criterion predicts integrability, as found.
Pitfall. "Discontinuous at infinitely many points" is not a verdict. Thomae's function is discontinuous at a dense set and integrable; Dirichlet's is discontinuous everywhere and is not. What separates them is that Thomae's spikes shrink — only finitely many exceed any fixed height — while Dirichlet's never do. Measure zero is the precise version of "the bad set is too thin to hold any area".
5.4The Fundamental Theorem, Part One: Differentiating an Integral
Everything so far treats as a number attached to a fixed interval. Letting the right endpoint move converts it into a function, and that function turns out to be smoother than the integrand it came from.
Definition 5.20 (Accumulation function). For , the accumulation function (or indefinite integral) of based at is
which is well defined by the theorem Additivity over subintervals, since is integrable on every .
Theorem 5.21 (Fundamental Theorem of Calculus, Part One). Let and let . Then:
- is Lipschitz on , with where ; in particular is continuous.
- If is continuous at a point , then is differentiable at and .
Proof. (1) Take in . By additivity, . The bound and the monotonicity clause of the theorem Algebra of integrable functions give
which is . A Lipschitz function is uniformly continuous — take .
(2) Let and use continuity of at to choose with whenever and . For with and , additivity gives , and since we may write the error as a single integral:
Every between and satisfies , so the integrand is bounded in absolute value by . Applying and then the crude bound,
Since was arbitrary, the difference quotient converges to , which is the assertion .∎
Notice how little was assumed. Part 1 of the statement needs only integrability, and it already says something striking: integration is a smoothing operation. The integrand may be discontinuous at a dense set of points, and its accumulation function is still Lipschitz — a jump in becomes a mere corner in , and a corner is a much milder defect than a jump.
Corollary 5.22 (Every continuous function has an antiderivative). If is continuous on , then satisfies on all of . In particular, every continuous function on a closed interval is the derivative of something.
Proof. By the theorem Continuous functions are integrable, so is defined; by clause (2) of the theorem Fundamental Theorem of Calculus, Part One, applied at each — where is continuous by hypothesis — we get everywhere.∎
This corollary is the existence theorem that elementary calculus quietly assumes. "Find an antiderivative of " has no answer in elementary functions, but the corollary guarantees an antiderivative exists, and is it — which is precisely how the error function is defined, rather than discovered.
Example 5.23 (A corner, not a jump). Let for and for , on . Compute and examine at .
Solution.
- For the integrand is except possibly at the single point , so .
- For , additivity gives .
- So , which is continuous everywhere — as clause (1) of the theorem promises, with Lipschitz constant .
- At , has a corner: the left derivative is and the right derivative is , so does not exist. This does not contradict clause (2), which assumes is continuous at the point, and jumps at .
- Sanity check: at every other point does exist and equals — on and on — so the conclusion fails at exactly the one point where the hypothesis does.
5.5The Fundamental Theorem, Part Two: Evaluating by Antiderivatives
Part One turns an integral into a function and differentiates it. Part Two goes the other way: given a function whose derivative is the integrand, it evaluates the integral without ever computing a limit of sums. This is the theorem that makes calculus usable.
Theorem 5.24 (Fundamental Theorem of Calculus, Part Two). Let and suppose is continuous on , differentiable on , with for all . Then
Proof. Let . By Riemann's criterion choose a partition with .
On each subinterval the function is continuous and differentiable on the interior, so the Mean Value Theorem of Differentiation supplies a point with
Summing over , the left side telescopes:
The right side is a Riemann sum for the partition with the particular tags , and since it is trapped between the Darboux sums:
The number satisfies the same two inequalities, by the definition of the upper and lower integrals. Two numbers lying in an interval of length less than differ by less than , so for every , which forces equality.∎
Two features of this proof are worth extracting. First, it does not assume is continuous — only integrable, plus the existence of an antiderivative. Those are independent hypotheses: there are integrable functions with no antiderivative (any function with a jump, by Darboux's theorem on derivatives), and there are derivatives that are not integrable. Second, the Mean Value Theorem is doing all the work, which is why the theorem belongs as much to differentiation as to integration.
Corollary 5.25 (Integration by parts). If are continuously differentiable on , then
Proof. The product is differentiable with , which is continuous, hence integrable. Apply the theorem Fundamental Theorem of Calculus, Part Two to the integrand with antiderivative :
Split the left side using linearity from the theorem Algebra of integrable functions and rearrange.∎
Corollary 5.26 (Change of variables). Let be continuously differentiable on and let be continuous on an interval containing . Then
Proof. Let , which satisfies by Corollary Every continuous function has an antiderivative. The composite is differentiable with by the chain rule, and is continuous, hence integrable. Part Two applied to gives
since .∎
Example 5.27 (A routine evaluation, and what it rests on). Compute and .
Solution.
- On the function is continuous, hence integrable, and is an antiderivative there. Part Two gives .
- Sanity check by bounding: lies between and on , so the integral lies between and , and does.
- For the second, is continuous with antiderivative , so .
- Sanity check: the graph of on sits under the rectangle of height and width , and above the chord triangle of area ; the value is in range.
5.6What Continuity Buys, and What It Does Not
Both parts of the Fundamental Theorem quantify over hypotheses that are easy to recite and easy to misapply. This section isolates what each one is really for, and exhibits the failures that occur without them.
Theorem 5.28 (Mean value theorem for integrals). If is continuous on , there exists with
Proof. Let and , attained by the extreme value theorem. From and monotonicity of the integral,
so the average value lies in . Since attains both and , the intermediate value theorem of Limits and Continuity provides between those two points with , which is the claim.∎
This gives a second route to Part One: the difference quotient of is exactly the average of over , which the theorem writes as for some between and ; as we have , and continuity finishes it. The proof given earlier avoided the extreme value theorem so that it would work at a single point of continuity of an otherwise nasty function, which is the sharper statement.
Proposition 5.29 (Continuity cannot be dropped from the mean value theorem). There is an integrable on for which no satisfies .
Proof. Take on and on . It is integrable by Proposition Finitely many discontinuities are harmless, and , so the required value would be . But takes only the values and , so no such exists.∎
Proposition 5.30 (A derivative that is not Riemann integrable). There is a function differentiable at every point of whose derivative is not Riemann integrable on .
Proof. Let for and . At the difference quotient is , which is bounded by and so tends to ; hence exists. For the product and chain rules give
The second term is unbounded near : along the cosine equals and the factor , while the first term stays bounded by . So is unbounded on , and an unbounded function has no upper sums in , hence is not Riemann integrable by Definition Darboux sums.∎
So " on " does not by itself license : the left-hand side may not exist. Part Two lists integrability of as a separate hypothesis for exactly this reason, and the omission of that hypothesis is the most common misquotation of the theorem.
5.7Limits, Uniform Convergence, and the Limits of the Theory
The Riemann integral has one structural weakness, and it is the reason a replacement was eventually built: it interacts badly with limits. The following theorem states the strongest interchange the theory supports, and the example after it shows how little room is left.
Theorem 5.31 (Uniform convergence permits interchange). Let and suppose uniformly on . Then and
Proof. Write , which tends to by uniform convergence. Then pointwise, so for any partition ,
Given , pick with and then a partition with . Combining the displayed inequalities, , so is integrable by Riemann's criterion.
For the values, monotonicity of the integral applied to gives
Example 5.32 (Pointwise convergence is not enough). Enumerate as and let be the indicator of . Show that each is integrable with integral , that pointwise where is Dirichlet's function, and that the conclusion of the interchange theorem fails.
Solution.
- Each is zero except at points, so it is integrable by Proposition Finitely many discontinuities are harmless, and — cover the points by intervals of total length to make arbitrarily small.
- Fix . If is irrational then for all . If is rational then for some , and for all . So pointwise.
- The limit is not integrable at all, by the example Dirichlet's function is not integrable, so does not exist, while exists.
- The convergence is not uniform: for every , since there is always a rational not yet enumerated.
- Sanity check on the diagnosis: the hypotheses of the interchange theorem are not violated by accident here — uniform convergence is exactly the condition that would have forced the limit to remain integrable, and it is precisely what fails.
Remark (What Lebesgue fixes). In the Lebesgue theory, developed in Lebesgue Integration, the sequence above is handled by the dominated convergence theorem: , the limit exists pointwise, and therefore — the Lebesgue integral of exists and equals zero. The gain is not that Lebesgue integrates more functions for its own sake; it is that the class of integrable functions is closed under the limit operations analysis actually performs. Riemann integrability, requiring almost-everywhere continuity, is not preserved by pointwise limits, and that is the defect.
The other two limitations are the ones the rest of this chapter repairs. The definition requires a bounded interval, and it requires a bounded integrand; both are relaxed by integrating over honest intervals and taking a limit, which is the subject of the improper integral.
5.8Improper Integrals over Unbounded Intervals
The Riemann integral is defined on and nowhere else. To give meaning to we do not extend the definition; we integrate over , where the definition already applies, and take a limit.
Definition 5.33 (Improper integral over an unbounded interval). Suppose for every . The improper integral is
and it converges when this limit exists in and diverges otherwise. Symmetrically for . The doubly infinite integral is defined by splitting at any ,
and converges only when both pieces converge separately.
The insistence on separate convergence is not pedantry. If both halves were allowed to be computed by one joint limit, the value would depend on how the two ends are taken to infinity relative to one another — for every , while . Demanding separate convergence makes the answer independent of the route, and the principal value later is exactly the weaker notion that fixes one route.
Theorem 5.34 (The -test at infinity). For , the integral converges if and only if , and then
Proof. For the function is an antiderivative of on , and is continuous there, so the theorem Fundamental Theorem of Calculus, Part Two gives
If then and , so the limit is , finite. If then and , so the integral diverges. For , .∎
Intuition. The exponent is the exact boundary, and sits on the wrong side of it. The graph of encloses infinite area over even though its height tends to zero — decay is necessary for convergence but nowhere near sufficient. The rule of thumb that survives: to converge at infinity, a positive integrand must decay strictly faster than , and to converge at a singularity it must blow up strictly slower than . The same borderline governs both ends, which is why the two -tests have their inequalities pointing in opposite directions.
Example 5.36 (Two tails, one convergent). Decide whether and converge, and evaluate the first.
Solution.
- The first has , so by the theorem The -test at infinity it converges, with value .
- For the second, substitute , , using Corollary Change of variables on :
- As , , so the second integral diverges.
- Sanity check: decays faster than but not by a power, and the -test boundary is sharp enough that no such logarithmic gain is sufficient. This mirrors the divergence of in Sequences and Series, as the integral test would predict.
5.9Singularities at a Finite Point
The second failure of the basic definition is an unbounded integrand. The repair is the same: integrate over intervals that avoid the bad point, and let them close in on it.
Definition 5.37 (Improper integral at a singularity). If for every small but is unbounded near , set
If the singularity is at an interior point , the integral is
with the two limits required to exist separately and independently of one another.
Theorem 5.38 (The -test at a singularity). The integral converges if and only if , and then its value is .
Proof. For and , the integrand is continuous on with antiderivative , so
If the exponent is positive, so and the limit is . If the exponent is negative and , so the integral diverges. For , .∎
Comparing the two -tests, the borderline is at both ends and the admissible side flips: near a singularity mild blow-up () is survivable, at infinity only fast decay () is. A single power law can therefore never be integrable on all of — diverges for every , at one end or the other.
Example 5.39 (A convergent and a divergent singularity). Evaluate , and decide the fate of .
Solution.
- The first has , so by the theorem The -test at a singularity it converges to . Directly: .
- The second has an interior singularity at with . Take the right-hand piece: .
- Since one of the two required one-sided limits fails to exist, the integral diverges. It is irrelevant that the integrand is symmetric about and that the two halves might be thought to "cancel"; both are here, so nothing cancels even in a principal-value sense.
- Sanity check on a common blunder: applying Part Two blindly would give , negative for a positive integrand. The antiderivative is discontinuous at the interior singularity, so Part Two, which requires continuity of on the whole closed interval, simply does not apply.
5.10Convergence Tests for Improper Integrals
Most improper integrals cannot be evaluated in closed form, and the practical question is only whether they converge. For positive integrands the situation is as simple as for positive series.
Lemma 5.40 (Monotone criterion for positive integrands). If and for every , then converges if and only if the function is bounded above.
Proof. Write . For , additivity gives since , so is increasing. An increasing function bounded above has a finite limit at , equal to , by the monotone convergence theorem for functions from Limits and Continuity; an increasing unbounded function tends to .∎
Theorem 5.41 (Comparison test). Suppose for all , and both are integrable on every . If converges then so does ; equivalently, if diverges then so does .
Proof. By monotonicity of the integral, for every , the last step because the partial integrals of increase to their limit. So is bounded above, and Lemma Monotone criterion for positive integrands gives convergence. The contrapositive is the divergence half.∎
Theorem 5.42 (Limit comparison test). Let on with
If , then and either both converge or both diverge. If and converges, so does ; if and diverges, so does .
Proof. Assume . Taking in the definition of the limit gives such that for ,
If converges then so does , and the right inequality with the theorem Comparison test makes converge; adding the proper integral back gives convergence of . If diverges, the left inequality and the divergence half of comparison make diverge. The cases and use only the one inequality that survives: eventually, respectively eventually.∎
Theorem 5.43 (Absolute convergence implies convergence). If converges, then converges, and .
Proof. Decompose where and . Both are non-negative and satisfy , and both are integrable on each because and are combinations of integrable functions by the theorem Algebra of integrable functions.
By the theorem Comparison test, and both converge. Then for each , , and letting the right side converges to the difference of the two limits, so the left side converges too. The final inequality follows from , proved in the theorem Algebra of integrable functions, by letting .∎
Definition 5.44 (Conditional convergence). An improper integral converges conditionally if it converges but diverges.
Example 5.45 (Deciding three integrals by comparison). Determine convergence of (a) , (b) , (c) .
Solution.
- (a) For , , and converges by the -test. Comparison gives convergence.
- (b) Compare with . The ratio is , a finite positive limit, and diverges. By the theorem Limit comparison test, the integral diverges.
- (c) For we have , so , and converges. Comparison gives convergence.
- Sanity check on (b): the integrand is asymptotically , and no amount of decay short of a genuine power improvement rescues the borderline. Reading off the leading behaviour and comparing is faster and safer than hunting for an antiderivative.
Example 5.46 (Conditional convergence of the sine integral). Show that converges but not absolutely.
Solution.
- Convergence. Integrate by parts on with and , so :
- The boundary term satisfies . The remaining integral converges absolutely, since and converges; apply the theorems Comparison test and Absolute convergence implies convergence.
- So the limit as exists, and the integral converges.
- Not absolutely. On we have , so
using that each hump of has area exactly . 5. Summing over gives a constant multiple of a partial sum of the harmonic series, which is unbounded by Sequences and Series. So and the convergence is conditional. 6. Sanity check: this is the integral twin of the alternating harmonic series — signed cancellation across humps saves the integral, absolute values destroy it. The actual value is , though no elementary antiderivative exists.□
5.11Principal Values
Some divergences are symmetric: the integral blows up to on one side of a singularity and to on the other, at the same rate. Insisting on separate limits discards that structure. The principal value keeps it by fixing one symmetric route.
Definition 5.47 (Cauchy principal value). For a singularity at an interior point ,
with the same on both sides. Over the whole line,
Proposition 5.48 (The principal value extends the improper integral). If converges as an improper integral, then exists and has the same value. The converse fails.
Proof. If the two one-sided limits exist separately with values and , then along the particular sequence each term converges, so the sum converges to , which is the improper value. A limit that exists in general certainly exists along a restricted route.
For the failure of the converse, on is the standard witness, computed in the example below: its principal value is while the improper integral diverges.∎
Example 5.49 (). Compute the principal value of and show the ordinary improper integral does not exist.
Solution.
- With the symmetric cutoff, , and .
- Their sum is exactly for every , so .
- For the improper integral the two limits must exist separately: and . Neither is finite, so the improper integral diverges.
- That the two infinities are of the same size is precisely what the principal value exploits and what the improper definition refuses to rely on.
- Sanity check by breaking the symmetry: with cutoffs on the left and on the right, the sum is , a different answer. The value depends on the route, which is exactly why the ordinary definition declares divergence.
Pitfall. A principal value is a regularisation, not an integral. It is not additive over subintervals in general, it does not obey the comparison tests, and substituting inside one can change its value. Report it as , never as , and never conclude from that is integrable in any sense. The odd function has and is as far from integrable on as a function can be.
5.12Riemann–Stieltjes Sums
The last generalisation changes not the domain but the measuring stick. Instead of weighting the value by the length of the subinterval, weight it by the increment of a fixed integrator across that subinterval.
Definition 5.50 (Riemann–Stieltjes integral). Let be increasing on and write . For a partition put
with as in Definition Darboux sums. Then is Riemann–Stieltjes integrable with respect to , written , when , and the common value is .
Every structural fact of the first two sections survives verbatim, because every proof used only that the weights are non-negative and add up across a refinement — which also does, by monotonicity of . In particular refinement still narrows the bracket, every lower sum still lies below every upper sum, and Riemann's criterion still characterises integrability in the form . We use these without restating them.
Theorem 5.51 (Continuous integrand against monotone integrator). If is continuous on and is increasing, then on .
Proof. If then is constant, all weights vanish and the integral is ; so assume .
Let . By Heine–Cantor, is uniformly continuous on the compact interval , so there is with whenever . Take any partition of mesh below . As in the proof of the theorem Continuous functions are integrable, attains its extrema on each subinterval at points within of each other, so for every . Then
the sum of the increments telescoping to . Riemann's criterion applies.∎
Proposition 5.52 (A jump in the integrator samples the integrand). Let and let be the unit step at : for and for . If is continuous at , then
Proof. For any partition , the increment is zero on every subinterval except the one, say the -th, whose half-open span contains ; there . Hence
the infimum and supremum of over that single subinterval. Given , continuity of at supplies with for ; choosing of mesh below puts the whole -th subinterval within of , so and both lie within of . Thus the upper and lower integrals agree and equal .∎
Intuition. Think of as a cumulative mass distribution along the interval: is the total mass to the left of , and is the mass sitting in the -th slice. The Stieltjes integral is then "value times mass", summed. Spread the mass uniformly and you recover ordinary area. Concentrate it all at one point and the integral reads off the value there. This one picture explains both the Riemann integral and the expectation of a discrete random variable, and the fact that it explains them simultaneously is the whole reason the Stieltjes integral exists.
Example 5.53 (A staircase integrator turns an integral into a sum). Let have jumps of sizes at points in and be constant in between. For continuous, compute , and evaluate it for with jumps of at and at on .
Solution.
- Write where is the unit step at . The Darboux–Stieltjes sums are additive in the integrator, since each splits as a sum.
- By Proposition A jump in the integrator samples the integrand applied to each piece, .
- For the stated data, .
- Sanity check: the integrator rises by a total of , and ranges over at the two atoms, so the answer must lie between and . It does, and it leans high because the larger jump sits where is large.
5.13Integration by Parts for Stieltjes Integrals
The Stieltjes integral has one symmetry the Riemann integral cannot express, because the Riemann integral's integrator is fixed. Integrand and integrator can trade places, at the cost of a boundary term.
Theorem 5.54 (Stieltjes integration by parts). If on , then on and
Proof. Let be any Riemann–Stieltjes sum for : choose a partition and tags , and set
Apply Abel summation, that is, add and subtract the telescoping product. Writing out the two halves of ,
and using the telescoping identity with the conventions , , subtraction gives
with and the index conventions above. The right-hand side is itself a Riemann–Stieltjes sum for , over the partition with tags — note , so each genuinely tags its subinterval.
Now let the mesh of the original partition tend to . The associated partition has mesh at most twice as large, so it tends to as well, and since the right-hand side converges to . Therefore converges to , for every choice of tags — which is exactly the statement that with that value.∎
The identity contains ordinary integration by parts as the case where both functions are continuously differentiable and , and it contains Abel summation as the case where both are step functions. Those two facts are the same theorem, which is the point.
Example 5.55 (Summing by integrating). Take and on . Compute two ways.
Solution.
- Directly. The floor function jumps by at each of , and is continuous, so by the example A staircase integrator turns an integral into a sum,
- By parts. Here , so , since on .
- The boundary term is , so the theorem Stieltjes integration by parts predicts
- The two agree. At both give .
- Sanity check on what happened: the sum was traded for the integral of a staircase, which is a sum of the other diagonal of the same array. That exchange is Abel summation, and here it is literally the integration-by-parts formula.
5.14When the Stieltjes Integral Exists, and What It Reduces To
Two special integrators recover familiar objects, and one shared discontinuity destroys everything.
Proposition 5.56 (Smooth integrators give a density). If is continuously differentiable and increasing on and is continuous, then
In particular returns the Riemann integral.
Proof. Both integrals exist: the left by the theorem Continuous integrand against monotone integrator, the right because is continuous. Fix a partition . By the Mean Value Theorem applied to on there is in the interior with . Hence the Stieltjes sum with tags equals
an ordinary Riemann sum for over the same partition. Since is continuous, hence uniformly continuous, both sides converge to their respective integrals as , so the integrals agree. Taking gives and , so the definitions coincide term by term.∎
Proof. As in Proposition A jump in the integrator samples the integrand, only the subinterval with carries weight, and there . But now itself jumps at , so on that subinterval (take a point left of , which exists since ) and (the value at itself). Hence
for every partition , no matter how fine — refining never separates from the points just left of it. The lower and upper integrals are and , so the integral does not exist.∎
The general theorem behind that example is the standard sufficient condition: exists whenever and have no common point of discontinuity and is of bounded variation. Both of the existence results proved above are instances — a continuous shares no discontinuity with anything.
Pitfall. Do not write unless is absolutely continuous. The Cantor function is continuous and increasing from to on with almost everywhere, so the substitution would give , whereas the true value is . All of the integrator's increase happens on a set of measure zero, and no density function can represent it. Proposition Smooth integrators give a density asks for precisely to exclude this.
Example 5.58 (Same integrand, three integrators). Compute for (a) , (b) , (c) the unit step at .
Solution.
- (a) , so by Proposition Smooth integrators give a density this is .
- (b) , so the integral is .
- (c) By Proposition A jump in the integrator samples the integrand, the value is .
- Sanity check: in (b) the integrator puts more weight to the right, where is larger, so the answer should exceed the uniform case — and . In (c) all the weight is a single unit at , giving exactly .
5.15Applications: Expectations, Sums, and Mixed Distributions
The payoff for building the Stieltjes integral is a single formula covering cases that otherwise require separate theories.
Theorem 5.59 (Expectation as a Stieltjes integral). Let be a random variable with cumulative distribution function , which is increasing, and let be continuous. Then, whenever the integral exists,
If is a step function with jumps at , this is ; if with continuous, it is .
Proof. We verify the two reductions, which is what makes the formula usable. In the discrete case is a staircase with jump at , so by Proposition A jump in the integrator samples the integrand, applied to each atom and summed, , which is the definition of for a discrete variable. In the absolutely continuous case is continuous, so Proposition Smooth integrators give a density gives , which is the definition of for a density . Since the two elementary definitions are recovered, the Stieltjes formula is a common extension of both, and it remains meaningful for an that is neither — a mixed distribution — where neither elementary formula applies.∎
Example 5.60 (A mixed distribution). A machine fails immediately with probability ; otherwise its lifetime is uniform on . So for , with a jump of at . Compute .
Solution.
- Decompose into its jump part ( at ) and its absolutely continuous part, whose derivative on is .
- By the theorem Expectation as a Stieltjes integral, with ,
- Sanity check by conditioning: with probability the lifetime is ; with probability it averages . So , agreeing.
- Note that neither elementary formula would have worked alone: there is no density at and no atom on . The Stieltjes integral handles both halves with one symbol.
- Assuming every bounded function is integrable. Dirichlet's function is bounded by and has , . Boundedness is necessary, never sufficient.
- Counting discontinuities instead of measuring them. Thomae's function is discontinuous at every rational and integrable; Dirichlet's is discontinuous everywhere and is not. Lebesgue's criterion is about measure zero, not cardinality.
- Quoting Part Two without the integrability hypothesis. " implies " is false: is differentiable everywhere with an unbounded, non-integrable derivative.
- Applying Part Two across a singularity. is not ; the antiderivative is discontinuous at , so the hypothesis of continuity on the closed interval fails and the "answer" is negative for a positive integrand.
- Using one joint limit for a two-sided improper integral. The definition requires the two one-sided limits to exist separately. Taking them together is the principal value, a strictly weaker and route-dependent notion.
- Concluding convergence from . diverges. Decay must beat at infinity, and blow-up must be slower than at a singularity.
- Interchanging a limit and an integral without uniform convergence. Pointwise convergence does not even preserve integrability, as the indicator functions converging to Dirichlet's function show.
- Writing for any increasing . The Cantor function has almost everywhere and total increase ; the substitution requires absolute continuity, and is the safe case proved here.
- Expecting to exist whenever both functions are well behaved separately. If and jump at the same point from the same side, the upper and lower sums differ by the product of the jumps for every partition.
- Forgetting that a partition may be chosen after . Riemann's criterion is existential in : uniform partitions are never required, and isolating bad points inside thin subintervals is usually the whole trick.