Derivatives and Local Extrema