Fourier's theorem on polynomial real roots