第 22 章

一致极限:连续性的保持、完备性与积分交换

证明连续函数的一致极限连续,把一致收敛改写为 sup 度量下的收敛,证明 C([a,b]) 完备,并用上下和证明积分可与一致极限交换。

Uniform Limits: Preserving Continuity, Completeness, and Swapping Integrals

We prove that a uniform limit of continuous functions is continuous, recast uniform convergence as convergence in the sup metric, show that C([a,b]) is complete, and use upper and lower sums to prove that integration commutes with uniform limits.

首发于 2025.09.02中 / EN
系统课程real-analysisuniform-convergencecontinuityintegrationmetric-spaces
语言
字号
目录
篇内目录

上节课留下的两个收敛

设区间 II 上有一列函数 fnf_n 与一个函数 ff。

  • 逐点收敛:固定每个 xx,数列 fn(x)f_n(x) 收敛到 f(x)f(x)。
  • 一致收敛:对每个 ε>0\varepsilon>0,存在 NN,使得 n≥Nn\ge N 时
∣fn(x)−f(x)∣<ε对一切 x∈I 成立.|f_n(x)-f(x)|<\varepsilon \quad\text{对一切 }x\in I\text{ 成立}.

区别只在最后那句「对一切 xx」:逐点收敛允许 NN 依赖 xx,一致收敛不允许。

课程反复使用的反例是 [0,1][0,1] 上的 fn(x)=xnf_n(x)=x^n。它逐点收敛到

f(x)={0,0≤x<1,1,x=1.f(x)= \begin{cases} 0,&0\le x<1,\\ 1,&x=1. \end{cases}

每个 fnf_n 都连续,极限 ff 却在 11 处跳跃。为什么不一致?由介值定理,对每个 nn 都存在 xnx_n 使 xnn=12x_n^n=\tfrac12,于是

∣fn(xn)−f(xn)∣=12.|f_n(x_n)-f(x_n)|=\tfrac12 .

这个误差不随 nn 变小,所以 sup⁡x∣fn(x)−f(x)∣≥12\sup_x|f_n(x)-f(x)|\ge\tfrac12,不可能趋于 00。

逐点收敛不足以保住连续性;一致收敛可以。

时间轴

时间内容
0:00复习逐点收敛与一致收敛;xnx^n 的例子
6:29定理:连续函数的一致极限连续
9:07用 ε/3\varepsilon/3 拆分证明
16:24例:指数级数在任意有界区间上一致收敛,故连续
19:02把一致收敛看作 sup 度量下的收敛
25:36定理:C([a,b])C([a,b]) 在 sup 度量下完备
28:31先用逐点极限构造候选函数 ff
35:11再把逐点收敛提升为一致收敛
40:30定理:积分与一致极限可交换
46:46用上下和与 ε/3(b−a)\varepsilon/3(b-a) 完成证明
1:13:28应用到幂级数的逐项积分
1:18:36预告下节课:求导与一致极限

定理:一致极限保持连续

定理。 设 fnf_n 在区间 II 上连续,且 fn→ff_n\to f 一致。则 ff 在 II 上连续。

完整证明

任取 x0∈Ix_0\in I,证明 ff 在 x0x_0 连续。给定 ε>0\varepsilon>0。

第一步:用一致收敛固定一个下标。 因为 fn→ff_n\to f 一致,存在 NN,使 n≥Nn\ge N 时对所有 xx 都有

∣fn(x)−f(x)∣<ε3.|f_n(x)-f(x)|<\frac{\varepsilon}{3}.

只需取 n=Nn=N:

∣fN(x)−f(x)∣<ε3对一切 x∈I 成立.|f_N(x)-f(x)|<\frac{\varepsilon}{3} \quad\text{对一切 }x\in I\text{ 成立}.

这一步允许我们把 ff 换成固定的 fNf_N,而且换的代价在所有点上一致地小。

第二步:用 fNf_N 的连续性找 δ\delta。 因为 fNf_N 在 x0x_0 连续,存在 δ>0\delta>0,使

∣x−x0∣<δ⇒∣fN(x)−fN(x0)∣<ε3.|x-x_0|<\delta \Rightarrow |f_N(x)-f_N(x_0)|<\frac{\varepsilon}{3}.

第三步:三角不等式。 对满足 ∣x−x0∣<δ|x-x_0|<\delta 的 xx,插入 fN(x)f_N(x) 与 fN(x0)f_N(x_0):

∣f(x)−f(x0)∣≤∣f(x)−fN(x)∣+∣fN(x)−fN(x0)∣+∣fN(x0)−f(x0)∣<ε3+ε3+ε3=ε.\begin{aligned} |f(x)-f(x_0)| &\le |f(x)-f_N(x)| \\ &\quad + |f_N(x)-f_N(x_0)| \\ &\quad + |f_N(x_0)-f(x_0)| \\ &< \frac{\varepsilon}{3}+\frac{\varepsilon}{3}+\frac{\varepsilon}{3} =\varepsilon . \end{aligned}

所以 ff 在 x0x_0 连续。由于 x0x_0 任意,ff 在 II 上连续。□\square

三段的来源要分清:第一段和第三段来自一致收敛(同一个点、同一个下标 NN,误差对所有 xx 统一),中间一段来自 fNf_N 的连续性(同一个函数、两个邻近的点)。逐点收敛做不到第一段和第三段统一,因为那里的 NN 会随 xx 变大。

立刻可用的推论

设

En(x)=∑k=0nxkk!,E(x)=∑k=0∞xkk!.E_n(x)=\sum_{k=0}^{n}\frac{x^k}{k!}, \qquad E(x)=\sum_{k=0}^{\infty}\frac{x^k}{k!}.

EnE_n 是多项式,连续。由 Weierstrass MM 判别法(上一讲证明),在任意固定区间 [−L,L][-L,L] 上,级数被 ∑Lk/k!<∞\sum L^k/k!<\infty 控制,因此 En→EE_n\to E 在 [−L,L][-L,L] 上一致。由上面的定理,EE 在每个 [−L,L][-L,L] 上连续,从而在 R\mathbb R 上连续。

注意「一致」的范围:不是在整个 R\mathbb R 上一致,而是在每个有界区间上一致。这类收敛通常叫「内闭一致收敛」。

一致收敛就是 sup 度量下的收敛

C([a,b])C([a,b]) 表示闭区间上全体连续函数。它带有天然的距离

d(f,g)=max⁡x∈[a,b]∣f(x)−g(x)∣.d(f,g)=\max_{x\in[a,b]}|f(x)-g(x)| .

这个 max⁡\max 确实取得到:f−gf-g 连续,取绝对值后仍连续,由最值定理在有界闭区间上达到最大值。

命题。 fn→ff_n\to f 一致,当且仅当 d(fn,f)→0d(f_n,f)\to 0。

证明。 两个方向都是重写定义。

若 fn→ff_n\to f 一致:给定 ε>0\varepsilon>0,存在 NN,使 n≥Nn\ge N 时 ∣fn(x)−f(x)∣<ε|f_n(x)-f(x)|<\varepsilon 对一切 xx 成立。对固定 nn 取上确界(此时一致收敛已保证误差对所有 xx 一致地小),得到 d(fn,f)≤εd(f_n,f)\le\varepsilon。故 d(fn,f)→0d(f_n,f)\to0。

反之,若 d(fn,f)→0d(f_n,f)\to0:给定 ε>0\varepsilon>0,取 NN 使 n≥Nn\ge N 时 d(fn,f)<εd(f_n,f)<\varepsilon。由于每个点上的值不超过最大值,

∣fn(x)−f(x)∣≤d(fn,f)<ε对一切 x|f_n(x)-f(x)|\le d(f_n,f)<\varepsilon \quad\text{对一切 }x

同时成立。这正是 fn→ff_n\to f 一致。□\square

这个改写把「函数列的一致收敛」变成了「度量空间中点列的收敛」,于是度量空间的全部工具(Cauchy 列、完备性、压缩映射)都可以直接使用。这不是记号上的方便,而是后面解常微分方程的关键入口。

C([a,b])C([a,b]) 是完备的

定理。 度量空间 (C([a,b]),d)\bigl(C([a,b]),d\bigr) 是 Cauchy 完备的:每个 Cauchy 列都收敛到该空间中的某个函数。

设 (fn)(f_n) 是 Cauchy 列。要证明两件事:先构造候选极限 ff,再证明它在空间里并且收敛。

第一步:逐点构造极限

固定 x∈[a,b]x\in[a,b]。由

∣fn(x)−fm(x)∣≤max⁡z∈[a,b]∣fn(z)−fm(z)∣=d(fn,fm),|f_n(x)-f_m(x)| \le \max_{z\in[a,b]}|f_n(z)-f_m(z)| =d(f_n,f_m),

可知实数列 (fn(x))(f_n(x)) 是 Cauchy 列。实数系完备,所以它收敛。定义

f(x)=lim⁡n→∞fn(x).f(x)=\lim_{n\to\infty}f_n(x).

每个 xx 给出唯一一个实数,因此 ff 是一个函数。此时只知道逐点收敛,还不知道 ff 连续。

第二步:把逐点提升为一致

给定 ε>0\varepsilon>0。因为 (fn)(f_n) 在度量意义下是 Cauchy 列,存在 NN,使 n,m≥Nn,m\ge N 时

d(fn,fm)≤ε2.d(f_n,f_m)\le\frac{\varepsilon}{2}.

于是对每个 xx,

∣fn(x)−fm(x)∣≤ε2.|f_n(x)-f_m(x)|\le\frac{\varepsilon}{2}.

固定 n≥Nn\ge N,让 m→∞m\to\infty。左边趋于 ∣fn(x)−f(x)∣|f_n(x)-f(x)|,右边是常数,于是

∣fn(x)−f(x)∣≤ε2对一切 x 成立.|f_n(x)-f(x)|\le\frac{\varepsilon}{2} \quad\text{对一切 }x\text{ 成立}.

这一步只能得到「不超过 ε/2\varepsilon/2」,因为不等式在取极限时会保留 ≤\le。现在对所有 xx 取上确界:

sup⁡x∣fn(x)−f(x)∣≤ε2<ε.\sup_{x}|f_n(x)-f(x)|\le\frac{\varepsilon}{2}<\varepsilon .

这里必须用 sup⁡\sup 而不是 max⁡\max:此刻还不知道 ff 连续,最值定理还不能用,最大值可能取不到。等会儿证明 ff 连续之后,sup⁡\sup 就等于 max⁡\max。

结论是 fn→ff_n\to f 一致,即 d(fn,f)→0d(f_n,f)\to0。

第三步:极限仍在空间里

fnf_n 都连续,且 fn→ff_n\to f 一致,由本节第一个定理,ff 连续。所以 f∈C([a,b])f\in C([a,b])。结合第二步,fn→ff_n\to f 在度量 dd 下成立。□\square

整个证明的分工值得记住:完备性只在第一步用到(实数的完备性),一致收敛性在第二步建立,闭包性(连续性)在第三步补上。三步各管一件事,缺一不可。

定理:积分与一致极限可交换

设 fnf_n 在 [a,b][a,b] 上可积,且 fn→ff_n\to f 一致。定理断言:

  1. ff 可积;
  2. lim⁡n→∞∫abfn=∫abf\displaystyle\lim_{n\to\infty}\int_a^b f_n=\int_a^b f,特别地,右边的极限存在。

注意这里只假设 fnf_n 可积,没有假设连续。极限 ff 也可能不连续(如 xnx^n 的例子),因此不能靠「连续函数可积」蒙混过去。

证明思路

Riemann 可积的判据是:对每个 ε>0\varepsilon>0,存在分割 PP,使得

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

其中 U,LU,L 分别是上、下和。

思路是:先用一致收敛把 ff 的上下和夹在 fNf_N 的上下和之间,误差是 ±ε/3\pm\varepsilon/3;再对 fNf_N 选一个使上下和接近的分割;两者合成,得到 ff 的上下和之差小于 ε\varepsilon。

上、下和的逐项估计

设分割 PP 的分点为 x0<⋯<xmx_0<\cdots<x_m,小区间 Ii=[xi−1,xi]I_i=[x_{i-1},x_i],长度 Δxi\Delta x_i。记

Mi(f)=sup⁡Iif,mi(f)=inf⁡Iif.M_i(f)=\sup_{I_i}f, \qquad m_i(f)=\inf_{I_i}f .

因为 fn→ff_n\to f 一致,取 nn 足够大,使

∣fn(x)−f(x)∣<ε3(b−a)对一切 x.|f_n(x)-f(x)|<\frac{\varepsilon}{3(b-a)} \quad\text{对一切 }x .

固定这样一个 nn。对任意 xx,

f(x)≤fn(x)+∣f(x)−fn(x)∣<fn(x)+ε3(b−a).f(x)\le f_n(x)+|f(x)-f_n(x)|<f_n(x)+\frac{\varepsilon}{3(b-a)}.

在小区间 IiI_i 上取上确界:

Mi(f)≤Mi(fn)+ε3(b−a).M_i(f)\le M_i(f_n)+\frac{\varepsilon}{3(b-a)}.

同理,从 f(x)≥fn(x)−∣f(x)−fn(x)∣f(x)\ge f_n(x)-|f(x)-f_n(x)| 取下确界得

mi(f)≥mi(fn)−ε3(b−a).m_i(f)\ge m_i(f_n)-\frac{\varepsilon}{3(b-a)}.

把两条不等式分别乘 Δxi\Delta x_i 并对 ii 求和。注意 ∑iΔxi=b−a\sum_i\Delta x_i=b-a,常数项正好消掉分母:

L(fn,P)−ε3≤L(f,P)≤U(f,P)≤U(fn,P)+ε3.L(f_n,P)-\frac{\varepsilon}{3} \le L(f,P) \le U(f,P) \le U(f_n,P)+\frac{\varepsilon}{3}.

这一步对任意分割 PP 都成立,只用到一致收敛。

选分割,得到可积性

上面那个 nn 固定后,fnf_n 是可积的。于是存在分割 PP,使

U(fn,P)−L(fn,P)<ε3.U(f_n,P)-L(f_n,P)<\frac{\varepsilon}{3}.

对这个 PP,

U(f,P)−L(f,P)≤(U(fn,P)+ε3)−(L(fn,P)−ε3)=(U(fn,P)−L(fn,P))+2ε3<ε3+2ε3=ε.\begin{aligned} U(f,P)-L(f,P) &\le \Bigl(U(f_n,P)+\frac{\varepsilon}{3}\Bigr) -\Bigl(L(f_n,P)-\frac{\varepsilon}{3}\Bigr)\\ &=\bigl(U(f_n,P)-L(f_n,P)\bigr)+\frac{2\varepsilon}{3}\\ &<\frac{\varepsilon}{3}+\frac{2\varepsilon}{3}=\varepsilon . \end{aligned}

由可积判据,ff 可积。这就完成了第一件事。

积分的收敛

对任何分割 PP,积分被上下和夹住:

L(f,P)≤∫abf≤U(f,P).L(f,P)\le\int_a^b f\le U(f,P).

取上面那个使 U(fN,P)−L(fN,P)<ε/3U(f_N,P)-L(f_N,P)<\varepsilon/3 的 PP(把 nn 取成 NN)。由上、下和的夹逼,

L(fN,P)−ε3≤∫abf≤U(fN,P)+ε3,L(f_N,P)-\frac{\varepsilon}{3}\le\int_a^b f\le U(f_N,P)+\frac{\varepsilon}{3},

同时

L(fN,P)≤∫abfN≤U(fN,P).L(f_N,P)\le\int_a^b f_N\le U(f_N,P).

所以 ∫abf\int_a^b f 与 ∫abfN\int_a^b f_N 都落在长度为 ε\varepsilon 的区间

[L(fN,P)−ε3,  U(fN,P)+ε3]\Bigl[L(f_N,P)-\frac{\varepsilon}{3},\;U(f_N,P)+\frac{\varepsilon}{3}\Bigr]

内(其长度为 (U(fN,P)−L(fN,P))+2ε3<ε\bigl(U(f_N,P)-L(f_N,P)\bigr)+\tfrac{2\varepsilon}{3}<\varepsilon)。于是

∣∫abf−∫abfN∣<ε.\left|\int_a^b f-\int_a^b f_N\right|<\varepsilon .

对任意 ε>0\varepsilon>0 找到这样的 NN,就证明了 ∫fn→∫f\int f_n\to\int f。□\square

课程末尾回应了一个提问:证明中有些地方写 ≤\le、有些写 <<,这无关紧要,因为 ε\varepsilon 是任取的,把常数取成 ε/4\varepsilon/4 之类的更小量即可得到严格不等号。

用幂级数算积分

回到 En(x)=∑k=0nxk/k!E_n(x)=\sum_{k=0}^n x^k/k!,它在 [a,b][a,b] 上一致收敛到 EE。EnE_n 是多项式,可以逐项积分:

∫abEn(x) dx=∑k=0n∫abxkk! dx.\int_a^b E_n(x)\,dx =\sum_{k=0}^{n}\int_a^b\frac{x^k}{k!}\,dx .

由积分交换定理,左边趋于 ∫abE\int_a^b E,于是

∫abE(x) dx=∑k=0∞∫abxkk! dx.\int_a^b E(x)\,dx =\sum_{k=0}^{\infty}\int_a^b\frac{x^k}{k!}\,dx .

每一项可以直接算。找 xk+1/(k+1)!x^{k+1}/(k+1)! 求导:

ddxxk+1(k+1)!=(k+1)xk(k+1)!=xkk!.\frac{d}{dx}\frac{x^{k+1}}{(k+1)!} =\frac{(k+1)x^{k}}{(k+1)!} =\frac{x^k}{k!}.

所以

∫abxkk! dx=bk+1−ak+1(k+1)!.\int_a^b \frac{x^k}{k!}\,dx =\frac{b^{k+1}-a^{k+1}}{(k+1)!}.

结论:一致收敛把「对无穷级数积分」合法地变成「对每一项积分再求和」。有限和当然可以随便交换,无限和不行——这里的一致性正是许可证。

本节结论

  • 连续函数的一致极限连续;逐点极限不一定连续(xnx^n 是反例)。
  • 连续性的证明固定一个 fNf_N,用 ε/3\varepsilon/3 三段估计。
  • 一致收敛等价于 sup 度量下的收敛;sup⁡\sup 与 max⁡\max 的区别在于极限函数是否已知连续。
  • C([a,b])C([a,b]) 在 sup 度量下 Cauchy 完备。
  • 可积函数的一致极限可积,且积分与极限可交换。
  • 幂级数在其收敛区间内可以逐项积分;逐项求导留到下一讲。

理解检验

1. 用 fn(x)=xnf_n(x)=x^n 说明:为什么逐点收敛不能保证极限连续?请写出使一致收敛失败的那组点。

参考答案:逐点极限是 f(0≤x<1)=0f(0\le x<1)=0、f(1)=1f(1)=1,在 11 处不连续,而每个 fnf_n 连续,所以逐点收敛不保连续性。取 xn=2−1/n∈(0,1)x_n=2^{-1/n}\in(0,1),则 fn(xn)=1/2f_n(x_n)=1/2,而 f(xn)=0f(x_n)=0,故 ∣fn(xn)−f(xn)∣=1/2|f_n(x_n)-f(x_n)|=1/2。于是 sup⁡x∣fn(x)−f(x)∣≥1/2\sup_x|f_n(x)-f(x)|\ge1/2 对所有 nn 成立,不趋于 00,一致收敛失败。

2. 证明「fn→ff_n\to f 一致」等价于「d(fn,f)→0d(f_n,f)\to0」,并指出证明中哪一步用了「对所有 xx 同时成立」。

参考答案:两个方向都只是把定义换个写法。若一致收敛,给定 ε\varepsilon,存在 NN 使 n≥Nn\ge N 时 ∣fn(x)−f(x)∣<ε|f_n(x)-f(x)|<\varepsilon 对所有 xx 同时成立;这个同一个 ε\varepsilon 上界对所有 xx 有效,所以取上确界得 d(fn,f)≤εd(f_n,f)\le\varepsilon。反过来,若 d(fn,f)<εd(f_n,f)<\varepsilon,因为每个点的值不超过最大值,∣fn(x)−f(x)∣≤d(fn,f)<ε|f_n(x)-f(x)|\le d(f_n,f)<\varepsilon 对所有 xx 同时成立。关键就是「同一个 ε\varepsilon 界对所有 xx 有效」;逐点收敛时 ε\varepsilon 界依赖于 xx,无法取上确界。

3. 在完备性证明中,已经得到 fn(x)→f(x)f_n(x)\to f(x)(逐点),为什么还必须再证一致收敛?

参考答案:逐点收敛只能说明每个点上的值收敛,还不足以保证 ff 连续,也不足以说明 (fn)(f_n) 在度量 dd 下收敛。完备性要求的是:Cauchy 列在该度量下收敛到空间内的点,而 dd 度量的是全体点上误差的上确界。只有把逐点收敛提升为 sup⁡x∣fn−f∣→0\sup_x|f_n-f|\to0,才能得到 d(fn,f)→0d(f_n,f)\to0;也只有再用一次「一致极限保连续」,才能确认 f∈C([a,b])f\in C([a,b]),即极限没有跑出空间。

4. 积分定理的证明里,ε/(3(b−a))\varepsilon/(3(b-a)) 中的 33 和 (b−a)(b-a) 各起什么作用?

参考答案:(b−a)(b-a) 用来抵消求和后出现的区间总长:常数误差在长度为 b−ab-a 的区间上积分,总量是 ε3(b−a)(b−a)=ε3\frac{\varepsilon}{3(b-a)}(b-a)=\frac{\varepsilon}{3},于是上下和各自偏移 ε/3\varepsilon/3。33 用来分配总误差:ff 与 fnf_n 的上下和之间共偏移 2ε/32\varepsilon/3,再留 ε/3\varepsilon/3 给 fnf_n 自身的上下和之差(可积性),合计小于 ε\varepsilon。换成 ε/4\varepsilon/4 或别的常数同样可行,只要三部分之和小于 ε\varepsilon。

5. 定理只假设 fnf_n 可积,没有假设连续。为什么不能直接说「ff 是连续函数的极限所以可积」?

参考答案:因为一致极限虽然保持连续,但这里的 fnf_n 未必连续,而且即便 fnf_n 连续,逐点极限也可能不连续(xnx^n),所以「极限连续」这条路线本身就不总可用。定理的结论是 ff 可积,这必须用 Riemann 判据直接证明:对给定 ε\varepsilon 构造分割 PP 使 U(f,P)−L(f,P)<εU(f,P)-L(f,P)<\varepsilon。证明中把 ff 的上下和夹在 fNf_N 的上下和之间,正是绕开连续性、只依赖可积性与一致收敛的做法。

与前后课的关系

上一讲建立了 Weierstrass MM 判别法与逐点/一致收敛的区别;本讲把它们组织成一套工具:连续性的保持、度量观点、完备性、积分交换。下一讲处理剩下的那块——求导能否与极限交换。答案需要更强的假设(导数一致收敛),得到之后就能证明幂级数在收敛区间内可以逐项求导任意多次,并导出指数函数满足 E′=EE'=E。

再往后,C([a,b])C([a,b]) 的完备性与 sup 度量会被直接用来证明 Picard–Lindelöf 定理:把微分方程的解写成积分算子的不动点。本讲看似抽象的三步证明,正是那条主线的地基。

Two notions of convergence, recalled

On an interval II we have a sequence of functions fnf_n and a function ff.

  • Pointwise convergence: for each fixed xx, the numerical sequence fn(x)f_n(x) converges to f(x)f(x).
  • Uniform convergence: for every ε>0\varepsilon>0 there is NN such that for n≥Nn\ge N,
∣fn(x)−f(x)∣<εfor all x∈I.|f_n(x)-f(x)|<\varepsilon \quad\text{for all }x\in I .

The only difference is that last clause: pointwise convergence lets NN depend on xx, uniform convergence does not.

The example used repeatedly in the course is fn(x)=xnf_n(x)=x^n on [0,1][0,1]. It converges pointwise to

f(x)={0,0≤x<1,1,x=1.f(x)= \begin{cases} 0,&0\le x<1,\\ 1,&x=1. \end{cases}

Every fnf_n is continuous, yet ff jumps at 11. Why is the convergence not uniform? By the intermediate value theorem, for each nn there is xnx_n with xnn=12x_n^n=\tfrac12, so

∣fn(xn)−f(xn)∣=12.|f_n(x_n)-f(x_n)|=\tfrac12 .

This error does not shrink with nn; hence sup⁡x∣fn(x)−f(x)∣≥12\sup_x|f_n(x)-f(x)|\ge\tfrac12 and cannot tend to 00.

Pointwise convergence does not preserve continuity; uniform convergence does.

Timeline

TimeTopic
0:00Review of pointwise and uniform convergence; the xnx^n example
6:29Theorem: a uniform limit of continuous functions is continuous
9:07Proof by splitting into three ε/3\varepsilon/3 pieces
16:24Example: the exponential series converges uniformly on bounded intervals, hence is continuous
19:02Uniform convergence as convergence in the sup metric
25:36Theorem: C([a,b])C([a,b]) is complete in the sup metric
28:31First construct a candidate limit ff pointwise
35:11Then upgrade pointwise convergence to uniform convergence
40:30Theorem: integration commutes with uniform limits
46:46Proof with upper and lower sums and ε/3(b−a)\varepsilon/3(b-a)
1:13:28Application to term-by-term integration of power series
1:18:36Preview: differentiation and uniform limits

Theorem: uniform limits preserve continuity

Theorem. Let fnf_n be continuous on an interval II and suppose fn→ff_n\to f uniformly. Then ff is continuous on II.

The full proof

Fix x0∈Ix_0\in I; we show ff is continuous at x0x_0. Let ε>0\varepsilon>0.

Step 1: freeze an index using uniform convergence. Since fn→ff_n\to f uniformly, there is NN such that for every n≥Nn\ge N and every xx,

∣fn(x)−f(x)∣<ε3.|f_n(x)-f(x)|<\frac{\varepsilon}{3}.

Take n=Nn=N:

∣fN(x)−f(x)∣<ε3for all x∈I.|f_N(x)-f(x)|<\frac{\varepsilon}{3} \quad\text{for all }x\in I .

This lets us replace ff by the single fixed function fNf_N, at a cost that is uniformly small over all points.

Step 2: use continuity of fNf_N to find δ\delta. Since fNf_N is continuous at x0x_0, there is δ>0\delta>0 such that

∣x−x0∣<δ⇒∣fN(x)−fN(x0)∣<ε3.|x-x_0|<\delta \Rightarrow |f_N(x)-f_N(x_0)|<\frac{\varepsilon}{3}.

Step 3: triangle inequality. For ∣x−x0∣<δ|x-x_0|<\delta, insert fN(x)f_N(x) and fN(x0)f_N(x_0):

∣f(x)−f(x0)∣≤∣f(x)−fN(x)∣+∣fN(x)−fN(x0)∣+∣fN(x0)−f(x0)∣<ε3+ε3+ε3=ε.\begin{aligned} |f(x)-f(x_0)| &\le |f(x)-f_N(x)| \\ &\quad + |f_N(x)-f_N(x_0)| \\ &\quad + |f_N(x_0)-f(x_0)| \\ &< \frac{\varepsilon}{3}+\frac{\varepsilon}{3}+\frac{\varepsilon}{3} =\varepsilon . \end{aligned}

So ff is continuous at x0x_0. Since x0x_0 was arbitrary, ff is continuous on II. □\square

Note where each piece comes from. The first and third terms come from uniform convergence: same point, same index NN, error controlled for all xx at once. The middle term comes from continuity of fNf_N: same function, two nearby points. Pointwise convergence cannot supply the first and third terms uniformly, because there the index NN would grow with xx.

An immediate corollary

Let

En(x)=∑k=0nxkk!,E(x)=∑k=0∞xkk!.E_n(x)=\sum_{k=0}^{n}\frac{x^k}{k!}, \qquad E(x)=\sum_{k=0}^{\infty}\frac{x^k}{k!}.

Each EnE_n is a polynomial, hence continuous. By the Weierstrass MM-test (proved in the previous lecture), on any fixed interval [−L,L][-L,L] the series is dominated by ∑Lk/k!<∞\sum L^k/k!<\infty, so En→EE_n\to E uniformly on [−L,L][-L,L]. The theorem then gives continuity of EE on every [−L,L][-L,L], hence on all of R\mathbb R.

Watch the scope: the convergence is not uniform on R\mathbb R, only on each bounded interval. This is usually called locally uniform convergence.

Uniform convergence is convergence in the sup metric

Let C([a,b])C([a,b]) be the set of continuous functions on a closed interval, with

d(f,g)=max⁡x∈[a,b]∣f(x)−g(x)∣.d(f,g)=\max_{x\in[a,b]}|f(x)-g(x)| .

The maximum exists: f−gf-g is continuous, so is ∣f−g∣|f-g|, and the extreme value theorem gives a maximum on the compact interval.

Proposition. fn→ff_n\to f uniformly if and only if d(fn,f)→0d(f_n,f)\to0.

Proof. Both directions just rewrite the definitions.

If fn→ff_n\to f uniformly: given ε>0\varepsilon>0, there is NN such that for n≥Nn\ge N, ∣fn(x)−f(x)∣<ε|f_n(x)-f(x)|<\varepsilon for all xx. This single bound is valid for every xx, so taking the supremum gives d(fn,f)≤εd(f_n,f)\le\varepsilon, hence d(fn,f)→0d(f_n,f)\to0.

Conversely, if d(fn,f)→0d(f_n,f)\to0: given ε>0\varepsilon>0, choose NN with d(fn,f)<εd(f_n,f)<\varepsilon for n≥Nn\ge N. Since a value at one point never exceeds the maximum,

∣fn(x)−f(x)∣≤d(fn,f)<εfor all x,|f_n(x)-f(x)|\le d(f_n,f)<\varepsilon \quad\text{for all }x,

which is exactly uniform convergence. □\square

This rewriting turns a statement about sequences of functions into a statement about sequences of points in a metric space. All the metric machinery — Cauchy sequences, completeness, contractions — becomes available. That is not a notational convenience; it is the doorway used later to solve differential equations.

C([a,b])C([a,b]) is complete

Theorem. The metric space (C([a,b]),d)\bigl(C([a,b]),d\bigr) is Cauchy complete: every Cauchy sequence converges to a function in the space.

Let (fn)(f_n) be Cauchy. Two things must be done: build a candidate limit ff, then show it lies in the space and that convergence holds.

Step 1: build the limit pointwise

Fix x∈[a,b]x\in[a,b]. Since

∣fn(x)−fm(x)∣≤max⁡z∈[a,b]∣fn(z)−fm(z)∣=d(fn,fm),|f_n(x)-f_m(x)| \le \max_{z\in[a,b]}|f_n(z)-f_m(z)| =d(f_n,f_m),

the sequence of real numbers (fn(x))(f_n(x)) is Cauchy. The reals are complete, so it converges. Define

f(x)=lim⁡n→∞fn(x).f(x)=\lim_{n\to\infty}f_n(x).

Each xx gives exactly one real number, so ff is a function. At this stage only pointwise convergence is known; continuity of ff is not yet established.

Step 2: upgrade pointwise to uniform

Let ε>0\varepsilon>0. Since (fn)(f_n) is Cauchy in the metric, there is NN such that for n,m≥Nn,m\ge N,

d(fn,fm)≤ε2.d(f_n,f_m)\le\frac{\varepsilon}{2}.

Hence for every xx,

∣fn(x)−fm(x)∣≤ε2.|f_n(x)-f_m(x)|\le\frac{\varepsilon}{2}.

Fix n≥Nn\ge N and let m→∞m\to\infty. The left side tends to ∣fn(x)−f(x)∣|f_n(x)-f(x)| and the right side is constant, so

∣fn(x)−f(x)∣≤ε2for all x.|f_n(x)-f(x)|\le\frac{\varepsilon}{2} \quad\text{for all }x .

Only "at most ε/2\varepsilon/2" survives, because limits preserve non-strict inequalities. Taking the supremum over xx,

sup⁡x∣fn(x)−f(x)∣≤ε2<ε.\sup_{x}|f_n(x)-f(x)|\le\frac{\varepsilon}{2}<\varepsilon .

Here one must use sup⁡\sup, not max⁡\max: continuity of ff is not yet known, so the extreme value theorem does not apply and the maximum might not be attained. Once continuity is proved, sup⁡=max⁡\sup=\max.

Thus fn→ff_n\to f uniformly, i.e. d(fn,f)→0d(f_n,f)\to0.

Step 3: the limit stays in the space

Each fnf_n is continuous and fn→ff_n\to f uniformly, so by the first theorem of this lecture, ff is continuous. Hence f∈C([a,b])f\in C([a,b]), and Step 2 gives fn→ff_n\to f in the metric dd. □\square

The division of labour is worth remembering: completeness is used only in Step 1 (completeness of the reals), uniform convergence is established in Step 2, and closure (continuity) is supplied in Step 3. Each step handles one thing.

Theorem: integration commutes with uniform limits

Let fnf_n be integrable on [a,b][a,b] and fn→ff_n\to f uniformly. The theorem asserts:

  1. ff is integrable;
  2. lim⁡n→∞∫abfn=∫abf\displaystyle\lim_{n\to\infty}\int_a^b f_n=\int_a^b f; in particular the limit on the left exists.

Only integrability of fnf_n is assumed, not continuity. The limit ff may be discontinuous (as with xnx^n), so the conclusion cannot be smuggled in through "continuous implies integrable".

Idea of the proof

The Riemann criterion says: for every ε>0\varepsilon>0 there is a partition PP with

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

where U,LU,L are the upper and lower sums. The plan is to squeeze the upper and lower sums of ff between those of fNf_N, with an error of ±ε/3\pm\varepsilon/3, and then choose for fNf_N a partition whose upper and lower sums are close.

Estimating the upper and lower sums

Let PP have division points x0<⋯<xmx_0<\cdots<x_m, with subintervals Ii=[xi−1,xi]I_i=[x_{i-1},x_i] of length Δxi\Delta x_i. Write

Mi(f)=sup⁡Iif,mi(f)=inf⁡Iif.M_i(f)=\sup_{I_i}f, \qquad m_i(f)=\inf_{I_i}f .

Because fn→ff_n\to f uniformly, choose nn large enough that

∣fn(x)−f(x)∣<ε3(b−a)for all x.|f_n(x)-f(x)|<\frac{\varepsilon}{3(b-a)} \quad\text{for all }x .

Fix this nn. For every xx,

f(x)≤fn(x)+∣f(x)−fn(x)∣<fn(x)+ε3(b−a).f(x)\le f_n(x)+|f(x)-f_n(x)|<f_n(x)+\frac{\varepsilon}{3(b-a)}.

Taking the supremum over IiI_i,

Mi(f)≤Mi(fn)+ε3(b−a).M_i(f)\le M_i(f_n)+\frac{\varepsilon}{3(b-a)}.

Likewise, from f(x)≥fn(x)−∣f(x)−fn(x)∣f(x)\ge f_n(x)-|f(x)-f_n(x)|, taking the infimum gives

mi(f)≥mi(fn)−ε3(b−a).m_i(f)\ge m_i(f_n)-\frac{\varepsilon}{3(b-a)}.

Multiply by Δxi\Delta x_i and sum over ii. Since ∑iΔxi=b−a\sum_i\Delta x_i=b-a, the constant terms cancel the denominator:

L(fn,P)−ε3≤L(f,P)≤U(f,P)≤U(fn,P)+ε3.L(f_n,P)-\frac{\varepsilon}{3} \le L(f,P) \le U(f,P) \le U(f_n,P)+\frac{\varepsilon}{3}.

This holds for every partition PP and uses only uniform convergence.

Choose a partition; get integrability

With that nn fixed, fnf_n is integrable, so there is a partition PP with

U(fn,P)−L(fn,P)<ε3.U(f_n,P)-L(f_n,P)<\frac{\varepsilon}{3}.

For this PP,

U(f,P)−L(f,P)≤(U(fn,P)+ε3)−(L(fn,P)−ε3)=(U(fn,P)−L(fn,P))+2ε3<ε3+2ε3=ε.\begin{aligned} U(f,P)-L(f,P) &\le \Bigl(U(f_n,P)+\frac{\varepsilon}{3}\Bigr) -\Bigl(L(f_n,P)-\frac{\varepsilon}{3}\Bigr)\\ &=\bigl(U(f_n,P)-L(f_n,P)\bigr)+\frac{2\varepsilon}{3}\\ &<\frac{\varepsilon}{3}+\frac{2\varepsilon}{3}=\varepsilon . \end{aligned}

By the integrability criterion, ff is integrable.

Convergence of the integrals

For any partition PP, the integral is trapped between the sums:

L(f,P)≤∫abf≤U(f,P).L(f,P)\le\int_a^b f\le U(f,P).

Take the partition PP for which U(fN,P)−L(fN,P)<ε/3U(f_N,P)-L(f_N,P)<\varepsilon/3. The squeezing estimates give

L(fN,P)−ε3≤∫abf≤U(fN,P)+ε3,L(f_N,P)-\frac{\varepsilon}{3}\le\int_a^b f\le U(f_N,P)+\frac{\varepsilon}{3},

while also

L(fN,P)≤∫abfN≤U(fN,P).L(f_N,P)\le\int_a^b f_N\le U(f_N,P).

So both ∫f\int f and ∫fN\int f_N lie in

[L(fN,P)−ε3,  U(fN,P)+ε3],\Bigl[L(f_N,P)-\frac{\varepsilon}{3},\;U(f_N,P)+\frac{\varepsilon}{3}\Bigr],

an interval of length (U(fN,P)−L(fN,P))+2ε3<ε\bigl(U(f_N,P)-L(f_N,P)\bigr)+\tfrac{2\varepsilon}{3}<\varepsilon. Therefore

∣∫abf−∫abfN∣<ε.\left|\int_a^b f-\int_a^b f_N\right|<\varepsilon .

Since ε>0\varepsilon>0 was arbitrary, ∫fn→∫f\int f_n\to\int f. □\square

At the end of the lecture a student asked about strict versus non-strict inequalities. The lecturer's answer: it does not matter, because ε\varepsilon is arbitrary; choosing constants like ε/4\varepsilon/4 produces strict inequalities whenever desired.

Integrating a power series term by term

Return to En(x)=∑k=0nxk/k!E_n(x)=\sum_{k=0}^n x^k/k!, which converges uniformly to EE on [a,b][a,b]. Each EnE_n is a polynomial, so

∫abEn(x) dx=∑k=0n∫abxkk! dx.\int_a^b E_n(x)\,dx =\sum_{k=0}^{n}\int_a^b\frac{x^k}{k!}\,dx .

By the interchange theorem the left side tends to ∫abE\int_a^b E, hence

∫abE(x) dx=∑k=0∞∫abxkk! dx.\int_a^b E(x)\,dx =\sum_{k=0}^{\infty}\int_a^b\frac{x^k}{k!}\,dx .

Each term is computed by finding an antiderivative. Since

ddxxk+1(k+1)!=(k+1)xk(k+1)!=xkk!,\frac{d}{dx}\frac{x^{k+1}}{(k+1)!} =\frac{(k+1)x^{k}}{(k+1)!} =\frac{x^k}{k!},

we get

∫abxkk! dx=bk+1−ak+1(k+1)!.\int_a^b \frac{x^k}{k!}\,dx =\frac{b^{k+1}-a^{k+1}}{(k+1)!}.

So uniform convergence licenses swapping an infinite sum with an integral. Finite sums may be swapped freely; infinite sums may not — uniform convergence is the licence.

What this lecture establishes

  • Uniform limits of continuous functions are continuous; pointwise limits need not be (xnx^n is the counterexample).
  • The proof freezes one fNf_N and uses a three-part ε/3\varepsilon/3 estimate.
  • Uniform convergence is convergence in the sup metric; the sup⁡\sup versus max⁡\max distinction tracks whether the limit is known to be continuous.
  • C([a,b])C([a,b]) is Cauchy complete in the sup metric.
  • Uniform limits of integrable functions are integrable, and integration commutes with the limit.
  • Power series may be integrated term by term inside the radius of convergence; term-by-term differentiation is postponed to the next lecture.

Comprehension check

1. Use fn(x)=xnf_n(x)=x^n to explain why pointwise convergence does not preserve continuity. Write down the points that make uniform convergence fail.

Reference answer: The pointwise limit is f(0≤x<1)=0f(0\le x<1)=0, f(1)=1f(1)=1, which is discontinuous at 11, although every fnf_n is continuous. Take xn=2−1/n∈(0,1)x_n=2^{-1/n}\in(0,1); then fn(xn)=1/2f_n(x_n)=1/2 while f(xn)=0f(x_n)=0, so ∣fn(xn)−f(xn)∣=1/2|f_n(x_n)-f(x_n)|=1/2. Hence sup⁡x∣fn(x)−f(x)∣≥1/2\sup_x|f_n(x)-f(x)|\ge1/2 for every nn, which does not tend to 00; uniform convergence fails.

2. Prove that fn→ff_n\to f uniformly if and only if d(fn,f)→0d(f_n,f)\to0, and identify where the proof uses "for all xx simultaneously".

Reference answer: Both directions merely rewrite the definition. If convergence is uniform, then for a given ε\varepsilon there is NN such that for n≥Nn\ge N, ∣fn(x)−f(x)∣<ε|f_n(x)-f(x)|<\varepsilon holds for all xx at once; because one bound works for every xx, taking the supremum gives d(fn,f)≤εd(f_n,f)\le\varepsilon. Conversely, if d(fn,f)<εd(f_n,f)<\varepsilon, then since a pointwise value never exceeds the maximum, ∣fn(x)−f(x)∣≤d(fn,f)<ε|f_n(x)-f(x)|\le d(f_n,f)<\varepsilon for all xx simultaneously. The key is exactly that one ε\varepsilon-bound holds for all xx; under pointwise convergence the bound depends on xx, and no supremum can be taken.

3. In the completeness proof we already know fn(x)→f(x)f_n(x)\to f(x) pointwise. Why must we still prove uniform convergence?

Reference answer: Pointwise convergence only controls each point separately. It does not ensure that ff is continuous, nor that (fn)(f_n) converges in the metric dd. Completeness requires convergence in that metric to a point of the space, and dd measures the supremum of the error over all points. Only upgrading to sup⁡x∣fn−f∣→0\sup_x|f_n-f|\to0 gives d(fn,f)→0d(f_n,f)\to0; and only applying "uniform limits preserve continuity" once more confirms f∈C([a,b])f\in C([a,b]), i.e. that the limit has not left the space.

4. In the integration theorem, what roles do the 33 and the (b−a)(b-a) in ε/(3(b−a))\varepsilon/(3(b-a)) play?

Reference answer: (b−a)(b-a) cancels the total length produced by summing: a constant error of ε/(3(b−a))\varepsilon/(3(b-a)) integrated over an interval of length b−ab-a totals ε/3\varepsilon/3, so each of the upper and lower sums shifts by ε/3\varepsilon/3. The 33 splits the total error budget: the two shifts between ff and fnf_n cost 2ε/32\varepsilon/3, leaving ε/3\varepsilon/3 for the gap U(fn,P)−L(fn,P)U(f_n,P)-L(f_n,P) supplied by integrability, for a total below ε\varepsilon. Any constants with the same total work, e.g. quarters.

5. The theorem assumes only that fnf_n is integrable, not continuous. Why can we not simply say "the limit of continuous functions is integrable"?

Reference answer: Because a uniform limit of continuous functions is continuous, but here the fnf_n need not be continuous; and even if they were, the pointwise limit can be discontinuous (xnx^n), so the route through continuity is not always available. The conclusion that ff is integrable must be proved directly from the Riemann criterion: construct, for a given ε\varepsilon, a partition PP with U(f,P)−L(f,P)<εU(f,P)-L(f,P)<\varepsilon. The proof squeezes the upper and lower sums of ff between those of fNf_N, which is exactly how it avoids continuity and uses only integrability plus uniform convergence.

Relation to neighbouring lectures

The previous lecture established the Weierstrass MM-test and the pointwise/uniform distinction; this lecture turns them into a toolkit: preservation of continuity, the metric viewpoint, completeness, and interchange with integrals. The next lecture handles the remaining piece — whether differentiation commutes with limits — which needs a stronger hypothesis (uniform convergence of the derivatives). With it, power series can be differentiated term by term arbitrarily often, and the exponential satisfies E′=EE'=E.

Further on, the completeness of C([a,b])C([a,b]) in the sup metric is used directly to prove the Picard–Lindelöf theorem, by writing the solution of a differential equation as a fixed point of an integral operator. The abstract three-step proof in this lecture is the foundation of that line.

来源