I was reading a paper where I found a statement that if $f$ is some function in $L^2(\Omega)$ where $\Omega$ is an open subset of say $\mathbb R^d, d\ge2$, then
$f = 0 \ (\le0)$ in an open subset $A$ of $\Omega$ if $\langle f,\phi\rangle_{L^2} = 0 \ (\le0)$ for all $\phi\in H_0^1(A)$ (with $\phi\ge0$).
I am not getting how to solve this as to get $f=0$ is quite visible but that too only if I take $\phi\in \mathbb D(A)$.
Please suggest way on how to proceed with this
Any type of help will be appreciated. Thanks in advance.
An attempt. Tell me what you think.
If equality holds for every $\phi$ positive, it also holds for every negative $\phi$ (just multiply by $-1$). Let $\phi$ change sign. Write $\phi = \phi^+ + \phi^-$. We know that
$$ \int_A f(\phi^+ - \phi^-) \ dx = 0 \implies \int_A f \phi^+ \ dx = \int_A f \phi^- \ dx. = 0. $$ Hence $$ \int_A f \phi \ dx = 0 \quad \forall \phi \in H_0^1(A). $$
Since the equality holds for every $\phi \in C_c^\infty(A)$ and this space is dense in $L^2$, and since the functional $g \mapsto \int_A f(x) g(x) \ dx$ is continuous in $L^2$,we have that $$ \int_A f(x) g(x) \ dx = 0 \quad \forall g \in L^2(A). $$
Putting $g = f$ yields the result.