Suppose $f: K \to \mathbb R$ is an analytic function where $K \subset \mathbb R^n$ is a compact subset. Let us assume $f$ is not constant and $f$ achieves minimum at $\text{int}(K)$. Let $\beta = \max_{x \in K} \|\nabla^2 f(x)\|_2$, which is to say the gradient mapping is Lipschitz $\|\nabla f(x) - \nabla f(y)\|_2 \le \beta\|x-y\|_2$. Now let us consider an iterative gradient descent scheme with initial point $x_0 \in \text{int}(K)$ \begin{align*} x_{k+1} = x_k - \frac 1 \beta \nabla f(x_k). \end{align*} Then it is not hard to show the sequence $\{f(x_k)\}_{k=0}^{\infty}$ is monotonically decreasing and thus converges to some limit $l \in \mathbb R$.
I am wondering whether the sequence of iterates $\{x_k\}$ is convergent. The only possibility I can think of is that the sequence oscillates between two points $x_*^1, x_*^2$ with $f(x_*^1) = f(x_*^2) = l$. But I could not imagine how could this happen?
There is discussion here in which $f$ is convex and in the answer, an example was constructed, i.e., nonconvergent $\{x_k\}$, but the function constructed is not analytic.
If $x,y$ were two points such that $y = x - \frac{1}{\beta} \nabla f(x)$ and $x = y - \frac{1}{\beta} \nabla f(y)$ then $\nabla f(x) - \nabla f(y) = 2\beta(y-x)$ which is in contradiction to the condition on $\beta$. So at least the "bad" sequence cannot have only two points.
However, this technique does not rule the possibility that there are three points that we may cycle between.