I've been doing a math problem about traffic lights and the following interesting question came up. Not homework.
say:
$\int_0^{+\infty} f(x) dx = 0 $
$\int_0^{+\infty} f(x) g(x) dx = 0$
Does this imply:
$\forall a \in \mathbb{R^+}:\int_0^{+\infty} f(x) g(x)^a\,dx =0 $
In the problem $g$ is a probability so we can assume $g(x) \ge 0$.
In the problem functions are "nice" but my intuition says this is a general rule.
This is not true. For example let $f$ be $1$ on $(0,\frac{1}{2})$ and $-1$ on $(\frac{1}{2},1)$; let $g$ be $1$ on $(0,\frac{1}{2})$, $2$ on $(\frac{1}{2},\frac{3}{4})$ and $0$ on $(\frac{3}{4},1)$. Then $\int fg^2=-\frac{1}{2}$. These are not continuous but I think they can be modified to be continuous.
The point is that $\int f=0$ and $\int fg=0$ does not give much information about $\int fg^2$. Say $f$ is as above and $g$ is $1$ on $(0,\frac{1}{2})$, then $\int fg=0$ means $\int_{1/2}^{1}g=\frac{1}{2}$, but $\int_{1/2}^{1}g^2$ can be pretty much anything (modulo Cauchy-Schwarz).