True/False:
Let $f:[0,\infty)\to \Bbb R$ be a continuous function with $\displaystyle{\lim _{x\to \infty}} f(x)=0$. Then $f$ has a maximum value in $[0,\infty)$.
Since $\displaystyle{\lim _{x\to \infty} }f(x)=0\implies $given $\epsilon>0,\exists G$ such that $x>G\implies |f(x)|<\epsilon$.
Now $f$ is uniformly continuous on $[0,G]$ and attains its bounds therein.
Thus $|f(x)|\le M$ on $[0,G]$.
Choose $\epsilon <M$ then we can find $x_0$ such that $f(x_0)>f(x) \forall x$
Hence the result is true.
But the answer is given as false.Where am I wrong?