While studying the properties of ordinal utility functions, I came across the following question.
Given a strictly increasing function $f : D \rightarrow \mathbb{R}$, where $D$ is an arbitrary non-empty subset of $ \mathbb{R} $, can one always find a strictly increasing function $g : \mathbb{R} \rightarrow \mathbb{R}$ that is defined everywhere on $\mathbb{R}$ and is equal to $f$ everywhere in the set $D$?
I feel that the answer should be positive, however, there might be some counterexample I'm unaware of.
No, consider for instance the case where $D=(0,1)$ and $f$ is the function given by $f(x)=-\frac1x$.
There cannot exist a stricly increasing extension of $f$ to $\mathbb R$ because $\lim\limits_{x\to 0^+}f(x)=-\infty$.
(That is, the value of the extension at any non-positive point would have to be lower than any real number. That is not possible.)