Let function $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = \frac{1}{2}(x+\sqrt{x^2+1})$.
I need to show that for each compact $K\subset\mathbb{R},\exists\alpha_K<1$ such that $|f(x)-f(y)|\leq\alpha_K|x-y|,\forall x,y \in K$.
As $K$ is compact, $\exists M_K>0$ such that $|x|\leq M_K, \forall x \in K$.
We have $|f(x)-f(y)|=\frac{1}{2}|(x-y)+(\sqrt{x^2+1}-\sqrt{y^2+1})|=\frac{1}{2}|(x-y)+\frac{x^2+1-(y^2+1)}{\sqrt{x^2+1}+\sqrt{y^2+1}}|=\frac{1}{2}|(x-y)+(x-y)\frac{x+y}{\sqrt{x^2+1}+\sqrt{y^2+1}}|=\frac{1}{2}|x-y||1+\frac{x+y}{\sqrt{x^2+1}+\sqrt{y^2+1}}|$.
Now, how to manipulate $\frac{1}{2}|1+\frac{x+y}{\sqrt{x^2+1}+\sqrt{y^2+1}}|$ and use the constant $M_K$ to find the upper bound $\alpha_C<1$?