I am looking at the following problem: $$ \min_q \underbrace{KL \left[ q(x) ~||~ p(x) \right]}_{=: A} + \underbrace{\mathbb{E}_{x \sim q} \left [ f(x) \right ]}_{=: B}. $$ For $A$, the solution is $q(x) = p(x)$. For $B$, the solution is a point mass/dirac/delta distribution putting all its mass at $arg,\min f(x)$. Further I know that $A$ should be strictly convex (accd to a comment in this question .)
My questions are the following:
Is there any hope of finding the minimizer in closed form, making use of the two respective solutions? Something like "the minimizer lies on a line between the two respective solutions." ?
This is a case of a variational problem with a subsidiary condition (constraint). The objective is to minimize the functional $$ J[q]\triangleq \int_x F(q) dx, $$
where $F(q) \triangleq q(x)\left(\log \frac{q(x)}{p(x)} + f(x)\right)$, under the condition $$ \tag{1} \int_x q(x)dx =1. $$
From calculus of variations, a necessary condition for the function $q(x)$ to be an extremal of $J[q]$ is
$$ \tag{2} \frac{\partial}{\partial q} F + \lambda =0, $$ for some constant $\lambda$. Solving the differential equation of (2) with respect to $q(x)$ gives
$$ q(x) = p(x) e^{-f(x) - \lambda -1}. $$
Plugging this into (1), shows that $\lambda= \log \mathbb{E}_{x\sim p}\left(e^{-f(x)}\right) - 1$, finally resulting in
$$ q(x) = \frac{1}{\mathbb{E}_{x\sim p}\left(e^{-f(x)}\right)} p(x) e^{-f(x)}. $$
edit1: corrected link.
edit 2: fixed algebraic error, identified by @Artemy.