A function $f:\mathbb{R}\rightarrow\mathbb{R}$ is $coercive$ if $$ \lim_{||x||\rightarrow\infty} f(x) = \infty.$$ Explicity, this condition means that for any $M>0$ there is an $R>0$ such that $||x||>R$ implies $f(x)\geq M$. Prove that if $f:\mathbb{R}^n\rightarrow \mathbb{R}$ is lower semi-continuous and coercive then $f$ is bounded from below and attains its infimum.
The definition I am using for LSC is: A function $f$ is lower semi-continuous on $X$ if for all $x\in X$ and every sequence $x_n\rightarrow x$, we have $$\lim_{n\rightarrow\infty} \inf f(x_n) \geq f(x). $$
This is my solution: Let $M>0$. Then since $f$ is $coercive$ there is an $R>0$ such that $||x||>R$ implies that $f(x)\geq M$. Let $x_n$ be a sequence such that $x_n\rightarrow x$. Since $f$ is LSC we have that $$ f(x)\leq \lim_{n\rightarrow\infty} \inf f(x_n)$$ which implies $$ M\leq f(x) \leq \lim_{n\rightarrow\infty}\inf f(x_n). $$ Hence $f$ is bounded below and attains its infimum.