Let $f:\mathbb R^n \to \mathbb R$ be convex, let $u\in \mathbb R^n$, $v\in \mathbb R^n\setminus \{0\}$ and assume that the directional derivative of $f$ at $u$ in direction $v$ is $0$.
I'm wondering if this implies that $f$ has a global minimum at $x$. The function $g:\mathbb R\to \mathbb R, t\mapsto f(x+tv)$ is convex and its right-derivative at $0$ is zero, hence $g$ has a global minimum at $0$, thus $f$ is minimized at $x$ when restricted along direction $v$.
I don't see a reason why $x$ should be a global minimizer. Can someone provide a counterexample ?
A counterexample: $f(x, y) = x$ is convex, and the directional derivative in $y$-direction is zero everywhere. But $f$ has no (local or global) minimum at all.
If $f:\mathbb R^n \to \mathbb R$ is differentiable then a necessary condition for a (local or global) minimum at a point $x_0$ is that $\nabla f(x_0) = 0$. For a convex function this condition is also sufficient for a global minimum.