Let $f(x)=\sum\limits_{k\geq 2} a_k \cos(kx)+b_k\sin(kx)$ a Fourier series of a real-valued continuous function $f$ (with $2\pi$-periodicity).Note here that $f$ is orthogonal to $1,\cos$ and $\sin$ on $[-\pi,\pi]$. Is it true that $f$ vanishes on $[0,\pi]$ ?
Indeed, that is a particular case $N=1$ of a more general question : if the Fourier series of a real-valued function $f$ contains no terms in $\cos(kx)$ or $\sin(kx)$ with $|k|< N$, is it true that $f$ has a zero on any interval of lengh $2\pi/N$ ?
So $f(x)=\cos(2 x)$ sounds valid, and $f(\pi/4)=0$.