Let $f:\mathbb{R}_+\rightarrow \mathbb{R}$ be continuous and such that $f(0)=1$ and $lim_{x\rightarrow+\infty}f(x) = 0$.
Prove that $f$ must have a maximum in $\mathbb{R}_+$. What about the minimum?
I started working on that trying to verify Weierstrass theorem on a smaller interval of $\mathbb{R}_+$. The fact is that I am not sure on how to use the data contained in the text.
Moreover, I assumed that once Weierstrass theorem holds, both maximum and minimum exist since both argmax and argmin are non empty compact sets; but looking at the solutions this is not the case, since minimum exists only in certain cases.
Can you give me any hint/starting point to solve this problem?
Let $\epsilon>0 $ .
$\lim_{x\to \infty}f(x)=0\implies \exists G>0$ such that $x>G\implies |f(x)|<\epsilon$.
Now $f$ is continuous on the compact set $[0,G]$ and hence bounded by say $M$ and thus attains its bounds therein.