stationary points differentiation