Proof: Assume:

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