I won't tell the full mapping from poles(1)/zeroes(0) to the frequency response but I think I can explain the connection between frequency and zero/infinite response, why do you have infinite/zero response at e−jw=zzero/pole, i.e. what e−jw has to do with z.
The general form of the linear system is
yn+a1yn−1+a2yn−2+⋯=b0xn+b1xn−1+b2xn−2+⋯,
which can be solved in z-from as
Y(z)=(b0+b1z+b2z2+⋯)(1+a1z+a2z2+⋯)X(z)=H(z)X(z)=(1−z0z)(1−z1z)⋯(1−p0z)(1−p1z)⋯X(z).
In the end, the series of binomial products (1−z0z)⋯11−p0z can be considered as a series of systems, where first output, is the input for another.
I would like to analyze the effect of single pole and zero. Let's single out the first zero, considering it the transfer function so that the rest of H(z)X(z) is the input signal, Y(z)=(1−z0z)X(z), which corresponds to some yn=b0xn+b1xn−1. Let's take b0=b1=1 for simplicity. I mean that yn=xn+xn−1.
What we want to determine the effect of the system H(z) upon harmonic signal. That is, the input is going to be test signal
xn=ejwn↔z1+ejwz+e2jwz2+⋯=1/(1−ejw)=X(z).
The response is going to be
yn=xn+xn−1|xn=ejwn=ejwn+ejw(n−1)=ejwn(1+e−jw)
that is,
1+e−jw is the transfer function or
Y(z)=(1+z)(1−ejwz)=(1+z)X(z).
Please note that 1+z basically says that output is sum of input signal plus shifted signal, since single z stands for single clock delay in time domain.
Now, as explained in, H(jw)=1+e−jw=e−jw/2(ejw/2+e−jw/2)=e−jw/22cos(w/2). Cosine makes it to behave like low-pass filter
{w=0w=π⇒⇒H(j0)=1⋅2cos(0)=2H(jπ)=ejπ/22cos(π/2)=0
It is also a good lesson that you get 2cosα=eiα+e−iα because you will supply the real signals rather than complex imaginary ones in real life.
LTI with impulse response = {1,-1} is yn=xn−xn|xn=ejwn=ejwn(1−e−jw) has transfer function of H(jw)=(1−e−jw)=e−jw/2(ejw/2−e−jw/2)=e−jw2sin(w/2), which has zero at w=0 since sin(0)=0 but it can be found from the frequency response
H(jw)=1−e−jw=0⇒e−jw=1=e0⇒w=0.
After the textbooks, I can spot the surprising coincidence between transfer function H(z)=1±z and frequency response H(jw)=1±e−jw. That is, z somehow corresponds to e−jw, which is important for zero/pole analysis. I read it like
sine z-factor stands for a clock shift and yn=xn±xn−1=0 means that next sample is ± previous one to get zero response, we need to have 1±z=0 in front of X(z). But, the frequency domain basis functions ejwn evolve by multiplying current value ejw(n−1) with ejw every clock. Therefore, we have ejwn(1±e−jw)=0 as condition for constant zero output. The latter 1±e−jw matches perfectly with zero transfer function 1±z=0.
In general, single-zero LTI is given by yn=b0xn+b1xn−1 or
Y(z)=(b0+b1z)X(z)=(b0+b1z)(1+x1z+x2z2+⋯)=b0+(b0x1+b1x0)z+(b0x2+b1x1)z2+⋯.
When
b0+b1z=0, i.e. when
z=−b0/b1, whereas frequency response is,
yn(xn=ejwn)=b0ejwn+b1ejw(n−1)=ejwn(b0+b1e−jw)=ejwnb0(1−z0e−jw),
which goes to zero when 1−z0e−jw=0 or e−jw=1/z0, which matches the computation for z if z=e−jw. The only thing that bothers me is that fixed-amplitude complex exponential is not enough for the frequency (harmonic) basis. You cannot obtain arbitrary ratio 1/z0=e−jw by choosing appropriate frequency w, a decaying harmonic signal is needed for that. That is weird because I have heard that any signal can be represented as sum of (constant amplitude) sines and cosines. But, anyway, we see that system zero stands for relationship between adjacent samples of input signal. When they are right, the output is identically 0 and we can choose such such frequency w so that zero z=1/z0=e−jw.
Now, what about the poles? Let's single out a single pole a. The system has a from of yn=ayn−1+(xn+xn−1+⋯), under assumption y0=0, has z-transform of Y(z)=X(z)/(1−az).
The feedback a is equivalent to infinite impulse response 1,a,a2,…↔z1+az+a2z2+⋯=1/(1−az). It says that response is infinite when z=1/a. What does it mean if we apply the test signal
xn=ejwn↔zX(z)=1+ejwz+e2jwz2+⋯=1/(1−ejwz)
to our system? We'll get
Y(z)=11−az11−ejwz, or
yn=ejwn+aejw(n−1)+a2ejw(n−2)+⋯=ejwn(1+ae−jw+a2e−2jw+⋯)=ejwn1−ae−jw.
That is, frequency response is
1/(1−ae−jw), which goes to infinity when
e−jw=1/a, the same as
zpole above,
e−jw=zpole=1/a. But again, you can not always arrive at the pole
1/a adjusting the frequency
w alone. The frequency basis functions must be decaying amplitude in general and look like
(kejw)n.
That is, zeroes or poles of the transfer function H(z) happen to match the zeroes and poles of frequency response H(jw), which is really amazing. I noticed that this is related to the relation between adjacent samples, ejwn/ejw(n−1)=ejw=1/zzero in case of zeroes. The fact that ejwn scales exponentially over time, along with the system with feedback a, also seems to be the key for matching between ejw and zpoles. It also seems important that you cannot simply look for the appropriate frequency of ejwn, the basis function must also have adjustable amplitude factor kn.
I would be happy if anybody could explain the same more condensely or more crisply.