The Riemann integral
Anchor (Master): Rudin 1976 Principles of Mathematical Analysis (McGraw-Hill) Ch. 6; Royden & Fitzpatrick 2010 Real Analysis (Pearson) Ch. 4 (Riemann integral and its limitations); Dieudonné 1960 Foundations of Modern Analysis (Academic Press) Ch. 8 (tagged partitions and equivalence with Darboux)
Intuition Beginner
The area under a curve is found by filling the region with thin rectangles and adding up their areas. As the rectangles get thinner and thinner, the total area of the rectangles approaches the true area under the curve.
A Riemann sum builds each rectangle by picking one height inside each strip — any sample point will do — and multiplying that height by the strip's width. The defining demand of Riemann's integral is strong: no matter how the sample points are chosen, the total must settle to the same number as the strips thin.
When that single number exists, the function is Riemann integrable, and the number is its integral. Any curve you can draw without lifting your pen passes this test, and so do many curves with carefully placed jumps.
This concept exists because a definition of "area" must not depend on a lucky choice of sample points. Riemann's definition pins down the value by requiring every reasonable sampling to agree, which is what separates a genuine area from an artefact of measurement.
Visual Beginner
The picture shows a curve rising from left to right over the interval from to . The interval is sliced into equal strips. Inside each strip a marker dot indicates the chosen sample point, and a rectangle is drawn whose height equals the curve's value at that dot. The rectangles sometimes overshoot the curve and sometimes undershoot it, depending on where the dot lands.
As the strips become thinner, the position of each dot matters less and less, and the total area of the rectangles converges to a single value regardless of where the dots were placed.
Worked example Beginner
Find the area under from to using right-endpoint rectangles. With equal strips of width , the sample points are .
Step 1. The heights are , , , .
Step 2. The total is the sum of heights times the strip width: .
Step 3. Repeat with strips of width . The squared heights, written over , are , adding to . Multiply by : the total is .
Step 4. Doubling again to strips gives approximately , and the values keep sinking toward . The exact area is .
What this tells us: as the strips thin, the right-endpoint totals converge to a single number, and any other sampling (left endpoints, midpoints) converges to the same number. That shared limit is the Riemann integral.
Check your understanding Beginner
Formal definition Intermediate+
A partition of is a finite ordered set with . The subinterval widths are and the mesh (or norm) of is . A partition refines when .
A tagged partition is a pair where is a partition and is a choice of tags with for each . The associated Riemann sum is
A bounded function is Riemann integrable on if there exists a number such that, for every , there is with
for every tagged partition with . The number is unique when it exists and is called the Riemann integral of over , written .
The link to the Darboux sums of 02.04.01 is immediate. For any tagged partition ,
because always lies between and . Moreover and , since on each subinterval the values of can be made arbitrarily close to and by a suitable tag. The Riemann and Darboux theories are therefore two views of the same object.
Counterexamples to common slips Intermediate+
Mesh versus refinement. The Riemann definition controls sums by mesh (), the Darboux theory controls them by refinement (). The two are not interchangeable: a sequence of partitions can refine without the mesh tending to zero (keep one wide interval), and the mesh can tend to zero without successive refinement. The equivalence theorem below reconciles them.
Forgetting boundedness. The definition presupposes is bounded on . An unbounded function has, on at least one subinterval, Riemann sums of arbitrarily large magnitude, so no finite can satisfy the defining inequality. For example is not Riemann integrable on .
Requiring a single partition. Integrability is a statement about all tagged partitions of sufficiently small mesh, not about one lucky partition. A carefully chosen partition can make one Riemann sum land exactly on a target value while other samplings of the same partition diverge wildly (as for the Dirichlet function below).
Key theorem with proof Intermediate+
Theorem (Equivalence of Riemann and Darboux integrability). For a bounded function the following are equivalent.
- is Darboux integrable on .
- is Riemann integrable on .
When either condition holds, the two integrals coincide: has the same value under both definitions.
Proof. We use throughout that and , so every Riemann sum lies in .
(2) (1): Suppose is Riemann integrable with value . Let and pick so that for every tagged partition with mesh . Fix any partition with . On each subinterval choose a tag with and a tag with , which is possible by definition of supremum and infimum. Then
Both sums lie within of , so and , giving . By the Darboux integrability criterion of 02.04.01, is Darboux integrable. Since the Darboux integral lies in , we have for every , whence .
(1) (2): Suppose is Darboux integrable with value . Let . By the Darboux criterion choose a partition with . Let and set . Let be any tagged partition with , and form the common refinement . Refining by inserting the points of changes each of and by at most in total (each inserted point splits a subinterval of width , changing the supremum sum by at most ). Hence
Because and ,
and symmetrically . Thus for every tagged partition with mesh , which is precisely Riemann integrability with value .
Corollary (Riemann's integrability criterion, Cauchy form). A bounded is Riemann integrable if and only if for every there exists such that for any two tagged partitions with mesh smaller than .
This reformulation avoids presupposing the value : integrability is recast as the statement that all sufficiently fine Riemann sums cluster within of one another. The forward direction is the triangle inequality applied to the common limit ; the reverse direction selects a sequence of tagged partitions with mesh tending to zero, observes that the corresponding sums form a Cauchy sequence in , and uses the completeness of the real numbers 02.02.01 to extract a limit . The full argument appears in the Full proof set.
Bridge. The equivalence between the Riemann and Darboux definitions is the foundational reason the two constructions of area never disagree, and this is exactly the content of the main theorem: the limit-of-sums picture (Riemann) and the squeeze-from-above-and-below picture (Darboux) describe the same number whenever either exists. The central insight is that a single Riemann sum always sits between the lower and upper Darboux sums of its partition, so collapsing the Darboux gap forces every tagged sum to the same limit. This builds toward 02.04.03, where the Darboux criterion is applied to continuous functions via uniform continuity, and appears again in 02.04.04, where the fundamental theorems of calculus are stated for the Riemann integral precisely because the equivalence guarantees a unique value to differentiate and to evaluate at endpoints.
Exercises Intermediate+
Advanced results Master
Theorem 1 (Riemann's Cauchy criterion). A bounded is Riemann integrable if and only if for every there is such that whenever and are tagged partitions with mesh below .
This is Riemann's intrinsic integrability test: it dispenses with the integral value and asks only that all sufficiently fine sums agree with each other. The reverse direction constructs a candidate value by completeness of 02.02.01: a sequence of tagged partitions with mesh tending to zero produces sums that form a Cauchy sequence, hence a convergent one, and that limit is the integral. The proof is given in the Full proof set.
Theorem 2 (Compatibility with Darboux-class integrability results). Every Darboux-integrable function is Riemann integrable and conversely, with equal integrals. In particular: every continuous function on is Riemann integrable 02.04.03; every monotone function on is Riemann integrable 02.04.01; and Lebesgue's criterion holds — a bounded is Riemann integrable if and only if its set of discontinuities has Lebesgue measure zero 02.04.03.
The equivalence theorem of the Key section upgrades every Darboux result to a Riemann result at no cost. The Riemann viewpoint adds nothing about which functions integrate, only a different (and often more intuitive) definition of what the integral is.
Theorem 3 (Thomae's function is Riemann integrable). The function with in lowest terms and is Riemann integrable with .
Thomae's function is discontinuous at every rational and continuous at every irrational, so its discontinuity set is , which is countable and hence of Lebesgue measure zero. Lebesgue's criterion therefore predicts integrability. The direct proof (Full proof set) exhibits, for each , a partition with upper sum below by isolating the finitely many points where exceeds . The lesson is sharp: a function can be discontinuous on a dense set and still be Riemann integrable, provided the discontinuities are sparse in the sense of measure.
Theorem 4 (The Dirichlet function is not Riemann integrable). The function with is bounded but not Riemann integrable.
Proof. Suppose were Riemann integrable with value . Take and let be the corresponding mesh bound. Pick any partition with . Choosing all tags rational gives the sum ; choosing all tags irrational gives the sum . Both must lie within of , so , a contradiction.
This is the canonical obstruction to Riemann integrability: the discontinuity set is all of , of full measure, and the density of both and lets opposing tag choices produce sums that differ by the entire interval length, for any partition however fine.
Theorem 5 (Linearity and additivity). If and are Riemann integrable on and , then and are Riemann integrable, with and . If and is integrable on , then is integrable on and with .
These follow immediately from the Darboux versions 02.04.01 together with the equivalence theorem. They can also be proved directly from Riemann sums: Riemann sums split linearly, , so the limits add; and any partition of containing decomposes into a partition of and one of .
Theorem 6 (Composition with a continuous function). If is Riemann integrable and is continuous, then is Riemann integrable on .
The composition has no more discontinuities than itself, because a continuous preserves limits. By Lebesgue's criterion the discontinuity set of is contained in that of and hence has measure zero. In particular , , and are integrable whenever is, and the product is integrable whenever and are.
Synthesis. The foundational reason the Riemann integral is the right elementary notion of area is that tagged-partition convergence forces every sampling choice to agree on a single number, and this is exactly what the equivalence with the Darboux integral makes precise. The central insight is that integrability is a question about the collapse of oscillation — the gap between supremum and infimum sums — rather than about any particular sample. Putting these together, Riemann's sum definition and Darboux's supremum definition are two faces of one completeness-driven construction on the real line. The pattern generalises in two directions: the bridge is from sample-point limits to set-of-discontinuities criteria via the Lebesgue theorem 02.04.03, and onward to the Lebesgue integral 02.07.04, which extends the same area concept to every bounded measurable function. The same tagged-partition framework, with the mesh replaced by a variable gauge, underlies the Henstock-Kurzweil integral, which recovers every Riemann and Lebesgue integral while handling conditionally integrable functions such as that the Riemann theory leaves out.
Full proof set Master
Proposition 1 (Riemann's Cauchy criterion). A bounded is Riemann integrable if and only if for every there exists such that for any two tagged partitions with mesh below .
Proof. () Suppose is Riemann integrable with value . Given , choose so that for every tagged partition with mesh below . Then for any two such tagged partitions and ,
() Assume the Cauchy condition. For each let be the tagged partition of into subintervals of equal width , with tags at the left endpoints, and set . Since , the Cauchy condition applied with yields ; choosing with , we have for all . Thus is a Cauchy sequence in , which converges by the completeness of the real numbers 02.02.01; call its limit .
It remains to show that every tagged partition with sufficiently small mesh has sum within any prescribed tolerance of . Given , let be the mesh bound supplied by the Cauchy condition with tolerance . Choose large enough that and . Then for every tagged partition with ,
since both and have mesh below and the Cauchy condition applies. Therefore is Riemann integrable with value .
Proposition 2 (Thomae's function is Riemann integrable with integral ). Define by for in lowest terms (), and for irrational, with . Then is Riemann integrable and .
Proof. By the equivalence theorem of the Key section it suffices to verify the Darboux integrability criterion. Since for all , every lower Darboux sum satisfies , so it is enough to exhibit, for each , a partition with .
Let . Choose with . The set consists of the rationals in lowest terms with , which is finite; call its cardinality . Cover by finitely many open intervals of total length less than (possible since is finite). Form a partition of that includes the endpoints and all endpoints of the covering intervals, so that every subinterval of lies either inside one of the covering intervals or entirely within the complement .
On the complement, every point satisfies , so the supremum of on any complement subinterval is at most . On the covering intervals, throughout , so the supremum is at most . Summing the contributions,
Thus , and the Darboux criterion holds. The integral satisfies for every , whence .
Connections Master
Step-function integral and the Darboux integral
02.04.01. The Darboux integral is the prerequisite construction: its upper and lower sums bracket every Riemann sum, and the equivalence theorem of this unit shows that collapsing the Darboux gap is exactly the condition that forces all tagged sums to the same limit. Every integrability result proved with the Darboux machinery — monotone functions, the constant and step-function base cases, linearity and additivity — transfers to the Riemann setting through this equivalence.Integrability of continuous functions on
02.04.03. The theorem that continuous functions are Riemann integrable is proved there via the Heine-Cantor theorem and uniform continuity, working directly with the Darboux criterion. The equivalence of the present unit licenses that proof as a theorem about the Riemann integral, and Lebesgue's measure-zero criterion stated there identifies the precise class of Riemann integrable functions, explaining both the integrability of Thomae's function (discontinuities on a countable, measure-zero set) and the failure of the Dirichlet function (discontinuities everywhere, full measure).Fundamental theorems of calculus
02.04.04. Both FTC1 and FTC2 are statements about the Riemann integral: FTC1 differentiates the area function , and FTC2 evaluates the integral through an antiderivative. The equivalence theorem guarantees the uniqueness of the value being differentiated and evaluated, which is what makes the fundamental theorems well-posed. The mean-value-theorem proof of FTC2 in that unit runs through Riemann sums, closing the loop between the limit-of-sums definition and the antiderivative formula.The Lebesgue integral and monotone convergence
02.07.04. The Riemann integral is the finitary precursor: its sums partition the domain into intervals, while the Lebesgue integral partitions the range and integrates over level sets. The Lebesgue integral strictly extends the Riemann integral, agreeing wherever the Riemann value exists and assigning values to functions such as (Lebesgue integral ) where the Riemann procedure fails. Improper Riemann integrals like mark the boundary where the conditionally-convergent Riemann framework diverges from the absolutely-convergent Lebesgue framework.
Historical & philosophical context Master
Riemann introduced the integral in his 1854 Göttingen Habilitationsschrift, Ueber die Darstellbarkeit einer Function durch eine trigonometrische Reihe [Riemann1854], delivered as a Habilitationsvortrag and published posthumously in 1868. Where Cauchy had integrated continuous functions as limits of left-endpoint sums, Riemann deliberately allowed the sample points to vary freely within each subinterval and asked for convergence independent of that choice. This shift made integrability a property of the function rather than of a particular summation recipe, and it broadened the class of integrable functions to include some with infinitely many discontinuities, provided they are arranged sparsely. Riemann himself gave the first example of an integrable function with a dense discontinuity set, a precursor of Thomae's function, by a counting argument on rational approximations.
Darboux in 1875 reformulated the theory in Annales scientifiques de l'École Normale Supérieure [Darboux1875], replacing tagged sums with upper and lower sums built from suprema and infima. The reformulation avoids the quantification over tags and exposes the role of completeness directly: the integral exists when the infimum of upper sums meets the supremum of lower sums. The equivalence theorem of this unit, that the Riemann and Darboux definitions pick out exactly the same functions with the same values, is the precise reconciliation of the two viewpoints; it appears in its modern form in Rudin [Rudin1976] and Dieudonné [Dieudonne1960]. The eventual refinement by Lebesgue in 1901 — that Riemann integrability is equivalent to boundedness plus a measure-zero discontinuity set — explains why Riemann's broad class is exactly what it is, and points forward to the Lebesgue integral, which abandons the domain-partition sum in favour of a range-partition sum and integrates every bounded measurable function.
Bibliography Master
@phdthesis{Riemann1854,
author = {Riemann, Bernhard},
title = {{\"U}ber die Darstellbarkeit einer Function durch eine trigonometrische Reihe},
school = {G\"ottingen},
year = {1854},
note = {Habilitationsschrift; published posthumously in Abh. K{\"o}nigl. Ges. Wiss. G\"ottingen 13 (1868)}
}
@article{Darboux1875,
author = {Darboux, Gaston},
title = {M\'{e}moire sur les fonctions discontinues},
journal = {Annales scientifiques de l'\'{E}cole Normale Sup\'{e}rieure},
series = {2},
volume = {4},
pages = {5--79},
year = {1875}
}
@article{Lebesgue1901,
author = {Lebesgue, Henri},
title = {Sur une g\'en\'eralisation de l'int\'egrale d\'efinie},
journal = {Comptes rendus de l'Acad\'emie des Sciences Paris},
volume = {132},
pages = {1025--1028},
year = {1901}
}
@book{Rudin1976,
author = {Rudin, Walter},
title = {Principles of Mathematical Analysis},
publisher = {McGraw-Hill},
edition = {3},
year = {1976}
}
@book{Abbott2015,
author = {Abbott, Stephen},
title = {Understanding Analysis},
publisher = {Springer},
edition = {2},
year = {2015}
}
@book{Royden2010,
author = {Royden, H. L. and Fitzpatrick, P. M.},
title = {Real Analysis},
publisher = {Pearson},
edition = {4},
year = {2010}
}
@book{Dieudonne1960,
author = {Dieudonn\'{e}, Jean},
title = {Foundations of Modern Analysis},
publisher = {Academic Press},
year = {1960}
}
@book{Apostol1967,
author = {Apostol, Tom M.},
title = {Calculus, Vol. 1: One-Variable Calculus, with an Introduction to Linear Algebra},
publisher = {Wiley},
year = {1967}
}