Section 5.2 Local extrema
Let \(I\) be an interval, \(f:I\longrightarrow {\mathbb R}\text{,}\) and \(c\in I\text{.}\)
Informally, \((c,f(c))\) is a local maximum means that \(f(c)\) is at least as high as any other value \(f(x)\) as long as \(x\) remains close enough to \(c\text{.}\) See the picture below. Note that the definition does not preclude the possibility that \(f(c)\) be equal to its neighbors. So for example if \(f(x)\) is constant, every point is a local maximum.
If the function is differentiable, it is clear from the geometric interpretation of the derivative as the slope of the tangent line that the derivative at a local extremum must be zero. In fact this is routinely used in the Calculus course to draw the graph of functions. The only other possibility is that \(f\) is not differentiable. The next theorem makes this precise.
Theorem 5.2.4.
Suppose \(f:I\longrightarrow {\mathbb R}\) and \(c\in I\text{.}\) If \((c,f(c))\) is a local extremum, then either \(f'(c)=0\) or \(f\) is not differentiable at \(x=c\text{.}\)
Hint.
In view of the last theorem, it is convenient to make the following definition.
Definition 5.2.5.
If \(f:I\longrightarrow {\mathbb R}\) and \(c\in I\) is not an endpoint of \(I\text{,}\) we say that \((c,f(c))\) if a critical point of \(f\) if either \(f'(c)=0\text{,}\) or \(f\) is not differentiable at \(x=c\text{.}\) The \(x\)-coordinate \(c\) of a critical point is called a critical number.Note that by definition an endpoint of an interval \(I\) that is the domain of \(f\) is never a critical number. We can now rephrase Theorem 5.2.4 as: If \(c\) is not an endpoint of \(I\) and \((c,f(c))\) is a local extremum, then \((c,f(c))\) is a critical point.