Exercise 10.  Use the transfer function  [Graphics:Images/ZTransformFilterModHome_gr_958.gif]   and show that the moving average filter in Exercise 9

has an alternative formula   [Graphics:Images/ZTransformFilterModHome_gr_959.gif].

Solution 10.

See text and/or instructor's solution manual.

Short Solution.   Use the General Filter Equation (9-29) and the corresponding Transfer Function (9-34)

in the case   [Graphics:../Images/ZTransformFilterModHome_gr_960.gif]   and   [Graphics:../Images/ZTransformFilterModHome_gr_961.gif]  for  [Graphics:../Images/ZTransformFilterModHome_gr_962.gif].  Then the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_963.gif],  

corresponds to the filter  

                    [Graphics:../Images/ZTransformFilterModHome_gr_964.gif].  

Now set   [Graphics:../Images/ZTransformFilterModHome_gr_965.gif],   and   [Graphics:../Images/ZTransformFilterModHome_gr_966.gif]   and obtain the alternative formula for the filter:

                    [Graphics:../Images/ZTransformFilterModHome_gr_967.gif].

 

Detailed Solution.   Use the General Filter Equation (9-29) and the corresponding Transfer Function (9-34) in the case  [Graphics:../Images/ZTransformFilterModHome_gr_968.gif].  

Get the new fact that the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_969.gif],  

corresponds to the filter  

                    [Graphics:../Images/ZTransformFilterModHome_gr_970.gif].  

Hence, the the moving average filter in Exercise 9 is  

                    [Graphics:../Images/ZTransformFilterModHome_gr_971.gif]  

and has the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_972.gif].  

Next, we can use the fact that   [Graphics:../Images/ZTransformFilterModHome_gr_973.gif]   and write

                    [Graphics:../Images/ZTransformFilterModHome_gr_974.gif].  

Then make the substitution  [Graphics:../Images/ZTransformFilterModHome_gr_975.gif]  and get  

                    [Graphics:../Images/ZTransformFilterModHome_gr_976.gif].  

It follows that  

                    [Graphics:../Images/ZTransformFilterModHome_gr_977.gif].  
                    
Therefore, the transfer function for the moving average filter in Exercise 9 can be written as

                    [Graphics:../Images/ZTransformFilterModHome_gr_978.gif].  

        Again, we use the General Filter Equation (9-29) and the corresponding Transfer Function (9-34) in the case  [Graphics:../Images/ZTransformFilterModHome_gr_979.gif].  

Get another new fact that the transfer function  

                    [Graphics:../Images/ZTransformFilterModHome_gr_980.gif],  

corresponds to the filter  

                    [Graphics:../Images/ZTransformFilterModHome_gr_981.gif].  

        For this exercise, we use   [Graphics:../Images/ZTransformFilterModHome_gr_982.gif],   [Graphics:../Images/ZTransformFilterModHome_gr_983.gif]  for  [Graphics:../Images/ZTransformFilterModHome_gr_984.gif]   and   [Graphics:../Images/ZTransformFilterModHome_gr_985.gif]   and get  

                    [Graphics:../Images/ZTransformFilterModHome_gr_986.gif].  

Therefore, the moving average filter in Exercise 9 has the alternative formula   

                    [Graphics:../Images/ZTransformFilterModHome_gr_987.gif].

 

We are done.   

Aside.  We can let Mathematica double check our work.

[Graphics:../Images/ZTransformFilterModHome_gr_988.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_989.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_990.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_991.gif]

Aside.  The Maple commands are similar  

[Graphics:../Images/ZTransformFilterModHome_gr_992.gif]  

                                                            [Graphics:../Images/ZTransformFilterModHome_gr_993.gif]  


[Graphics:../Images/ZTransformFilterModHome_gr_994.gif]  

                                                            [Graphics:../Images/ZTransformFilterModHome_gr_995.gif]  

 

We are really done.   

Aside.  We can graph the amplitude response for the filter   [Graphics:../Images/ZTransformFilterModHome_gr_996.gif].  

 

                    [Graphics:../Images/ZTransformFilterModHome_gr_997.gif]          [Graphics:../Images/ZTransformFilterModHome_gr_998.gif]

                    Amplitude response   [Graphics:../Images/ZTransformFilterModHome_gr_999.gif]   and zero-pole plot of   [Graphics:../Images/ZTransformFilterModHome_gr_1000.gif],  

                    for the filter    [Graphics:../Images/ZTransformFilterModHome_gr_1001.gif].

                    The higher frequencies are attenuated and   [Graphics:../Images/ZTransformFilterModHome_gr_1002.gif]   when   [Graphics:../Images/ZTransformFilterModHome_gr_1003.gif].    

 

Remark.   In Exercise 9 we showed that we can multiply the expression for  [Graphics:../Images/ZTransformFilterModHome_gr_1004.gif]  by  [Graphics:../Images/ZTransformFilterModHome_gr_1005.gif]  and obtain the transfer function as a product of "zero-out factors"  

                    [Graphics:../Images/ZTransformFilterModHome_gr_1006.gif]  

 

We are really really done.   

Aside.  Let us investigate how well the filter works to eliminate signals  [Graphics:../Images/ZTransformFilterModHome_gr_1007.gif]  which are close to the "zero-out" frequencies.

        For illustration purposes we will explore the casual input signal   [Graphics:../Images/ZTransformFilterModHome_gr_1008.gif].

The signal component  [Graphics:../Images/ZTransformFilterModHome_gr_1009.gif]  will be attenuated by the factor  [Graphics:../Images/ZTransformFilterModHome_gr_1010.gif],  and

The signal component  [Graphics:../Images/ZTransformFilterModHome_gr_1011.gif]  will be attenuated by the factor  [Graphics:../Images/ZTransformFilterModHome_gr_1012.gif],  and

The signal component  [Graphics:../Images/ZTransformFilterModHome_gr_1013.gif]  will be attenuated by the factor  [Graphics:../Images/ZTransformFilterModHome_gr_1014.gif].  

[Graphics:../Images/ZTransformFilterModHome_gr_1015.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1016.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1017.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1018.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1019.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1020.gif]


[Graphics:../Images/ZTransformFilterModHome_gr_1021.gif]

[Graphics:../Images/ZTransformFilterModHome_gr_1022.gif]

                    [Graphics:../Images/ZTransformFilterModHome_gr_1023.gif]          [Graphics:../Images/ZTransformFilterModHome_gr_1024.gif]

                    The causal input sequence  [Graphics:../Images/ZTransformFilterModHome_gr_1025.gif]  and the corresponding causal output sequence.

                    We can see that the filter mostly eliminates the signals  [Graphics:../Images/ZTransformFilterModHome_gr_1026.gif]  which are close to the "zero-out" frequencies.

 

Remark.  In Exercise 11 we will investigate the moving average of eight points.  

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This solution is complements of the authors.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) 20098 John H. Mathews, Russell W. Howell