It is actually a little surprising how much effort it takes to prove the First Derivative Test. We will start by proving some preliminary results that will make it a little easier to follow the logic behind the proof of the First Derivative Test. We’ll begin with (Fermat’s Theorem 9.1.1) which says that if \(f\) attains a maximum (or minimum) at \(x=a\) then \(f^\prime(a)=0.\) More formally:
If \(f(a)\) is a local extremum (either a maximum or a minimum) of \(f(x)\) at \(x=a\text{,}\) and \(f(x)\) is differentiable at \(x=a\) then \(f^\prime(a)=0\text{.}\)
Recall that Fermat’gs Theorem does not say that if \(f^\prime(a)=0\) then \(f(a)\) is an extremum. In fact, we know that this is not true. Rather, it states the converse: If we know that \(f(a)\) is an extremum and \(f^\prime(a)\) exists, then \(f^\prime(a) =0\text{.}\)
It is very rare that we can develop a proof of a theorem by directly writing down the logical steps in order. Usually the process takes a lot of trying, backtracking, trying again, and so on much as we described in our analogy in Chapter 2 about finding your way out of a forest.
Of course, in a textbook it is not practical to list all of the bad ideas we might have just to see that they are, in fact, bad ideas. So we will use the following Scrapwork construct when we are just “thinking about” a problem. The scrapwork is not the proof. The purpose of scrapwork is to engage our intuition and to begin organizing our intuitive understanding so that a rigorous proof will emerge. So, not every statement we make inside a scrapwork construct will necessarily be fully rigorous. If you see a gap in the logic inside a scrapwork construct watch to see how it gets filled in the proof.
If \((a,f(a))\) is a (local) maximum then the slope of the secant line in our diagram, \(\frac{f(a+h)-f(a)}{h}\text{,}\) must be negative when \(h\gt 0\text{.}\) Since the slope is less than zero it follows that
We will only prove the case when \(f(a)\) is a local maximum. The case of a local minimum is very similar. Since \(f(a)\) is a local maximum there is an interval containing \(a\) such that for any \(h\) (sufficiently small that \(a+h\) is also in the interval), \(f(a+h)\leq f(a)\text{.}\) Thus \(f(a+h)-f(a)\leq0\) as seen in the sketch above. If \(h\lt0\) then \(\frac{f(a+h)-f(a)}{h}\geq 0\) and so
Use our proof of the maximum case (Proof 15.1.1) of Fermat’s Theorem 15.1.1 as a guide to constructing a proof of Fermat’s Theorem when \(f(a)\) is a local minimum.