Let $I := [a,b]$, where $a<b$. Suppose that $f$ is continuous and $1-1$ on $I$. Let $m$ denote the minimum value of $f$ on $I$ and let $M$ denote the maximum value of $f$ on $I$.
(a) Carefully show that either $m = f(a)$ and $M = f(b)$ or $m = f(b)$ and $M = f(a)$.
(b)Deduce from part (a) that $f$ is either strictly inscreasing on $I$ or $f$ is strictly decreasing on $I$.
Should we use the infinum and supremum here? I am a little confused about how to prove this. Could anyone help me out please? Thanks
Here's my general strategy for the case where the min doesn't occur at an endpoint. To write out the proof completely, you'd have to do the same for the max as well, and you'd get a few cases. But they're all the same general idea.
Assume to the contrary that the max/min's do not occur at the end points. Then, without loss of generality, you have a point $c\in (a,b)$ such that $f(c)$ is the minimum value of $f$ on $I$. Thus $f(a)>f(c)$ and $f(b)>f(c)$. Consider $\min({f(a), f(b)})$. Again without loss of generality, let this be $f(a)$. Then by the Intermediate Value Theorem, we know $\exists d\in (c, b)$ with $f(d)=f(a)$ (since $f(b)\geq f(a)\geq f(c)$ and $f$ is continuous). But this contradicts our assumption that $f$ is one to one. So the min must occur at an endpoint.