Optimization Problems in Applications of Differentiation