I am given a function $f(t) \in \mathbb{R}$ which is continuous; bounded above by $M$ and below by $0$. $f$ is differentiable everywhere except at $f=0$. Also, $\lim_{t \to \infty} f = 0$ and $t \in [0, \infty)$.
How do I show that a global maximum/supremum exists and where it exists?
I thought of dividing this into 3 cases: when function is non-decreasing, non-increasing and when there exists a local extremum.
$(i) $ $f$ can not be non-decreasing since it converges to $0$, except when $f(0) = 0$ which will be a trivial case.
$(ii)$ If $f$ is non-increasing then, $f(0)$ is the global maxima as $f(0) \ge f(t) \forall \ t$.
$(iii)$ That leaves us with the case when there exists at least $1$ local extremum. Now, if the domain were bounded, I could have used Extreme value theorem and say that global maximum exists either at $t=0$ or at a local maximum, but the domain is unbounded in my case, so that can't be used. However I do have information about the limit, which could be helpful.
Intuitively, I still think the result will be same as that of Extreme value theorem, but I want to prove it using proper results. How should I modify my process?