Proof: Assume:
- Assume is continuous on
- Assume is differentiable on
- Suppose for some
- Case (a):
- Suppose for all
- Then for all derivative constant rule
- Then with 2, ext gen
- Case (b):
- Suppose s.t
- Then, by EVT, there exists a s.t is a local maxima/minima
- Suppose is a local maxima
- Then, note that exists as f is differentiable at
- By fermatβs theorem,
- Thus, with
- Suppose is a local minima
- Then, note that exists as f is differentiable at
- By fermatβs theorem,
- Thus, with
- Suppose is a local maxima
- Thus, with
- Thus, with