TITLE: Contraction mapping in an incomplete metric space
QUESTION [19 upvotes]: Let us consider a contraction mapping $f$ acting on metric space $(X,~\rho)$ ($f:X\to X$ and for any $x,y\in X:\rho(f(x),f(y))\leq k~\rho(x,y),~ 0 < k < 1$). If $X$ is complete, then there exists an unique fixed point. But is there an incomplete space for which this property holds as well? I think $X$ should be something like graph of $\text{sin}~{1\over x}$, but I don't know how to prove it.
Thank you and sorry for my english.

REPLY [3 votes]: There is a sense in which every such fixed point comes from a complete metric space:
Theorem: Let $X$ be an arbitrary set. Let $f:X\to X$ be a function with fixed point $x$ such that for all positive natural numbers $n$ and for all $y\neq x$, we have $f^n(y)\neq y$. Then there exists a complete metric $d$ on $X$ such that $f$ is a strict contraction.
The theorem is originally due to C. Bessaga and is not that easy to prove. A relatively short proof can be found here.