Given $g: \mathbb{R} \rightarrow \mathbb{R}$ is a differentiable function with bounded derivative i.e. satisfying $|g'(x)|\leq K>0 , \forall x \in \mathbb{R}$, I am trying to show that for some constant $\epsilon>0$ small enough, the function $f: \mathbb{R} \rightarrow \mathbb{R}$ defined by $f(x):=x+\epsilon g(x)$ is invertible.
My idea is to show that $f$ is bijective. It occurred to me that $f$ is injective since its derivative can be made to be strictly positive so that it is strictly increasing if $\epsilon<1/K \implies f'=1+\epsilon g'>1+\epsilon(-K)>1-1>0$. However, how can I prove $f$ is surjective?