These are the fundamental theorems of differential calculus: they link the value of the derivative at a point to the behaviour of the function on a whole interval. The monotonicity test follows from them.
Rolle's theorem
Theorem (Rolle). Let f:[a,b]→R be continuous on [a,b] and differentiable in ]a,b[, with f(a)=f(b). Then there exists c∈]a,b[ with
f′(c)=0.
Example.f(x)=x2−2x on [0,2]: f(0)=f(2)=0 and f′(c)=2c−2=0 for c=1.
Proof. By Weierstrass' theorem m=minf and M=maxf exist, so m≤f(x)≤M on [a,b].
Case 1: m or M is attained at an interior point c. An absolute extremum is also relative, c is interior and f is differentiable at c: by Fermat's theorem f′(c)=0.
Case 2: both are attained only at a and b. Since f(a)=f(b), m=M, so f is constant and f′(c)=0 for every c∈]a,b[. ■
All hypotheses are needed.
Without continuity at an endpoint: f(x)=x on [0,1[ with f(1)=0 has f(0)=f(1) but f′=1 everywhere.
Without differentiability: ∣x∣ on [−1,1] has f(−1)=f(1), but the flat point would be 0, where f is not differentiable.
Lagrange's theorem (mean value theorem)
Theorem (Lagrange). Let f:[a,b]→R be continuous on [a,b] and differentiable in ]a,b[. Then there exists c∈]a,b[ with
f′(c)=b−af(b)−f(a).
Example.f(x)=x3 on [0,2]: the mean slope is 28−0=4 and f′(c)=3c2=4 for c=32≈1.15. Another: x2 on [0,2] has chord slope 2 and f′(1)=2.
Rolle is the special case f(a)=f(b) (the right-hand side is 0).
Geometric meaning. The chord through (a,f(a)) and (b,f(b)) is y=f(a)+b−af(b)−f(a)(x−a). There is a point c where the tangent is parallel to the chord.
Physical meaning. If s(t) is a car's position, the average velocity b−as(b)−s(a) equals the instantaneous velocity at some instant: after 90 km in one hour, the speedometer read exactly 90 km/h at least once.
Proof
Apply Rolle to the vertical distance between graph and chord. Let
g(x)=f(x)−[f(a)+b−af(b)−f(a)(x−a)].
g is continuous on [a,b] and differentiable in ]a,b[.
g(a)=0 and g(b)=f(b)−f(a)−b−af(b)−f(a)(b−a)=0.
By Rolle there is c with g′(c)=f′(c)−b−af(b)−f(a)=0. ■
The theorem says cexists, not where it is or how many there are.
Consequence 1: functions with zero derivative
Theorem. Let f:[a,b]→R be continuous on [a,b] and differentiable in ]a,b[. Then
f is constant on [a,b]⟺f′(x)=0∀x∈]a,b[.
Proof. (⇒) The derivative of a constant is 0. (⇐) Take x1<x2 in [a,b]. Lagrange on [x1,x2] gives c∈]x1,x2[ with x2−x1f(x2)−f(x1)=f′(c)=0, so f(x1)=f(x2). ■
Example.f(x)=arctanx+arctanx1 has f′=0 on ]0,+∞[, so f(x)=f(1)=4π+4π=2π there.
If the domain is not an interval, f′=0 does not imply f constant. Take f(x)=arctanx+arctanx1 on R∖{0}:
f′(x)=1+x21+1+x211⋅(−x21)=1+x21−x2+11=0∀x=0,
yet limx→−∞f=−2π and limx→+∞f=2π. In fact
arctanx+arctanx1=⎩⎨⎧2π−2πx>0x<0,
(from f(1)=2π, f(−1)=−2π): f is piecewise constant. In general, if f′=0 on a non-interval set, f is constant on each interval of the domain but with possibly different constants.
Using Rolle without checking f(a)=f(b), continuity and differentiability.
Thinking the theorem gives the value of c.
Concluding "f′=0 so f is constant" on a domain that is not an interval.
Versione ripasso
Rolle.f continuous on [a,b], differentiable in ]a,b[, f(a)=f(b)⇒∃c∈]a,b[ with f′(c)=0. Example: x2−2x on [0,2], c=1.
Proof. Weierstrass gives min and max. If one is interior at c, Fermat gives f′(c)=0. Otherwise both are at the endpoints with f(a)=f(b), so f is constant.
Hypotheses needed: ∣x∣ on [−1,1] (not differentiable at 0); f(x)=x on [0,1[ with f(1)=0 (not continuous).
Lagrange. Same hypotheses without f(a)=f(b)⇒∃c with f′(c)=b−af(b)−f(a): the tangent at c is parallel to the chord. Example: x3 on [0,2], 3c2=4, c=32.
Proof. Apply Rolle to g(x)=f(x)−[f(a)+b−af(b)−f(a)(x−a)], with g(a)=g(b)=0. The theorem gives existence of c, not its location.
Zero derivative. On an interval, f is constant iff f′=0 (Lagrange on [x1,x2] gives f(x2)−f(x1)=f′(c)(x2−x1)=0). On a non-interval it fails: arctanx+arctanx1=±2π for x≷0 with zero derivative.
Uses. Monotonicity test; Taylor's formula with Lagrange remainder (case n=0); two antiderivatives differ by a constant.
Typical mistakes. Not checking the hypotheses; expecting a value for c; "f′=0 so constant" on a non-interval.