Let
- $(E,\mathcal E,\lambda)$ be a measure space
- $p:E\to[0,\infty)$ be $\mathcal E$-measurable with $$\int p\:{\rm d}\lambda=1$$
- $\mu:=p\lambda$
- $f\in\mathcal L^1(\mu)$
I want to minimize $$\Phi(q):=\int_{\left\{\:q\:>\:0\:\right\}}\frac{(pf)^2}q\:{\rm d}\lambda$$ over all $\mathcal E$-measurable $q:E\to[0,\infty)$ subject to $$\int q\:{\rm d}\lambda=1.\tag1$$ I already know that the solution is proportional to $p|f|$, but I want to verify this rigorously.
I want to use he method of Lagrange multipliers. We should be able to rephrase the problem in the following way: We want to minimize a functional on a Banach space subject to the condition that the norm of the candidate is $1$. We would clearly take the Banach space $\mathcal L^1(\mu)$ (note that $(1)$ is noting else than the norm of $q$ in this space).
How do we need to proceed in detail?
It's clear to me that it's sufficient to find a stationary point of the Lagrange function. It's then easy to show that the resulting candidate solution is a minimum (using the Cauchy-Schwarz inequality).
Please take note of my related question: How can we compute the Fréchet derivative of $q\mapsto\int\frac{(pf)^2}q\:{\rm d}\lambda$?.
Here is a problem that can be solved with solution proportional to $|p(x)f(x)|$.
Problem
Given:
We want to find a measurable function $q:E\rightarrow[0,\infty)$ to minimize $\int_E \frac{(p(x)f(x))^2}{q(x)}d\lambda $ subject to:
$\int_E q(x)d\lambda = 1$
$q(x)>0$ for all $x \in E$.
Minimizer
Define the measurable function $q:E\rightarrow [0,\infty)$ by $$ q(x) = \frac{1}{c}|p(x)f(x)| \quad \forall x \in E $$ where $c$ is defined $$ c = \int_E |p(x)f(x)|d\lambda $$
Clearly this function $q(x)$ satisfies the desired constraints 1 and 2. It remains to prove it minimizes the objective over all other measurable functions $r:E\rightarrow [0,\infty)$ that satisfy constraints 1 and 2.
Optimality proof
Fix a measurable function $r:E\rightarrow [0,\infty)$ that satisfies constraints 1 and 2, so that $\int_E r(x)dx = 1$ and $r(x)>0$ for all $x \in E$. Fix $x \in E$. Note that $q(x)$ defined above is chosen as the value $q \in (0,\infty)$ that minimizes the expression $$ \frac{(p(x)f(x))^2}{q} + c^2q $$ where this expression is convex in $q$ and has a unique minimizer in $(0,\infty)$ (recall that $(p(x)f(x))^2>0$). Since $r(x)>0$ we have $$ \frac{(p(x)f(x))^2}{q(x)} + c^2q(x) \leq \frac{(p(x)f(x))^2}{r(x)} + c^2r(x) \quad \forall x \in E$$ Integrating the above inequality gives $$ \int_E \frac{(p(x)f(x))^2}{q(x)}d\lambda + c^2 \underbrace{\int_E q(x)d\lambda}_{1} \leq \int_E \frac{(p(x)f(x))^2}{r(x)}d\lambda + c^2\underbrace{\int_E r(x)d\lambda}_{1}$$ where the underbrace equalities hold because both $q$ and $r$ satisfy constraint 1. Canceling common terms yields $$ \int_E \frac{(p(x)f(x))^2}{q(x)}d\lambda \leq \int_E \frac{(p(x)f(x))^2}{r(x)}d\lambda$$ $\Box$