Fermat’s theorem (stationary points)
Let be a continuous function and suppose that is a local extremum of . If is differentiable
in then .
Moreover if has a local maximum at and is differentiable at (the right derivative exists)then ; if has a local minimum at then .If is differentiable in andhas a local maximum at then while if it has a local minimum at then .