Assume $f$ is a continuous one-to-one function over an interval. Prove that $f$ is strictly monotone.
Attempt
Since we know that $f$ is one-to-one, for every $f(x)$ there is exactly one element $x_0$ that maps to it. Thus, if $f(x) = f(y)$, then $x=y$. Now let's suppose that $f$ isn't monotone. That is, it goes from nonincreasing to nondecreasing. Thus, on some interval $[a,b]$ we must have $f'(x) < 0$ and on some other interval $[c,d]$ we must have $f'(x) > 0$. As a result we must have that $f'(x) = 0$ at some point. How do I show this contradicts the definition of $f$?