Suppose that the function is continuous on and the limit exists.

(i) Prove that if there is an such that , then has an absolute maximum in .

How to approach this question?

(ii) If there is an such that , does necessarily have an absolute maximum in ?