Let $f: U \to \mathbb{R}$ be a differentiable function in the open $U \subset \mathbb{R}^{n}$. If, for every $a \in \partial U$, $\lim_{x \to a}f(x) = 0$, prove that there is at least a critical point of $f$ in $U$.
I don't know what to do. I cannot use $\lim_{x \to a}f(x) = f(a)$ because $a \in \partial U$. I know that $a = \lim x_{n}$ with $x_{n} \in U$ and I'm trying to figure out how to use it. Before, I tried to show that $U$ has a maximum or minimum point, but I couldnot develop. Can someone help me?
This is not true. Take $U=\{(x,y)\,|\,x>0\}$ and let $f(x,y)=x$. Then $\partial U=\{(0,y)\,|\,y\in\mathbb{R}\}$ and$$(\forall a\in\partial U):\lim_{X\to a}f(X)=0.$$However, $f$ has no critical point.