第 17 章

Rolle、中值定理与 Taylor 展开:把导数变成估计

从内点极值的导数为零出发,证明 Rolle 定理,并依次推出中值定理与 Cauchy 中值定理;再用反复应用 Rolle 定理的办法,得到一阶与一般阶的 Taylor 公式及余项。

Rolle, the Mean Value Theorem, and Taylor Expansion: Turning Derivatives into Estimates

Starting from the vanishing of the derivative at an interior extremum, we prove Rolle's theorem and derive the mean value theorem and Cauchy's mean value theorem from it. Applying Rolle repeatedly then yields the first-order and general Taylor formulas with a remainder term.

首发于 2025.09.02中 / EN
系统课程real-analysismean-value-theoremrolle-theoremtaylor-series
语言
字号
目录
篇内目录

这一讲要做什么

上一讲建立了导数与求导法则,这一讲把它们变成一套估计工具。整条逻辑链只有四步:

  1. 内点取到局部极值且可导,则导数为零(一个几乎不用证明的观察)。
  2. 用它推出 Rolle 定理:两端同高,则中间某处导数为零。
  3. 用 Rolle 定理推出中值定理:平均斜率一定在某点被取到;再推广到 Cauchy 中值定理。
  4. 反复使用 Rolle 定理,把函数在一点附近写成多项式加一个可估计的余项,这就是 Taylor 展开。

每一步都只是上一步的推论,但第四步已经能回答一个很实际的问题:用多项式近似函数,误差有多大?

时间轴

时间内容
0:00回顾:可导定义、可导蕴含连续、和/数乘/Leibniz/商/链式法则
5:34局部极大、局部极小的定义
10:00定理:内点局部极值处导数为零(证明)
17:38临界点;例子 x2x^2 与 x3x^3
20:15Rolle 定理及三情形证明
25:49中值定理(用辅助函数证明)
32:42Cauchy 中值定理
43:59Taylor 展开:先做一阶情形
1:04:07一般的 k−1k-1 阶 Taylor 多项式与余项
1:17:14洛必达法则留到下一讲

回顾:可导与五条法则

ff 在 x0x_0 可导,是指差商

f(x)−f(x0)x−x0\frac{f(x)-f(x_0)}{x-x_0}

在 x→x0x\to x_0(x≠x0x\ne x_0)时有极限,这个极限记作 f′(x0)f'(x_0)。上一讲证明了:可导蕴含连续,并建立了五条法则——和、数乘、Leibniz 乘积法则、商法则(要求分母非零)、链式法则:

(fg)′=f′g+fg′,(fg)′=f′g−fg′g2,(g∘f)′(x)=g′(f(x))f′(x).(fg)'=f'g+fg', \qquad \left(\frac fg\right)'=\frac{f'g-fg'}{g^2}, \qquad (g\circ f)'(x)=g'\big(f(x)\big)f'(x).

这些法则合起来,保证多项式、有理函数以及足够光滑的复合函数都可以放心求导。

局部极值

设 ff 定义在包含 x0x_0 的开区间上。称 ff 在 x0x_0 取局部极大值,若存在 δ>0\delta>0,使得对所有满足 ∣x−x0∣<δ|x-x_0|<\delta 的 xx,

f(x)≤f(x0).f(x)\le f(x_0).

局部极小值把不等号反过来。注意两点:

  • 定义只关心 x0x_0 附近,远处函数值多大都无所谓。
  • 定义不需要可导,甚至不需要连续。

课程用图说明:局部最大值只要求「在某个小窗口里最高」,窗口外可能有更高的地方。全局最大值当然也是局部最大值,反之不然。

内点极值处导数为零

定理(Fermat)。 设 ff 在区间上可导,x0x_0 是区间的内点,且 ff 在 x0x_0 取局部极大或极小值,则

f′(x0)=0.f'(x_0)=0.

内点这个条件是本质的:端点处函数可以「取到最大值」而斜率不为零。

证明。 只证局部极大,极小同理。取定义中的 δ\delta。

右导数。 若 x0<x<x0+δx_0<x<x_0+\delta,则 f(x)≤f(x0)f(x)\le f(x_0),分子非正,而分母 x−x0>0x-x_0>0,所以

f(x)−f(x0)x−x0≤0.\frac{f(x)-f(x_0)}{x-x_0}\le 0 .

令 x→x0+x\to x_0^+,差商有极限 f′(x0)f'(x_0),由极限保号性得

f′(x0)≤0.f'(x_0)\le 0 .

左导数。 若 x0−δ<x<x0x_0-\delta<x<x_0,分子仍非正,但分母 x−x0<0x-x_0<0,所以

f(x)−f(x0)x−x0≥0.\frac{f(x)-f(x_0)}{x-x_0}\ge 0 .

令 x→x0−x\to x_0^-,得

f′(x0)≥0.f'(x_0)\ge 0 .

两式合起来,0≤f′(x0)≤00\le f'(x_0)\le 0,故 f′(x0)=0f'(x_0)=0。□\square

证明的关键是从两侧分别逼近:分子总是非正,分母的符号在两侧相反,于是两个单侧极限的符号相反,而它们必须相等。

若 f′(x0)=0f'(x_0)=0,称 x0x_0 是 ff 的临界点。

两个例子:逆命题不成立

  • f(x)=x2f(x)=x^2,f′(x)=2xf'(x)=2x,唯一临界点 x=0x=0,确实是局部(也是全局)极小值。
  • f(x)=x3f(x)=x^3,f′(x)=3x2f'(x)=3x^2,x=0x=0 是临界点,但 x3x^3 在 00 的任意两侧都取到更小和更大的值,没有极值。图像在原点变得很平,然后继续上升。

所以「导数为零」只是取极值的必要条件,不是充分条件。判断临界点是不是极值,要看导数在两侧的符号,或者用更高阶的导数。

Rolle 定理

定理。 设 ff 在 [a,b][a,b] 上连续、在 (a,b)(a,b) 上可导,且 f(a)=f(b)f(a)=f(b),则存在 x0∈(a,b)x_0\in(a,b),使

f′(x0)=0.f'(x_0)=0 .

课程把 f(a)=f(b)f(a)=f(b) 写成「两端同高」,不要求等于零。

证明。 分三种情形,至少有一种发生:

  1. ff 在 [a,b][a,b] 上为常数。此时 f′≡0f'\equiv0,任取内点即可。
  2. 存在 xx 使 f(x)>f(a)f(x)>f(a)。
  3. 存在 xx 使 f(x)<f(a)f(x)<f(a)。

情形 2:ff 连续,由极值定理(闭区间上连续函数取到最大值与最小值),ff 在 [a,b][a,b] 上取到最大值。由于某点的值严格大于端点值,最大值不可能在端点取到,只能在某个内点 x0x_0 取到。于是 x0x_0 是局部极大值点,由 Fermat 定理 f′(x0)=0f'(x_0)=0。

情形 3 同理,把最大值换成最小值。□\square

这里用到了两条已经建立的结果:连续函数在闭区间上取到极值,以及内点极值处导数为零。Rolle 定理本身没有新思想,它只是把这两条接在一起。

中值定理(Lagrange)

定理。 设 ff 在 [a,b][a,b] 上连续、在 (a,b)(a,b) 上可导,则存在 x0∈(a,b)x_0\in(a,b),使

f′(x0)=f(b)−f(a)b−a.f'(x_0)=\frac{f(b)-f(a)}{b-a}.

右端是两端点连线的斜率,也就是「平均变化率」。定理说:平均斜率一定在某一点被瞬时斜率取到。

证明。 构造辅助函数

h(x)=f(x)−f(b)−f(a)b−a (x−a).h(x)=f(x)-\frac{f(b)-f(a)}{b-a}\,(x-a).

几何上,这是把函数减去连接两端点的弦:hh 是函数与弦的竖直距离。

先验证 Rolle 定理的条件。hh 是 ff 减去一个线性函数,因此连续、可导。再算端点值:

h(a)=f(a)−f(b)−f(a)b−a⋅0=f(a),h(a)=f(a)-\frac{f(b)-f(a)}{b-a}\cdot 0=f(a), h(b)=f(b)−f(b)−f(a)b−a(b−a)=f(b)−(f(b)−f(a))=f(a).h(b)=f(b)-\frac{f(b)-f(a)}{b-a}(b-a)=f(b)-\big(f(b)-f(a)\big)=f(a).

所以 h(a)=h(b)h(a)=h(b)。由 Rolle 定理,存在 x0∈(a,b)x_0\in(a,b) 使 h′(x0)=0h'(x_0)=0。而

h′(x)=f′(x)−f(b)−f(a)b−a,h'(x)=f'(x)-\frac{f(b)-f(a)}{b-a},

令其为零即得结论。□\square

辅助函数是怎么想出来的? 目标是让 Rolle 定理能用,也就是让函数在两端相等。函数与弦在 aa、bb 两点的差都是零,所以「函数减弦」天然满足条件;而它的导数恰好是「f′f' 减平均斜率」。这就是构造的全部动机。

Cauchy 中值定理

定理。 设 f,gf,g 在 [a,b][a,b] 上连续、在 (a,b)(a,b) 上可导,则存在 x0∈(a,b)x_0\in(a,b),使

f′(x0)(g(b)−g(a))=g′(x0)(f(b)−f(a)).f'(x_0)\big(g(b)-g(a)\big)=g'(x_0)\big(f(b)-f(a)\big).

若 g(b)≠g(a)g(b)\ne g(a) 且 g′(x0)≠0g'(x_0)\ne0,可以写成

f′(x0)g′(x0)=f(b)−f(a)g(b)−g(a).\frac{f'(x_0)}{g'(x_0)}=\frac{f(b)-f(a)}{g(b)-g(a)}.

它看起来像「两个函数同时满足中值定理」。事实上,普通中值定理分别对 ff 和 gg 各给一个点,而 Cauchy 版本保证同一个点同时满足两者——这一点并不显然。

证明。 把要证的等式移项,构造

h(x)=f(x)(g(b)−g(a))−g(x)(f(b)−f(a)).h(x)=f(x)\big(g(b)-g(a)\big)-g(x)\big(f(b)-f(a)\big).

hh 连续、可导,且

h′(x)=f′(x)(g(b)−g(a))−g′(x)(f(b)−f(a)),h'(x)=f'(x)\big(g(b)-g(a)\big)-g'(x)\big(f(b)-f(a)\big),

正是要令其为零的表达式。检查端点:

h(a)=f(a)(g(b)−g(a))−g(a)(f(b)−f(a))=f(a)g(b)−g(a)f(b),h(a)=f(a)\big(g(b)-g(a)\big)-g(a)\big(f(b)-f(a)\big) =f(a)g(b)-g(a)f(b), h(b)=f(b)(g(b)−g(a))−g(b)(f(b)−f(a))=f(b)g(b)−g(b)f(b)+g(b)f(a)−f(b)g(a)=f(a)g(b)−g(a)f(b).h(b)=f(b)\big(g(b)-g(a)\big)-g(b)\big(f(b)-f(a)\big) =f(b)g(b)-g(b)f(b)+g(b)f(a)-f(b)g(a) =f(a)g(b)-g(a)f(b).

两式相同,故 h(a)=h(b)h(a)=h(b),由 Rolle 定理得 h′(x0)=0h'(x_0)=0,即所欲证。□\square

与中值定理的关系。 取 g(x)=xg(x)=x,则 g(b)−g(a)=b−ag(b)-g(a)=b-a,g′(x0)=1g'(x_0)=1,Cauchy 公式退化为

f′(x0)(b−a)=f(b)−f(a),f'(x_0)(b-a)=f(b)-f(a),

正是普通中值定理。所以 Cauchy 版本是更一般的陈述。

Taylor 展开:先做一阶

设 ff 可导且 f′f' 也可导(即二阶可导)。在点 aa 附近,用一次多项式近似:

P1(x)=f(a)+f′(a)(x−a).P_1(x)=f(a)+f'(a)(x-a).

它满足 P1(a)=f(a)P_1(a)=f(a)、P1′(a)=f′(a)P_1'(a)=f'(a):值与一阶导数都和 ff 对上。问题是用它近似 ff 的误差有多大。

定理(一阶 Taylor)。 设 ff 在包含 a,ba,b 的区间上二阶可导,则存在 cc 严格介于 aa 与 bb 之间,使

f(b)=P1(b)+f′′(c)2(b−a)2.f(b)=P_1(b)+\frac{f''(c)}{2}(b-a)^2 .

余项是 f′′(c)2(b−a)2\dfrac{f''(c)}{2}(b-a)^2,只要知道 f′′f'' 的界,就能估计误差。

证明(两次 Rolle)。 固定 a,ba,b。定义数 MM 为

M=2(f(b)−P1(b))(b−a)2,M=\frac{2\big(f(b)-P_1(b)\big)}{(b-a)^2},

于是按定义

f(b)−P1(b)−M2(b−a)2=0.f(b)-P_1(b)-\frac{M}{2}(b-a)^2=0 .

构造

h(x)=f(x)−P1(x)−M2(x−a)2.h(x)=f(x)-P_1(x)-\frac{M}{2}(x-a)^2 .

则

h(b)=0(由 M 的定义),h(a)=f(a)−P1(a)−0=0.h(b)=0\quad(\text{由 }M\text{ 的定义}), \qquad h(a)=f(a)-P_1(a)-0=0 .

注意 M2(x−a)2\frac{M}{2}(x-a)^2 在 x=ax=a 处为零,且 P1(a)=f(a)P_1(a)=f(a),所以 h(a)=0h(a)=0。

于是 h(a)=h(b)h(a)=h(b),由 Rolle 定理存在 c1∈(a,b)c_1\in(a,b) 使 h′(c1)=0h'(c_1)=0。

再算

h′(x)=f′(x)−f′(a)−M(x−a),h'(x)=f'(x)-f'(a)-M(x-a),

因为 P1′(x)=f′(a)P_1'(x)=f'(a)。代入 x=ax=a:

h′(a)=f′(a)−f′(a)−0=0.h'(a)=f'(a)-f'(a)-0=0 .

现在在区间 [a,c1][a,c_1] 上对 h′h' 再用一次 Rolle 定理——h′(a)=h′(c1)=0h'(a)=h'(c_1)=0——得到 c2∈(a,c1)c_2\in(a,c_1) 使 h′′(c2)=0h''(c_2)=0。

最后

h′′(x)=f′′(x)−M,h''(x)=f''(x)-M,

(P1P_1 的二阶导数为零,M2(x−a)2\frac{M}{2}(x-a)^2 的二阶导数为 MM),所以

0=h′′(c2)=f′′(c2)−M  ⟹  M=f′′(c2).0=h''(c_2)=f''(c_2)-M \implies M=f''(c_2).

把 MM 代回定义即得结论,其中 c=c2∈(a,b)c=c_2\in(a,b)。□\square

一般的 Taylor 公式

把上面的论证重复 kk 次,就得到 kk 阶版本。设 ff 在包含 a,ba,b 的区间上 kk 次可导。

定义 k−1k-1 阶 Taylor 多项式

Pk−1(x)=∑i=0k−1f(i)(a)i!(x−a)i=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯+f(k−1)(a)(k−1)!(x−a)k−1.P_{k-1}(x)=\sum_{i=0}^{k-1}\frac{f^{(i)}(a)}{i!}(x-a)^i =f(a)+f'(a)(x-a)+\frac{f''(a)}{2!}(x-a)^2+\cdots+\frac{f^{(k-1)}(a)}{(k-1)!}(x-a)^{k-1}.

定理(Taylor 公式,余项形式)。 存在 cc 严格介于 aa 与 bb 之间,使

f(b)=Pk−1(b)+f(k)(c)k!(b−a)k.f(b)=P_{k-1}(b)+\frac{f^{(k)}(c)}{k!}(b-a)^k .

最后一项称为余项(Lagrange 余项)。k=2k=2 时正是上一节的结论,因为 P1P_1 是 11 阶多项式、余项除以 2!2!。

证明思路。 与 k=2k=2 完全相同,只是多重复几次。

  1. 令 M=k! (f(b)−Pk−1(b))(b−a)kM=\dfrac{k!\,\big(f(b)-P_{k-1}(b)\big)}{(b-a)^k},于是 h(b)=0h(b)=0,其中
h(x)=f(x)−Pk−1(x)−Mk!(x−a)k.h(x)=f(x)-P_{k-1}(x)-\frac{M}{k!}(x-a)^k .
  1. h(a)=0h(a)=0,因为 Pk−1(a)=f(a)P_{k-1}(a)=f(a),且 (a−a)k=0(a-a)^k=0。

  2. 用 Rolle 定理得到 c1∈(a,b)c_1\in(a,b),h′(c1)=0h'(c_1)=0。

  3. 对 j=1,…,k−1j=1,\dots,k-1,Pk−1P_{k-1} 在 aa 处的 jj 阶导数等于 f(j)(a)f^{(j)}(a),而 (x−a)k(x-a)^k 的各阶导数在 aa 处直到 k−1k-1 阶都为零。因此

h(j)(a)=0,j=0,1,…,k−1.h^{(j)}(a)=0,\qquad j=0,1,\dots,k-1 .
  1. 在 [a,c1][a,c_1] 上对 h′h' 用 Rolle,得到 c2∈(a,c1)c_2\in(a,c_1) 使 h′′(c2)=0h''(c_2)=0;再在 [a,c2][a,c_2] 上对 h′′h'' 用 Rolle,如此反复。每用一次,区间右端点向左移动。第 kk 次得到 ck∈(a,b)c_k\in(a,b) 使
h(k)(ck)=0.h^{(k)}(c_k)=0 .
  1. 因为 Pk−1P_{k-1} 的 kk 阶导数为零,而 Mk!(x−a)k\frac{M}{k!}(x-a)^k 的 kk 阶导数等于 MM,所以
h(k)(x)=f(k)(x)−M  ⟹  M=f(k)(ck).h^{(k)}(x)=f^{(k)}(x)-M \implies M=f^{(k)}(c_k).

代回 MM 的定义即得。□\square

余项的价值在于它可以估计:若已知 ∣f(k)∣≤C|f^{(k)}|\le C 在区间上成立,则

∣f(b)−Pk−1(b)∣≤Ck!∣b−a∣k.|f(b)-P_{k-1}(b)|\le \frac{C}{k!}|b-a|^k .

右边随 kk 增长得非常快(阶乘在分母),所以对光滑函数,低阶多项式就能给出很好的局部近似——这正是 Taylor 展开的实用意义。

本节结论

  • 内点局部极值 + 可导 ⇒\Rightarrow 导数为零;反之不成立(x3x^3)。
  • Rolle 定理:两端同高则中间有水平切线;证明靠极值定理加 Fermat。
  • 中值定理:f′(x0)=f(b)−f(a)b−af'(x_0)=\dfrac{f(b)-f(a)}{b-a},辅助函数是「函数减弦」。
  • Cauchy 中值定理:f′(x0)(g(b)−g(a))=g′(x0)(f(b)−f(a))f'(x_0)\big(g(b)-g(a)\big)=g'(x_0)\big(f(b)-f(a)\big),取 g(x)=xg(x)=x 退化为中值定理。
  • 一阶 Taylor:f(b)=f(a)+f′(a)(b−a)+f′′(c)2(b−a)2f(b)=f(a)+f'(a)(b-a)+\dfrac{f''(c)}{2}(b-a)^2。
  • 一般 Taylor:f(b)=Pk−1(b)+f(k)(c)k!(b−a)kf(b)=P_{k-1}(b)+\dfrac{f^{(k)}(c)}{k!}(b-a)^k,证明是把 Rolle 定理用 kk 次。
  • 洛必达法则在讲义中,但课上留到下一讲。

理解检验

1. 用局部极值的定义与单侧差商证明 Fermat 定理,并说明为什么 x0x_0 必须是内点。

参考答案:设 x0x_0 是局部极大值点,取定义中的 δ>0\delta>0。当 0<x−x0<δ0<x-x_0<\delta 时 f(x)−f(x0)≤0f(x)-f(x_0)\le0,分母为正,故差商 ≤0\le0;令 x→x0+x\to x_0^+ 得 f′(x0)≤0f'(x_0)\le0。当 −δ<x−x0<0-\delta<x-x_0<0 时分子仍 ≤0\le0,分母为负,故差商 ≥0\ge0;令 x→x0−x\to x_0^- 得 f′(x0)≥0f'(x_0)\ge0。两侧极限都存在且等于 f′(x0)f'(x_0),于是 f′(x0)=0f'(x_0)=0。必须要求内点,是因为证明要在 x0x_0 两侧都能取到点;若 x0x_0 是端点,只有一侧可用,只能得到一个不等式。例如 f(x)=xf(x)=x 在 [0,1][0,1] 上于 x=1x=1 取最大值,但 f′(1)=1≠0f'(1)=1\ne0。

2. 举一个导数为零却不是极值的例子,并说明 Rolle 定理的逆命题为什么不成立。

参考答案:f(x)=x3f(x)=x^3,f′(x)=3x2f'(x)=3x^2,f′(0)=0f'(0)=0,但 x<0x<0 时 f(x)<0=f(0)f(x)<0=f(0),x>0x>0 时 f(x)>0f(x)>0,所以 00 既不是极大也不是极小。Rolle 定理只断言「存在一点导数为零」,反过来的意思是「若某点导数为零,则函数在某个区间两端同高」,这显然不成立:可以在 x3x^3 的原点附近取任意区间 [a,b][a,b],f(a)≠f(b)f(a)\ne f(b),却仍有 f′(0)=0f'(0)=0。定理给出的是存在性,不给出位置,也不能倒推端点条件。

3. 中值定理的辅助函数 h(x)=f(x)−f(b)−f(a)b−a(x−a)h(x)=f(x)-\dfrac{f(b)-f(a)}{b-a}(x-a) 是怎么想到的?

参考答案:要使用 Rolle 定理,必须让辅助函数在 a,ba,b 两点取相同的值。函数 ff 与弦 L(x)=f(a)+f(b)−f(a)b−a(x−a)L(x)=f(a)+\frac{f(b)-f(a)}{b-a}(x-a) 在两端重合:L(a)=f(a)L(a)=f(a),L(b)=f(b)L(b)=f(b)。所以 h=f−Lh=f-L 满足 h(a)=h(b)=0h(a)=h(b)=0。同时 h′=f′−f(b)−f(a)b−ah'=f'-\frac{f(b)-f(a)}{b-a},令 h′=0h'=0 立刻得到中值定理的结论。几何上,hh 是函数图像与弦之间的竖直距离;中值定理说的正是这段距离在某点取得极值,从而切线平行于弦。

4. 证明 Cauchy 中值定理,并验证取 g(x)=xg(x)=x 时它退化为普通中值定理。

参考答案:令 h(x)=f(x)(g(b)−g(a))−g(x)(f(b)−f(a))h(x)=f(x)\big(g(b)-g(a)\big)-g(x)\big(f(b)-f(a)\big)。hh 连续可导,且

h′(x)=f′(x)(g(b)−g(a))−g′(x)(f(b)−f(a)).h'(x)=f'(x)\big(g(b)-g(a)\big)-g'(x)\big(f(b)-f(a)\big).

计算端点:h(a)=f(a)g(b)−g(a)f(b)h(a)=f(a)g(b)-g(a)f(b),h(b)=f(b)g(b)−f(b)g(a)−g(b)f(b)+g(b)f(a)=f(a)g(b)−g(a)f(b)h(b)=f(b)g(b)-f(b)g(a)-g(b)f(b)+g(b)f(a)=f(a)g(b)-g(a)f(b),两者相等。由 Rolle 定理存在 x0x_0 使 h′(x0)=0h'(x_0)=0,即 f′(x0)(g(b)−g(a))=g′(x0)(f(b)−f(a))f'(x_0)(g(b)-g(a))=g'(x_0)(f(b)-f(a))。取 g(x)=xg(x)=x,则 g(b)−g(a)=b−ag(b)-g(a)=b-a、g′(x0)=1g'(x_0)=1,等式变为 f′(x0)(b−a)=f(b)−f(a)f'(x_0)(b-a)=f(b)-f(a),正是中值定理。

5. Taylor 定理的证明中,为什么要反复使用 Rolle 定理?MM 的作用是什么?

参考答案:MM 是一个待定的常数,定义成使 f(b)−Pk−1(b)−Mk!(b−a)k=0f(b)-P_{k-1}(b)-\frac{M}{k!}(b-a)^k=0,从而辅助函数 h(x)=f(x)−Pk−1(x)−Mk!(x−a)kh(x)=f(x)-P_{k-1}(x)-\frac{M}{k!}(x-a)^k 满足 h(b)=0h(b)=0。又因为 Pk−1P_{k-1} 与 ff 在 aa 处的值及直到 k−1k-1 阶的导数都相同,而 (x−a)k(x-a)^k 的低于 kk 阶导数在 aa 处全为零,所以 h(j)(a)=0h^{(j)}(a)=0(j=0,…,k−1j=0,\dots,k-1)。这就给了 kk 组「两端相等」的条件:(h(a),h(b))(h(a),h(b))、(h′(a),h′(c1))(h'(a),h'(c_1))、…每用一次 Rolle 定理,就得到一个新的内点并使导数阶数加一,同时区间右端向左收缩。第 kk 次得到 h(k)(c)=0h^{(k)}(c)=0;而 h(k)=f(k)−Mh^{(k)}=f^{(k)}-M,于是 M=f(k)(c)M=f^{(k)}(c)。MM 的作用是把未知的余项系数变成一个满足端点条件的常数,让 Rolle 定理有东西可用。

与前后课的关系

本讲把 Rolle 定理当作唯一的发动机,推出了中值定理、Cauchy 中值定理和 Taylor 公式。下一讲先用 Cauchy 中值定理证明洛必达法则(课上明确说留到下次),再转向 Taylor 多项式在具体函数上的应用,并开始构造 Riemann 积分。再往后,Taylor 余项会成为判定级数收敛、估计积分误差的基本工具。

值得注意的是证明的复用结构:一个关于极值的局部观察,经过不同辅助函数的包装,就能回答「平均斜率在哪里取到」「函数与多项式的差有多大」这两类看似无关的问题。这种「找辅助函数把问题变成 Rolle 定理」的思路,是实分析里最常见的技巧之一。

What this lecture accomplishes

The previous lecture built derivatives and the differentiation rules. This one turns them into a set of estimation tools. The whole chain has four links:

  1. Differentiable with an interior local extremum implies the derivative vanishes — an observation that barely needs proof.
  2. Rolle's theorem: equal heights at the endpoints force a horizontal tangent somewhere inside.
  3. The mean value theorem: the average slope is attained somewhere; then Cauchy's version.
  4. Applying Rolle repeatedly writes a function near a point as a polynomial plus an estimable remainder — Taylor expansion.

Each step is only a corollary of the previous one, yet the last answers a very practical question: how large is the error when a polynomial replaces a function?

Timeline

TimeTopic
0:00Recap: differentiability, differentiability implies continuity, sum/scalar/Leibniz/quotient/chain rules
5:34Local maxima and local minima
10:00Theorem: the derivative vanishes at an interior extremum (proof)
17:38Critical points; the examples x2x^2 and x3x^3
20:15Rolle's theorem and its three-case proof
25:49The mean value theorem via an auxiliary function
32:42Cauchy's mean value theorem
43:59Taylor expansion: the first-order case first
1:04:07The general (k−1)(k-1)-st Taylor polynomial and remainder
1:17:14L'Hôpital's rule deferred to the next lecture

Recap: differentiability and five rules

ff is differentiable at x0x_0 when the difference quotient

f(x)−f(x0)x−x0\frac{f(x)-f(x_0)}{x-x_0}

has a limit as x→x0x\to x_0 with x≠x0x\ne x_0; that limit is f′(x0)f'(x_0). The previous lecture proved that differentiability implies continuity and established five rules — sum, scalar multiple, the Leibniz product rule, the quotient rule (with nonzero denominator), and the chain rule:

(fg)′=f′g+fg′,(fg)′=f′g−fg′g2,(g∘f)′(x)=g′(f(x))f′(x).(fg)'=f'g+fg', \qquad \left(\frac fg\right)'=\frac{f'g-fg'}{g^2}, \qquad (g\circ f)'(x)=g'\big(f(x)\big)f'(x).

Together these let us differentiate polynomials, rational functions and sufficiently smooth composites without further thought.

Local extrema

Let ff be defined on an open interval containing x0x_0. Say ff has a local maximum at x0x_0 if there is δ>0\delta>0 such that

f(x)≤f(x0)for all x with ∣x−x0∣<δ.f(x)\le f(x_0)\quad\text{for all }x\text{ with }|x-x_0|<\delta .

A local minimum reverses the inequality. Two points matter:

  • Only a neighbourhood of x0x_0 is involved; values far away are irrelevant.
  • Neither differentiability nor even continuity is required.

The picture in the lecture: a local maximum is merely the highest point in some small window, while outside that window the function may climb much higher. Every global maximum is local, but not conversely.

The derivative vanishes at an interior extremum

Theorem (Fermat). Let ff be differentiable on an interval, let x0x_0 be an interior point, and suppose ff has a local maximum or minimum at x0x_0. Then

f′(x0)=0.f'(x_0)=0 .

The interior condition is essential: at an endpoint a function can attain its maximum with nonzero slope.

Proof. Take a local maximum; the minimum case is symmetric. Fix δ>0\delta>0 from the definition.

Right-hand side. For x0<x<x0+δx_0<x<x_0+\delta we have f(x)≤f(x0)f(x)\le f(x_0), so the numerator is nonpositive while x−x0>0x-x_0>0, hence

f(x)−f(x0)x−x0≤0.\frac{f(x)-f(x_0)}{x-x_0}\le 0 .

Letting x→x0+x\to x_0^+, the quotient tends to f′(x0)f'(x_0), and limits preserve weak inequalities, so

f′(x0)≤0.f'(x_0)\le 0 .

Left-hand side. For x0−δ<x<x0x_0-\delta<x<x_0 the numerator is still nonpositive, but now x−x0<0x-x_0<0, hence

f(x)−f(x0)x−x0≥0.\frac{f(x)-f(x_0)}{x-x_0}\ge 0 .

Letting x→x0−x\to x_0^- gives

f′(x0)≥0.f'(x_0)\ge 0 .

Combining, 0≤f′(x0)≤00\le f'(x_0)\le0, so f′(x0)=0f'(x_0)=0. □\square

The key move is to approach from both sides: the numerator is always nonpositive, while the denominator flips sign, so the two one-sided limits have opposite signs — and they must be equal.

If f′(x0)=0f'(x_0)=0, call x0x_0 a critical point of ff.

Two examples: the converse fails

  • f(x)=x2f(x)=x^2 has f′(x)=2xf'(x)=2x, so x=0x=0 is the only critical point, and it is a genuine (indeed global) minimum.
  • f(x)=x3f(x)=x^3 has f′(x)=3x2f'(x)=3x^2, so x=0x=0 is critical, yet x3x^3 takes smaller values to the left and larger values to the right: no extremum. The graph flattens at the origin and then keeps rising.

So vanishing derivative is only a necessary condition. To decide whether a critical point is an extremum, inspect the sign of the derivative on either side, or use higher derivatives.

Rolle's theorem

Theorem. Let ff be continuous on [a,b][a,b] and differentiable on (a,b)(a,b), with f(a)=f(b)f(a)=f(b). Then some x0∈(a,b)x_0\in(a,b) satisfies

f′(x0)=0.f'(x_0)=0 .

The hypothesis is "equal heights at the ends", not necessarily zero.

Proof. Exactly one of three cases occurs:

  1. ff is constant on [a,b][a,b]. Then f′≡0f'\equiv0 and any interior point works.
  2. Some xx has f(x)>f(a)f(x)>f(a).
  3. Some xx has f(x)<f(a)f(x)<f(a).

Case 2: since ff is continuous, the extreme value theorem gives a maximum on [a,b][a,b]. Because some value strictly exceeds the endpoint value, the maximum cannot occur at an endpoint; it occurs at an interior point x0x_0. That point is a local maximum, so Fermat's theorem gives f′(x0)=0f'(x_0)=0.

Case 3 is the same with the minimum instead of the maximum. □\square

Two previously established facts do all the work: a continuous function on a closed interval attains its extrema, and the derivative vanishes at an interior extremum. Rolle's theorem introduces no new idea; it merely joins them.

The mean value theorem (Lagrange)

Theorem. Let ff be continuous on [a,b][a,b] and differentiable on (a,b)(a,b). Then some x0∈(a,b)x_0\in(a,b) satisfies

f′(x0)=f(b)−f(a)b−a.f'(x_0)=\frac{f(b)-f(a)}{b-a}.

The right side is the slope of the chord joining the endpoints — the average rate of change. The theorem says: the average slope is attained as an instantaneous slope somewhere.

Proof. Define the auxiliary function

h(x)=f(x)−f(b)−f(a)b−a(x−a).h(x)=f(x)-\frac{f(b)-f(a)}{b-a}(x-a).

Geometrically this is the function minus the chord: hh is the vertical gap between the graph and the chord.

Rolle's hypotheses hold: hh is ff minus a linear function, hence continuous and differentiable. Check the endpoints:

h(a)=f(a)−f(b)−f(a)b−a⋅0=f(a),h(a)=f(a)-\frac{f(b)-f(a)}{b-a}\cdot 0=f(a), h(b)=f(b)−f(b)−f(a)b−a(b−a)=f(b)−(f(b)−f(a))=f(a).h(b)=f(b)-\frac{f(b)-f(a)}{b-a}(b-a)=f(b)-\big(f(b)-f(a)\big)=f(a).

So h(a)=h(b)h(a)=h(b). Rolle gives x0∈(a,b)x_0\in(a,b) with h′(x0)=0h'(x_0)=0. Since

h′(x)=f′(x)−f(b)−f(a)b−a,h'(x)=f'(x)-\frac{f(b)-f(a)}{b-a},

setting it to zero is exactly the claim. □\square

Where does the auxiliary function come from? Rolle needs equal endpoint values. The graph and its chord coincide at aa and at bb, so "function minus chord" automatically satisfies the endpoint condition; and its derivative is "f′f' minus the average slope". That is the entire motivation.

Cauchy's mean value theorem

Theorem. Let f,gf,g be continuous on [a,b][a,b] and differentiable on (a,b)(a,b). Then some x0∈(a,b)x_0\in(a,b) satisfies

f′(x0)(g(b)−g(a))=g′(x0)(f(b)−f(a)).f'(x_0)\big(g(b)-g(a)\big)=g'(x_0)\big(f(b)-f(a)\big).

If g(b)≠g(a)g(b)\ne g(a) and g′(x0)≠0g'(x_0)\ne0, this can be written

f′(x0)g′(x0)=f(b)−f(a)g(b)−g(a).\frac{f'(x_0)}{g'(x_0)}=\frac{f(b)-f(a)}{g(b)-g(a)}.

It looks like "the mean value theorem for two functions at once". Applied separately, the ordinary theorem gives one point for ff and possibly a different point for gg; the Cauchy version guarantees one point satisfying both. That is not obvious.

Proof. Move everything to one side and set

h(x)=f(x)(g(b)−g(a))−g(x)(f(b)−f(a)).h(x)=f(x)\big(g(b)-g(a)\big)-g(x)\big(f(b)-f(a)\big).

Then hh is continuous and differentiable, with

h′(x)=f′(x)(g(b)−g(a))−g′(x)(f(b)−f(a)),h'(x)=f'(x)\big(g(b)-g(a)\big)-g'(x)\big(f(b)-f(a)\big),

which is precisely the expression to be made zero. At the endpoints,

h(a)=f(a)(g(b)−g(a))−g(a)(f(b)−f(a))=f(a)g(b)−g(a)f(b),h(a)=f(a)\big(g(b)-g(a)\big)-g(a)\big(f(b)-f(a)\big) =f(a)g(b)-g(a)f(b), h(b)=f(b)g(b)−f(b)g(a)−g(b)f(b)+g(b)f(a)=f(a)g(b)−g(a)f(b).h(b)=f(b)g(b)-f(b)g(a)-g(b)f(b)+g(b)f(a) =f(a)g(b)-g(a)f(b).

They agree, so h(a)=h(b)h(a)=h(b) and Rolle gives x0x_0 with h′(x0)=0h'(x_0)=0, which is the claim. □\square

Relation to the ordinary theorem. Take g(x)=xg(x)=x. Then g(b)−g(a)=b−ag(b)-g(a)=b-a and g′(x0)=1g'(x_0)=1, and Cauchy's identity becomes

f′(x0)(b−a)=f(b)−f(a),f'(x_0)(b-a)=f(b)-f(a),

the ordinary mean value theorem. The Cauchy form is therefore the more general statement.

Taylor expansion: first order

Let ff be differentiable with f′f' differentiable (so ff is twice differentiable). Near aa, approximate by the linear polynomial

P1(x)=f(a)+f′(a)(x−a).P_1(x)=f(a)+f'(a)(x-a).

It matches value and first derivative: P1(a)=f(a)P_1(a)=f(a) and P1′(a)=f′(a)P_1'(a)=f'(a). The question is the size of the error.

Theorem (first-order Taylor). Let ff be twice differentiable on an interval containing aa and bb. Then some cc strictly between aa and bb satisfies

f(b)=P1(b)+f′′(c)2(b−a)2.f(b)=P_1(b)+\frac{f''(c)}{2}(b-a)^2 .

The remainder f′′(c)2(b−a)2\dfrac{f''(c)}{2}(b-a)^2 is controllable as soon as a bound on f′′f'' is known.

Proof (Rolle twice). Fix a,ba,b and define the number

M=2(f(b)−P1(b))(b−a)2,M=\frac{2\big(f(b)-P_1(b)\big)}{(b-a)^2},

so that, by construction,

f(b)−P1(b)−M2(b−a)2=0.f(b)-P_1(b)-\frac{M}{2}(b-a)^2=0 .

Set

h(x)=f(x)−P1(x)−M2(x−a)2.h(x)=f(x)-P_1(x)-\frac{M}{2}(x-a)^2 .

Then h(b)=0h(b)=0 by the definition of MM, and

h(a)=f(a)−P1(a)−0=0,h(a)=f(a)-P_1(a)-0=0,

because (a−a)2=0(a-a)^2=0 and P1(a)=f(a)P_1(a)=f(a).

Thus h(a)=h(b)h(a)=h(b), and Rolle gives c1∈(a,b)c_1\in(a,b) with h′(c1)=0h'(c_1)=0.

Next,

h′(x)=f′(x)−f′(a)−M(x−a),h'(x)=f'(x)-f'(a)-M(x-a),

since P1′(x)=f′(a)P_1'(x)=f'(a). At x=ax=a,

h′(a)=f′(a)−f′(a)−0=0.h'(a)=f'(a)-f'(a)-0=0 .

Apply Rolle to h′h' on [a,c1][a,c_1] — both endpoints vanish — to get c2∈(a,c1)c_2\in(a,c_1) with h′′(c2)=0h''(c_2)=0.

Finally,

h′′(x)=f′′(x)−M,h''(x)=f''(x)-M,

because P1P_1 has zero second derivative and M2(x−a)2\frac{M}{2}(x-a)^2 has second derivative MM. Hence

0=h′′(c2)=f′′(c2)−M  ⟹  M=f′′(c2).0=h''(c_2)=f''(c_2)-M \implies M=f''(c_2).

Substituting back into the definition of MM gives the formula, with c=c2∈(a,b)c=c_2\in(a,b). □\square

The general Taylor formula

Repeating the argument kk times gives the kk-th order version. Let ff be kk times differentiable on an interval containing aa and bb, and define the Taylor polynomial of degree k−1k-1

Pk−1(x)=∑i=0k−1f(i)(a)i!(x−a)i=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯+f(k−1)(a)(k−1)!(x−a)k−1.P_{k-1}(x)=\sum_{i=0}^{k-1}\frac{f^{(i)}(a)}{i!}(x-a)^i =f(a)+f'(a)(x-a)+\frac{f''(a)}{2!}(x-a)^2+\cdots+\frac{f^{(k-1)}(a)}{(k-1)!}(x-a)^{k-1}.

Theorem (Taylor with Lagrange remainder). Some cc strictly between aa and bb satisfies

f(b)=Pk−1(b)+f(k)(c)k!(b−a)k.f(b)=P_{k-1}(b)+\frac{f^{(k)}(c)}{k!}(b-a)^k .

The last term is the remainder. For k=2k=2 this is the previous result, since P1P_1 is the polynomial of degree 11 and the remainder is divided by 2!2!.

Proof sketch. Identical to the case k=2k=2, just repeated.

  1. Put M=k! (f(b)−Pk−1(b))(b−a)kM=\dfrac{k!\,\big(f(b)-P_{k-1}(b)\big)}{(b-a)^k}, so that h(b)=0h(b)=0 for
h(x)=f(x)−Pk−1(x)−Mk!(x−a)k.h(x)=f(x)-P_{k-1}(x)-\frac{M}{k!}(x-a)^k .
  1. h(a)=0h(a)=0, because Pk−1(a)=f(a)P_{k-1}(a)=f(a) and (a−a)k=0(a-a)^k=0.

  2. Rolle gives c1∈(a,b)c_1\in(a,b) with h′(c1)=0h'(c_1)=0.

  3. For j=1,…,k−1j=1,\dots,k-1, the jj-th derivative of Pk−1P_{k-1} at aa equals f(j)(a)f^{(j)}(a), while every derivative of (x−a)k(x-a)^k of order below kk vanishes at aa. Hence

h(j)(a)=0,j=0,1,…,k−1.h^{(j)}(a)=0,\qquad j=0,1,\dots,k-1 .
  1. Apply Rolle to h′h' on [a,c1][a,c_1] to get c2∈(a,c1)c_2\in(a,c_1) with h′′(c2)=0h''(c_2)=0; then apply Rolle to h′′h'' on [a,c2][a,c_2], and so on. Each application moves the right endpoint leftward. The kk-th application gives ck∈(a,b)c_k\in(a,b) with
h(k)(ck)=0.h^{(k)}(c_k)=0 .
  1. Since the kk-th derivative of Pk−1P_{k-1} is zero and that of Mk!(x−a)k\frac{M}{k!}(x-a)^k is MM,
h(k)(x)=f(k)(x)−M  ⟹  M=f(k)(ck).h^{(k)}(x)=f^{(k)}(x)-M \implies M=f^{(k)}(c_k).

Substituting into the definition of MM completes the proof. □\square

The remainder is valuable because it is estimable: if ∣f(k)∣≤C|f^{(k)}|\le C on the interval, then

∣f(b)−Pk−1(b)∣≤Ck!∣b−a∣k.|f(b)-P_{k-1}(b)|\le \frac{C}{k!}|b-a|^k .

The bound shrinks extremely fast in kk because the factorial sits in the denominator. For smooth functions, low-degree polynomials therefore give excellent local approximations — the practical meaning of Taylor expansion.

What this lecture establishes

  • Interior local extremum plus differentiability ⇒\Rightarrow vanishing derivative; the converse fails (x3x^3).
  • Rolle: equal endpoint heights force a horizontal tangent inside; the proof uses the extreme value theorem and Fermat.
  • Mean value theorem: f′(x0)=f(b)−f(a)b−af'(x_0)=\dfrac{f(b)-f(a)}{b-a}, via "function minus chord".
  • Cauchy: f′(x0)(g(b)−g(a))=g′(x0)(f(b)−f(a))f'(x_0)\big(g(b)-g(a)\big)=g'(x_0)\big(f(b)-f(a)\big); taking g(x)=xg(x)=x recovers the ordinary theorem.
  • First-order Taylor: f(b)=f(a)+f′(a)(b−a)+f′′(c)2(b−a)2f(b)=f(a)+f'(a)(b-a)+\dfrac{f''(c)}{2}(b-a)^2.
  • General Taylor: f(b)=Pk−1(b)+f(k)(c)k!(b−a)kf(b)=P_{k-1}(b)+\dfrac{f^{(k)}(c)}{k!}(b-a)^k, proved by applying Rolle kk times.
  • L'Hôpital's rule appears in the notes but was deferred in class.

Comprehension check

1. Prove Fermat's theorem from the definition of a local extremum using one-sided difference quotients, and explain why x0x_0 must be interior.

Reference answer: Suppose x0x_0 is a local maximum and take δ>0\delta>0 from the definition. For 0<x−x0<δ0<x-x_0<\delta the numerator f(x)−f(x0)≤0f(x)-f(x_0)\le0 and the denominator is positive, so the quotient is ≤0\le0; letting x→x0+x\to x_0^+ gives f′(x0)≤0f'(x_0)\le0. For −δ<x−x0<0-\delta<x-x_0<0 the numerator is still ≤0\le0 but the denominator is negative, so the quotient is ≥0\ge0; letting x→x0−x\to x_0^- gives f′(x0)≥0f'(x_0)\ge0. Both one-sided limits equal f′(x0)f'(x_0), hence f′(x0)=0f'(x_0)=0. Interiority is needed because the argument must approach from both sides; at an endpoint only one side is available and only one inequality survives. For instance f(x)=xf(x)=x on [0,1][0,1] attains its maximum at x=1x=1, yet f′(1)=1≠0f'(1)=1\ne0.

2. Give an example of a point where the derivative vanishes but there is no extremum, and explain why Rolle's theorem cannot be run backwards.

Reference answer: f(x)=x3f(x)=x^3 has f′(x)=3x2f'(x)=3x^2, so f′(0)=0f'(0)=0, but f(x)<f(0)f(x)<f(0) for x<0x<0 and f(x)>f(0)f(x)>f(0) for x>0x>0; the origin is neither a maximum nor a minimum. Rolle only asserts the existence of a point with zero derivative. Its converse would claim that a zero derivative forces equal endpoint heights on some interval, which is false: around the origin of x3x^3 choose any [a,b][a,b]; then f(a)≠f(b)f(a)\ne f(b) while f′(0)=0f'(0)=0 still holds. The theorem gives existence, never location, and cannot be inverted.

3. How is the auxiliary function h(x)=f(x)−f(b)−f(a)b−a(x−a)h(x)=f(x)-\dfrac{f(b)-f(a)}{b-a}(x-a) discovered?

Reference answer: Rolle requires equal values at the endpoints. The graph of ff and the chord L(x)=f(a)+f(b)−f(a)b−a(x−a)L(x)=f(a)+\frac{f(b)-f(a)}{b-a}(x-a) agree there: L(a)=f(a)L(a)=f(a) and L(b)=f(b)L(b)=f(b). Hence h=f−Lh=f-L satisfies h(a)=h(b)=0h(a)=h(b)=0. Moreover h′=f′−f(b)−f(a)b−ah'=f'-\frac{f(b)-f(a)}{b-a}, so h′=0h'=0 is exactly the conclusion. Geometrically hh is the vertical distance from the graph to the chord, and the mean value theorem says that this distance has a critical point, i.e. the tangent is parallel to the chord.

4. Prove Cauchy's mean value theorem and verify that g(x)=xg(x)=x recovers the ordinary one.

Reference answer: Set h(x)=f(x)(g(b)−g(a))−g(x)(f(b)−f(a))h(x)=f(x)(g(b)-g(a))-g(x)(f(b)-f(a)). It is continuous and differentiable, with

h′(x)=f′(x)(g(b)−g(a))−g′(x)(f(b)−f(a)).h'(x)=f'(x)\big(g(b)-g(a)\big)-g'(x)\big(f(b)-f(a)\big).

At the endpoints, h(a)=f(a)g(b)−g(a)f(b)h(a)=f(a)g(b)-g(a)f(b) and h(b)=f(b)g(b)−f(b)g(a)−g(b)f(b)+g(b)f(a)=f(a)g(b)−g(a)f(b)h(b)=f(b)g(b)-f(b)g(a)-g(b)f(b)+g(b)f(a)=f(a)g(b)-g(a)f(b), so the values agree. Rolle yields h′(x0)=0h'(x_0)=0, i.e. f′(x0)(g(b)−g(a))=g′(x0)(f(b)−f(a))f'(x_0)(g(b)-g(a))=g'(x_0)(f(b)-f(a)). With g(x)=xg(x)=x we get g(b)−g(a)=b−ag(b)-g(a)=b-a and g′(x0)=1g'(x_0)=1, leaving f′(x0)(b−a)=f(b)−f(a)f'(x_0)(b-a)=f(b)-f(a).

5. Why does the proof of Taylor's theorem apply Rolle repeatedly, and what is the role of MM?

Reference answer: MM is a constant chosen so that f(b)−Pk−1(b)−Mk!(b−a)k=0f(b)-P_{k-1}(b)-\frac{M}{k!}(b-a)^k=0, which makes the auxiliary function h(x)=f(x)−Pk−1(x)−Mk!(x−a)kh(x)=f(x)-P_{k-1}(x)-\frac{M}{k!}(x-a)^k vanish at bb. Because Pk−1P_{k-1} matches ff in value and in all derivatives up to order k−1k-1 at aa, and because every derivative of (x−a)k(x-a)^k of order below kk vanishes at aa, we get h(j)(a)=0h^{(j)}(a)=0 for j=0,…,k−1j=0,\dots,k-1. That supplies kk pairs of equal endpoints: (h(a),h(b))(h(a),h(b)), (h′(a),h′(c1))(h'(a),h'(c_1)), and so on. Each Rolle application raises the derivative order by one and moves the right endpoint left; the kk-th gives h(k)(c)=0h^{(k)}(c)=0. Since h(k)=f(k)−Mh^{(k)}=f^{(k)}-M, this forces M=f(k)(c)M=f^{(k)}(c). In short, MM converts the unknown remainder coefficient into a constant that satisfies the endpoint conditions Rolle needs.

Relation to neighbouring lectures

Rolle's theorem is the single engine here, producing the mean value theorem, Cauchy's theorem and Taylor's formula. The next lecture first uses Cauchy's theorem to prove L'Hôpital's rule (explicitly postponed), then applies Taylor polynomials to concrete functions and begins constructing the Riemann integral. Later, Taylor remainders become a basic tool for testing convergence of series and bounding integration errors.

Note the reuse pattern in these proofs: one local observation about extrema, wrapped in different auxiliary functions, answers apparently unrelated questions — where the average slope is attained, and how large the gap between a function and a polynomial can be. Finding an auxiliary function that turns a problem into Rolle's theorem is one of the most common techniques in real analysis.

来源