Which Functions Are Integrable: Criterion, Uniform Continuity, and Continuity
The lower integral never exceeds the upper one. The Dirichlet function shows that boundedness is far from sufficient. An if-and-only-if criterion (upper minus lower sum below ε) then leads to uniform continuity: continuous functions on a closed interval are uniformly continuous by Bolzano–Weierstrass, and hence Riemann integrable.
下一讲进入微积分基本定理:定义变上限积分 F(x)=∫axf,证明 F 可导且 F′=f(当 f 连续),再用它计算具体积分,并讨论反常积分。再往后,积分与导数的交换、函数项级数的逐项积分,都要回到本讲的一致连续与一致收敛思想。
From definition to criterion
The previous lecture defined the Riemann integral as the common value of the lower and upper integrals, but said nothing about when they agree. This lecture supplies three things:
For every bounded function the lower integral is at most the upper one, so the definition is consistent.
A non-integrable example (Dirichlet's function) shows that boundedness is far from enough.
An if-and-only-if criterion: for every ε>0 there is a partition whose upper and lower sums differ by less than ε.
The criterion only involves finitely many rectangles, but applying it to continuous functions needs a new tool: uniform continuity. The logic of the lecture is
The upper integral is the infimum of all upper sums, the lower integral the supremum of all lower sums:
∫abf=PinfU(f,P),∫abf=PsupL(f,P).
The lower integral never exceeds the upper
Proposition. For every bounded f,
∫abf≤∫abf.
Proof. First prove a stronger statement: for any two partitionsP,P∗,
L(f,P)≤U(f,P∗).
Take the union of the division points of P and P∗, giving the common refinement Pˉ. It refines both, so the refinement lemma gives
L(f,P)≤L(f,Pˉ)≤U(f,Pˉ)≤U(f,P∗).
Hence L(f,P)≤U(f,P∗) for all P,P∗.
Fix P. The inequality says L(f,P) is a lower bound for the set {U(f,P∗):P∗}, so it does not exceed the infimum:
L(f,P)≤P∗infU(f,P∗)=∫abf.
Thus ∫abf is an upper bound for {L(f,P):P}, and therefore at least the supremum:
PsupL(f,P)=∫abf≤∫abf.
□
The technique is worth remembering: first show "any lower sum ≤ any upper sum", then apply the definitions of sup and inf once each. The refinement lemma does all the work.
A non-integrable function: Dirichlet's
Define on [0,1]:
f(x)={1,0,x∈Q,x∈/Q.
It is plainly bounded (0≤f≤1), yet not integrable.
Reason. Take any partition P. Every nondegenerate subinterval [xi−1,xi] contains rationals and irrationals (both are dense), so
Mi=1,mi=0.
Therefore
U(f,P)=i=1∑n1⋅Δxi=1,L(f,P)=i=1∑n0⋅Δxi=0.
This holds for all partitions. Hence
∫01f=1,∫01f=0,
so the function is not integrable.
The example shows that boundedness is not the issue. Integrability requires that the oscillation over small intervals can be made small in aggregate; here the oscillation is 1 on every interval.
The integrability criterion
Theorem. Let f be bounded on [a,b]. Then f is Riemann integrable if and only if for every ε>0 there is a partition P with
U(f,P)−L(f,P)<ε.
Proof (necessity). Suppose f is integrable with common value I. Since
I=∫abf=PsupL(f,P),
given ε>0 there is P1 with
L(f,P1)>I−2ε.
(Otherwise every lower sum would be ≤I−ε/2 and the supremum would be smaller than I.) Likewise, since I=infPU(f,P), there is P2 with
U(f,P2)<I+2ε.
Take the common refinement P, which refines both. Then
L(f,P)≥L(f,P1)>I−2ε,U(f,P)≤U(f,P2)<I+2ε.
Subtracting,
U(f,P)−L(f,P)<(I+2ε)−(I−2ε)=ε.
Proof (sufficiency). Suppose that for every ε>0 some P has U(f,P)−L(f,P)<ε. For any partition,
L(f,P)≤∫abf≤∫abf≤U(f,P),
so
0≤∫abf−∫abf≤U(f,P)−L(f,P)<ε.
Since ε is arbitrary, the two integrals agree and f is integrable. □
The point of the criterion: integrability needs one partition for each ε, not verification over all partitions. If upper and lower sums can be brought arbitrarily close, the sup and inf are squeezed together.
Uniform continuity
Definition. Let f be defined on a set E. Say f is uniformly continuous on E if for every ε>0 there is δ>0 such that for allx,y∈E,
∣x−y∣<δ⟹∣f(x)−f(y)∣<ε.
The only difference from ordinary continuity is one word: δ may not depend on the point. Ordinary continuity says "for each x0 and each ε there is δ(ε,x0)"; uniform continuity requires one δ that works everywhere.
Geometrically: given an error band of height ε on the y-axis, there is a uniform horizontal width δ such that any piece of the graph of width less than δ stays within a band of height 2ε.
Counterexample 1: x2 on R
If x2 were uniformly continuous, there would be δ>0 with ∣x2−y2∣<ε whenever ∣x−y∣<δ. Take y=x+δ/2:
∣f(x)−f(y)∣=x2−(x+2δ)2=δx+4δ2,
which is unbounded as x→+∞. So no single δ works. The function is continuous but not uniformly continuous on R.
The cause is not the function but the unbounded domain: the graph steepens without limit, so a fixed horizontal width produces ever larger vertical change.
Counterexample 2: 1/x on (0,1]
Let f(x)=1/x on (0,1] and take
xn=n1,yn=2n1.
Then
∣xn−yn∣=2n1→0,∣f(xn)−f(yn)∣=∣n−2n∣=n→∞.
So no matter how small δ is, some pair of points closer than δ has images more than a given ε apart. Hence 1/x is not uniformly continuous on (0,1].
The cause is not unboundedness but the domain not being closed: near 0 the function steepens without bound, and the endpoint 0 is missing.
Both counterexamples point to the same thing: uniform continuity depends on compactness of the domain.
Continuity on a compact interval gives uniform continuity
Theorem. If f is continuous on [a,b], then f is uniformly continuous on [a,b].
Proof (contradiction plus sequential compactness). Suppose not. Negating the definition gives ε>0 such that for everyδ>0 there are x,y∈[a,b] with
∣x−y∣<δand∣f(x)−f(y)∣≥ε.
Take δ=1/n for n=1,2,3,… to obtain sequences xn,yn∈[a,b] with
∣xn−yn∣<n1,∣f(xn)−f(yn)∣≥ε.
By Bolzano–Weierstrass (a bounded sequence in a closed bounded interval has a convergent subsequence), some subsequence xnk→x, and x∈[a,b] because the interval is closed.
contradicting the fact that it is ≥ε>0 for every k. Therefore f is uniformly continuous. □
This is a model compactness argument: negate uniformity, obtain two sequences whose points converge together but whose images stay apart; use Bolzano–Weierstrass; continuity forces the images together; contradiction.
Continuous functions are integrable
Theorem. If f is continuous on [a,b], then f is Riemann integrable.
Proof. By the criterion it suffices, for each ε>0, to construct a partition with U−L<ε.
Assume a<b (if a=b the integral is zero). Uniform continuity gives δ>0 such that ∣x−y∣<δ implies
∣f(x)−f(y)∣<b−aε.
Choose a partition P with every Δxi<δ.
On each [xi−1,xi], the function is continuous, so by the extreme value theorem Mi and mi are attained at points yi,yi∗. Those points lie at distance less than δ, hence
The last step uses ∑Δxi=b−a. The criterion gives integrability. □
Each ingredient has a job: uniform continuity supplies a uniform δ; the extreme value theorem guarantees that the sup and inf are actually attained (otherwise only nearby points are available and the inequality is not strict); the partition sums the local estimates, and ∑Δxi=b−a cancels the constant.
Basic properties of the integral
Four properties were stated, with proofs deferred:
Scalar multiples: if f is integrable and c∈R, then cf is integrable and ∫abcf=c∫abf.
Sums: if f,g are integrable, so is f+g, and ∫ab(f+g)=∫abf+∫abg.
Monotonicity: if f,g are integrable and f≤g, then ∫abf≤∫abg.
Additivity over intervals: if f is integrable on [a,b] and c∈[a,b], then f is integrable on [a,c] and on [c,b], and
∫abf=∫acf+∫cbf.
The last is clearest in terms of area: cutting the graph at c splits the signed area into two parts whose sum is the whole.
What this lecture establishes
For every bounded function, ∫≤∫; the proof uses a common refinement and the definitions of sup and inf.
Dirichlet's function has Mi=1 and mi=0 on every interval, so U≡1 and L≡0; it is not integrable.
f is integrable iff for every ε>0 some partition has U−L<ε.
Uniform continuity means one δ works for all points; x2 on R and 1/x on (0,1] are continuous but not uniformly continuous.
Continuity on a compact interval implies uniform continuity (Bolzano–Weierstrass plus contradiction).
Continuity on a compact interval implies integrability (uniform continuity, extreme value theorem, upper/lower sum estimate).
The integral is linear, monotone and additive over subintervals (proofs deferred).
Comprehension check
1. Prove that L(f,P)≤U(f,P∗) for any two partitions, and deduce that the lower integral is at most the upper one.
Reference answer: Let Pˉ be the common refinement obtained from the union of the division points. The refinement lemma gives L(f,P)≤L(f,Pˉ) and U(f,Pˉ)≤U(f,P∗), while for any single partition L(f,Pˉ)≤U(f,Pˉ). Chaining them gives L(f,P)≤U(f,P∗). Fix P; the right side holds for every P∗, so L(f,P)≤infP∗U(f,P∗)=∫f. Taking the supremum over all P gives ∫f=supPL(f,P)≤∫f.
2. Prove that Dirichlet's function is not Riemann integrable on [0,1].
Reference answer: Take any partition P. Every nondegenerate subinterval contains both rationals and irrationals (both sets are dense), so Mi=1 and mi=0. Hence U(f,P)=∑1⋅Δxi=1 and L(f,P)=∑0⋅Δxi=0 for every partition. The upper integral is therefore the infimum of the constant 1, namely 1, and the lower integral is the supremum of the constant 0, namely 0. They differ, so the function is not integrable.
3. State the integrability criterion and prove its sufficiency.
Reference answer: A bounded f on [a,b] is Riemann integrable iff for every ε>0 there is a partition with U(f,P)−L(f,P)<ε. For sufficiency, suppose such a partition exists for each ε. For any partition, L(f,P)≤∫f≤∫f≤U(f,P), hence 0≤∫f−∫f≤U(f,P)−L(f,P)<ε. Since this holds for every ε>0, the two integrals are equal and f is integrable.
4. Show that 1/x is continuous but not uniformly continuous on (0,1], and identify the missing property of the domain.
Reference answer: Take xn=1/n and yn=1/(2n), both in (0,1]. Then ∣xn−yn∣=1/(2n)→0, while ∣f(xn)−f(yn)∣=∣n−2n∣=n→∞. So no single δ works: arbitrarily small horizontal distances can produce arbitrarily large vertical differences. The domain (0,1] is bounded but not closed (the endpoint 0 is missing), hence not compact; compactness is exactly what upgrades continuity to uniform continuity.
5. Use Bolzano–Weierstrass to prove that a continuous function on [a,b] is uniformly continuous.
Reference answer: Suppose not. Then there is ε>0 such that for every n there are xn,yn∈[a,b] with ∣xn−yn∣<1/n and ∣f(xn)−f(yn)∣≥ε. By Bolzano–Weierstrass, a subsequence xnk converges to some x∈[a,b]. The triangle inequality gives ∣ynk−x∣≤∣ynk−xnk∣+∣xnk−x∣<1/nk+∣xnk−x∣→0, so ynk→x. Continuity yields f(xnk)→f(x) and f(ynk)→f(x), hence ∣f(xnk)−f(ynk)∣→0, contradicting the lower bound ε.
6. For continuous f on [a,b], prove integrability from uniform continuity and the criterion, and say where the extreme value theorem enters.
Reference answer: Given ε>0, uniform continuity gives δ>0 with ∣x−y∣<δ⇒∣f(x)−f(y)∣<ε/(b−a). Choose a partition with every Δxi<δ. On each subinterval, the extreme value theorem guarantees that Mi and mi are attained at points less than δ apart, so Mi−mi<ε/(b−a). Then U−L=∑(Mi−mi)Δxi<b−aε∑Δxi=ε, and the criterion gives integrability. The extreme value theorem is what makes the sup and inf attained, producing a strict inequality; using ε/(2(b−a)) would also work, but the extreme value theorem makes the argument direct.
Relation to neighbouring lectures
This lecture turns integrability from a definition into a usable tool: the criterion compresses infinitely many partitions into one ε-argument, and compactness upgrades pointwise continuity to uniform continuity. Both ideas recur constantly.
The next lecture introduces the fundamental theorem of calculus: the function F(x)=∫axf is differentiable with F′=f when f is continuous; this is then used to compute concrete integrals, and improper integrals are discussed. Later, exchanging limits with integrals, and term-by-term integration of series, return to the uniform continuity and uniform convergence ideas from this lecture.