Let $(X,\|\;\|)$ be a vector space over $K\;(\Bbb R\text{ or }\Bbb C)$ and let $\;f:X\to K$ be a linear functional with $f\neq0$. I want to prove the following: $$ \text{If }\mathscr N=\{x\in X:f(x)=0\}\text{ is not dense in }X\Rightarrow\;f\text{ is bounded in some neighborhood of }0 $$
So my attempt goes like this:
Let's take $\;B_{r_0}(0)$, a neighborhood of $0$. Then,
since $\;\;\overline{\mathscr N}\neq X$, there $\exists\;x_0\in X\setminus\overline{\mathscr N}$ which implies that $\;f(x_0)\neq0$ and thus $\;|f(x_0)|>0$
But got stucked here since I can't see a way to relate this to $f$ having to be bounded in $\;B_{r_0}(0)$.
Any hints or ideas would be appreciated.