$f:\mathbb{R}\longrightarrow \mathbb{R}$ is continuous and $\lim_{|x|\rightarrow\infty}f(x)=\infty$. Show that there is $x_0$ such that $f(x_0)\leq f(x)$ for every $x\in \mathbb{R}$.
My idea
According to the definition, there is some $M>0$ such that $f(x)>1$ for every $|x|>M$. Now, since $f$ takes its minimum in $[-M, M]$, we are done as it would be the minimum of the function.
Am I right?