The Second Derivative Test in Applications of Differentiation