A digital filter is described by the following difference equation. determine if this is an IIR or FIR filter. Explain your answer.

Y[n] = 0.25x[n] + 0.5x[n-1] + 0.25x[n-2] - 1.2y[n-1] + 0.2y[n-2]

This is an IIR (infinite impulse response) filter because it has feedback in the equation through the y[n-1] and y[n-2] terms. This means that the output can depend on past inputs and past outputs, creating an "infinite" response. In contrast, a FIR (finite impulse response) filter only depends on past inputs and has no feedback.