The Riemann Integral
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll build the integral from scratch using upper and lower sums, see the criterion that decides which functions are integrable, meet a bounded function that is not, and finally prove the fundamental theorem of calculus instead of quoting it.
The Concept
Section titled “The Concept”Calculus defined the integral as a limit of sums with the partition getting finer, and left “the limit exists” undiscussed. Analysis reorganizes the definition so that existence becomes a checkable condition.
Partitions and the two sums
Section titled “Partitions and the two sums”Let be bounded on . Boundedness is assumed from the start, and it is what makes everything below well defined. A partition is a finite set of points
On the th subinterval put and , which exist by the completeness axiom because is bounded. Then
Notice what is not here: no sample point is chosen, no continuity is assumed, and no limit is taken yet. Using inf and sup instead of function values at chosen points is the Darboux formulation, and it gives the same integral as Riemann’s while being much easier to work with.
Refinement, and the two integrals
Section titled “Refinement, and the two integrals”If refines - meaning - then
Adding a point can only raise a lower sum and lower an upper sum, because the inf over a smaller set is at least as large. So refining tightens the trap and never loosens it.
A short but crucial consequence: every lower sum is below every upper sum, even for unrelated partitions, since both compare to their common refinement. Therefore
Both numbers exist for any bounded . The lower integral is a supremum of a set bounded above; the upper is an infimum of a set bounded below. Completeness again.
The definition
Section titled “The definition”is Riemann integrable on if it is bounded and the lower and upper integrals agree. Their common value is .
That is the whole definition. Integrability is the statement that the gap between the two integrals is zero.
The Riemann criterion
Section titled “The Riemann criterion”The definition is hard to use directly, since it involves two sups and infs. This version is what you actually use:
is integrable on if and only if for every there is some partition with
You only need to exhibit one good partition per , and the structure is identical to every other argument in this section.
Which functions are integrable
Section titled “Which functions are integrable”Every continuous function on is integrable.
Proof sketch. is compact, so is uniformly continuous. Given , choose so that whenever , and take any partition with mesh below . On each subinterval , so
∎
This is the payoff for the uniform continuity lesson. Ordinary continuity would give a different at each point and no single mesh would work. Uniformity is what lets one partition handle the whole interval at once.
Every monotone function on is integrable, even with infinitely many jumps.
For an increasing and a uniform partition of width , the differences telescope:
which goes to 0. Monotone functions can have countably many discontinuities and remain integrable.
More generally, a bounded function with finitely many discontinuities is integrable, and in fact one with a discontinuity set of measure zero is too - that last statement is the Lebesgue criterion, and it is the natural stopping point of this theory.
A bounded function that is not integrable
Section titled “A bounded function that is not integrable”Let be 1 at every rational and 0 at every irrational, on . Bounded, defined everywhere, and not integrable.
Every subinterval, however short, contains both rationals and irrationals. So and for every subinterval of every partition, giving
The gap is 1 no matter how you refine. The lower integral is 0 and the upper integral is 1, so the definition simply does not apply.
This is the example that motivated Lebesgue’s integral, which handles it: the rationals are countable, so the “1” is spread over a set of measure zero and the Lebesgue integral is 0.
Properties
Section titled “Properties”All of these are proved from the sums, and none is assumed:
- Linearity. .
- Additivity over intervals. for .
- Monotonicity. implies .
- The basic bound. when .
- Products. If are integrable so is , though is unrelated to .
The additivity proof is fussier than it looks, because it requires comparing partitions of the pieces with partitions of the whole. This is the usual pattern in this subject: the statements are unsurprising and the proofs are where the work is.
The fundamental theorem
Section titled “The fundamental theorem”There are two halves, and they say different things.
First part (differentiating an integral). If is integrable on , define . Then is continuous on . If in addition is continuous at , then is differentiable at with .
Proof of the derivative claim. For ,
which is an average of over and therefore lies between the inf and sup of there. Continuity at squeezes both toward as . ∎
Note the strength of the continuity half: is continuous whenever is merely integrable. Integration smooths. Differentiation does the opposite.
Second part (evaluating an integral). If is integrable on and is any antiderivative of there, then
Proof. Take any partition. On each the mean value theorem gives with
Summing, the left side telescopes to , while the right side is a sum with , so
for every partition . Since is integrable, the only number with that property is . ∎
That is the MVT doing the work again. The theorem that made “+C” legitimate is also what turns the integral into a subtraction, which is why every definite integral you ever computed rests on it.
The two parts are not the same statement: the first builds an antiderivative out of an integral, the second uses any antiderivative to evaluate one. A function can be integrable without being a derivative, and can be a derivative without being integrable.
Worked Examples
Section titled “Worked Examples”Example 1: Integrate over from the definition.
Solution. Use the uniform partition with . Since increases, and .
which simplifies to .
Similarly , and indeed
Both integrals equal , so . ✓
This is why nobody integrates from the definition twice. The fundamental theorem exists so this calculation never has to be repeated.
Example 2: Show the Dirichlet function is not integrable.
Solution. on rationals, 0 on irrationals, on .
Both rationals and irrationals are dense, so every subinterval of positive length contains points of each kind. Hence and always, giving and for every .
The lower integral is 0, the upper is 1, and they differ. Not integrable. ∎
Notice that no refinement helps at all - the gap is not shrinking slowly, it is constant.
Example 3: Integrate a step function.
Let for and for . Compute .
Solution. Use the partition . On , and because 2 is an endpoint of both pieces; that is inconvenient, so use for small instead.
The middle strip contributes at most , and the outer strips give and . As ,
so is integrable with .
A single jump costs nothing, because you can isolate it inside a subinterval of arbitrarily small width, and a bounded function times a small width is small.
Example 4: Additivity is needed, not obvious.
Explain why in Example 3 is not just "" by definition.
Solution. The definition of ranges over partitions of , and most of them do not include the point 2. To split at 2 you must first argue that inserting 2 changes neither integral, which is the refinement lemma, and then that partitions of the pieces combine to partitions of the whole.
The property is a theorem, not a definition. It’s a good illustration of how much of this subject consists of verifying things calculus used silently.
Example 5: Use the first part of the FTC.
Let . Find for .
Solution. Let . Since is continuous on any interval avoiding 0, the first part gives . Then , and the chain rule gives
Consistent with . ✓
The FTC supplies the derivative and the chain rule does the rest, which is the standard shape of these problems.
Example 6: An integrable function whose integral is not differentiable everywhere.
Take on , so for , for , . What is ?
Solution. is bounded with one discontinuity, hence integrable. Computing, for and for , so .
is continuous everywhere, as the first part promises. But is not differentiable at 0, precisely where is discontinuous.
The differentiability half of the FTC needs continuity at the point, and this shows the hypothesis is not removable.
Example 7: Bound an integral without computing it.
Show lies between and 1.
Solution. On the denominator runs from 1 to 2, so
Monotonicity of the integral gives . ∎
The true value is about . Bounding the integrand and integrating the bounds is the most-used estimate in the subject, and it is a one-line consequence of monotonicity.
Real-World Applications
Section titled “Real-World Applications”Numerical integration. Trapezoid, midpoint, and Simpson rules are partition sums with specified sample points, and their error bounds come from Taylor’s theorem on each subinterval. The Riemann criterion is what guarantees the answer they converge to exists.
Probability. A continuous distribution’s probabilities are integrals of a density. Cumulative distribution functions are exactly the of the first part of the FTC, which is why they are always continuous even when the density has jumps.
Signal processing. Energy, average power, and Fourier coefficients are all integrals of functions with jumps. Integrability of piecewise-continuous functions is the reason square waves and sampled signals can be analysed at all.
Physics. Work, flux, centre of mass, and moment of inertia are integrals over regions where material properties change abruptly. Additivity over subintervals is what licenses computing piece by piece and adding.
Finance. Accumulated value under a varying rate is , and rate schedules are step functions. This is Example 3 with money attached.
Where Riemann runs out. Modern probability, Fourier analysis, and PDE theory all use the Lebesgue integral instead, and the Dirichlet function is the shortest explanation of why. Riemann integration also behaves badly under limits, which is the subject of the next lesson.
Retrying will remove your ✅ checkmark until you pass again.