Starting again with our 2nd-order low-pass transfer function in the s-domain:
H(s)=1s2+sQ+1
Yesterday we used the following bilinear transform with frequency warping:
s←1tanω21−z−11+z−1
What I'd like to do today is to use a slightly different writing of this and see how the math juggling comes out:
s←1Kz−1z+1
Where K=tanω2
This is the same transform, which can be seen by multiplying by z−1z−1. The maths just plays out a little differently.
Substituting this in to the transfer function:
H(s)=1s2+sQ+1←11K2(z−1)2(z+1)2+1KQ(z−1)(z+1)+1
Multiplying top and bottom by K2(z+1)2 gives something slightly easier:
H(z)=K2(z+1)2(z−1)2+KQ(z−1)(z+1)+K2(z+1)2
Expanding:
H(z)=K2(z2+2z+1)(z2+2z+1)+KQz2−KQ+K2(z2+2z+1)
Collecting together the terms:
H(z)=K2z2+2K2z+K2z2(1+KQ+K2)+z(−2+2K2)+(1−KQ+K2)
All very easy, which gives us our coefficients:
- b2=K2
- b1=2K2
- b0=K2
- a2=K2+KQ+1
- a1=−2(1−K2)
- a0=K2−KQ+1
First step then is to get the top-half functions all looking similar, so we can take K2 and using the trig identity K2=tan2ω2=(1−cosω)(1+cosω). We can use the numerator in the top and the denominator in the bottom. This makes the b coefficients:
- b2=1−cosω
- b1=2(1−cosω)
- b0=1−cosω
a0=(1+cosω)(tan2ω2−1Qtanω2+1)
Using our favourite trig identities K=tanω2=sinω(1+cosω) and K2=tan2ω2=(1−cosω)(1+cosω) and substituting 1=(1+cosω)(1+cosω) gives:
a0=(1+cosω)(tan2omega2−1Qtanω2+1)=(1+cosω)((1−cosω)(1+cosω)−1Qsinω(1+cosω)+(1+cosω)(1+cosω))
And crossing out terms gives:
a0=(1−cosω)−sinωQ+(1+cosω)=2−sinωQ
and similarly for a2. Now taking a1:
a1=−2(1+cosω)(1−tan2ω2)=−2(1+cosω)((1+cosω)(1+cosω)−(1−cosω)(1+cosω))=−2((1+cosω)−(1−cosω))=−2(2cosω)
and dividing all the terms by 2 gives:
- b2=(1−cosω)2
- b1=(1−cosω)
- b0=(1−cosω)22
- a2=(1+sinω2)
- a1=−2cosω
- a0=(1−sinω2)
No comments:
Post a Comment