I'm looking for a non-trivial $L^1(\mathbb{R})$ function $f\ge 0$ with compact support and such that $$\hat f(\xi) = \frac{1}{(2\pi)^{\frac{d}{2}}}\int_{\mathbb{R}}f(x)e^{-ix\xi}dx\ge0$$ The last condition is giving me trouble. As $\xi\in\mathbb{R}$, the exponential can take any value on the complex unit circle, in particular negative values. Also, as $\xi$ is unknown, I don't see how I can work around this with $f$.
How could such a function $f$ be derived?


Let $g=\chi_{[-1,1]}$, let $f=g*g$.