Is there an easy proof of the following fact?
Let $a_0, \ldots, a_n, b_1, \ldots, b_n$ be real numbers, not all zero. Then, the function $$a_0 + a_1 \cos x + b_1 \sin x + a_2\cos 2x+b_2\sin 2x+\ldots+ a_n \cos nx + b_n \sin nx$$ has at most $2n$ roots in the range $0\le x<2\pi$.
(The above expression is a Fourier series truncated to the first $2n+1$ terms.)