I have a bounded, positive function $f(x)$, and I would like to fit a single Gaussian function $g(x)$ "underneath" it such that
$$g(x) \leq f(x) \qquad \forall x$$
while maximising the integral under the Gaussian. (Either in closed-form or by iterative optimisation.) i.e. maximise
$$ \int_\mathbb{R}g(x)dx $$
subject to the above constraint. We could express $g$ as:
$$g(x) = a e^\frac{-(x-b)^2}{2c^2}$$
and in that form, we're seeking to maximise $\int_\mathbb{R}g(x)dx = \sqrt{2 \pi} a |c|$.
Note that $g$ is a Gaussian function but not necessarily a Gaussian distribution, i.e. not constrained to integrate to 1.
In my case $f(x)$ is a Gaussian mixture model, though perhaps there's an approach that works for general $f(x)$. I'd also hope there's an approach that works for the multivariate equivalent of this problem too.
P.S. here's a plot showing some arbitrary examples, in this case using "step 1" from @mark-l-stone 's approach.

The complication for this optimization problem is that this is an infinite dimensional problem due to constraint $g(x) \le f(x)$ needing to hold for all x.
Because infinite dimensional optimization solvers basically don't exist, the only way i can think of to handle this problem is imposing constraints at some finite number of values of x in lieu of the infinite dimensional constraint, then performing
Step 1: Numerically maximize, with respect to $\{a,b,c\}$, the integral of g(x), which is proportional to $ac$, and which can be taken as the objective function, subject to the constraint that $c$ be nonnegative, and to the additional constraints that $g(x) \le f(x)$, at each of a finite number of specified values of x.
Step 2: Numerically globally maximize $g^*(x) - f(x)$, with respect to x over x from $-\infty$ to $\infty$, where $g^*(x)$ is g(x) using the optimal parameters found in Step 1.
If the optimal objective value of the step 2 optimization is nonpositive, then the step 1 optimization solved the original problem.
Else Add constraints for additional values of x, and re-run Step 1.Repeat as necessary.
This paradigm could be used regardless of whether f(x) is a Gaussian mixture density.
In principle, this same approach could be applied to multivariate g(x) and f(x). however, the computational challenge is likely to increase substantially. The curse of dimensionality will be going against you in instantiating an adequate, but tractable, set of points at which to impose constraints for step 1.