Consider the following problem
Let $E$ a Lebesgue measurable set and let $f \in L^\infty(E)$. Is it true that is $f=0$ iff $\int_E fg = 0$ for all $g \in L^1(E)?$
I have already know that for the case $1 \leqslant p <\infty$ if $f \in L^p$ then $f=0$ iff $\int fg=0$ for all $g \in L^q$ for q conjugate of $p.$
The questions is, does it hold for $p=\infty?$ If yes, can I have some hint to prove? Or, can I have a counterexample?
Thank you everyone!
Define $A_n = E \cap [f > 0] \cap [-n,n]$ and $A = E\cap [f >0]$. Then, the indicator function $1_{A_n} \in L^{1}(E)$ for any $n \in \mathbb{N}$. The condition implies $$ \int_{E} f1_{A_n} = 0, \quad n \in \mathbb{N}$$ Note that $1_{A_n} \to 1_{A}$ monotonously, and thus by the monotone convergence theorem
$$\int_{E\cap[f>0]} f = \int_{E}\lim_{n\to\infty} f1_{A_n} = \lim_{n\to\infty} \int_{E} f 1_{A_n} = 0$$
Which shows $f \leq 0$ almost everywhere. Apply the same argument to $-f$ to obtain $f \geq 0$.