The Riemann Integral
The capstone of the one-variable foundations (analysis spine). We define the integral via Darboux upper/lower sums, characterize which functions are integrable, and prove the Fundamental Theorem of Calculus linking integration and differentiation. The change-of-variables and integration-by-parts rules proved here are the one-dimensional ancestors of the multiple-integral and Stokes theorems later in the spine.
References: Rudin, Principles of Mathematical Analysis, ch. 6; Spivak, Calculus.
1. Partitions and Darboux Sums
Let be bounded. A partition is a finite set . On each subinterval put
(these exist by boundedness and completeness, real-numbers.md). The lower and upper Darboux sums are
Refining a partition raises and lowers , and every lower sum is every upper sum. Hence the lower and upper integrals
are well-defined.
Existence vs. matching — two different questions. The lower and upper integrals always exist as real numbers: for bounded the set of lower sums is bounded above (by any upper sum), so its supremum exists by completeness (real-numbers.md §2), and dually for the infimum. What is not guaranteed is that they are equal — that is an extra property of , not a theorem about all functions. The
sup/infalready hide a limiting process (no separate is needed; the explicit mesh-limit formulation in §2 is equivalent), but completeness only delivers the two numbers, not their coincidence. The standard failure is the Dirichlet function on : every subinterval meets both and its complement, so and for every partition, giving . It is bounded but not integrable. Matching is exactly what §3 must prove for nice functions.
2. Riemann Integrability
is Riemann (Darboux) integrable on if the upper and lower integrals coincide; the common value is
Riemann criterion. is integrable iff for every there is a partition with .
This is the practical test for integrability and the analogue of the Cauchy criterion (sequences-series.md): it never mentions the value of the integral.
2.1 The Riemann construction (tagged sums)
So far the integral has been built the Darboux way (§1) — via / of lower/upper sums. Riemann's original construction, which gives the page its name, instead samples at chosen points. A tagged partition is a partition together with tags , and its Riemann sum is
Write the mesh . Then is Riemann integrable if there exists a number such that
for every choice of tags. Such an , if it exists, is unique (two candidates would satisfy for all , forcing ), so it is legitimate to define the integral to be that value,
Intuitively, once the partition is fine enough, the sum of "height width" rectangles is within of no matter where each height is sampled — the literal "area under the graph as a limit of rectangle sums." This is the same number produced by the Darboux definition of §2, by the equivalence below.
Equivalence (Riemann = Darboux). is Riemann integrable iff it is Darboux integrable, and the two values coincide. So the two constructions define the same integral, on the same class of functions — which is why one page suffices and why we keep the name Riemann integral while using Darboux sums for proofs (the / are cleaner than a net/filter limit over tagged partitions).
Proof. Every tagged sum is trapped, , since . So whenever the Riemann criterion holds, all tagged sums for that lie within of the common Darboux value, giving Riemann integrability with the same . Conversely, taking tags where nearly attains its (resp. ) on each piece shows tagged sums approximate and arbitrarily well, so Riemann integrability forces .
We use Darboux as the default below; the Riemann form is the right one for numerical quadrature (midpoint, trapezoid, Simpson) and is the version that generalizes to the gauge (Henstock–Kurzweil) integral, where is allowed to vary with the tag.
3. Classes of Integrable Functions
- Continuous functions are integrable. On the compact interval , is uniformly continuous (Heine–Cantor, continuity.md §5), so a fine enough partition makes every , giving . This is the most important case.
- Monotone functions are integrable (their oscillation telescopes).
- Bounded with finitely many discontinuities integrable.
- Lebesgue's criterion (stated): a bounded is Riemann integrable iff its set of discontinuities has measure zero. This is the sharp characterization; a full proof needs measure theory, which is out of scope for this spine (see the note in README.md).
4. Properties of the Integral
For integrable on :
- Linearity: .
- Additivity over intervals: .
- Monotonicity: ; in particular .
- Products and are integrable.
- Uniform limits commute: if uniformly with each integrable, then is integrable and (sequences-series.md §7).
Mean Value Theorem for Integrals. If is continuous on there is with .
This follows from the IVT applied to the average value , which lies between and .
5. The Fundamental Theorem of Calculus
The two halves tie differentiation (differentiation.md) to integration.
FTC, Part I (differentiating an integral). If is continuous on and , then is differentiable and .
Proof. for some between and (integral MVT); as , and continuity gives .
FTC, Part II (evaluating via an antiderivative). If is integrable and is any antiderivative () on , then
Proof. For a partition , write by the Mean Value Theorem (differentiation.md §4). This Riemann sum is trapped between and , which squeeze to .
The FTC is the case of the generalized Stokes theorem. Writing as a 1-manifold with boundary , FTC II reads . This is exactly with a -form — the punchline assembled in stokes-general.md.
6. Techniques
- Integration by parts: — the integral form of the product rule. (The multivariable generalization is the divergence theorem / Green's identities.)
- Change of variables (substitution): if is with of one sign, The factor is the 1-D Jacobian; in several variables it becomes (multiple-integrals.md §4).
7. Improper Integrals
When the interval is unbounded or is unbounded, define and similarly for endpoint singularities, when the limit exists. Such integrals may converge absolutely or only conditionally (e.g. ). The integral test ties their convergence to that of series (sequences-series.md §6.2).
8. Beyond Riemann (pointer)
The Riemann integral suffices for the entire path to Stokes' theorem, but it does
not commute well with pointwise limits and cannot integrate badly discontinuous
functions. The Lebesgue integral repairs this (dominated/monotone convergence,
spaces) at the cost of measure theory. It is deliberately out of scope
here; a future measure-theory.md could add it.
9. Where this page is used
- FTC is the prototype the generalized Stokes theorem (stokes-general.md) generalizes.
- Riemann sums / integrability extend to rectangles and Jordan-measurable sets in multiple-integrals.md.
- Change of variables becomes the Jacobian-determinant formula central to multiple integrals and surface integrals (vector-calculus.md).
Next: Metric Spaces and — the multivariable foundations begin.