High Pass Filtering
High Pass Filtering
High Pass Filtering
Lecture 19
The Fourier Transform (cont.)
Prof. Mohamad Hassoun
The above system has the transfer function 𝐻(𝜔) = 𝑘𝑒 −𝑗𝑡𝑑 𝜔 from which
the magnitude and angle are obtained as: |𝐻 (𝜔)| = 𝑘, ∠𝐻 (𝜔) = −𝑡𝑑 𝜔.
Example. Determine the steady-state output for the above ideal
transmission system to the input, 𝑓(𝑡) = cos(𝑡) + cos(2𝑡). Here, the
signal has two component frequencies (𝜔1 = 1, 𝜔2 = 2).
𝑦𝑠𝑠 (𝑡) = |𝐻 (𝜔1 )| cos(𝑡 + ∠𝐻 (𝜔1 )) + |𝐻 (𝜔2 )| cos(2𝑡 + ∠𝐻(𝜔2 ))
Notice that the second component is delayed by half the delay of the first
component. So, different parts of the signal arrive at different times! This
leads to a distorted signal.
Ans.
1 − 𝑠2 1 + 𝜔2
𝐻 (𝑠) = → 𝐻 (𝜔) =
1 + 𝑠2 1 − 𝜔2
Note: For simplicity, we assumed that 𝑚1 (𝑡) and 𝑚2 (𝑡) are even and real
test signals, which leads to even and real Fourier transforms 𝑀1 (𝜔) and
𝑀2 (𝜔), respectively.
The carrier frequencies for AM radio range from 540KHz to 1700KHz
and are spaced at 10KHz intervals. Recall that the radian frequency 𝜔 is
2𝜋 times the Hertz frequency, 𝑓.
From the above figure, we notice that in order to minimize spectral
overlap, we should require that the sum of the signals’ (rad/sec) bandwidth
to be less than the carrier frequency separation:
𝜔𝐵2 + 𝜔𝐵1 < 𝜔𝑐2 − 𝜔𝑐1 or 𝐵2 + 𝐵1 < 𝑓𝑐2 − 𝑓𝑐1
For AM radio, the intelligible signal bandwidth is about 5KHz, which
would require neighboring carrier frequencies to be separated by 10KHz.
The above requirement is important so that the receiving station can
employ a proper narrow band-pass filter to select the spectra of the signal
of interest.
Modulation at the transmitter stage: Consider the Fourier transform pair
𝑚(𝑡) ↔ 𝑀(𝜔). The frequency shift of the signal can be obtained by
multiplying the time-domain signal by 𝑒 𝑗𝜔𝑐 𝑡 (recall the frequency-shift
property of the Fourier transform) as shown below.
Let us assume that the receiver can generate a cos(𝜔𝑐 𝑡) that is in phase
with the transmitter’s modulating sinusoid. Multiplying 𝑦(𝑡) by this
sinusoid generates:
1
Using the trigonometric identity: cos 2 (𝑥 ) = 2 (1 + cos 2𝑥), we may write
the demodulated signal 𝑒(𝑡) as
1 1
𝑒(𝑡) = 𝑚 𝑡 + 𝑚(𝑡) cos(2𝜔𝑐 𝑡)
( )
2 2
and write its corresponding Fourier transform as
1 1
𝐸 (𝜔) = 𝑀(𝜔) + [𝑀(𝜔 + 2𝜔𝑐 ) + 𝑀(𝜔 − 2𝜔𝑐 )]
2 4
Here is the associated spectrum,
The spectrum suggests that 𝑀(𝜔) can be extracted using a low-pass filter
whose cutoff frequency is equal to the bandwidth of 𝑚(𝑡).
The above analysis suggests the following receiver circuit [𝜔𝑐 represents
the carrier frequency in rad/sec],
Note that the shift 𝑡𝑑 is due to the delay introduced by the filter. This delay
is about 0.17 sec and can be verified by measuring the slope of the 2nd-
order phase response in the vicinity of the origin. Note how the 2nd order
filter leads to less distortion but slightly more delay.
We may repeat the above simulation of the communication system using
Matlab’s Simulink (employing a 2nd-order filter with cut-off frequency
𝜔0 = 10 and dc gain of 2):
The transfer function for this filter can be easily obtained from the magnitude
𝜔
response, |𝐻 (𝜔)| = rect ( ), and phase response, angle(𝐻 (𝜔)) = 𝑒 −𝑗𝜔𝑡𝑑 , as
2𝜔0
𝜔
𝐻 (𝜔) = rect ( ) 𝑒 −𝑗𝜔𝑡𝑑
2𝜔𝑜
The unit-impulse response ℎ(𝑡) for this filter can be obtained using the inverse
Fourier transform of 𝐻 (𝜔) (employ Fourier Pair #18 and the time-shift property)
𝜔 𝜔𝑜
ℎ(𝑡) = 𝐹 −1 {rect ( ) 𝑒 −𝑗𝜔𝑡𝑑 } = sinc[𝜔𝑜 (𝑡 − 𝑡𝑑 )]
2𝜔𝑜 𝜋
So, from the following plot, we observe that ℎ(𝑡) is non-causal; the response of the
filter for an impulse 𝛿(𝑡) applied at 𝑡 = 0 exists for 𝑡 < 0. The above ideal low-
pass filter characteristics cannot be realize physically because ℎ(𝑡) ≠ 0 for 𝑡 < 0.
In the frequency domain, the Paley-Wiener Criterion can be used to test to see if a
mathematical transfer function 𝐻(𝜔) can be realized physically. The criterion is
necessary and sufficient and is mathematically stated in terms of the amplitude
response as
∞
|ln|𝐻 (𝜔)||
∫ 2
𝑑𝜔 < ∞
−∞ 1 + 𝜔
If |𝐻 (𝜔)| does not satisfy the above criterion then it is physically unrealizable. Note
that if |𝐻 (𝜔)| is zero over any finite band then |ln|𝐻 (𝜔)|| = ∞ over that finite
band and the integral is infinite; meaning that the filter is unrealizable. However, it
is possible for the above integral to be finite if |𝐻 (𝜔)| is zero at a single frequency
(or over a set of discrete frequencies).
2
Your turn: Show that the transfer function 𝐻 (𝜔) = 𝑒 −𝑎𝜔 is physically
unrealizable (assume 𝑎 > 0). Employ two methods: (1) By showing that ℎ(𝑡) is
non-causal, and (2) by showing that |𝐻 (𝜔)| violates the Paley-Wiener Criterion.
For Part (1) you may use Mathcad to solve the integral.
The following low-pass filter characteristics are typical of realizable filters. Note
the distortion introduced by the amplitude and phase responses.
The following are the magnitude and angle spectra associated with the 2nd
and 4th order Butterworth filters, respectively, with cutoff frequency of
𝑗𝜔
𝜔0 = 10 [obtained by setting 𝑠 = in the above normalized 𝐻(𝑠)],
10
Matlab’s Computation of Butterworth Filter Poles
√2 √2
Let the poles of the system for the first filter be 𝑝, 𝑝∗ = − ±𝑗 and for
2 2
√2 √2
the second filter be 𝑝, 𝑝∗ = −0.6 ±𝑗 .
2 2
The (normalized) magnitude response for both filters is compared in the
following Mathcad generated plot. Note: 𝐻2(0) ≅ 1.47 and its magnitude
response is normalized by this same constant in the plot for comparison
purposes.
105
Bessel: 𝐻2(𝑠) =
(𝑠2 +5.79242𝑠+9.14013)(𝑠2 +4.20758𝑠+11.4878)
0.35785
Chebyshev: 𝐻3(𝑠) =
(𝑠2 +0.35071𝑠+1.06352)(𝑠2 +0.84668𝑠+0.356412)
[Reference: Principles of Active Network Synthesis and Design, Gobind Daryanani (Wiley, 1976)]
Your turn: Employ Mathcad to compute and compare (by plotting) the
phase response (0 < 𝜔 < .9) and the step response (0 < 𝑡 < 15) of each
of the above four filters. Your answers should look like the ones in the
figures below. Evaluate the filters based on the shape of their
corresponding responses.
or, 𝑎1 = 1.11. The following plot compares the magnitude response for
both filters. Notice that the second design is not maximally flat in the
passband region.
Your turn: Design a 3rd-order low-pass filter with the 𝐻(𝑠) shown below.
Plot the magnitude response and compare it to that of a 3rd-order low-pass
Butterworth filter. Also, plot the poles of 𝐻(𝑠) in the complex frequency
plain and compare to those of the 3rd-order Butterworth filter.
1
𝐻 (𝑠) =
𝑎3 𝑠 3 + 𝑎2 𝑠 2 + 𝑎1 𝑠 + 𝑎0
1
|𝐻 (3000)| = = 0.1
3000 2𝑛
√1 + ( )
𝜔0
1000 2𝑛 1
( ) = ( 2 ) − 1 = 0.235
𝜔0 0.9
3000 2𝑛 1
( ) = ( 2 ) − 1 = 99
𝜔0 0.1
We can now solve the first equation for 2𝑛 and substitute it in the second
equation to get
1.448
[− ] [8.006 − ln(𝜔0 )] = 4.495
(
6.908 − ln 𝜔0 )
The filter’s transfer function is then (the coefficients can be obtained from
the formula for the poles or from the Butterworth Table of filter
coefficients presented later in this lecture),
1
𝐻(𝑠) = 3 2
𝑠 𝑠 𝑠
(1300) + 2 (1300) + 2 (1300) + 1
The frequency response spectra is plotted below.
(The filter input is blue, sin(1100𝑡) is yellow and the filter output is red)
Filter passes both frequencies; cut-off at 𝜔0 = 2,200 rad/sec:
(Filter input: blue; filter output: red. Note the distortion. Try larger 𝜔0 )
Filter Design: Low-Pass, High-Pass, Band-Pass, Band-Reject, All-Pass
In this section we consider the design of (analog) electric filters based on the
Butterworth characteristics. We can summarize the earlier findings of the
normalized (cutoff frequency 𝜔0 = 1) 𝑛𝑡ℎ -order low-pass Butterworth filter
transfer function as,
1 1
𝐻 (𝑠) = =
(𝑠 − 𝑝1 )(𝑠 − 𝑝2 ) … (𝑠 − 𝑝𝑛 ) 𝑎𝑛 𝑠 𝑛 + 𝑎𝑛−1 𝑠 𝑛−1 + ⋯ + 𝑎1 𝑠 + 𝑎0
𝑗𝜋(2𝑘+𝑛−1)
𝑗𝜃𝑘
with poles 𝑝𝑘 = 𝑒 =𝑒 2𝑛 , 𝑘 = 1, 2 , … 𝑛. For convenience, we can
tabulate the values of the poles and denominator coefficients of 𝐻(𝑠) as shown in
the following table (note that 𝑎0 and 𝑎𝑛 are always 1).
𝜃𝑘 n 𝑎0 𝑎1 𝑎2 𝑎3 𝑎4 𝑎5 𝑎6 𝑎7 𝑎8
𝜋 1 1 1
3𝜋 5𝜋 2 1 √2 1
,
4 4
2𝜋 4𝜋 3 1 2 2 1
, 𝜋,
3 3
5𝜋 7𝜋 9𝜋 11𝜋 4 1 2.61 3.41 2.61 1
, , ,
8 8 8 8
3𝜋 4𝜋 6𝜋 7𝜋 5 1 3.24 5.24 5.24 3.24 1
, , 𝜋, ,
5 5 5 5
7𝜋 9𝜋 11𝜋 13𝜋 15𝜋 17𝜋 6 1 3.87 7.46 9.14 7.46 3.87 1
, , , , ,
12 12 12 12 12 12
8 1 5.13 13.14 21.85 25.69 21.85 13.14 5.13 1
The denormalized transfer function for a low-pass Butterworth filter with order 𝑛,
dc gain 𝐾 and cutoff-frequency 𝜔𝑜 can be obtained according to the formula
𝐾
𝐻𝐿𝑃 (𝑠) = 𝑛 𝑛−1
𝑠 𝑠 𝑠
𝑎𝑛 ( ) + 𝑎𝑛−1 ( ) + ⋯ + 𝑎1 ( ) + 1
𝜔𝑜 𝜔𝑜 𝜔𝑜
From the above table we have the denominator coefficients √2 and 1. Hence, the
normalized transfer function is
1
𝐻 (𝑠) =
𝑠 2 + √2𝑠 + 1
The denormalized filter transfer function (with 𝐾 = 10) is then
10 107
𝐻𝐿𝑃 (𝑠) = 2 =
1(
𝑠 𝑠
) + √2 (103 ) + 1 𝑠2 + 103 √2𝑠 + 106
103
Your turn: Obtain the transfer function for a third-order Butterworth low-pass
filter with cutoff frequency of 1000 rad/sec and dc gain of 10. Plot the magnitude
and angle of 𝐻 (𝜔).
1010
Ans. 𝐻𝐿𝑃 (𝑠) =
𝑠3 +(2)103 𝑠2 +(2)106 𝑠+109
Example. Design the above active circuit such that it realizes the low-pass
Butterworth filter,
107
𝐻𝐿𝑃 (𝑠) =
𝑠2 + 103 √2𝑠 + 106
We may express the above transfer function as
106
𝐻𝐿𝑃 (𝑠) = (10)
𝑠2 + 103 √2𝑠 + 106
which suggests that a Sallen-Key circuit can be used followed by an op-amp
amplifier stage of gain 10. So, by matching coefficients in the expression
1
6
10 𝑅1 𝑅2 𝐶1 𝐶2
= 1 1 1
𝑠 2 + 103 √2𝑠 + 106 𝑠2 + ( + )𝑠 +
𝑅1 𝐶1 𝑅2 𝐶1 𝑅1 𝑅2 𝐶1 𝐶2
1 1 1
we arrive at the requirements = 106 and + = 103 √2. We have
𝑅1 𝑅2 𝐶1 𝐶2 𝑅1 𝐶1 𝑅2 𝐶1
ample flexibility to set the four element values since we have only two constraints
(equations) to satisfy. So, we choose 𝑅1 = 𝑅2 = 10KThis choice leads to 𝐶1 ≈
0.14F and 𝐶2 = 70.7nF. In practice, the capacitors are picked from what is
available in production and would be chosen as close as possible to the theoretical
values obtained. Alternatively, we can choose practical capacitor values first and
then solve for the resistor values. Potentiometers can then be used to (precisely) set
the resistor values in the circuit. Your turn: Set 𝐶1 = 0.1F and 𝐶2 = 50nF and
solve for 𝑅1 and 𝑅2 .
Higher order filters (with even order) can be implemented by cascading two or
more Sallen-Key stages, with each stage designed to match one conjugate pairs of
poles. In other words if a 4th-order low-pass filter with poles 𝑒 ±𝑗𝜃1 and 𝑒 ±𝑗𝜃2 is to
be realized, then the first Sallen-Key circuit stage is designed to match poles
𝑒 ±𝑗𝜃1 and the second stage matches 𝑒 ±𝑗𝜃2 . A final stage consisting of an op-amp
voltage amplifier circuit is used to set the dc gain, 𝐾. The structure is shown in the
figure below.
High-Pass Butterworth Filter Design
A Butterworth high-pass filter with cutoff frequency 𝜔𝑜 and pass-band frequency
gain 𝐾 can be obtained from a Butterworth low-pass filter with the same cutoff
frequency by performing a three-step process:
Step 1: For a specified value of 𝑛, obtain the low-pass filter normalized transfer
function 𝐻(𝑠),
1
𝐻 (𝑠) =
𝑎𝑛 𝑠 𝑛 + 𝑎𝑛−1 𝑠 𝑛−1 + ⋯ + 𝑎1 𝑠 + 1
1
Step 2: Generate a high-pass filter normalized transfer function by replacing 𝑠 by
𝑠
to obtain
1
𝐻 ′ (𝑠) =
1 𝑛 1 𝑛−1 1
𝑎𝑛 ( ) + 𝑎𝑛−1 ( ) + ⋯ + 𝑎1 ( ) + 1
𝑠 𝑠 𝑠
𝑛
𝑠
=
𝑎𝑛 + 𝑎𝑛−1 𝑠 + ⋯ + 𝑎1 𝑠 𝑛−1 + 𝑠 𝑛
Step 3. Obtain the denormalized high-pass filter from the normalized transfer
𝑠
function (in Step 2) by replacing 𝑠 by and introducing a gain factor 𝐾, if needed.
𝜔𝑜
𝑠 𝑛
𝐾( )
𝜔𝑜
𝐻𝐻𝑃 (𝑠) = 𝑛−1 𝑛
𝑠 𝑠 𝑠
𝑎𝑛 + 𝑎𝑛−1 ( ) + ⋯ + 𝑎1 ( ) +( )
𝜔𝑜 𝜔𝑜 𝜔𝑜
′
1 𝑠3
𝐻 (𝑠) = =
1 3 1 2 1 1 + 2𝑠 + 2𝑠 2 + 𝑠 3
( ) + 2( ) + 2( )+ 1
𝑠 𝑠 𝑠
𝑠
Now, we denormalize by replacing 𝑠 by to obtain,
𝜔𝑜
𝑠 3
𝐾( )
103
𝐻𝐻𝑃 (𝑠) = 2 3
𝑠 𝑠 𝑠
1 + 2( ) + 2 (103 ) + (103 )
103
𝐾𝑠3
𝐻𝐻𝑃 (𝑠) =
𝑠3 + (2)103 𝑠2 + (2)106 𝑠 + 109
Finally, since the high-frequency gain is specified to be 10, we may obtain the value
of 𝐾 as the solution to
lim 𝐻𝐻𝑃 (𝑠) = 10
𝑠→∞
to obtain 𝐾 = 10.
Your turn: Plot the magnitude and angle response for the above high-pass filter.
Your turn: Show that the following op-amp circuit implements a second-order
high-pass filter. Determine the filter’s cutoff frequency 𝜔𝑜 .
Matlab-Based Analog Filter Design Toolbox: afd
The Analog Filter Design (AFD) Toolbox bundles a suite of tools for analog filter
design and analysis. Given a filter type (high-pass or low-pass) it can calculate pole
and zero placements, display time and frequency-domain system responses,
calculate needed resistor and capacitor values for various active-circuit
implementations and complete several other useful functions.
This toolbox is not part of Matlab and need to be installed as an Add-On. A
compressed folder containing the software is available from the course web page.
Download by clicking the “Analog Filter Design for Matlab” link. Then extract the
files from the downloaded zipped folder. Double-click the file
to install. This will create the Add-On in Matlab, as shown in the following figure.
The executable script afd.m need to be dragged from the unzipped folder and pasted
into the metadata directory as you can see in the above figure. The toolbox is
executed by typing afd at the Matlab prompt. A tutorial is available on the course
webpage. The following example illustrates the design and active-circuit generation
of a (two-stage) fourth-order, low-pass Butterworth filter with 10KHz cutoff
frequency and dc gain of 1. First, enter the values as shown below.
From the “Analyze” menu we choose “List Transfer Function” and then “Plot Poles
and Zeros” to obtain the following:
A band-pass filter 𝐻𝐵𝑃 (𝑠) can be achieved by cascading a low-pass filter and a
high-pass filter, 𝐻𝐵𝑃 (𝑠) = 𝐻𝐿𝑃 (𝑠)𝐻𝐻𝑃 (𝑠), as illustrated in the figure below. It is
important to note that the band-pass lower cutoff frequency is the high-pass filter’s
cutoff frequency 𝜔𝐻𝑃 . Also, the band-pass upper cutoff frequency is that of the
low-pass filter’s cutoff frequency 𝜔𝐿𝑃 (with 𝜔𝐿𝑃 > 𝜔𝐻𝑃 ).
Similarly, a band-reject (band-stop) filter can be implemented by adding the outputs
of a low-pass and a high-pass filters (here, 𝐻𝐵𝑆 (𝑠) = 𝐻𝐿𝑃 (𝑠) + 𝐻𝐻𝑃 (𝑠) with
𝜔𝐿𝑃 < 𝜔𝐻𝑃 ) as depicted in the following figure (on the right hand side).
Your turn: Employ Simulink to generate a signal consisting of the sum of three
sinusoids oscillating at frequencies 800 rad/sec, 1000 rad/sec and 1200 rad/sec,
respectively. Design a bandpass analog filter that only passes the 1000 rad/sec
sinusoid. Employ the built-in analog filter block (search the Simulink Library
Browser for “analog filter”) to customize the filter. Solve the problem in two
different ways: (1) Employing a bandpass filter, and (2) Employing a cascade of a
low-pass and a high-pass filters. Which implementation is more efficient in terms of
filter order?
Your turn. Consider the circuit in the following figure. Assume 𝑅 = 2Ω, 𝐿 =
10mH and 𝐶 = 1𝜇F.
𝑉𝑜
a. Determine 𝐻(𝜔) = .
𝑉𝑠
b. Plot |𝐻(𝜔)| versus 𝜔 for 𝜔 ∈ [9,800 10,200]. Identify the filter type.
c. Solve for 𝜔0 such that |𝐻(𝜔0 )| is maximized.
d. Solve for the cutoff frequencies 𝜔𝑐1 and 𝜔𝑐2 .
𝜔0
e. Determine the quality factor = .
𝜔𝑐2 −𝜔𝑐1
(You may employ Mathcad to solve for Parts b, c and d.)
The following plot depicts the magnitude spectrum of a (60 Hz) notch filter
with 𝜔𝑛 = 120𝜋 and 𝛼 = −0.1𝜔𝑛 ,
Your turn:
1. Show that the transfer function for the above notch filter is given by,
2𝛼𝑠 − 𝛼 2
𝐻 (𝑠) = 1 +
(𝑠 − 𝛼 )2 + 𝜔𝑛2
2. Show that the impulse response of this filter is given by,
𝛼4 −𝛼
where, 𝐴(𝛼, 𝜔𝑛 ) = √4𝛼 2 + 2 and 𝜃(𝜔𝑛 ) = tan−1 ( ).
𝜔𝑛 2𝜔𝑛
3. Plot ℎ(𝑡) vs 𝑡 (excluding the impulse) and |𝐻 (𝜔)| vs 𝜔 for 𝜔𝑛 = 120𝜋 and
𝛼 = −30. Repeat for 𝛼 = −10. What are your conclusions about the effect of
𝛼 on the time it takes for the response of the filter to reach its steady-state?
What about the effects of 𝛼 on the selectivity of the filter?
Your turn: Consider the following notch filter (𝜔𝑛 = 5), with 𝛼 = −1.2 or −0.2.
2𝛼𝑠 − 𝛼 2
𝐻 (𝑠) = 1 +
(𝑠 − 𝛼 )2 + 25
a. Compare the plots of the magnitude and angle responses of these two filters.
b. Employ Mathcad to solve for and plot the zero-state responses of the filter to
the input 𝑓(𝑡) = cos(8𝑡) + cos(5𝑡) for 𝛼 = −1.2 and 𝛼 = −0.2.
Your plots should look like the following plots,
Your turn: Consider the following RLC circuit. Assume that 𝐶 = 100 𝜇F, 𝐿 =
70.3 mH and 𝑅 = 10
a. Find the steady-state response, 𝑣𝑜𝑢𝑡 (𝑡) for the input 𝑣𝑖𝑛 (𝑡) = cos(120𝜋𝑡) +
0.2cos(2000𝜋𝑡).
b. Plot 𝑣𝑖𝑛 (𝑡) and 𝑣𝑜𝑢𝑡 (𝑡) on the same set of axis (use 0 < 𝑡 < 40 ms and
−1.5 < 𝑣 < 1.5).
c. Plot the magnitude spectrum of 𝐻(𝜔), for 0 < 𝜔 < 2000. What type of filter
does the circuit implement? Determine the frequency that is completely
blocked by the circuit (you may use the trace function of Mathcad)?
Simulink Example of a Notch Filter
http://www.mathworks.com/help/dsp/examples/removing-an-interfering-tone-from-a-streaming-audio-signal.html
A notch filter is used to eliminate a specific frequency from a given signal. In their
most common form, the filter design parameters for notch filters are center
frequency for the notch and the 3 dB bandwidth. The center frequency is the
frequency point at which the filter has a gain of zero. The 3 dB bandwidth measures
the frequency width of the notch of the filter computed at the half-power or -3 dB
attenuation point.
In this example, you tune a notch filter in order to eliminate a 250 Hz sinusoidal
tone corrupting an audio signal. You can control both the center frequency and the
bandwidth of the notch filter and listen to the filtered audio signal as you tune the
design parameters.
The command audioToneRemovalExampleApp launches a user interface designed
to interact with the simulation. It also launches a spectrum analyzer to view the
spectrum of the audio with and without filtering along with the magnitude response
of the notch filter.
All-Pass Filters
Circuits with transfer functions of the form,
(𝑠 − 𝑧1 )(𝑠 − 𝑧2 ) … (𝑠 − 𝑧𝑛 )
𝐻 (𝑠) =
(𝑠 − 𝑝1 )(𝑠 − 𝑝2 ) … (𝑠 − 𝑝𝑛 )
that have the same number of poles as zeros, with each pole (located in the LHP for
stability) having a corresponding zero that is symmetrically (with respect to the 𝑗𝜔
axis) located in the RHP are referred to as all-pass filters. Here, 𝑝𝑖 = −𝑎𝑖 + 𝑗𝑏𝑖 (𝑎𝑖 >
0) and 𝑧𝑖 = 𝑎𝑖 + 𝑗𝑏𝑖 . An all-pass filter has a constant attenuation at
all frequencies but the relative phase between input and output varies with frequency.
Your turn: Plot the phase response for the above first-order, all-pass filter (assume
𝑎 = 1).
The transfer functions for a first-order and a second-order all-pass filters take the
following general forms, respectively,
𝑠−𝑎 𝑠2 −𝑎𝑠+𝑏
𝐻 (𝑠 ) = and 𝐻 (𝑠) = (𝑎, 𝑏 > 0)
𝑠+𝑎 𝑠2 +𝑎𝑠+𝑏
The following circuit (presented in a “your turn” problem earlier in this lecture) is
an example of a second-order passive all-pass filter (also known as a lattice phase
equalizer)
The lattice filter has an important application for stereo audio feeds. Phase
distortion on a monophonic audio line does not have a serious effect on the quality of
the sound unless it is very large. The same is true of the absolute phase distortion on
each leg (left and right channels) of a stereo pair of lines. However, the differential
phase between legs has a very dramatic effect on the stereo perception. This is
because the formation of the stereo image in the brain relies on the phase difference
information from the two ears. A phase difference translates to a delay, which in turn
can be interpreted as a direction the sound came from. Consequently, landlines used
by broadcasters for stereo transmissions are equalized to very tight differential phase
specifications.
In other words, an all-pass filter 𝐻1(𝑠) (with proper placement of its poles) can be
used in cascade with the main filter 𝐻(𝑠) so as to affect (shape) the overall phase
response.
Your turn: Derive the transfer functions for the following all-pass filters.
Your turn: A three-amplifier biquad filter is shown in the circuit below. (a)
𝑉1 (𝑠) 𝑉2 (𝑠) 𝑉3 (𝑠)
Determine the transfer functions 𝐻1 (𝑠) = , 𝐻2 (𝑠) = and 𝐻3 (𝑠) =
𝑉𝑖𝑛 (𝑠) 𝑉𝑖𝑛 (𝑠) 𝑉𝑖𝑛 (𝑠)
in terms of the symbolic 𝑅’s and 𝐶’s. (b) Plot (use a log scale for 0.1 < 𝜔 < 10)
the magnitude response for the three transfer functions on the same graph (for the
plot, assume that all resistor values are 1Ω and all capacitor values are 1F). Identify
the filters types. (c) At what frequency does |𝐻2 (𝜔)| attain its maximum value?
Your turn: Show that the following circuit has the transfer function shown. Plot
the magnitude and angle responses.
𝑉𝑜 (𝑠) −2𝑠
𝐻 (𝑠) = = 2
𝑉𝑖𝑛 (𝑠) 𝑠 + 2𝑠 + 2
Your turn: The following circuit is a capacitance multiplier. Show that the input
𝐼1 𝑅2
admittance is given by, = (1 + ) 𝐶.
𝑉1 𝑅1
𝑉𝑜 (𝑠)
Your turn: Determine the transfer function 𝐻 (𝑠) = for the following circuit,
𝑉𝑖𝑛 (𝑠)
as a function of 𝐿1 , 𝐿2 , 𝐿3 , 𝐶1 , 𝐶2 and 𝐶3 . Use nodal analysis (two equations) and
then employ Mathcad to solve the equations symbolically. Then, determine integer
𝑠2 (𝑠2 +1)
element values such that 𝐻 (𝑠) = . Plot the filter’s magnitude and angle
2𝑠4 +5𝑠2 +2
response. Discuss the frequency response.
𝑉𝑜 (𝑠)
Your turn: Determine the transfer function 𝐻 (𝑠) = for the following filter.
𝐼𝑖𝑛 (𝑠)
Assume all element values are equal to 1. You may use Mathcad to solve the three
nodal equations. Plot the filter’s magnitude and angle response. Discuss the
frequency response behavior of the filter.
Your turn: Show that the following filter is a fifth-order Butterworth low-pass
filter with dc gain of 0.5 and a -3dB cutoff frequency of about 62.8 MHz. Compare
the magnitude spectrum of this filter to the one using 𝐶1 = 10nF, 𝐶3 = 32nF,
𝐶5 = 10nF, 𝐿2 = 26nF, 𝐿4 = 26nF. Discuss the results.
Analog Filter Design as a Numerical Optimization Problem
𝑎𝑚 𝑠 𝑚 + 𝑎𝑚−1 𝑠 𝑚−1 + ⋯ + 𝑎1 𝑠 + 𝑎0
𝐻 (s) =
𝑠 𝑛 + 𝑏𝑛−1 𝑠 𝑛−1 + ⋯ + 𝑏1 𝑠 + 𝑏0
𝑎0 , 𝑎1 , 𝑎2 , … , 𝑎𝑚 , 𝑏0 , 𝑏1 , … 𝑏𝑛−1 , 𝑐
Also, based on earlier discussion about minimizing phase distortion, we would like
to force the phase response of the filter to be linear over the pass-band region, i.e.,
∠𝐻(𝜔) = −𝑐𝜔. This adds the following 𝑀 constraints (where, the 𝜔𝑗 ’s
are user specified and are supposed to sample the frequencies of the pass
band),
Note that you have to experiment numerically with several initial search
points and choose the physically feasible solution (e.g., poles in the left
half plane) that gives the smallest value for 𝐼. The following is the
Mathcad worksheet that generates the solution (for the indicated initial
search point),
Therefore, the LSE solution to the optimization problem is,
(𝑎2∗ , 𝑎1∗ , 𝑎0∗ , 𝑏2∗ , 𝑏1∗ , 𝑏0∗ ) = (0.261, 0.061, 0.7, 1.194, 1.303, 0.69)
The poles are (located poles in the LHP) −0.7179, −0.2381 ± 𝑗0.9511
and the zeros are at −0.1169 ± 𝑗1.6335. The following plot depicts the
location of the poles (blue) and zeros (red).
1
𝐻 (𝑠) =
𝑠 3 + 2𝑠 2 + 2𝑠 + 1
The following plot compares the phase response for the two filters over
the pass band. The red circles are the angle data.
The following is the LSE solution for the above filter design problem
utilizing Matlab’s fminsearch optimization function.
Case 1: Magnitude and angle specifications are imposed ( 𝜆 = 1)
Case 2: Only Magnitude specifications are imposed (𝜆 = 0)
Your turn: Determine the LSE solution for the third-order analog filter
with the following specifications. Also, generate plots similar to the three
plots shown above.
Its magnitude is 1 at ω = 0, 1 at ω = 0.9, and 0.85 at ω = 1
Its magnitude is 0.3 at ω = 1.5 and is 0.2 at ω = 2
Its magnitude is 0.1 at ω = 3 and is 0 at ω = 5
Its phase is 0 at ω = 0, −0.25𝑐 at ω = 0.25, −0.5𝑐 at ω = 0.5 and
−0.9𝑐 at ω = 0.9.
Set 𝜆 = 0.3 and experiment with different sets of initial conditions.
Appendix
Experimental Demonstration of Amplitude Modulation
The following picture shows the experimental setup used. It shows the low-
pass filter sitting on top of two analog multipliers. One multiplier is used to
implement modulation. The other multiplier is used for demodulation.
Build your filter using available components. Make sure you use low
tolerance capacitors that come as close as possible to the design values. You
might want to use small pots for the resistors.
Measure the actual values of all resistors and capacitors used. Determine the
actual transfer function, 𝐻(𝑠). Find its coefficients based on the actual
component values used in your circuit.
Use Mathcad/Matlab to determine the frequency response [plot |𝐻 (𝜔)| 𝑣𝑠 𝜔]
of your filter.
Determine and plot the poles of your filter. Compare them to the design poles.
Use Multisim to simulate your filter (using measured component values) and
generate a frequency response plot.
Test your filter experimentally (using a sine wave generator and an
oscilloscope) and determine its frequency response (generate plot from data).
What is the gain at 1 KHz, 10 KHz, 11 KHz, and 15 KHz?
Submit a complete electronic report (with introduction, discussion, simulations,
oscilloscope outputs and conclusions) to document your work. Be prepared to
demonstrate the hardware setup to your instructor. (Note: This filter can be used as
part of a mini project presented at the end of Lecture 23).
Hints: A cascade of three stages of Sallen-Key circuits can be used to implement
your filter. You may use the AFD Toolbox to design the filter and to determine the
circuit component values. Additional op-amp circuits may be used as buffers and
amplifiers if needed. Make sure you use op-amps with bipolar supply voltages of
±12 Volt or higher. Make sure the signal processed by the filter does not get
clipped (as a result of op-amp saturation).
Sample Student Work (by Alex Pluff, Winter 16)
Comparing the poles for the ideal and the actual (experimental) filters