第 19 章

哪些函数可积:判据、一致连续与连续函数

先证明下积分永远不超过上积分,再用 Dirichlet 函数说明有界远不足以保证可积;接着给出上下和之差小于 ε 的充要判据,用一致连续与 Bolzano–Weierstrass 定理证明闭区间上的连续函数一致连续,从而可积。

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.

首发于 2025.09.02中 / EN
系统课程real-analysisriemann-integraluniform-continuitycompactness
语言
字号
目录
篇内目录

从定义到判别

上一讲把 Riemann 积分定义成「下积分与上积分相等时的公共值」,但没有回答什么时候相等。这一讲补上三件事:

  1. 对任何有界函数,下积分都不超过上积分——所以可积性的定义不会自相矛盾。
  2. 给出一个不可积的例子(Dirichlet 函数),说明有界性远远不够。
  3. 给出可积的充要判据:对每个 ε>0\varepsilon>0,能找到分割使上下和之差小于 ε\varepsilon。

判据本身只涉及有限个矩形,但要把它用在连续函数上,还需要一个新工具:一致连续。整讲的逻辑是

连续→紧性一致连续→上下和可积.\text{连续} \xrightarrow{\text{紧性}} \text{一致连续} \xrightarrow{\text{上下和}} \text{可积}.

时间轴

时间内容
0:00回顾分割、上和、下和与加细引理
13:32上积分与下积分的定义
16:59证明:下积分 ≤\le 上积分
24:44关于 Riemann 的插叙
27:52Dirichlet 函数:有界但不可积
31:45可积的充要判据(上下和之差)
41:47定理:闭区间上连续函数可积;引入一致连续
45:38两个反例:x2x^2 在 R\mathbb R 上、1/x1/x 在 (0,1](0,1] 上
55:28证明:紧区间上连续 ⇒\Rightarrow 一致连续
1:04:39用判据证明连续函数可积
1:14:25积分的四条基本性质(只陈述)

回顾:分割、上下和、加细

设 ff 在 [a,b][a,b] 上有界,P={a=x0<x1<⋯<xn=b}P=\{a=x_0<x_1<\cdots<x_n=b\} 是分割,记 Δxi=xi−xi−1\Delta x_i=x_i-x_{i-1},并令

Mi=sup⁡[xi−1,xi]f,mi=inf⁡[xi−1,xi]f.M_i=\sup_{[x_{i-1},x_i]}f, \qquad m_i=\inf_{[x_{i-1},x_i]}f .

则

U(f,P)=∑i=1nMiΔxi,L(f,P)=∑i=1nmiΔxi,L(f,P)≤U(f,P).U(f,P)=\sum_{i=1}^{n}M_i\Delta x_i, \qquad L(f,P)=\sum_{i=1}^{n}m_i\Delta x_i, \qquad L(f,P)\le U(f,P).

加细引理:若 P2P_2 是 P1P_1 的加细,则

L(f,P1)≤L(f,P2)≤U(f,P2)≤U(f,P1).L(f,P_1)\le L(f,P_2)\le U(f,P_2)\le U(f,P_1).

上积分是所有上和的下确界,下积分是所有下和的上确界:

∫abf‾=inf⁡PU(f,P),∫abf‾=sup⁡PL(f,P).\overline{\int_a^b f}=\inf_P U(f,P), \qquad \underline{\int_a^b f}=\sup_P L(f,P).

下积分永远不超过上积分

命题。 对任意有界函数 ff,

∫abf‾≤∫abf‾.\underline{\int_a^b f}\le \overline{\int_a^b f}.

证明。 先证一个更强的结论:任意两个分割的下和不超过上和的任意组合,即对任意分割 P,P∗P,P^*,

L(f,P)≤U(f,P∗).L(f,P)\le U(f,P^*).

取 PP 与 P∗P^* 分点的并集,得到公共加细 Pˉ\bar P。它同时是两者的加细,所以由加细引理

L(f,P)≤L(f,Pˉ)≤U(f,Pˉ)≤U(f,P∗).L(f,P)\le L(f,\bar P)\le U(f,\bar P)\le U(f,P^*).

于是 L(f,P)≤U(f,P∗)L(f,P)\le U(f,P^*) 对一切 P,P∗P,P^* 成立。

现在固定 PP。上式说明 L(f,P)L(f,P) 是集合 {U(f,P∗):P∗}\{U(f,P^*):P^*\} 的一个下界,因此不超过它的下确界:

L(f,P)≤inf⁡P∗U(f,P∗)=∫abf‾.L(f,P)\le\inf_{P^*}U(f,P^*)=\overline{\int_a^b f}.

这说明 ∫abf‾\overline{\int_a^b f} 是集合 {L(f,P):P}\{L(f,P):P\} 的一个上界,因此不小于其上确界:

sup⁡PL(f,P)=∫abf‾≤∫abf‾.\sup_P L(f,P)=\underline{\int_a^b f}\le \overline{\int_a^b f}.

□\square

这个证明的技巧值得记住:先证「任意下和 ≤ 任意上和」,再用上下确界的定义各取一次。加细引理在这里承担了全部工作。

一个不可积的函数:Dirichlet 函数

定义在 [0,1][0,1] 上:

f(x)={1,x∈Q,0,x∉Q.f(x)= \begin{cases} 1, & x\in\mathbb Q,\\ 0, & x\notin\mathbb Q . \end{cases}

它显然有界(0≤f≤10\le f\le1),但不可积。

理由。 取任意分割 PP。任何一个非退化的子区间 [xi−1,xi][x_{i-1},x_i] 中,既有有理数(稠密性),又有无理数(稠密性),所以

Mi=1,mi=0.M_i=1, \qquad m_i=0 .

于是

U(f,P)=∑i=1n1⋅Δxi=1,L(f,P)=∑i=1n0⋅Δxi=0.U(f,P)=\sum_{i=1}^{n}1\cdot\Delta x_i=1, \qquad L(f,P)=\sum_{i=1}^{n}0\cdot\Delta x_i=0 .

这对所有分割都成立。因此

∫01f‾=1,∫01f‾=0,\overline{\int_0^1 f}=1, \qquad \underline{\int_0^1 f}=0,

两者不相等,函数不可积。

这个例子说明:有界、甚至处处有定义,都不够。可积性要求函数在小区间上的「起伏」能整体压小,而 Dirichlet 函数在每个区间上的起伏都是 11。

可积的充要判据

定理。 设 ff 在 [a,b][a,b] 上有界。则 ff Riemann 可积,当且仅当对每个 ε>0\varepsilon>0,存在分割 PP,使

U(f,P)−L(f,P)<ε.U(f,P)-L(f,P)<\varepsilon .

证明(必要性)。 设 ff 可积,公共值为 II。由

I=∫abf‾=sup⁡PL(f,P),I=\underline{\int_a^b f}=\sup_P L(f,P),

给定 ε>0\varepsilon>0,存在分割 P1P_1,使

L(f,P1)>I−ε2.L(f,P_1)>I-\frac{\varepsilon}{2}.

(否则所有下和都 ≤I−ε/2\le I-\varepsilon/2,上确界就小于 II。)同理,由 I=inf⁡PU(f,P)I=\inf_P U(f,P),存在分割 P2P_2,使

U(f,P2)<I+ε2.U(f,P_2)<I+\frac{\varepsilon}{2}.

取公共加细 PP,它同时加细 P1,P2P_1,P_2。于是

L(f,P)≥L(f,P1)>I−ε2,U(f,P)≤U(f,P2)<I+ε2.L(f,P)\ge L(f,P_1)>I-\frac{\varepsilon}{2}, \qquad U(f,P)\le U(f,P_2)<I+\frac{\varepsilon}{2}.

两式相减:

U(f,P)−L(f,P)<(I+ε2)−(I−ε2)=ε.U(f,P)-L(f,P)<\left(I+\frac{\varepsilon}{2}\right)-\left(I-\frac{\varepsilon}{2}\right)=\varepsilon .

证明(充分性)。 设对每个 ε>0\varepsilon>0 都有分割 PP 使 U(f,P)−L(f,P)<εU(f,P)-L(f,P)<\varepsilon。对任意分割恒有

L(f,P)≤∫abf‾≤∫abf‾≤U(f,P),L(f,P)\le\underline{\int_a^b f}\le\overline{\int_a^b f}\le U(f,P),

所以

0≤∫abf‾−∫abf‾≤U(f,P)−L(f,P)<ε.0\le\overline{\int_a^b f}-\underline{\int_a^b f}\le U(f,P)-L(f,P)<\varepsilon .

ε\varepsilon 任意,故两个积分相等,ff 可积。□\square

判据的意义在于:可积性只需要一列分割,不需要对所有分割验证。只要上下和能任意接近,上下确界就被夹住。

一致连续

定义。 设 ff 定义在集合 EE 上。称 ff 在 EE 上一致连续,若对每个 ε>0\varepsilon>0,存在 δ>0\delta>0,使得对所有 x,y∈Ex,y\in E,只要 ∣x−y∣<δ|x-y|<\delta,就有

∣f(x)−f(y)∣<ε.|f(x)-f(y)|<\varepsilon .

与普通连续的区别只在一个词:δ\delta 不能依赖 xx。普通连续是「对每个 x0x_0,给定 ε\varepsilon,存在 δ(ε,x0)\delta(\varepsilon,x_0)」;一致连续要求同一个 δ\delta 对所有点都管用。

几何上:给定 yy 轴上的误差带 (−ε,ε)(-\varepsilon,\varepsilon),一致连续保证存在一个统一的水平宽度 δ\delta,使得宽度小于 δ\delta 的任何一段图像都落在高度小于 2ε2\varepsilon 的带子里。

反例一:x2x^2 在 R\mathbb R 上

设 f(x)=x2f(x)=x^2。若一致连续,则存在 δ>0\delta>0,使 ∣x−y∣<δ|x-y|<\delta 时 ∣x2−y2∣<ε|x^2-y^2|<\varepsilon。取 y=x+δ/2y=x+\delta/2,则

∣f(x)−f(y)∣=∣x2−(x+δ2)2∣=δx+δ24.|f(x)-f(y)|=\left|x^2-\left(x+\frac{\delta}{2}\right)^2\right| =\delta x+\frac{\delta^2}{4}.

当 x→+∞x\to+\infty 时这个量无界,不可能对所有 xx 都小于固定的 ε\varepsilon。所以 x2x^2 在 R\mathbb R 上连续但不一致连续。

原因不在函数本身,而在定义域无界:图像越往右越陡,同样的水平宽度对应越来越大的竖直变化。

反例二:1/x1/x 在 (0,1](0,1] 上

设 f(x)=1/xf(x)=1/x,定义域 (0,1](0,1]。取

xn=1n,yn=12n.x_n=\frac1n, \qquad y_n=\frac1{2n}.

则

∣xn−yn∣=12n→0,∣f(xn)−f(yn)∣=∣n−2n∣=n→∞.|x_n-y_n|=\frac1{2n}\to0, \qquad |f(x_n)-f(y_n)|=|n-2n|=n\to\infty .

所以无论 δ\delta 多小,总有一对距离小于 δ\delta 的点,函数值相差超过给定 ε\varepsilon。1/x1/x 在 (0,1](0,1] 上不一致连续。

原因不在无界,而在定义域不闭:越靠近 00,函数越陡,且没有定义在 00 处。

两个反例都指向同一件事:一致连续性依赖于定义域的紧性。

紧区间上连续蕴含一致连续

定理。 设 ff 在闭区间 [a,b][a,b] 上连续,则 ff 在 [a,b][a,b] 上一致连续。

证明(反证 + 序列紧性)。 假设不一致连续。否定定义:存在 ε>0\varepsilon>0,使得对每个 δ>0\delta>0,都能找到 x,y∈[a,b]x,y\in[a,b] 满足

∣x−y∣<δ但∣f(x)−f(y)∣≥ε.|x-y|<\delta \quad\text{但}\quad |f(x)-f(y)|\ge\varepsilon .

取 δ=1/n\delta=1/n(n=1,2,3,…n=1,2,3,\dots),得到两列点 xn,yn∈[a,b]x_n,y_n\in[a,b],满足

∣xn−yn∣<1n,∣f(xn)−f(yn)∣≥ε.|x_n-y_n|<\frac1n, \qquad |f(x_n)-f(y_n)|\ge\varepsilon .

由 Bolzano–Weierstrass 定理(有界闭区间上的有界数列有收敛子列),存在子列 xnk→xx_{n_k}\to x,且 x∈[a,b]x\in[a,b](闭区间包含极限点)。

再看对应的 ynky_{n_k}。由三角不等式

∣ynk−x∣≤∣ynk−xnk∣+∣xnk−x∣<1nk+∣xnk−x∣.|y_{n_k}-x|\le|y_{n_k}-x_{n_k}|+|x_{n_k}-x| <\frac{1}{n_k}+|x_{n_k}-x| .

右边两项都趋于 00,故 ynk→xy_{n_k}\to x。

由于 ff 在 xx 处连续,

f(xnk)→f(x),f(ynk)→f(x).f(x_{n_k})\to f(x), \qquad f(y_{n_k})\to f(x).

于是

∣f(xnk)−f(ynk)∣→0,|f(x_{n_k})-f(y_{n_k})|\to0,

这与它对每个 kk 都 ≥ε>0\ge\varepsilon>0 矛盾。所以假设不成立,ff 一致连续。□\square

这个证明是紧性论证的典型样本:否定一致性,得到两条距离趋于零但函数值距离不趋于零的点列;用 B–W 抽出收敛子列;两条子列收敛到同一点;连续性迫使函数值也靠拢,矛盾。

连续函数可积

定理。 设 ff 在 [a,b][a,b] 上连续,则 ff Riemann 可积。

证明。 由判据,只需对每个 ε>0\varepsilon>0 构造一个上下和之差小于 ε\varepsilon 的分割。

设 a<ba<b(a=ba=b 时积分显然为零)。由一致连续性,取 δ>0\delta>0,使 ∣x−y∣<δ|x-y|<\delta 时

∣f(x)−f(y)∣<εb−a.|f(x)-f(y)|<\frac{\varepsilon}{b-a}.

取分割 PP,使每段长度 Δxi<δ\Delta x_i<\delta。

在每段 [xi−1,xi][x_{i-1},x_i] 上,ff 连续,由极值定理,MiM_i 与 mim_i 分别在两个点 yi,yi∗y_i,y_i^* 取到。这两点的距离不超过该段长度,小于 δ\delta,所以

Mi−mi=f(yi)−f(yi∗)<εb−a.M_i-m_i=f(y_i)-f(y_i^*)<\frac{\varepsilon}{b-a}.

于是

U(f,P)−L(f,P)=∑i=1n(Mi−mi)Δxi<∑i=1nεb−aΔxi=εb−a∑i=1nΔxi=ε.U(f,P)-L(f,P) =\sum_{i=1}^{n}(M_i-m_i)\Delta x_i <\sum_{i=1}^{n}\frac{\varepsilon}{b-a}\Delta x_i =\frac{\varepsilon}{b-a}\sum_{i=1}^{n}\Delta x_i =\varepsilon .

最后一步用了 ∑Δxi=b−a\sum\Delta x_i=b-a。由判据,ff 可积。□\square

注意证明中三件事各有其位:一致连续提供统一的 δ\delta;极值定理保证 sup 与 inf 被取到(否则只能取近似点,得不到严格不等式);分割把这些局部估计加起来,∑Δxi=b−a\sum\Delta x_i=b-a 把常数消掉。

积分的基本性质

课程最后只陈述了四条,证明留到后面:

  1. 数乘:ff 可积,c∈Rc\in\mathbb R,则 cfcf 可积,且 ∫abcf=c∫abf\int_a^b cf=c\int_a^b f。
  2. 加法:f,gf,g 可积,则 f+gf+g 可积,且 ∫ab(f+g)=∫abf+∫abg\int_a^b(f+g)=\int_a^b f+\int_a^b g。
  3. 单调性:f,gf,g 可积且 f≤gf\le g,则 ∫abf≤∫abg\int_a^b f\le\int_a^b g。
  4. 区间可加:ff 在 [a,b][a,b] 上可积,c∈[a,b]c\in[a,b],则 ff 在 [a,c][a,c] 与 [c,b][c,b] 上都可积,且
∫abf=∫acf+∫cbf.\int_a^b f=\int_a^c f+\int_c^b f .

第四条用面积理解最直接:以 cc 为界把图像切成两段,两块有向面积相加等于整块。

本节结论

  • 对任意有界函数,∫‾≤∫‾\underline{\int}\le\overline{\int};证明靠公共加细与确界定义。
  • Dirichlet 函数在每个区间上 sup 为 11、inf 为 00,故 U≡1U\equiv1、L≡0L\equiv0,不可积。
  • ff 可积   ⟺  \iff 对每个 ε>0\varepsilon>0 存在分割使 U−L<εU-L<\varepsilon。
  • 一致连续 = 同一个 δ\delta 对所有点有效;x2x^2 在 R\mathbb R、1/x1/x 在 (0,1](0,1] 都是连续但非一致连续。
  • 紧区间上连续 ⇒\Rightarrow 一致连续(B–W + 反证)。
  • 紧区间上连续 ⇒\Rightarrow 可积(一致连续 + 极值定理 + 上下和估计)。
  • 积分满足线性、单调与区间可加(暂未证明)。

理解检验

1. 证明:对任意两个分割 P,P∗P,P^*,有 L(f,P)≤U(f,P∗)L(f,P)\le U(f,P^*),并由此推出下积分不超过上积分。

参考答案:取 PP 与 P∗P^* 分点的并集得到公共加细 Pˉ\bar P。由加细引理,L(f,P)≤L(f,Pˉ)L(f,P)\le L(f,\bar P) 且 U(f,Pˉ)≤U(f,P∗)U(f,\bar P)\le U(f,P^*);又对同一分割总有 L(f,Pˉ)≤U(f,Pˉ)L(f,\bar P)\le U(f,\bar P)。三者串起来得 L(f,P)≤U(f,P∗)L(f,P)\le U(f,P^*)。固定 PP,右端对一切 P∗P^* 成立,故 L(f,P)≤inf⁡P∗U(f,P∗)=∫‾fL(f,P)\le\inf_{P^*}U(f,P^*)=\overline{\int}f。再对一切 PP 取上确界:∫‾f=sup⁡PL(f,P)≤∫‾f\underline{\int}f=\sup_P L(f,P)\le\overline{\int}f。

2. 证明 Dirichlet 函数在 [0,1][0,1] 上不可积。

参考答案:任取分割 PP。每个非退化子区间既含有理数又含无理数(两种数都稠密),所以 Mi=1M_i=1、mi=0m_i=0。于是 U(f,P)=∑1⋅Δxi=1U(f,P)=\sum1\cdot\Delta x_i=1,L(f,P)=∑0⋅Δxi=0L(f,P)=\sum0\cdot\Delta x_i=0,对所有分割都成立。因此上积分是常值 11 的下确界,等于 11;下积分是常值 00 的上确界,等于 00。上下积分不相等,故不可积。

3. 陈述并证明可积判据(U−L<εU-L<\varepsilon 的充要条件)的充分性部分。

参考答案:设对每个 ε>0\varepsilon>0 存在分割 PP 使 U(f,P)−L(f,P)<εU(f,P)-L(f,P)<\varepsilon。对任意分割恒有 L(f,P)≤∫‾f≤∫‾f≤U(f,P)L(f,P)\le\underline{\int}f\le\overline{\int}f\le U(f,P),因此 0≤∫‾f−∫‾f≤U(f,P)−L(f,P)<ε0\le\overline{\int}f-\underline{\int}f\le U(f,P)-L(f,P)<\varepsilon。由于这对任意 ε>0\varepsilon>0 成立,两个积分必须相等,故 ff 可积。

4. 说明 1/x1/x 在 (0,1](0,1] 上连续但不一致连续,并指出定义域缺少哪条性质。

参考答案:取 xn=1/nx_n=1/n、yn=1/(2n)y_n=1/(2n),都在 (0,1](0,1] 内。则 ∣xn−yn∣=1/(2n)→0|x_n-y_n|=1/(2n)\to0,而 ∣f(xn)−f(yn)∣=∣n−2n∣=n→∞|f(x_n)-f(y_n)|=|n-2n|=n\to\infty。所以不存在统一的 δ\delta:任意小的水平距离都可能对应巨大的竖直差。定义域 (0,1](0,1] 有界但不闭(缺端点 00),因此不紧致;紧性是连续升级为一致连续的关键条件。

5. 用 Bolzano–Weierstrass 定理证明:[a,b][a,b] 上的连续函数一致连续。

参考答案:反设不一致连续,则存在 ε>0\varepsilon>0,使对每个 nn 都有 xn,yn∈[a,b]x_n,y_n\in[a,b] 满足 ∣xn−yn∣<1/n|x_n-y_n|<1/n 且 ∣f(xn)−f(yn)∣≥ε|f(x_n)-f(y_n)|\ge\varepsilon。由 B–W,存在子列 xnk→x∈[a,b]x_{n_k}\to x\in[a,b]。由三角不等式 ∣ynk−x∣≤∣ynk−xnk∣+∣xnk−x∣<1/nk+∣xnk−x∣→0|y_{n_k}-x|\le|y_{n_k}-x_{n_k}|+|x_{n_k}-x|<1/n_k+|x_{n_k}-x|\to0,故 ynk→xy_{n_k}\to x。连续性给出 f(xnk)→f(x)f(x_{n_k})\to f(x) 与 f(ynk)→f(x)f(y_{n_k})\to f(x),于是 ∣f(xnk)−f(ynk)∣→0|f(x_{n_k})-f(y_{n_k})|\to0,与它始终 ≥ε\ge\varepsilon 矛盾。

6. 设 ff 在 [a,b][a,b] 上连续。用一致连续与判据证明 ff 可积,并指出证明中极值定理用在哪里。

参考答案:给定 ε>0\varepsilon>0,由一致连续取 δ>0\delta>0 使 ∣x−y∣<δ⇒∣f(x)−f(y)∣<ε/(b−a)|x-y|<\delta\Rightarrow|f(x)-f(y)|<\varepsilon/(b-a)。取分割使每段 Δxi<δ\Delta x_i<\delta。在每个子区间上,极值定理保证 Mi,miM_i,m_i 被某两点取到,而这两点距离小于 δ\delta,所以 Mi−mi<ε/(b−a)M_i-m_i<\varepsilon/(b-a)。于是 U−L=∑(Mi−mi)Δxi<εb−a∑Δxi=εU-L=\sum(M_i-m_i)\Delta x_i<\frac{\varepsilon}{b-a}\sum\Delta x_i=\varepsilon。由判据 ff 可积。极值定理用在「sup 与 inf 确实被取到」,否则只能取到近似点,只能得到 ≤\le 而非严格不等式;改用 ε/(2(b−a))\varepsilon/(2(b-a)) 也可以绕开,但极值定理让论证更直接。

与前后课的关系

这一讲把可积性从定义变成了可用的工具:判据把无穷多个分割压缩成一个 ε\varepsilon 论证,而紧性把「逐点连续」升级成「一致连续」。两条线索在后文反复出现。

下一讲进入微积分基本定理:定义变上限积分 F(x)=∫axfF(x)=\int_a^x f,证明 FF 可导且 F′=fF'=f(当 ff 连续),再用它计算具体积分,并讨论反常积分。再往后,积分与导数的交换、函数项级数的逐项积分,都要回到本讲的一致连续与一致收敛思想。

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:

  1. For every bounded function the lower integral is at most the upper one, so the definition is consistent.
  2. A non-integrable example (Dirichlet's function) shows that boundedness is far from enough.
  3. An if-and-only-if criterion: for every ε>0\varepsilon>0 there is a partition whose upper and lower sums differ by less than ε\varepsilon.

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

continuous→compactnessuniformly continuous→upper/lower sumsintegrable.\text{continuous} \xrightarrow{\text{compactness}} \text{uniformly continuous} \xrightarrow{\text{upper/lower sums}} \text{integrable}.

Timeline

TimeTopic
0:00Review: partitions, upper and lower sums, refinement lemma
13:32Definitions of upper and lower integrals
16:59Proof that the lower integral is at most the upper one
24:44A digression on Riemann
27:52Dirichlet's function: bounded but not integrable
31:45The integrability criterion via U−LU-L
41:47Continuous functions on closed intervals are integrable; uniform continuity introduced
45:38Counterexamples: x2x^2 on R\mathbb R, 1/x1/x on (0,1](0,1]
55:28Proof: continuity on a compact interval gives uniform continuity
1:04:39Applying the criterion to prove integrability
1:14:25Four basic properties of the integral (stated only)

Review: partitions, sums, refinements

Let ff be bounded on [a,b][a,b] and P={a=x0<x1<⋯<xn=b}P=\{a=x_0<x_1<\cdots<x_n=b\} a partition, with Δxi=xi−xi−1\Delta x_i=x_i-x_{i-1} and

Mi=sup⁡[xi−1,xi]f,mi=inf⁡[xi−1,xi]f.M_i=\sup_{[x_{i-1},x_i]}f, \qquad m_i=\inf_{[x_{i-1},x_i]}f .

Then

U(f,P)=∑i=1nMiΔxi,L(f,P)=∑i=1nmiΔxi,L(f,P)≤U(f,P).U(f,P)=\sum_{i=1}^{n}M_i\Delta x_i, \qquad L(f,P)=\sum_{i=1}^{n}m_i\Delta x_i, \qquad L(f,P)\le U(f,P).

Refinement lemma: if P2P_2 refines P1P_1, then

L(f,P1)≤L(f,P2)≤U(f,P2)≤U(f,P1).L(f,P_1)\le L(f,P_2)\le U(f,P_2)\le U(f,P_1).

The upper integral is the infimum of all upper sums, the lower integral the supremum of all lower sums:

∫abf‾=inf⁡PU(f,P),∫abf‾=sup⁡PL(f,P).\overline{\int_a^b f}=\inf_P U(f,P), \qquad \underline{\int_a^b f}=\sup_P L(f,P).

The lower integral never exceeds the upper

Proposition. For every bounded ff,

∫abf‾≤∫abf‾.\underline{\int_a^b f}\le \overline{\int_a^b f}.

Proof. First prove a stronger statement: for any two partitions P,P∗P,P^*,

L(f,P)≤U(f,P∗).L(f,P)\le U(f,P^*).

Take the union of the division points of PP and P∗P^*, giving the common refinement Pˉ\bar P. It refines both, so the refinement lemma gives

L(f,P)≤L(f,Pˉ)≤U(f,Pˉ)≤U(f,P∗).L(f,P)\le L(f,\bar P)\le U(f,\bar P)\le U(f,P^*).

Hence L(f,P)≤U(f,P∗)L(f,P)\le U(f,P^*) for all P,P∗P,P^*.

Fix PP. The inequality says L(f,P)L(f,P) is a lower bound for the set {U(f,P∗):P∗}\{U(f,P^*):P^*\}, so it does not exceed the infimum:

L(f,P)≤inf⁡P∗U(f,P∗)=∫abf‾.L(f,P)\le\inf_{P^*}U(f,P^*)=\overline{\int_a^b f}.

Thus ∫abf‾\overline{\int_a^b f} is an upper bound for {L(f,P):P}\{L(f,P):P\}, and therefore at least the supremum:

sup⁡PL(f,P)=∫abf‾≤∫abf‾.\sup_P L(f,P)=\underline{\int_a^b f}\le \overline{\int_a^b f}.

□\square

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][0,1]:

f(x)={1,x∈Q,0,x∉Q.f(x)= \begin{cases} 1, & x\in\mathbb Q,\\ 0, & x\notin\mathbb Q . \end{cases}

It is plainly bounded (0≤f≤10\le f\le1), yet not integrable.

Reason. Take any partition PP. Every nondegenerate subinterval [xi−1,xi][x_{i-1},x_i] contains rationals and irrationals (both are dense), so

Mi=1,mi=0.M_i=1, \qquad m_i=0 .

Therefore

U(f,P)=∑i=1n1⋅Δxi=1,L(f,P)=∑i=1n0⋅Δxi=0.U(f,P)=\sum_{i=1}^{n}1\cdot\Delta x_i=1, \qquad L(f,P)=\sum_{i=1}^{n}0\cdot\Delta x_i=0 .

This holds for all partitions. Hence

∫01f‾=1,∫01f‾=0,\overline{\int_0^1 f}=1, \qquad \underline{\int_0^1 f}=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 11 on every interval.

The integrability criterion

Theorem. Let ff be bounded on [a,b][a,b]. Then ff is Riemann integrable if and only if for every ε>0\varepsilon>0 there is a partition PP with

U(f,P)−L(f,P)<ε.U(f,P)-L(f,P)<\varepsilon .

Proof (necessity). Suppose ff is integrable with common value II. Since

I=∫abf‾=sup⁡PL(f,P),I=\underline{\int_a^b f}=\sup_P L(f,P),

given ε>0\varepsilon>0 there is P1P_1 with

L(f,P1)>I−ε2.L(f,P_1)>I-\frac{\varepsilon}{2}.

(Otherwise every lower sum would be ≤I−ε/2\le I-\varepsilon/2 and the supremum would be smaller than II.) Likewise, since I=inf⁡PU(f,P)I=\inf_P U(f,P), there is P2P_2 with

U(f,P2)<I+ε2.U(f,P_2)<I+\frac{\varepsilon}{2}.

Take the common refinement PP, which refines both. Then

L(f,P)≥L(f,P1)>I−ε2,U(f,P)≤U(f,P2)<I+ε2.L(f,P)\ge L(f,P_1)>I-\frac{\varepsilon}{2}, \qquad U(f,P)\le U(f,P_2)<I+\frac{\varepsilon}{2}.

Subtracting,

U(f,P)−L(f,P)<(I+ε2)−(I−ε2)=ε.U(f,P)-L(f,P)<\left(I+\frac{\varepsilon}{2}\right)-\left(I-\frac{\varepsilon}{2}\right)=\varepsilon .

Proof (sufficiency). Suppose that for every ε>0\varepsilon>0 some PP has U(f,P)−L(f,P)<εU(f,P)-L(f,P)<\varepsilon. For any partition,

L(f,P)≤∫abf‾≤∫abf‾≤U(f,P),L(f,P)\le\underline{\int_a^b f}\le\overline{\int_a^b f}\le U(f,P),

so

0≤∫abf‾−∫abf‾≤U(f,P)−L(f,P)<ε.0\le\overline{\int_a^b f}-\underline{\int_a^b f}\le U(f,P)-L(f,P)<\varepsilon .

Since ε\varepsilon is arbitrary, the two integrals agree and ff is integrable. □\square

The point of the criterion: integrability needs one partition for each ε\varepsilon, 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 ff be defined on a set EE. Say ff is uniformly continuous on EE if for every ε>0\varepsilon>0 there is δ>0\delta>0 such that for all x,y∈Ex,y\in E,

∣x−y∣<δ  ⟹  ∣f(x)−f(y)∣<ε.|x-y|<\delta\implies|f(x)-f(y)|<\varepsilon .

The only difference from ordinary continuity is one word: δ\delta may not depend on the point. Ordinary continuity says "for each x0x_0 and each ε\varepsilon there is δ(ε,x0)\delta(\varepsilon,x_0)"; uniform continuity requires one δ\delta that works everywhere.

Geometrically: given an error band of height ε\varepsilon on the yy-axis, there is a uniform horizontal width δ\delta such that any piece of the graph of width less than δ\delta stays within a band of height 2ε2\varepsilon.

Counterexample 1: x2x^2 on R\mathbb R

If x2x^2 were uniformly continuous, there would be δ>0\delta>0 with ∣x2−y2∣<ε|x^2-y^2|<\varepsilon whenever ∣x−y∣<δ|x-y|<\delta. Take y=x+δ/2y=x+\delta/2:

∣f(x)−f(y)∣=∣x2−(x+δ2)2∣=δx+δ24,|f(x)-f(y)|=\left|x^2-\left(x+\frac{\delta}{2}\right)^2\right| =\delta x+\frac{\delta^2}{4},

which is unbounded as x→+∞x\to+\infty. So no single δ\delta works. The function is continuous but not uniformly continuous on R\mathbb 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/x1/x on (0,1](0,1]

Let f(x)=1/xf(x)=1/x on (0,1](0,1] and take

xn=1n,yn=12n.x_n=\frac1n, \qquad y_n=\frac1{2n}.

Then

∣xn−yn∣=12n→0,∣f(xn)−f(yn)∣=∣n−2n∣=n→∞.|x_n-y_n|=\frac1{2n}\to0, \qquad |f(x_n)-f(y_n)|=|n-2n|=n\to\infty .

So no matter how small δ\delta is, some pair of points closer than δ\delta has images more than a given ε\varepsilon apart. Hence 1/x1/x is not uniformly continuous on (0,1](0,1].

The cause is not unboundedness but the domain not being closed: near 00 the function steepens without bound, and the endpoint 00 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 ff is continuous on [a,b][a,b], then ff is uniformly continuous on [a,b][a,b].

Proof (contradiction plus sequential compactness). Suppose not. Negating the definition gives ε>0\varepsilon>0 such that for every δ>0\delta>0 there are x,y∈[a,b]x,y\in[a,b] with

∣x−y∣<δand∣f(x)−f(y)∣≥ε.|x-y|<\delta \quad\text{and}\quad |f(x)-f(y)|\ge\varepsilon .

Take δ=1/n\delta=1/n for n=1,2,3,…n=1,2,3,\dots to obtain sequences xn,yn∈[a,b]x_n,y_n\in[a,b] with

∣xn−yn∣<1n,∣f(xn)−f(yn)∣≥ε.|x_n-y_n|<\frac1n, \qquad |f(x_n)-f(y_n)|\ge\varepsilon .

By Bolzano–Weierstrass (a bounded sequence in a closed bounded interval has a convergent subsequence), some subsequence xnk→xx_{n_k}\to x, and x∈[a,b]x\in[a,b] because the interval is closed.

Consider ynky_{n_k}. The triangle inequality gives

∣ynk−x∣≤∣ynk−xnk∣+∣xnk−x∣<1nk+∣xnk−x∣.|y_{n_k}-x|\le|y_{n_k}-x_{n_k}|+|x_{n_k}-x| <\frac{1}{n_k}+|x_{n_k}-x| .

Both terms tend to 00, so ynk→xy_{n_k}\to x.

Continuity of ff at xx gives

f(xnk)→f(x),f(ynk)→f(x).f(x_{n_k})\to f(x), \qquad f(y_{n_k})\to f(x).

Hence

∣f(xnk)−f(ynk)∣→0,|f(x_{n_k})-f(y_{n_k})|\to0,

contradicting the fact that it is ≥ε>0\ge\varepsilon>0 for every kk. Therefore ff is uniformly continuous. □\square

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 ff is continuous on [a,b][a,b], then ff is Riemann integrable.

Proof. By the criterion it suffices, for each ε>0\varepsilon>0, to construct a partition with U−L<εU-L<\varepsilon.

Assume a<ba<b (if a=ba=b the integral is zero). Uniform continuity gives δ>0\delta>0 such that ∣x−y∣<δ|x-y|<\delta implies

∣f(x)−f(y)∣<εb−a.|f(x)-f(y)|<\frac{\varepsilon}{b-a}.

Choose a partition PP with every Δxi<δ\Delta x_i<\delta.

On each [xi−1,xi][x_{i-1},x_i], the function is continuous, so by the extreme value theorem MiM_i and mim_i are attained at points yi,yi∗y_i,y_i^*. Those points lie at distance less than δ\delta, hence

Mi−mi=f(yi)−f(yi∗)<εb−a.M_i-m_i=f(y_i)-f(y_i^*)<\frac{\varepsilon}{b-a}.

Therefore

U(f,P)−L(f,P)=∑i=1n(Mi−mi)Δxi<∑i=1nεb−aΔxi=εb−a∑i=1nΔxi=ε.U(f,P)-L(f,P) =\sum_{i=1}^{n}(M_i-m_i)\Delta x_i <\sum_{i=1}^{n}\frac{\varepsilon}{b-a}\Delta x_i =\frac{\varepsilon}{b-a}\sum_{i=1}^{n}\Delta x_i =\varepsilon .

The last step uses ∑Δxi=b−a\sum\Delta x_i=b-a. The criterion gives integrability. □\square

Each ingredient has a job: uniform continuity supplies a uniform δ\delta; 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\sum\Delta x_i=b-a cancels the constant.

Basic properties of the integral

Four properties were stated, with proofs deferred:

  1. Scalar multiples: if ff is integrable and c∈Rc\in\mathbb R, then cfcf is integrable and ∫abcf=c∫abf\int_a^b cf=c\int_a^b f.
  2. Sums: if f,gf,g are integrable, so is f+gf+g, and ∫ab(f+g)=∫abf+∫abg\int_a^b(f+g)=\int_a^b f+\int_a^b g.
  3. Monotonicity: if f,gf,g are integrable and f≤gf\le g, then ∫abf≤∫abg\int_a^b f\le\int_a^b g.
  4. Additivity over intervals: if ff is integrable on [a,b][a,b] and c∈[a,b]c\in[a,b], then ff is integrable on [a,c][a,c] and on [c,b][c,b], and
∫abf=∫acf+∫cbf.\int_a^b f=\int_a^c f+\int_c^b f .

The last is clearest in terms of area: cutting the graph at cc splits the signed area into two parts whose sum is the whole.

What this lecture establishes

  • For every bounded function, ∫‾≤∫‾\underline{\int}\le\overline{\int}; the proof uses a common refinement and the definitions of sup and inf.
  • Dirichlet's function has Mi=1M_i=1 and mi=0m_i=0 on every interval, so U≡1U\equiv1 and L≡0L\equiv0; it is not integrable.
  • ff is integrable iff for every ε>0\varepsilon>0 some partition has U−L<εU-L<\varepsilon.
  • Uniform continuity means one δ\delta works for all points; x2x^2 on R\mathbb R and 1/x1/x on (0,1](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∗)L(f,P)\le U(f,P^*) for any two partitions, and deduce that the lower integral is at most the upper one.

Reference answer: Let Pˉ\bar P be the common refinement obtained from the union of the division points. The refinement lemma gives L(f,P)≤L(f,Pˉ)L(f,P)\le L(f,\bar P) and U(f,Pˉ)≤U(f,P∗)U(f,\bar P)\le U(f,P^*), while for any single partition L(f,Pˉ)≤U(f,Pˉ)L(f,\bar P)\le U(f,\bar P). Chaining them gives L(f,P)≤U(f,P∗)L(f,P)\le U(f,P^*). Fix PP; the right side holds for every P∗P^*, so L(f,P)≤inf⁡P∗U(f,P∗)=∫‾fL(f,P)\le\inf_{P^*}U(f,P^*)=\overline{\int}f. Taking the supremum over all PP gives ∫‾f=sup⁡PL(f,P)≤∫‾f\underline{\int}f=\sup_P L(f,P)\le\overline{\int}f.

2. Prove that Dirichlet's function is not Riemann integrable on [0,1][0,1].

Reference answer: Take any partition PP. Every nondegenerate subinterval contains both rationals and irrationals (both sets are dense), so Mi=1M_i=1 and mi=0m_i=0. Hence U(f,P)=∑1⋅Δxi=1U(f,P)=\sum1\cdot\Delta x_i=1 and L(f,P)=∑0⋅Δxi=0L(f,P)=\sum0\cdot\Delta x_i=0 for every partition. The upper integral is therefore the infimum of the constant 11, namely 11, and the lower integral is the supremum of the constant 00, namely 00. They differ, so the function is not integrable.

3. State the integrability criterion and prove its sufficiency.

Reference answer: A bounded ff on [a,b][a,b] is Riemann integrable iff for every ε>0\varepsilon>0 there is a partition with U(f,P)−L(f,P)<εU(f,P)-L(f,P)<\varepsilon. For sufficiency, suppose such a partition exists for each ε\varepsilon. For any partition, L(f,P)≤∫‾f≤∫‾f≤U(f,P)L(f,P)\le\underline{\int}f\le\overline{\int}f\le U(f,P), hence 0≤∫‾f−∫‾f≤U(f,P)−L(f,P)<ε0\le\overline{\int}f-\underline{\int}f\le U(f,P)-L(f,P)<\varepsilon. Since this holds for every ε>0\varepsilon>0, the two integrals are equal and ff is integrable.

4. Show that 1/x1/x is continuous but not uniformly continuous on (0,1](0,1], and identify the missing property of the domain.

Reference answer: Take xn=1/nx_n=1/n and yn=1/(2n)y_n=1/(2n), both in (0,1](0,1]. Then ∣xn−yn∣=1/(2n)→0|x_n-y_n|=1/(2n)\to0, while ∣f(xn)−f(yn)∣=∣n−2n∣=n→∞|f(x_n)-f(y_n)|=|n-2n|=n\to\infty. So no single δ\delta works: arbitrarily small horizontal distances can produce arbitrarily large vertical differences. The domain (0,1](0,1] is bounded but not closed (the endpoint 00 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][a,b] is uniformly continuous.

Reference answer: Suppose not. Then there is ε>0\varepsilon>0 such that for every nn there are xn,yn∈[a,b]x_n,y_n\in[a,b] with ∣xn−yn∣<1/n|x_n-y_n|<1/n and ∣f(xn)−f(yn)∣≥ε|f(x_n)-f(y_n)|\ge\varepsilon. By Bolzano–Weierstrass, a subsequence xnkx_{n_k} converges to some x∈[a,b]x\in[a,b]. The triangle inequality gives ∣ynk−x∣≤∣ynk−xnk∣+∣xnk−x∣<1/nk+∣xnk−x∣→0|y_{n_k}-x|\le|y_{n_k}-x_{n_k}|+|x_{n_k}-x|<1/n_k+|x_{n_k}-x|\to0, so ynk→xy_{n_k}\to x. Continuity yields f(xnk)→f(x)f(x_{n_k})\to f(x) and f(ynk)→f(x)f(y_{n_k})\to f(x), hence ∣f(xnk)−f(ynk)∣→0|f(x_{n_k})-f(y_{n_k})|\to0, contradicting the lower bound ε\varepsilon.

6. For continuous ff on [a,b][a,b], prove integrability from uniform continuity and the criterion, and say where the extreme value theorem enters.

Reference answer: Given ε>0\varepsilon>0, uniform continuity gives δ>0\delta>0 with ∣x−y∣<δ⇒∣f(x)−f(y)∣<ε/(b−a)|x-y|<\delta\Rightarrow|f(x)-f(y)|<\varepsilon/(b-a). Choose a partition with every Δxi<δ\Delta x_i<\delta. On each subinterval, the extreme value theorem guarantees that MiM_i and mim_i are attained at points less than δ\delta apart, so Mi−mi<ε/(b−a)M_i-m_i<\varepsilon/(b-a). Then U−L=∑(Mi−mi)Δxi<εb−a∑Δxi=εU-L=\sum(M_i-m_i)\Delta x_i<\frac{\varepsilon}{b-a}\sum\Delta x_i=\varepsilon, 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))\varepsilon/(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 ε\varepsilon-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)=∫axfF(x)=\int_a^x f is differentiable with F′=fF'=f when ff 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.

来源