First suppose f attains a local maximum at x0, then ∃δ>0, s.t. f(x)≤f(x0),∀x∈(a,b)∩(x0−δ,x0+δ) Since f is differentiable at x0, the limit x→x0;x∈(a,b))limx−x0f(x)−f(x0) exists, thus both left and right limit exists and is equal to f′(x0). Notice that x−x0f(x)−f(x0)≥0,x∈(a,b)∩(x0−δ,x0) and x−x0f(x)−f(x0)≤0,x∈(a,b)∩(x0,x0+δ) We shall have f′(x0)=x→x0;x∈(a,b)∩(x0−δ,x0)limx−x0f(x)−f(x0)≥0 and f′(x0)=x→x0;x∈(a,b)∩(x0,x0+δ)limx−x0f(x)−f(x0)≤0 Thus f′(x0)=0. The case when f attains a local minimum at x0 can be similarly proved.
Exercise 10.2.2
Define f(x)=−∣x∣,x∈(−1,1) Then f is continuous and attains a global maximum at 0, but is not differentiable at 0. This doesn’t contradict Proposition 10.2.6, since Proposition 10.2.6 requires f to be differentiable at local maximum or minimum.
Exercise 10.2.3
Define f(x)=x3,x∈(−1,1) Then f is differentiable at 0, f′(0)=0, but 0 is neither a local minimum nor local maximum. This doesn’t contradict Proposition 10.2.6, since derivative equals zero is a necessary but not sufficient condition for a a local minimum nor local maximum.
Exercise 10.2.4
If ∀x∈(a,b),g(x)=g(a)=g(b), then g is constant on [a,b] and g′(x)=0,x∈(a,b) by Theorem 10.1.13. Now suppose if ∃x∈(a,b),g(x)=g(a), then g(x)=g(b). Since g is continuous on [a,b] we can use the maximum principle, say f attains it’s maximum at xmax∈[a,b], attains it’s minimum at xmin∈[a,b]. We either have g(x)>g(a) or g(x)<g(a) by the trichotomy of real numbers. If g(x)>g(a), then f can’t attain its maximum at a or b, so xmax∈(a,b), since xmax is also a local maximum, we have f′(xmax)=0 by Proposition 10.2.6. If g(x)<g(a), then f can’t attain its minimum at a or b, so xmin∈(a,b), since xmin is also a local minimum, we have f′(xmin)=0 by Proposition 10.2.6. In conclusion the statement is true in all cases.
Exercise 10.2.5
We let F(y)=f(y)−b−af(b)−f(a)(y−a) Then by Proposition 9.4.9 and Theorem 10.1.13, F(y) is continuous on [a,b] and differentiable on (a,b). Since F(a)=f(a),F(b)=f(a), we can use Roll’s theorem to say ∃x∈(a,b),F′(x)=0, or F′(x)=f′(x)−b−af(b)−f(a)=0⇒f′(x)=b−af(b)−f(a)
Exercise 10.2.6
For any x,y∈[a,b], if x=y the statement is obviously true. Without loss of generality we can suppose x<y, then f∣[x,y] is continuous on [x,y] and differentiable on (x,y), thus by mean value theorem, we can find a c∈(x,y)⊂(a,b) such that f′(c)=y−xf(y)−f(x)=x−yf(x)−f(y) Since ∣f′(x)∣≤M,∀x∈(a,b), we have ∣f′(c)∣=∣∣∣∣x−yf(x)−f(y)∣∣∣∣≤M⇒∣f(x)−f(y)∣≤M∣x−y∣
Exercise 10.2.7
Since f′ is bounded, ∃M>0, s.t. ∣f′(x)∣≤M,∀x∈R. Then given ∀ϵ>0, let δ=ϵ/M, then as long as ∣x−y∣<δ, we can get from Exercise 10.2.6 that ∣f(x)−f(y)∣≤M∣x−y∣<Mδ=ϵ which means f is uniformly continuous.