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 and has a local maximum at then
while if it has a local minimum at then
.
"Fermat's theorem (stationary points)" is owned by paolini.