Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Mathematically you can z-transform the sequence having:
y(z) = x(z) - z-1*x(z) = x(z)*(1-z-1)
since z-1 = ejω
H(jω) = 1 - ejω
Then, after some math, we have the frequency response:
|H(jω)|2 = 4*sin2(ω/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
OK, math is:
|H(jω)|2 = |1 - ejω|2
using Euler formula that is ejω = cos(ω)+j•sin(ω) we have:
|1 - ejω|2 = |1 - cos(ω) - j•sin(ω)|2 = [1-cos(ω)]2 + sin2(ω) hence:
|1 - ejω|2 = 1 + cos2(ω) - 2•cos(ω) + sin2(ω) = 2•[1 - cos(ω)]
but, remembering that sin2(x) = 1/2 - cos(2•x)/2 we will have:
|1 - ejω|2 = 2•[1 - cos(ω)] = 2•[2•sin2(ω/2)] = 4•sin2(ω/2)