Trigonometric series expansion of projected densities of states