I want the minimum value of the function
$$- (\cos k_1 + \cos k_2 + \cos k_3)$$
under the constraint of
$$ k_1 + k_2 +k_3 = K , $$
where the constant $K \in [-\pi, \pi]$. I guess the minimum is achieved at $k_1 = k_2 = k_3 = K/3$, but find it difficult to prove it.
The problem is that $-\cos x $ is not completley convex on the real axis. Here we have three terms. It is conjectured that if we have $N\geq 3 $ terms, the minimum is always achieved by $k_1 = k_2 = \ldots = k_N = K/N $.
This problem is relevant to solid state physics. I want to minimize the kinetic energy of a few electrons in a lattice.
I confirm your guess for the case $N=3$.
By your hint in the comments,
follows, $k_{1..3}$ are almost free. That is why I disbelieved your minimum if $k_{1..3}=K/N$ assumption.
My reasoning, with $k_1=k_2=0$ the "terms" $\cos(k_1)$ and $\cos(k_2)$ have a maximum impact on the result, only $\cos(k_3)$ with $k_3=K$ is what it is. But, at $k_n=0$ the effect of a "little change" may be lower than it is for $k_3=K$. Hence I modified your function $- (\cos k_1 + \cos k_2 + \cos k_3)$ to the ansatz $$-\left(2\cos\left(e\right)+\cos\left(K-2e\right)\right)$$ The first derivative to $e$ set to $0$ and solved for $e$ yields four solutions: $$\left\{e=\frac{4m\pi+2\pi+K}{3}\mathrm{,}\\e=\frac{4m\pi+K}{3}\mathrm{,}\\e=4n\pi+\pi+K\mathrm{,}\\e=4n\pi-\pi+K\right\}$$ with $m$ and $n$ arbitrary integers including $0$ and negative values, I opted for $m=n=0$. Next I checked the sign of the second derivative with this solutions, if it results a minimum or not. It depends on $K$ but not for solution 2 -- in respect of the given range of $K$. Here the plot of the $2^{nd}$ derivative with the solutions 1..3:
But, I'd like also to see the results of the solutions, green is the second shown above --
Contrary to my expectations it turns out, a minimum is achieved by $\displaystyle e=\frac{K}{3}=k_1=k_2$ and $k_3=K-2e$ what is -- well, youknowit.
Something missing? -- Yes, same again with an ansatz where $k_1\ne k_2$.