Let $g\in\mathcal{C}^0(\mathbb{R},\mathbb{C})$ be a bounded continuous function such that $\int_{\mathbb{R}}\hat{f}g = 0$ for all test functions $f\in\mathcal{C}^{\infty}_c(\mathbb{R},\mathbb{C})$, where $\hat{f}$ denotes the Fourier transform of $f$.
[The integral $\int_{\mathbb{R}}\hat{f}g$ is well-defined for all $f\in\mathcal{C}^{\infty}_c(\mathbb{R},\mathbb{C})$ as then $\hat{f}$ is Schwartz, and thus rapidly decreasing (and $g$ is bounded).]
I want to show that then $g$ has to be identically zero. (In particular, for my application, I only need to get $g(0)=0$).
Similar questions have already been answered (see e.g. If $f\in L^1_{loc}(\mathbb{R})$ and $\int f\varphi=0$ for all $\varphi$ continuous with compact support, then $f=0$ a.e. or If $ \int fg = 0 $ for all compactly supported continuous g, then f = 0 a.e.?), but here I deal with the Fourier transform of a test function, so I'm not sure how to tackle this problem.
Any help is greatly appreciated, thanks in advance.
Let $\phi$ be a smooth compactly supported bump function such that $\phi(x)=1$ for $|x|\leq 1$. For each $\epsilon>0$, define $\phi_{\epsilon}(x)=\phi\left(\epsilon x\right)$. Then, we have $\widehat{\phi_\epsilon}(\xi)=\frac{1}{\epsilon}\widehat{\phi}\left(\frac{\xi}{\epsilon}\right)$. Also, we have $\int_{\Bbb{R}}\widehat{\phi}(\xi)\,d\xi=\phi(0)=1$ by Fourier inversion, so we have that $\{\widehat{\phi_{\epsilon}}\}_{\epsilon>0}$ is an approximate identity as $\epsilon\to 0^+$.
For any Schwartz function $f$, let’s define $f_\epsilon=f\cdot \phi_\epsilon$. Then, $f_\epsilon$ is smooth, compactly supported, and as $\epsilon\to 0^+$, we have \begin{align} \widehat{f_{\epsilon}}&=\widehat{f}*\widehat{\phi_{\epsilon}}\to \widehat{f}, \end{align}
where the convergence holds in any $L^p$ space with $p\in [1,\infty)$. In particular, it holds for $p=1$. Therefore, for any $g\in L^{\infty}$, we have \begin{align} \left|\int_{\Bbb{R}}\hat{f}g\right|&=\left|\int_{\Bbb{R}}\hat{f}g-\int_{\Bbb{R}}\widehat{f_{\epsilon}}g\right|\leq \|g\|_{L^{\infty}}\|\hat{f}-\widehat{f_{\epsilon}}\|_{L^1}, \end{align} and we just showed the RHS vanishes as $\epsilon\to 0^+$, so $\int_{\Bbb{R}}\hat{f}g=0$. Since we showed this for all Schwartz functions $f$, we deduce that $\int_{\Bbb{R}}fg=0$ for all Schwartz functions $f$. Thus, by the usual methods, $g=0$ a.e. If you now assume $g$ is continuous, then of course $g=0$ identically.