Consider the closed unit ball in $\mathbb{R}^n$, $B = \{ x \in \mathbb{R}^n : \|x\| \leq 1 \}$ with the Euclidean metric. Then let $g : B \rightarrow B$ be a function such that $$\|g(x) - g(y)\| \leq \|x - y\|$$ for all $x$, $y \in B$. Then show that $g$ has a fixed point.
I have considered breaking $B$ down into two sets. Let $A$ is the set of all points in $B$ such that $g$ is an isometry. Then we have that if $B = A$ then the zero point is fixed. Otherwise, $B \setminus A$ under $g$ is a contraction map. It would therefore have a fixed point if $B \setminus A$ was closed (hence complete), but I cannot seem to show this. Any advice would be appreciated! Do I need to do something with compactness perhaps?
If $g:R^n\rightarrow R^n$, this is not true, consider a non trivial translation.
Since you have edited your question, If you say that $g:B\rightarrow B$, it is an application of the Brouwer fixed-point theorem.
https://en.wikipedia.org/wiki/Brouwer_fixed-point_theorem