Let f(x) be a monotonic function defined on the closed bounded set G. Show that f has a maximizer and a minimizer in the set G.