Fermat's theorem
Fermat's theorem (stationary points)