Apply first derivative test (#539)

Apply first derivative test (#539)

Determine nature of stationary points by sign of f′f' around the point.