Continuous function on a segment

Let $f : [a , b] \rightarrow [a ,b]$ , and $f$ is continuous over $[a,b].$ Show that there is a $k \in [a , b]$ such that $f(k) = k.$ Is this it unique ?

Consider the function $g(x):= f(x)-x$. Note that $g(a)=f(a)-a\geq 0$ and $g(b)=f(b)-b\leq 0$. Can you conclude from here?
• It sounds like Intermediate value theoreme :-) . thanks . of course the uniqueness of $~k~~$ depends on wether $~f~$ is monotonous or not . – Hilbert Dec 26 '16 at 17:30
• You're welcome. Also you have the right idea about uniqueness, but be careful: there are non-monotone $f$ for which $k$ is unique and vice-versa. The big point here is that the IVT does not give any idea of the number of roots so we cannot deduce uniqueness. You can write down counterexamples quite quickly. – Matt Dec 26 '16 at 19:11