Let $f: {\mathbb{R}^n}$ to $\mathbb{R} $ is a continuous function. For any $x$ belonging to $\mathbb{R}^n$ define $(U(x)=\{y|f(y)>f(x)\})$ is an open set.
I tried proving that the complement of the set is closed. The property of continuity of function could be invoked. I cannot seem to properly form the proof. Please help!
$U(x)=f^{-1}((f(x),\infty)$ and $((f(x),\infty)$ is open in $\mathbb R$ so $U(x)$ is open.