\frac{1}{\pi}\int^{\pi+2k\pi+t}_{-\pi+2k\pi+t}f(x)\cos{nx}dx=