I apologize if my question is too elementary for this forum, but i can't find a rigorous proof of the following obvious fact: let f be a real function of one real variable, defined and continous on , with . Then attains a maximum. Which is the standard way to prove this fact?