maximum and minimum values of f(x)