Let $f:(a,b)\to\mathbb{R}$ be a continuous function with continuous derivative. Suppose $f$ has a unique critical point $x_0\in (a,b)$. If $f$ has a local maximum at $x_0$, then $f$ must have a global maximum at $x_0$. Intuitively, if $f$ had a global maximum somewhere else, the graph would have to turn around, leading to a second critical point.
I would like to know if a similar results holds in two dimensions.
Does there exist a connected open subset $U\subset\mathbb{R}^2$ and a function $f:U\to\mathbb{R}$ with continuous first partial derivatives, such that $f$ has a unique critical point $u_0\in U$, which is a local maximum but not a global maximum?