Mathematically you can z-transform the sequence having:
y(z) = x(z) - z
-1*x(z) = x(z)*(1-z
-1)
since z
-1 = e
jω
H(jω) = 1 - e
jω
Then, after some math, we have the frequency response:
|H(jω)|
2 = 4*sin
2(ω/2) defined in the rage [-Π,Π]
you can see easily that it is increasing with the frequency.
In a more intuitive way, at zero frequency x
= x(n-1) ==> y
= 0.
For low frequency the variation of x is slow so that x
≈ x(n-1) ==> y
= small value
For high frequency the variation of x is fast so that x
≠ x(n-1) ==> y
= high value
By the way x
- x(n-1) is the discrete derivative of x