[Math] Fixed point for a continuous function on a compact set

compactnessfixed-point-theoremsreal-analysis

If $f:X \rightarrow X$ is continuous and X is compact, will $f$ have a fixed point?

We know that a contraction will have a fixed point but I have not come across an example of a continuous function on a compact set that does not have a fixed point (admittedly I have not worked with functions outside $\mathbb{R}^k$ where Brouwer's fixed point theorem applies).

Is there an example of a continuous function on a compact set such that the function does not have a fixed point?

Best Answer

Let $X=\{-1,1\}$ and let $f(x)=-x$.