I have been struggling a lot proving this theorem, associated to the Fundamental Lemma of CoV.
Let $f,g\in L^1(\Omega)$, where $\Omega\subseteq\mathbb{R}^n$ open. Suppose $\int_{\Omega} f(x)\phi(x) dx=0$ for all test functions $\phi \in C_c^{\infty}(\Omega)$ that satisfy $\int_{\Omega} g(x)\phi(x) dx=0$. Show that there exists $a\in\mathbb{R}$, such that $f = ag$ almost everywhere.
Do you have any hint or solution that I can work with because all my attempts turned out to not solve this task.