Integration is traditionally introduced as finding the “area under a curve.” Historically, Archimedes used the method of exhaustion, but a modern mathematical treatment requires the formal definition of partitions and Riemann (or Darboux) sums to define integrability.
Partitions and Darboux Sums
Let be a closed and bounded interval.
A partition of is a finite set of points such that:
For each subinterval we define:
Let be a bounded function. For each subinterval, let:
We define the Lower Darboux Sum and Upper Darboux Sum as:
A partition of is a finite set of points such that:
For each subinterval we define:
Let be a bounded function. For each subinterval, let:
We define the Lower Darboux Sum and Upper Darboux Sum as:
Pause & Predict: Partition Refinement Behavior. Suppose you take a partition of and insert exactly one new division point forming refinement
- Does the lower sum increase, decrease, or stay the same relative to
- Does the Darboux gap expand or contract? Commit your reasoning before opening the analysis below.
Show hintExpandCollapse
Consider the infimum of over a subset versus the infimum over the whole interval: does increase or decrease when ?
Reveal analysisExpandCollapse
Analysis: Suppose On the original interval the infimum is On the subintervals and the infima and must satisfy and because the infimum over a subset cannot decrease. Since we have: Thus, adding points monotonically increases (or maintains) the lower sum and monotonically decreases (or maintains) the upper sum Refinements strictly squeeze the upper and lower Darboux bounds closer together.
Refine a Riemann sum
Increase n to see the rectangles track the area more closely.
A finite rectangular sum approximates the area under a curve.
The lower and upper sums trap the limiting area from below and above:
Riemann Integrability
We define the actual integral by taking supremum and infimum over all possible partitions.
Let be the set of all possible partitions of We define the lower integral and upper integral of on by:
If the lower and upper integrals are equal, we say that is Riemann integrable on The common value is denoted by:
Let be the set of all possible partitions of We define the lower integral and upper integral of on by:
If the lower and upper integrals are equal, we say that is Riemann integrable on The common value is denoted by:
Let us write a Python script to compute the upper and lower Darboux sums for on using uniform partitions of increasing size. This shows how they converge to the true value of
Interactive Lab
Worked Trace: Exact Analytical Evaluation of via Darboux Sums
To see the Darboux machinery in action without relying on the Fundamental Theorem of Calculus, consider on partitioned into equal subintervals of width with division points for
-
Subinterval Bounds: Because is strictly increasing on on each interval
-
Evaluating Upper and Lower Sums: Using the summation identity
Similarly, for the lower sum:
-
Bounding the Darboux Gap: For any choosing guarantees
-
Convergence to the Riemann Integral: Taking Since the upper and lower integrals coincide at is rigorously Riemann integrable with
Counterexample & Failure Mode: Pathological Non-Integrability (Dirichlet’s Function)
Does every bounded function have a Riemann integral? Consider Dirichlet’s function on
-
Failure Mode Analysis:
- Between any two real numbers there exists an irrational number (since is dense). Thus
- Between any two real numbers there also exists a rational number (since is dense). Thus
-
Darboux Collapse: For every partition of regardless of refinement:
-
Conclusion: Because the Darboux gap never closes Riemann integration completely fails for functions whose discontinuities are everywhere dense.
Integrability of Continuous Functions
Not all bounded functions are integrable (as Dirichlet’s function demonstrates). However, continuity is a sufficient condition for integrability.
If is continuous on then is Riemann integrable on
If is continuous on then is Riemann integrable on
Proof sketch: Since is closed and bounded, any continuous function on it is uniformly continuous. This allows us to make the difference arbitrarily small for a sufficiently fine partition, which forces
Mean Value Theorem for Integrals
This theorem guarantees that a continuous function must attain its average value.
If is continuous, then there exists some such that:
If is continuous, then there exists some such that:
ProofExpand proofCollapse
Since is continuous on by the Extreme Value Theorem (Theorem 1.1.6
Using the monotonicity property of the Riemann integral:
Dividing by the interval length
Let Since is a number between the minimum and maximum of the continuous function by the Intermediate Value Theorem (Theorem 1.1.5
Deep Practice
Compute upper and lower Darboux sums directly from partitions, bound integrals via monotonicity, and apply the Mean Value Theorem for Integrals.
Exercise 2.1.1: Darboux Sums and Exact Integrability of a Linear Function
Let on and let be the uniform partition into subintervals of width Compute and in closed form, verify that and deduce directly from Definition 2.1.2
HintExpandCollapse
Since is strictly increasing, the infimum on occurs at and the supremum occurs at . Use .
Worked solutionExpandCollapse
- Subinterval bounds: On with and is strictly increasing, so:
- Upper Darboux sum:
- Lower Darboux sum:
- Darboux gap and integral: Since for every squeezing as gives
Verification criteria. Requires explicit expressions for closed-form evaluation of both sums, verification that and conclusion
Exercise 2.1.2: Mean Value Point for a Quadratic Integral
Using the Darboux integral result established above, find the average value of on and determine every point guaranteed by Theorem 2.1.4
HintExpandCollapse
Use to compute the average value , then solve on .
Worked solutionExpandCollapse
- Compute the integral from the Darboux result: Substituting into yields:
- Average value:
- Solve
- Filter to Only lies in
Verification criteria. Requires finding and solving and selecting the root
Exercise 2.1.3: Telescoping Darboux Gap for Monotone Functions
Let be monotonically increasing on and let be the uniform partition of into subintervals of width Prove that and deduce that every monotone function on is Riemann integrable—even if it has jump discontinuities.
HintExpandCollapse
On each subinterval , monotonicity forces and . Factor out and telescope the sum.
Worked solutionExpandCollapse
- Subinterval extrema: Because is monotonically increasing on for every subinterval we have so and
- Subtract the Darboux sums: Since for all
- Telescope the sum: Hence
- Oscillation criterion: Given choose Then so is Riemann integrable by Definition 2.1.2. Continuity was never used!Definition 2.1.2Riemann IntegrabilityLet be the set of all possible partitions of . We define the **lower integral** and **upper integral** of on by:
Verification criteria. Requires identifying and by monotonicity, telescoping the sum to and choosing so that
Exercise 2.1.4: Diagnosing Non-Integrability of Nowhere-Continuous Functions
Examine the Darboux upper and lower integrals of Dirichlet’s indicator function on and complete the midpoint Riemann sum implementation below.
Verification Check
Let for rational and for irrational on . Evaluate each statement regarding Darboux integrals and integrability:
Classify each option as correct or incorrect, or leave uncertain options unanswered (“I don't know”) and verify at any time.
Code Exercise
Complete the Midpoint Riemann Sum
def midpoint_riemann_sum(f, a, b, n): dx = (b - a) / n total_area = 0.0 for i in range(n): # Calculate midpoint of subinterval i mid = a + (i + ) * dx total_area += f(mid) * dx return total_area
References & Further Reading
- Spivak, M. (2008). Calculus (4th ed.), Chapter 13 (“Integrals”). Publish or Perish.
- Apostol, T. M. (1967). Calculus, Volume 1: One-Variable Calculus, with an Introduction to Linear Algebra (2nd ed.), Chapter 1 & Chapter 2 (“The Concepts of Integral Calculus” and “Some Applications of Integration”). Wiley.
- Rudin, W. (1976). Principles of Mathematical Analysis (3rd ed.), Chapter 6 (“The Riemann-Stieltjes Integral”) and Chapter 11 (“The Lebesgue Theory”) for measure-zero sets and Lebesgue’s integrability criterion. McGraw-Hill.
- Abbott, S. (2015). Understanding Analysis (2nd ed.), Chapter 7 (“The Riemann Integral”), §7.5–7.6 for Lebesgue’s criterion for Riemann integrability. Springer.