As
f is continuous on
[a,b], it attains an absolute minimum and an absolute maximum in
[a,b]. We wish to apply
Lemma 4.2.2, and so we need to find some
c∈(a,b) where
f attains a minimum or a maximum. Write
K:=f(a)=f(b). If there exists an
x such that
f(x)>K, then the absolute maximum is larger than
K and hence occurs at some
c∈(a,b), and therefore
f′(c)=0. On the other hand, if there exists an
x such that
f(x)<K, then the absolute minimum occurs at some
c∈(a,b), and so
f′(c)=0. If there is no
x such that
f(x)>K or
f(x)<K, then
f(x)=K for all
x and then
f′(x)=0 for all
x∈[a,b], so any
c∈(a,b) works.