Rolle's theorem can be generalised in a straight-forward way; given a differentiable function \(f(x)\) we can still say something about \(\diff{f}{x}\text{,}\) even if \(f(a) \neq f(b)\text{.}\) Consider the following sketch:
All we have done is tilt the picture so that \(f(a) \lt f (b)\text{.}\) Now we can no longer guarantee that there will be a point on the graph where the tangent line is horizontal, but there will be a point where the tangent line is parallel to the secant joining \((a,
f(a))\) to \((b, f(b))\text{.}\)
To state this in terms of our first scenario back at the beginning of this section, suppose that you are driving along the \(x\)–axis. At time \(t=a\) you are at \(x=f(a)\) and at time \(t=b\) you are at \(x=f(b)\text{.}\) For simplicity, let's suppose that \(b \gt a\) and \(f(b)\ge
f(a)\text{,}\) just like in the above sketch. Then during the time interval in question you travelled a net distance of \(f(b)-f(a)\text{.}\) It took you \(b-a\) units of time to travel that distance, so your average velocity was \(\frac{f(b)-f(a)}{b-a}\text{.}\) You may very well have been going faster than \(\frac{f(b)-f(a)}{b-a}\) part of the time and slower than \(\frac{f(b)-f(a)}{b-a}\) part of the time. But it is reasonable to guess that at some time between \(t=a\) and \(t=b\) your instantaneous velocity was exactly \(\frac{f(b)-f(a)}{b-a}\text{.}\) The mean value theorem says that, under reasonable assumptions about \(f\text{,}\) this is indeed the case.
Theorem2.13.5The mean value theorem
Let \(a\) and \(b\) be real numbers with \(a \lt b\text{.}\) And let \(f(x)\) be a function so that
\(f(x)\) is continuous on the closed interval \(a \leq x \leq b\text{,}\) and
\(f(x)\) is differentiable on the open interval \(a \lt x \lt b\)
We can return to our initial car-motivated examples. Say you are driving along a straight road in a car that can go at most \(80km/h\text{.}\) How far can you go in 2 hours? — the answer is easy, but we can also solve this using MVT.
Let \(s(t)\) be the position of the car in \(km\) at time \(t\) measured in hours.
Then \(s(0)=0\) and \(s(2)=q\text{,}\) where \(q\) is the quantity that we need to bound.
We are told that \(| s'(t) | \leq 80\text{,}\) or equivalently
Now since \(-80 \leq s'(c) \leq 80\) we must have \(-80 \leq q/2 \leq 80\) and hence \(-160 \leq q=s(2) \leq 160\text{.}\)
More generally if we have some information about the derivative, then we can use the MVT to leverage this information to tell us something about the function.