IAE Academy

FIR & IIR filters formulas

FIR and IIR filters. 23 formulas for GATE EC, EE, IN Signals and Systems, each with when to use it. Each is explained in the topic notes.

All 23 FIR & IIR filters formulas

FIR FILTER OF LENGTH N

Order , taking and . Writing shows that its only poles are poles at . So a causal FIR filter is always BIBO stable.

IIR FILTER AND ITS SIGN CONVENTION

Numerator order , denominator order . The minus sign in the difference equation puts in the denominator. So an equation written as gives , with a pole at . The causal filter is stable if and only if every pole left after cancelling common factors satisfies .

LINEAR-PHASE CONDITION AND FREQUENCY RESPONSE

is real. Antisymmetry forces the middle sample of an odd-length filter to be zero, since .

GROUP DELAY OF EVERY LINEAR-PHASE FIR FILTER

The same for all four types, at every where . It is an integer for odd (Types I and III) and a half-integer for even (Types II and IV). In seconds it is .

SYMMETRY IN THE Z-DOMAIN AND THE FORCED ZEROS

Put , where . Symmetric with even: , so . Antisymmetric: , so always. With odd, also , so .

DELAYED IDEAL LOWPASS IMPULSE RESPONSE

is in rad/sample. It is written with explicitly, so no sinc convention is needed. The centre value is the limit as . For even , is a half-integer and no sample falls at .

OTHER IDEAL RESPONSES BUILT FROM THE LOWPASS

The term needs an integer , i.e. odd . So a windowed highpass or bandstop design is Type I, consistent with the forced zero at that rules out Type II.

COMMON WINDOWS (0 TO N-1, ZERO ELSEWHERE)

For . This is one common form; some texts use in place of so that the end samples of the Hann window are not zero. All four are symmetric about , so linear phase is kept. The Hamming window's end samples are , not zero.

FREQUENCY-SAMPLING DESIGN

This is the -point inverse DFT, with so that . The designed response passes exactly through the specified samples and is interpolated between them. For a real, linear-phase Type I result ( odd), take with .

IMPULSE INVARIANCE

Needs a strictly proper with simple poles (do the partial fractions first). The sample at uses . Each analog pole becomes the digital pole ; zeros do not map by this rule. With the factor , for when aliasing is small. Some texts use without it, which scales by , so check which one a question uses.

BILINEAR TRANSFORMATION

Substitute into to get an of the same order. The whole left half -plane maps inside , so stability is preserved. The entire axis maps once onto the unit circle: goes to and goes to . There is no aliasing.

FREQUENCY WARPING OF THE BILINEAR TRANSFORMATION

in rad/s (analog), in rad/sample (digital). The relation is nearly linear, , only for small . The whole infinite analog axis is squeezed into .

BUTTERWORTH MAGNITUDE RESPONSE

Order (in this section is the prototype's order, not an FIR length), cut-off in rad/s. and , i.e. dB at the cut-off for every . The response is monotonic in both bands. It is maximally flat: the first derivatives of are zero at . The asymptotic roll-off is dB/decade.

BUTTERWORTH ORDER

is the maximum attenuation (dB) allowed over the passband . Because the response is monotonic, the attenuation there is largest at . is the minimum stopband attenuation (dB) at . Round up to the next integer. If the passband edge is the 3-dB cut-off ( dB, ), then .

BUTTERWORTH POLES

The poles are equally spaced by on a circle of radius , all in the left half-plane and symmetric about the real axis. There is a real pole at only when is odd.

NORMALISED BUTTERWORTH DENOMINATORS (UNIT CUT-OFF)

For a cut-off , replace by . Each quadratic factor is for , with a factor added when is odd. For the factor has damping ratio .

CHEBYSHEV TYPE I (IN BRIEF)

Equiripple in the passband, monotonic in the stopband. Passband ripple dB. At DC, for odd and for even . obeys with , .

ANALOG FREQUENCY TRANSFORMATIONS (FROM A LOWPASS PROTOTYPE WITH CUT-OFF 1 RAD/S)

Here and . The prototype's edge at rad/s lands on , or on and . The bandpass and bandstop substitutions double the order. In a bilinear design, prewarp every digital edge first, then apply the substitution to the prototype.

GAIN FROM THE POLE-ZERO PLOT

This uses . Poles or zeros at the origin are at distance 1 from every point on the circle, so they change only the phase.

SECOND-ORDER NOTCH FILTER

Zeros at give an exact null at ; poles at . The closer is to 1, the narrower the notch. With close to 1, the gain away from is close to 1. Without the poles, is an FIR notch with a much wider dip.

ALL-PASS FILTER

Pole at , zero at . Higher orders are products of such sections. With a real denominator of order , , i.e. the numerator coefficients are the denominator coefficients in reverse order. Used to correct phase (delay) without changing the magnitude.

L-POINT MOVING AVERAGE

A lowpass, symmetric (Type I or II) FIR filter with DC gain 1 and group delay . Its zeros are at , (the zero cancels the pole at ), so it has nulls at .

COMB FILTERS

is an integer. removes DC and every multiple of , for example a mains frequency and its harmonics when equals the mains frequency. Both are linear-phase FIR filters (antisymmetric and symmetric respectively) with group delay .

Where this was asked: 2022 (1), 2024 (1). See the 2 previous-year questions on FIR & IIR filters. This shows what was asked, not what will be asked.