Maxima and Minima with Applications