Construct the Fourier series of the following periodic function.

f(x)= cosx, -π≤x<0
1, 0≤x<π