Taylor's theorem with remainder
Taylor's theorem is the mean value theorem with more derivatives. The MVT is its first-order case: f(b) = f(a) + f′(c)(b − a). With n derivatives available, we match the first n at a using a polynomial, and the remainder measures the gap. The Lagrange form puts that gap at a single hidden point — exactly the MVT spirit, one order up.
Taylor's theorem (Lagrange remainder). Suppose f has n+1 derivatives on an
open interval containing a and x. Then there is a point c strictly between a and x
with
f(x) = P_n(x) + R_n(x),
where the degree-n Taylor polynomial at a is
P_n(x) = f(a) + f'(a)(x-a) + f''(a)/2! (x-a)^2 + ... + f^(n)(a)/n! (x-a)^n,
and the remainder is
R_n(x) = f^(n+1)(c) / (n+1)! · (x - a)^(n+1).
Worked estimate: f(x) = e^x at a = 0, n = 2, on [0, 1].
P_2(x) = 1 + x + x^2/2, R_2(x) = e^c/6 · x^3 for some c in (0, x).
For x in [0,1], c < 1 so e^c < e < 3, giving the honest bound
|e^x - (1 + x + x^2/2)| = |R_2(x)| <= 3/6 · x^3 = x^3 / 2.
At x = 0.1: error <= (0.1)^3 / 2 = 0.0005. (True error ≈ 0.00017 — within bound.)What a derivative does, and does not, tell you
Derivatives are powerful but not omniscient. Two honest cautions close the track. First, smooth is not analytic: a function can have all higher-order derivatives at a point and still not equal its Taylor series there. Second, derivatives are weirder than continuous functions in one specific way captured by Darboux's theorem.
The classic smooth-but-not-analytic example:
f(x) = exp(-1/x^2) for x ≠ 0, f(0) = 0.
One can show (by induction, using exp decay beating every polynomial) that
f^(n)(0) = 0 for EVERY n = 0, 1, 2, ...
So every Taylor coefficient at 0 is 0, and the Taylor polynomial P_n is the
zero polynomial for all n. Its Taylor 'series' is therefore 0.
But f(x) > 0 for every x ≠ 0. So the Taylor series (= 0) does NOT equal f
near 0. Here the remainder R_n(x) = f(x) - 0 = f(x) does NOT go to 0.
Moral: infinitely differentiable (smooth) is strictly weaker than real-analytic.Finally, Darboux's theorem says every derivative has the intermediate value property: if f is differentiable on [a, b], then f′ takes every value between f′(a) and f′(b) — even though f′ need not be continuous. So a derivative cannot have a jump discontinuity. This is the precise sense in which “the derivative does not tell you everything” has limits: it can be discontinuous, but never by jumping.