How do you calculate frequency response?
This can be solved for the frequency response, H(ω) = e jωn (b1 + b2 e -jω + b3 e -2jω)/ e jωn (a1 + a2 e -jω + a3 e -2jω). This form of the frequency response can be generalized to LTI difference equations with an arbitrary number of terms.
How do you find the stability of a Bode plot?
If both the gain margin GM and the phase margin PM are positive, then the control system is stable. If both the gain margin GM and the phase margin PM are equal to zero, then the control system is marginally stable. If the gain margin GM and / or the phase margin PM are/is negative, then the control system is unstable.