The derivative replaces a function near a point by its best linear approximation, and the mean value theorem is the lever that turns that local statement into a global one, bounding how far a function can travel from its derivative. From it follow the sign tests for monotonicity and the vanishing of the derivative of a constant. It also gives Taylor's theorem, the polynomial approximation with an exact error term that the characteristic function expansion runs on. This post builds them from the continuity of the previous post [1], [2].
#The derivative
A function is differentiable at an interior point of its domain when the limit
exists. The number is the derivative.
Differentiability implies continuity, but not conversely.
If is differentiable at , then is continuous at .
For , write . As the difference quotient tends to and tends to , so the product tends to by the product law for limits. Hence , which is continuity at .
The converse fails, as the absolute value function is continuous but not differentiable at the origin, where its difference quotients are .
#The mean value theorem
The bridge from local to global passes through extrema. An interior extremum pins the derivative to zero.
If has a local maximum or minimum at an interior point and is differentiable there, then .
Suppose is a local maximum, so near . For near the quotient , and letting gives . For the quotient is , and gives . The two force . A minimum is the maximum of .
If is continuous on , differentiable on , and , then for some .
By the extreme value theorem attains a maximum and a minimum on . If both are attained at the endpoints, then since the maximum and minimum are equal, so is constant and throughout . Otherwise an extremum is attained at an interior point , where Proposition 3 gives .
Rolle's theorem tilts into the mean value theorem by subtracting the secant line.
If is continuous on and differentiable on , then there is with
Apply Theorem 4 to , which is continuous on , differentiable on , and has . The conclusion reads , which is Equation (2).
The mean value theorem is the source of the qualitative calculus. A function with on an interval is constant, because Equation (2) makes every difference vanish, and a function with is strictly increasing by the same identity.
#Taylor's theorem
The mean value theorem is the first-order case of a general approximation. A function with derivatives is approximated near a point by its degree- Taylor polynomial, with an error governed by the next derivative.
Suppose has derivatives on an interval containing and . Then there is a point strictly between and with
Assume ; for both sides of Equation (3) equal and the remainder vanishes, so the claim is trivial. Fix and define , the error of the Taylor polynomial expanded at the moving base point . The sum telescopes under differentiation. Write , so . For , , while . Reindexing the second pieces by turns into , which cancels all but the first piece, leaving
Now set , which is well defined since . Then and , since . Because exists at every point of the interval (endpoints included), is differentiable and hence continuous there, so , a combination of with polynomial coefficients, and are continuous on the closed interval between and and differentiable on its interior. By Rolle's theorem there is strictly between and with . Differentiating, , so gives
after substituting Equation (4). Cancelling , which is nonzero because , solves for . Since by definition, rearranging is Equation (3).
Taking recovers the mean value theorem, so Taylor's theorem is its higher-order extension, each derivative buying one more order of polynomial accuracy. The remainder is an explicit multiple of the -st derivative, so it bounds the approximation error. When the derivatives are bounded it shrinks like , giving the small- remainder the moment expansion of a characteristic function uses to read the central limit theorem off a second-order Taylor approximation. Differentiation turns a function into its derivatives, and Taylor's theorem turns the derivatives back into the function, recovering it up to the explicit remainder.