I am told that f has a continuous derivative and that $a \leq f(x) \leq b$ and $|f'(x)| < 1 \ \forall x \in [a,b]$ and I have to show that $f$ is a contraction.
Now if I take any $x,y \in [a,b]$, the Mean-Value Theorem says that $\exists c \in (a,b)$ such that $$|f(x) - f(y)| = |f'(c)| |x-y|$$ and so clearly this is a contraction.
However I haven't used the condition that $f$ has a continuous derivative or that $f$ is bounded by $a$ and $b$, why are these conditions necessary?
My definition of contractive is that $|g(x) − g(y)| \leq a|x − y|$ for some real value $0 \leq a < 1$ and for all $x$, $y \in [a,b]$.
Thanks