Problem

Source: Romanian National Olympiad 1998 - Grade 11 - Problem 4

Tags: real analysis, continuous function, Increasing



Let $f: \mathbb{R} \to \mathbb{R}$ be a continuous function with the property that for any $a,b \in \mathbb{R},$ $a<b,$ there are $c_1,c_2 \in [a,b],$ $c_1 \le c_2$ such that $f(c_1)= \min_{x \in [a,b]} f(x)$ and $f(c_2)= \max_{x \in [a,b]} f(x).$ Prove that $f$ is increasing.