Let the FIR filter length be samples, with even, and suppose we'll initially design it to be centered about the time origin (``zero-phase''). Then the frequency response is given on our frequency grid by
Enforcing even symmetry in the impulse response, i.e., , gives a zero-phase FIR filter which we can later right-shift samples to make a causal, linear phase filter. In this case, the frequency response reduces to a sum of cosines:
or in matrix form:
Note that Remez exchange algorithms are also based on this formulation internally, but now .