If $f(x)$ is continuous on $\mathbb R$ and it has a local maximum at $x_0$ and no other maximum or minimum points, then prove that $x_0$ is a global maximum.
I was hinted to use the fact that a continuous function at a closed area $[a,b]$ is bounded, but I don't see how this helps.
Thank you for the help