Let a < b and n ∈ ℕ, and suppose that f together with its derivatives f′, …, f⁽ⁿ⁾ is continuous on [a, b]. Then f(b) equals the sum of the terms f⁽ᵏ⁾(a)(b − a)ᵏ/k! over k = 0, …, n − 1, plus a remainder Rₙ that can be written as the integral Rₙ = (1/(n − 1)!)·∫ₐᵇ (b − t)ⁿ⁻¹ f⁽ⁿ⁾(t) dt.
對 n 用歸納法。要證的敘述記為 T(n):只要 f, f′, ⋯, f⁽ⁿ⁾ 都在 [a, b] 上連續,公式就成立。a < b 固定不動。
證明計畫 · 由所求想起 所求是每一個 n 的公式,走歸納。 第一步:n = 1 就是微積分基本定理。 第二步:假設 n 的公式成立,而且多一階導數連續。把 n 的餘項分部積分一次:被微分的是 f 的 n 階導數,被積分的是權重。 第三步:分部積分吐出一個邊界項,正好是 Taylor 多項式的下一項;剩下的積分正好是 n + 1 的餘項。代回去就是 n + 1 的公式。
Proof. For n = 1 the assertion reads f(b) = f(a) + ∫ₐᵇ f′(t) dt. Since f′ is continuous and f is a primitive of it, this is the Fundamental Theorem 30.8.
Assume T(n) and let f, …, f⁽ⁿ⁺¹⁾ be continuous on [a, b]. Apply 30.10 with u(t) = f⁽ⁿ⁾(t), v(t) = −(b − t)ⁿ/n, so that u′ = f⁽ⁿ⁺¹⁾ and v′(t) = (b − t)ⁿ⁻¹ are continuous. Because v(b) = 0 and v(a) = −(b − a)ⁿ/n, ∫ₐᵇ (b − t)ⁿ⁻¹ f⁽ⁿ⁾(t) dt = f⁽ⁿ⁾(a)(b − a)ⁿ/n + (1/n)·∫ₐᵇ (b − t)ⁿ f⁽ⁿ⁺¹⁾(t) dt.
這一步的所求:把 n 的餘項改寫成「一個不含積分的項」加上「一個更高階的積分」。分部積分要決定誰微分、誰積分:f⁽ⁿ⁾ 微分一次變成 f⁽ⁿ⁺¹⁾,正是下一個餘項要的;權重 (b − t)ⁿ⁻¹ 積分一次變成 −(b − t)ⁿ/n,次方升一級。積分出來的 v 特意選成在 t = b 等於零的那一個(primitive 可以差一個常數),於是右端點的邊界項消失,只剩左端點那一項——這就是為什麼 Taylor 多項式只用到 a 點的導數。符號照 30.10 逐項代入:u(b)v(b) = 0;−u(a)v(a) = f⁽ⁿ⁾(a)(b − a)ⁿ/n;−∫ u′v = (1/n)∫ (b − t)ⁿ f⁽ⁿ⁺¹⁾。v′ 的計算是例行的:(b − t)ⁿ 對 t 求導得 −n(b − t)ⁿ⁻¹,再乘 −1/n。
這張圖在說分部積分在做什麼:三條線是權重 (b − t)ⁿ⁻¹ 在 n = 1, 2, 3 時的形狀(縱向依比例縮放,讓三條從同一個高度出發)。每分部積分一次,權重的次方升一級,越靠近 b 的地方被壓得越低,而且在 b 永遠是零——所以邊界項只會在左端點 a 出現。
Dividing by (n − 1)! gives Rₙ = f⁽ⁿ⁾(a)(b − a)ⁿ/n! + Rₙ₊₁, where Rₙ₊₁ = (1/n!)·∫ₐᵇ (b − t)ⁿ f⁽ⁿ⁺¹⁾(t) dt. Since f, …, f⁽ⁿ⁾ are continuous, T(n) applies; substituting this expression for Rₙ adds the term with k = n to the sum and leaves the remainder Rₙ₊₁. This is T(n + 1).
Proof. (a) Let φ(s) = a + (b − a)s for s ∈ [0, 1]. Then φ′ = b − a is continuous, φ(0) = a, φ(1) = b, and b − φ(s) = (b − a)(1 − s). Since h is continuous on φ([0, 1]) = [a, b], 30.12 gives ∫ₐᵇ h(t) dt = (b − a)ⁿ·∫₀¹ (1 − s)ⁿ⁻¹ f⁽ⁿ⁾(φ(s)) ds; dividing by (n − 1)! gives (a).
這張圖在證 (a) 的變數變換:上面的 [0, 1] 被 φ 等速拉伸成下面的 [a, b],四條虛線連起對應的點。每一小段都被拉長同一個倍數 b − a,所以積分多出一個常數因子 b − a;而 t 離右端 b 的距離,恰好是 s 離右端 1 的距離乘上同一個倍數。
(b) The weight p(t) = (b − t)ⁿ⁻¹ is continuous and nonnegative on [a, b], and f⁽ⁿ⁾ is continuous. By 30.9 there is c ∈ [a, b] with ∫ₐᵇ f⁽ⁿ⁾ p = f⁽ⁿ⁾(c)·∫ₐᵇ p = f⁽ⁿ⁾(c)·(b − a)ⁿ/n, the last integral being computed from the primitive −(b − t)ⁿ/n. Dividing by (n − 1)! gives Rₙ = f⁽ⁿ⁾(c)(b − a)ⁿ/n!.