Let $f : \mathbb{R} \to \mathbb{R}$ be a positive and continuous function so that $\lim_{x \to +\infty} \frac{f(x)}{x}= \lambda <1.$
I must prove that: $\exists c \in \mathbb{R}, f(c)=c$.
To do so, we can consider the function $g$ defined by $\forall x \neq 0, g(x)=\frac{f(x)-x}{x}$.
Clearly, $\lim_{x \to +\infty}g(x)=\lambda - 1 <0$.
However I don't really know what to do next. My goal is to prove that $\exists a \neq 0, g(a)\leq 0 $ and $\exists b \neq 0 , g(b) \leq 0$.
Could anyone help me with that plz?