第 23 章
逐项求导、逐项积分与常微分方程
在导数一致收敛的假设下证明求导与极限可交换,推出幂级数在收敛半径内可逐项求导任意多次,并引入常微分方程与 Picard–Lindelöf 定理。
Term-by-Term Calculus and Ordinary Differential Equations
Under uniform convergence of the derivatives we prove that differentiation commutes with limits, deduce that power series may be differentiated term by term any number of times, and introduce ODEs and the Picard–Lindelöf theorem.
篇内目录
- One thing left: can derivatives pass through a limit?
- Timeline
- Theorem: differentiation commutes when derivatives converge uniformly
- Step 1: build the limit function
- Step 2: uniform convergence
- Step 3: derivative convergence is free
- Example: the exponential satisfies
- General power series: differentiation preserves the radius
- Iterating to the -th derivative
- Theorem: power series are smooth inside the radius
- Term-by-term integration
- What an ordinary differential equation is
- The shape studied in this course
- The Picard–Lindelöf theorem
- The tool: contraction mappings
- What this lecture establishes
- Comprehension check
- Relation to neighbouring lectures
还差一件事:求导能否与极限交换
上一讲的结论是:若 可积且 一致,则 可积,且
积分在一列函数一致收敛时表现良好。求导则完全不同:一致收敛本身不足以推出 。原因很直接——导数只看到函数在每一点的局部变化,而一致收敛控制的是函数值之间的整体距离。一个函数列可以在每一点都被压得很近,但斜率剧烈振荡。
课程没有给出反例,而是直接给出一个更强的充分条件:不仅函数收敛,导数也要一致收敛。在这个条件下,求导确实可以与极限交换。
时间轴
| 时间 | 内容 |
|---|---|
| 0:00 | 复习一致收敛与积分交换 |
| 3:06 | 求导交换定理的条件与结论 |
| 6:40 | 用积分重构 : |
| 11:00 | 估计 $ |
| 19:07 | 例:,推出 |
| 31:48 | 一般幂级数:收敛半径与逐项求导 |
| 37:22 | 导数级数的收敛半径不变 |
| 42:40 | 逐项求导 次的公式 |
| 49:28 | 定理:幂级数可逐项求导、逐项积分 |
| 1:03:50 | 什么是常微分方程 |
| 1:13:35 | Picard–Lindelöf 定理的陈述 |
| 1:16:35 | 压缩映射定理的预告 |
定理:导数一致收敛时的求导交换
定理。 设 在区间 上可导, 连续。假设:
- 存在 ,使数列 收敛到某个数 ;
- 在 上一致收敛到某个函数 。
则存在函数 ,满足:
- 可导, 连续;
- 在每个有界子区间 上一致;
- 在同一子区间上一致。
第一步:构造极限函数
由「连续函数的一致极限连续」, 连续。
定义
这个定义有两处值得说明。第一, 连续,所以积分存在。第二,为什么从 开始积分?因为要保证 ,而 正是 的极限;这样 才可能是 的极限。
由微积分基本定理, 可导,且
连续,所以 连续。这就完成了结论的前半部分。
第二步:一致收敛
固定有界子区间 ,设 。由微积分基本定理,对每个 有
两式相减:
取绝对值并用三角不等式:
把积分放缩成「长度 × 最大误差」。若 ,
若 ,则
两种情况合起来,对一切 :
右端与 无关。当 时,第一项趋于 (条件 1),第二项趋于 (条件 2,导数一致收敛)。所以对任意 ,存在 ,使 时右端小于 ,且对所有 同时成立。这就是 在 上一致。
第三步:导数收敛是免费的
结论的第二条不用证:条件 2 已经说 一致,而 ,所以 一致。
注意条件的结构:导数的收敛被假设,函数的收敛被推出。这与积分定理的方向相反——那里函数的一致收敛足以推出积分的收敛;这里函数的一致收敛是结论,不是假设。
例子:指数函数满足
定义
逐项求导。 因为 是多项式,可以逐项求导:
最后一步做了指标替换 。所以
检查定理的条件。
- 在任意 上一致收敛到 (Weierstrass 判别法)。
- 在 处, 对每个 成立,所以 。
- 连续(多项式)。
三条全部满足。于是定理给出:存在函数 ,在 上 一致,且 一致。
识别极限。 由上一讲, 一致。一致收敛的极限唯一(每个点上的极限唯一),所以 。另一方面,,而 一致,所以 。两句话合起来:
结论不只是「 可导」,而是「 的导数恰好是它自己」——这正是把 定义为幂级数后最想得到的性质。
一般幂级数:逐项求导不改变收敛半径
设
的收敛半径为
并按惯例处理 与 。逐项求导得到新级数
它的系数是 。计算它对应的 :
关键极限是 。这一点可以写成
所以 。于是
收敛半径不变。
课程在这里回应了一个提问:求导后 的幂次整体降了一次,用 次方根是否还合适?答案是两种算法都对。因为收敛半径本质上是与几何级数比较得到的,把幂次整体平移不影响它;若坚持用 次方根,得到的 也相同。差别只在书写,不在结果。
迭代到 阶导数
既然一次求导不改变收敛半径,就可以重复。求导 次后:
系数里的连乘积展开是
正好是逐次求导时依次落下来的因子。每一次求导都保持同一个收敛半径,所以这个级数的收敛半径仍是 。
定理:幂级数在收敛区间内光滑
定理。 设幂级数的收敛半径为 ,。则:
- 部分和 在 上一致收敛到 ;
- 对每个 , 的 阶导数在 上一致收敛到
因此 在 内无穷次可导,且
证明思路。 取 。由 Weierstrass 判别法, 与 在 上分别一致收敛;也就是说,部分和 与其导数 都一致收敛。在 处, 收敛。应用求导交换定理,得到 一致、 一致,而 的极限正是逐项求导级数。对 归纳即可。
收敛必须是「在每个 上」,。在端点 处级数可能发散,逐项求导也可能失去一致性,所以定理只在内闭区间上成立。
逐项积分
同样的思路配上上一讲的积分定理。设 都在收敛区间内部,。部分和 是多项式,可以逐项积分:
因为 在包含 的某个 上一致,积分交换定理给出
若取 、,每一项算出来是
于是得到一个漂亮的公式:
这也是一个幂级数,收敛半径不变。所以「积分一个幂级数」和「求导一个幂级数」一样,都是逐项操作。
什么是常微分方程
微分方程是含未知函数及其导数的方程。三个小例子:
例 1。 。解是
因为常数的导数是 ,而 。所有解都长这样。
例 2。 。取
则 ,平方得 ;而 。所以它确实是解。这个例子说明解不一定是初等函数的简单组合,也说明解可能只在部分区间上有定义( 处无定义)。
补充:课程转录把这一例听成了「 减 平方」之类的形式,按验算应为 ;板书在过程中修正过一次符号,这个版本与修正后的板书一致。
例 3。 。在每个点上至少有一个因子为零;由连续性,其中一个因子必须在整段区间上恒为零。于是解只有两类:(常数)或 (一次函数,常数也算)。所以全部解就是一次函数 。
「常」微分方程(ordinary differential equation,ODE)指未知函数只依赖一个变量。若依赖多个变量、出现偏导数,就是偏微分方程。
本课研究的形状
未知函数记为 ,方程与初值条件为
其中 可导且 连续, 连续, 是给定实数。 只通过未知函数 进入方程, 是已知的强制项或零阶项。因为 可以任意非线性,这是非线性方程,一般写不出显式解。
要问两个问题:
- 存在性:给定 ,是否至少有一个解?
- 唯一性:若有两个解,是否必须相同?
Picard–Lindelöf 定理
定理。 设 可导、 连续, 连续,。则存在 ,使得初值问题
在区间 上有解;并且解在 上唯一。
要点在「局部」:结论只保证在原点附近的一个小小区间上有解。区间能有多长取决于 与 ,一般不能延伸到整个 。下一讲会用具体例子说明,解可能在有限点处爆破,根本不可能延拓。
证明工具:压缩映射
定理的证明不直接构造解,而是把解写成一个映射的不动点。需要的工具是压缩映射定理。
定义。 设 是度量空间,。若存在常数 ,使得
成立,则称 是压缩映射。
压缩映射定理。 若 是 Cauchy 完备的度量空间, 是压缩映射,则 有唯一不动点:存在唯一的 使 。
这个定理前面已经证明过,当时用在 上,为 Newton 法寻找零点。这里要用它的度量空间版本:空间取某个区间上的连续函数,距离取 sup 距离。
为什么能连起来。 把初值问题改写成积分方程
右边定义了一个映射 :输入一个连续函数 ,输出另一个连续函数。若 是不动点,则 ,求导(微积分基本定理)立刻给出 ,且 。于是「解微分方程」变成「找压缩映射的不动点」。
难点在于:这个 在全体连续函数上不是压缩映射。必须把空间限制到一个足够小的闭球上,才能让压缩常数小于 。这正是下一讲的全部技术工作。
本节结论
- 求导与极限交换需要导数一致收敛;仅有函数一致收敛不够。
- 交换定理的证明用积分重构 ,把误差拆成「端点误差 + 长度 × 导数误差」。
- 幂级数逐项求导不改变收敛半径,可逐项求导任意多次;逐项积分同样成立。
- 与 推出 。
- 常微分方程 、 在局部有唯一解(Picard–Lindelöf)。
- 证明工具是压缩映射定理;关键是把空间限制成一个闭球,使映射成为压缩。
理解检验
1. 为什么「 一致」推不出「」?定理改用哪个假设绕过了这个困难?
参考答案:一致收敛控制的是函数值之差 ,而导数由差商决定,差商涉及两个邻近点的值。函数值可以被压得很近,但每一点的局部斜率仍可能剧烈振荡,因此没有任何机制迫使 收敛,更不用说收敛到 。定理改为假设导数列 一致收敛到 ,再把 用 的积分构造出来,于是 直接成立,函数的一致收敛反而成了结论。
2. 在定理证明中,为什么把 定义为 ,而不是 ?
参考答案:因为要匹配条件 。取 时,由积分在一点上的值为零,,正是 的极限;若省掉 ,则 ,极限函数在 处的值与数列的极限不符, 就不可能一致收敛到它。
3. 证明 时,定理的三条假设分别由什么事实提供?
参考答案:(1) 收敛:取 ,则 对所有 成立,收敛到 。(2)导数一致收敛:,而由 Weierstrass 判别法, 在任意 上一致。(3)导数连续: 是多项式,连续。定理于是给出极限函数可导,且导数等于 的极限 ,即 。
4. 为什么幂级数逐项求导后收敛半径不变?请写出关键极限。
参考答案:原级数系数 给出 ,新级数系数是 ,对应
关键极限是 ,因为 且 。于是 ,收敛半径 不变。
5. 为什么把 的不动点叫做原 ODE 的解?反过来为什么每个解也是不动点?
参考答案:若 ,则 。由微积分基本定理,右端可导,导数为 ;又因为在 处积分为零,。所以 满足 ODE 与初值。反过来,若 可导且 、,对 从 到 积分并用微积分基本定理,得到 ,即 。两个方向都只用到微积分基本定理。
与前后课的关系
上一讲证明了积分与一致极限可交换;本讲补上求导的那一半,并因此得到幂级数的全部微积分性质。后半段转向常微分方程,把问题重写成积分算子的不动点,为下一讲的技术工作搭好框架。
下一讲会做三件事:定义闭球上的映射 ,证明 把闭球映入自身,再证明 在该闭球上是压缩映射;然后由压缩映射定理得到局部解的存在唯一性。再下一讲(标为期末复习)补完唯一性的全局部分,并用 的爆破说明「局部」不是技术上的保守,而是真实现象。
One thing left: can derivatives pass through a limit?
Last lecture's conclusion: if is integrable and uniformly, then is integrable and
Integration behaves well under uniform convergence. Differentiation is completely different: uniform convergence by itself does not imply . The reason is straightforward — a derivative sees only the local behaviour near each point, while uniform convergence controls the overall distance between function values. A sequence of functions can be squeezed together at every point while the slopes oscillate wildly.
The course does not give a counterexample but instead supplies a stronger sufficient condition: not only the functions converge, but the derivatives converge uniformly. Under that condition, differentiation does commute with the limit.
Timeline
| Time | Topic |
|---|---|
| 0:00 | Review of uniform convergence and integration |
| 3:06 | Hypotheses and conclusion of the differentiation theorem |
| 6:40 | Reconstruct by integration: |
| 11:00 | Estimate $ |
| 19:07 | Example: , hence |
| 31:48 | General power series: radius of convergence and term-by-term differentiation |
| 37:22 | The differentiated series has the same radius |
| 42:40 | Formula after differentiating times |
| 49:28 | Theorem: power series may be differentiated and integrated term by term |
| 1:03:50 | What an ODE is |
| 1:13:35 | Statement of the Picard–Lindelöf theorem |
| 1:16:35 | Preview of the contraction mapping theorem |
Theorem: differentiation commutes when derivatives converge uniformly
Theorem. Let be differentiable on with continuous. Assume:
- for some , the sequence converges to a number ;
- converges uniformly on to a function .
Then there is a function such that:
- is differentiable and is continuous;
- uniformly on each bounded subinterval ;
- uniformly on the same subinterval.
Step 1: build the limit function
By "a uniform limit of continuous functions is continuous", is continuous.
Define
Two points deserve comment. First, is continuous, so the integral exists. Second, why integrate starting from ? Because we need , and is precisely the limit of ; only then can be the limit of .
By the fundamental theorem of calculus, is differentiable and
Since is continuous, so is . This gives the first half of the conclusion.
Step 2: uniform convergence
Fix a bounded subinterval and let . By the fundamental theorem of calculus, for every ,
Subtract:
Take absolute values and apply the triangle inequality:
Bound the integral by "length times maximum error". If ,
If , then
In either case, for all ,
The right side is independent of . As the first term tends to (hypothesis 1) and the second to (hypothesis 2, uniform convergence of derivatives). So for every there is such that for the right side is below , simultaneously for all . That is uniform convergence of to on .
Step 3: derivative convergence is free
The second conclusion needs no work: hypothesis 2 already says uniformly, and . Hence uniformly.
Note the structure of the hypotheses: convergence of the derivatives is assumed; convergence of the functions is derived. This is the opposite direction from the integration theorem, where uniform convergence of the functions implied convergence of the integrals.
Example: the exponential satisfies
Define
Differentiate term by term. Since is a polynomial,
where the last step is the index shift . Hence
Check the hypotheses.
- converges uniformly to on every (Weierstrass -test).
- At , for every , so .
- is continuous (a polynomial).
All three hold. The theorem gives a function with uniformly and uniformly on .
Identify the limit. By the previous lecture, uniformly. A uniform limit is unique (each point has a unique limit), so . On the other hand and uniformly, so . Combining:
The conclusion is not merely that is differentiable, but that its derivative is itself — exactly the property wanted when is defined by its power series.
General power series: differentiation preserves the radius
Let
with radius of convergence
with the usual conventions for and . Term-by-term differentiation gives
Its coefficients are . Its is
The key limit is :
so . Hence
The radius is unchanged.
A student asked whether the -th root is still the right tool after the powers shift down by one. The answer: both computations work. The radius comes from comparison with a geometric series, and shifting all powers by one does not affect it; using the -st root gives the same limsup. The difference is bookkeeping, not substance.
Iterating to the -th derivative
Since one differentiation preserves the radius, repeat. After differentiations,
The coefficient expands as
the factors that drop down at each differentiation. Each step preserves the same radius, so this series again has radius .
Theorem: power series are smooth inside the radius
Theorem. Let a power series have radius and let . Then:
- the partial sums converge uniformly to on ;
- for every , the -th derivatives of converge uniformly on to
Consequently is infinitely differentiable on and
Idea of the proof. Take . By the Weierstrass -test, both and converge uniformly on ; that is, the partial sums and their derivatives both converge uniformly. At , converges. The differentiation theorem then gives and uniformly, and the limit of is the term-by-term derivative. Induct on .
The convergence is on each with . At the endpoints the series may diverge, and the differentiated series may lose uniformity, so the theorem is stated on inner closed intervals only.
Term-by-term integration
The same idea with the previous lecture's integration theorem. Let lie inside the interval of convergence and . The partial sums are polynomials, so
Since uniformly on some containing , the interchange theorem gives
Taking , , each term is
so
This is again a power series with the same radius. Integrating a power series, like differentiating one, is a term-by-term operation.
What an ordinary differential equation is
A differential equation is an equation involving an unknown function and its derivative. Three small examples.
Example 1. . The solutions are
because the derivative of a constant is and . These are all the solutions.
Example 2. . Take
Then , whose square is , while . So it solves the equation. This example shows that solutions need not be simple combinations of elementary functions, and that a solution may be defined only on part of the real line (it is undefined at ).
Note: the lecture transcript mishears this example as something like " minus squared"; checking the algebra, the equation is , matching the board after the instructor corrected a sign in the middle.
Example 3. . At every point at least one factor vanishes; by continuity one of them must vanish identically on the whole interval. So the solutions fall into two classes: (constants) or (linear functions, constants included). All solutions are therefore linear, .
An ordinary differential equation (ODE) is one whose unknown depends on a single variable. If it depends on several variables and partial derivatives appear, it is a partial differential equation.
The shape studied in this course
Write the unknown as and consider
where is differentiable with continuous, is continuous, and is a given real number. The unknown enters only through inside , while is a known forcing term. Since may be any nonlinearity, this is a nonlinear equation, and explicit solutions generally do not exist.
Two questions:
- Existence: given , is there at least one solution?
- Uniqueness: if there are two, must they coincide?
The Picard–Lindelöf theorem
Theorem. Let be differentiable with continuous, let be continuous, and let . Then there is such that the initial value problem
has a solution on , and the solution on is unique.
The essential word is local: the conclusion is only that a solution exists on a small interval around the origin. How large the interval can be depends on and , and in general it cannot be extended to all of . The next lecture gives an example where the solution blows up at a finite point and cannot be extended.
The tool: contraction mappings
The proof does not construct the solution directly. Instead it writes the solution as a fixed point of a map.
Definition. Let be a metric space and . If there is a constant such that
then is a contraction.
Contraction mapping theorem. If is Cauchy complete and is a contraction, then has a unique fixed point: there is exactly one with .
This theorem was proved earlier, on , for Newton's method of finding zeros. Here its metric-space version is needed: the space is a set of continuous functions on an interval, and the distance is the sup distance.
How they connect. Rewrite the initial value problem as the integral equation
The right side defines a map : it takes a continuous function to another continuous function. If is a fixed point, then , and differentiating (fundamental theorem of calculus) gives , while . Thus "solve the ODE" becomes "find a fixed point of a contraction".
The difficulty: this is not a contraction on the whole space of continuous functions. The space must be restricted to a sufficiently small closed ball before the contraction constant can be made less than . That restriction is the entire technical content of the next lecture.
What this lecture establishes
- Differentiation commutes with limits when the derivatives converge uniformly; uniform convergence of the functions alone is not enough.
- The proof reconstructs by integration and splits the error into an endpoint term plus "length times derivative error".
- Term-by-term differentiation of a power series preserves the radius and may be repeated indefinitely; term-by-term integration holds as well.
- together with yields .
- The ODE , has a unique local solution (Picard–Lindelöf).
- The proof uses the contraction mapping theorem; the key step restricts the space to a closed ball so that the map becomes a contraction.
Comprehension check
1. Why does uniform convergence of fail to imply ? Which hypothesis in the theorem avoids the difficulty?
Reference answer: Uniform convergence controls , i.e. differences of values, whereas derivatives are determined by difference quotients involving two nearby points. Values can be squeezed together while the local slope at each point still oscillates; nothing forces to converge, let alone to . The theorem instead assumes that the derivatives converge uniformly to , and reconstructs as the integral of , so holds by construction and uniform convergence of the functions becomes the conclusion rather than an assumption.
2. In the proof, why define rather than just ?
Reference answer: To match the hypothesis . With , the integral over a single point is zero, so , exactly the limit of . Without the constant, , which generally differs from the limit of the values at , and could not converge uniformly to it.
3. In proving , which facts supply the three hypotheses of the theorem?
Reference answer: (1) Convergence at a point: take , then for all , so it converges to . (2) Uniform convergence of derivatives: , and by the Weierstrass -test uniformly on every . (3) Continuity of derivatives: is a polynomial. The theorem then gives a differentiable limit with derivative equal to the limit of , namely ; hence .
4. Why is the radius of convergence unchanged by term-by-term differentiation? Write the key limit.
Reference answer: The original coefficients give ; the differentiated series has coefficients , so
The key limit is , since and . Hence and the radius is unchanged.
5. Why is a fixed point of a solution of the ODE, and why is every solution a fixed point?
Reference answer: If , then . By the fundamental theorem of calculus the right side is differentiable with derivative ; and since the integral over vanishes, . So satisfies the ODE and the initial condition. Conversely, if is differentiable with and , integrating from to and using the fundamental theorem gives , i.e. . Both directions use only the fundamental theorem of calculus.
Relation to neighbouring lectures
The previous lecture proved that integration commutes with uniform limits; this lecture supplies the differentiation half and thereby the full calculus of power series. The second half turns to ODEs, rewriting the problem as a fixed point of an integral operator and setting up the next lecture's technical work.
That lecture does three things: define the map on a closed ball, prove that maps the ball into itself, and prove that is a contraction there; the contraction mapping theorem then yields local existence and uniqueness. The following lecture (labelled a final review) completes the global uniqueness argument and uses the blow-up of to show that "local" is not technical caution but a real phenomenon.