C_k=\frac{1}{L}\int^{\frac{L}{2}}_{-\frac{L}{2}}e^{-\frac{2\pi ik}{L}x}f(x)dx