$\DeclareMathOperator{\tr}{tr}$ Let $H$ be a self-adjoint matrix and define the free energy as $$ F(\Gamma)=\tr(H\Gamma+\Gamma \log \Gamma +(1-\Gamma) \log(1-\Gamma)) $$ where $\Gamma$ satisfies $0\le \Gamma \le 1$. I have seen physics papers suggest that $F(\Gamma)$ is minimized if we take $$ \Gamma =\frac{1}{e^H +1} $$ but I can't think of a rigorous proof.
EDIT. The "usual" non-rigrous method of proof would be to use variational method, i.e., \begin{align} \delta F &=\tr\left(H\delta\Gamma+\log\left(\frac{\Gamma}{1-\Gamma}\right)\delta\Gamma \right)\\ 0&=H+\log\left(\frac{\Gamma}{1-\Gamma}\right)\\ \Gamma &= \frac{1}{e^H+1} \end{align} How would one make this argument rigorous?
EDIT 2. I just realized that $F(\Gamma)$ is convex, so I think that the above calculation is almost rigorous, except that $\delta\Gamma$ may not commute with $\Gamma$, as pointed out by @Sangchul Lee.
EDIT 3. Thank you @Sangchul Lee for the proof. I think I also found another proof, that may be a little more straightforward.
Let $\Gamma_0=1/(e^H+1)$ and let $0\le \Gamma_1 \le 1$. Let $\Gamma(t)=(1-t)\Gamma_0 +t\Gamma_1 =\Gamma_0 +t\Delta$ where $\Delta = \Gamma_1-\Gamma_0$. Let $f(x)=x \log x +(1-x) \log (1-x)$. Hence, $$ F(\Gamma)-F(\Gamma_0) = \tr(tH\Delta)+\tr (f(\Gamma)-f(\Gamma_0)) $$ Since $f$ is convex, we can apply Klein's inequality and see that $$ F(\Gamma)-F(\Gamma_0) \ge \tr(t\Delta (H+\log\Gamma_0 -\log (1-\Gamma_0))=0 $$ Also since $f$ is strictly convex, we see that $\Gamma_0$ is the unique global min.
By the way, not sure why this question was voted to close. Please vote to reopen if you think otherwise.
EDIT 4. After further looking into the proof of Klein's inequality, there is a subtle "problem" of taking the derivative of a trace function (which is not fully explained in the wikipedia article). @Sangchul Lee deals with this explicitly for this particular case, but I would like to think that it should be able to be done more generally. Hence, I posted another question here.