Let $f$ be a positive and continuous function in $[0,\infty)$, such that $\lim\limits_{x\to \infty} f(x)=2$.
Prove that if $f(0)<2$, $f$ has a minimum in $[0,\infty)$.
I am stuck in the final step, in my opinion.
From the limit's definition, there is $M \in \Bbb R$ such that for every $x>M$, $|f(x)-2| < \varepsilon$
In the closed interval, $[0,M]$, the function has a minimum, according to Weierstrass theorem.
I have to prove that it is the global minimum. It won't be a global minimum if there is some $x_0>M$ which is a minimum. I think that's where I have to reach a contradiction which I can't formalize.
Thanks for you help.