Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:courses:real-analog-chapter-11:start [2017/01/17 23:08] Marthalearn:courses:real-analog-chapter-11:start [2023/02/08 20:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Real Analog: Chapter 11 ====== ====== Real Analog: Chapter 11 ======
-====== 11. Introduction and Chapter Objectives ======+[[{}/learn/courses/real-analog-chapter-10/start|Back to Chapter 10]] 
 +-->Chapter 11 Materials#   
 +  * Lecture Material: 
 +    * {{ :learn:courses:real-analog-chapter-11:lecture29.ppt |Lecture 29 PowerPoint Slides}}: Frequency response examples, frequency response plots & signal spectra, filters 
 +    * {{ :learn:courses:real-analog-chapter-11:lecture30.ppt |Lecture 30 PowerPoint Slides}}: Checking frequency response results, time-to-frequency domain relations for first-order filters, Bode plots 
 +    * [[http://www.youtube.com/watch?v=X7VaMxhW2xY&list=PLDEC730F6A8CDE318&index=32&feature=plpp_video| Lecture 29 Video]] 
 +    * [[http://www.youtube.com/watch?v=lyqgIl8KM4M&list=PLDEC730F6A8CDE318&index=33&feature=plpp_video| Lecture 30 Video]] 
 +  * Chapter 11 Videos: 
 +    * [[http://www.youtube.com/watch?v=Bw6ahZ8znNU&list=PL170A01159D42313D&index=22&feature=plpp_video| Lab 11 Video 1]]: Introduction to Frequency Response: Using frequency response to estimate a circuit's behavior. A low-pass filter is used as an example to filter noise out of a sinusoidal signal. 
 +    * [[http://www.youtube.com/watch?v=R_7W6RuCUn0&list=PL170A01159D42313D&index=23&feature=plpp_video| Lab 11 Video 2]]: Practical Filters: Examples of low-pass filters are presented. The properties of passive vs. active filters are compared, especially relative to the effects of applying a "load" to the filter. 
 +    * [[http://www.youtube.com/watch?v=y-KQ2NMxws0&list=PL170A01159D42313D&index=24&feature=plpp_video| Lab 11 Video 3]]: Bode Plots: Bode plots and their creation using the Analog Discovery Network Analyzer. 
 +  * {{ :learn:courses:real-analog-chapter-11:real-analog-chapter-11.pdf | Chapter 11 Complete PDF}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p2p1.pdf |Lab 11.2.1}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p2p1_worksheet.docx |Worksheet 11.2.1}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p3p1.pdf |Lab 11.3.1}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p3p1_worksheet.docx |Worksheet 11.3.1}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p3p2.pdf |Lab 11.3.2}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p3p2_worksheet.docx |Worksheet 11.3.2}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p3p3.pdf |Lab 11.3.3}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p3p3_worksheet.docx |Worksheet 11.3.3}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p3p4.pdf |Lab 11.3.4}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p3p4_worksheet.docx |Worksheet 11.3.4}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p3p5.pdf |Lab 11.3.5}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p3p5_worksheet.docx |Worksheet 11.3.5}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p4p1.pdf |Lab 11.4.1}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p4p1_worksheet.docx |Worksheet 11.4.1}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p4p2.pdf |Lab 11.4.2}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p4p2_worksheet.docx |Worksheet 11.4.2}} 
 +    * {{ :learn:courses:real-analog-chapter-11:lab11p4p3.pdf |Lab 11.4.3}} 
 +      * {{ :learn:courses:real-analog-chapter-11:lab11p4p3_worksheet.docx |Worksheet 11.4.3}} 
 +  * {{ :learn:courses:real-analog-chapter-11:realanalog-exercisesolutions-chapter11.pdf |Exercise Solutions}}: Chapter 11 exercise solutions 
 +  * {{ :learn:courses:real-analog-chapter-11:homework11.docx |Homework}}: Chapter 11 homework problems 
 + 
 +<-- 
 + 
 +===== 11. Introduction and Chapter Objectives =====
 In section 10.6, we saw that a system’s frequency response provided a steady-state input-output relationship for a system, as a function of frequency. We could apply this frequency response to the phasor representation of the input signal in order to determine the system’s steady-state sinusoidal response – we simply evaluated the frequency response at the appropriate frequencies to determine the effect of the system on the input sinusoids. This approach had the potential for simplifying our analysis considerably, particularly for the case in which the input signal contained multiple sinusoids with different frequencies. In section 10.6, we saw that a system’s frequency response provided a steady-state input-output relationship for a system, as a function of frequency. We could apply this frequency response to the phasor representation of the input signal in order to determine the system’s steady-state sinusoidal response – we simply evaluated the frequency response at the appropriate frequencies to determine the effect of the system on the input sinusoids. This approach had the potential for simplifying our analysis considerably, particularly for the case in which the input signal contained multiple sinusoids with different frequencies.
  
-In [[https://reference.digilentinc.com/learn/courses/real-analog-chapter-10/start|Chapter 10]], the signals we considered consisted only of individual sinusoids. It is more useful, however, in some ways to think in terms of the inputs and outputs of the system as functions of frequency, in the same way in which we considered the frequency response of the system to be a function of frequency in section 10.6. We can then perform our analysis of the system entirely in terms of the frequencies involved. This leads to the use of the system’s frequency response directly as a design and analysis tool. In many cases, this means that the actual time- domain behavior of the system or signal is of limited interest (or in some cases, not considered at all). Some examples of frequency domain analyses are:+In [[/learn/courses/real-analog-chapter-10/start|Chapter 10]], the signals we considered consisted only of individual sinusoids. It is more useful, however, in some ways to think in terms of the inputs and outputs of the system as functions of frequency, in the same way in which we considered the frequency response of the system to be a function of frequency in section 10.6. We can then perform our analysis of the system entirely in terms of the frequencies involved. This leads to the use of the system’s frequency response directly as a design and analysis tool. In many cases, this means that the actual time- domain behavior of the system or signal is of limited interest (or in some cases, not considered at all). Some examples of frequency domain analyses are:
   - //Determining dominant sinusoidal frequency components in a measured signal//. Complex signals can often be represented as a superposition of several sinusoidal components with different frequencies. Identifying sinusoidal components with large amplitudes (the so-called dominant frequencies) can help with many design problems. One application of this is in the area of combustion instability – combustion processes in rocket engines can become unstable due to a variety of reasons, any of which can result in catastrophic failure of the engine. The type of instability which occurs is generally linked to a particular frequency; identification of the frequency of the pressure oscillations associated with the combustion instability is generally the first step in determining the cause of the instability.   - //Determining dominant sinusoidal frequency components in a measured signal//. Complex signals can often be represented as a superposition of several sinusoidal components with different frequencies. Identifying sinusoidal components with large amplitudes (the so-called dominant frequencies) can help with many design problems. One application of this is in the area of combustion instability – combustion processes in rocket engines can become unstable due to a variety of reasons, any of which can result in catastrophic failure of the engine. The type of instability which occurs is generally linked to a particular frequency; identification of the frequency of the pressure oscillations associated with the combustion instability is generally the first step in determining the cause of the instability.
   - //Designing systems to provide a desired frequency response//. Audio components in stereo systems are generally designed to produce a desired frequency response. A graphic equalizer, for example, can be used to boost (or amplify) some frequency ranges and attenuate other frequency ranges. When adjusting the settings on an equalizer, you are essentially directly adjusting the system’s frequency response to provide a desired system response.   - //Designing systems to provide a desired frequency response//. Audio components in stereo systems are generally designed to produce a desired frequency response. A graphic equalizer, for example, can be used to boost (or amplify) some frequency ranges and attenuate other frequency ranges. When adjusting the settings on an equalizer, you are essentially directly adjusting the system’s frequency response to provide a desired system response.
Line 40: Line 75:
 In Figure 11.2, the output is determined by multiplying the phasor representation of the input by the system’s frequency response. It is important to keep in mind that the arguments of this multiplication are complex functions of frequency – both the input and the frequency response at any frequency are complex numbers, so the output at any frequency is also a complex number. We typically use polar form to represent these complex numbers, so the __amplitude of the output signal is the product of the amplitude of the input signal and the magnitude response of the system__ and the __phase of the output signal is the sum of the phase of the input and the phase response of the system__. Mathematically, these are expressed as: In Figure 11.2, the output is determined by multiplying the phasor representation of the input by the system’s frequency response. It is important to keep in mind that the arguments of this multiplication are complex functions of frequency – both the input and the frequency response at any frequency are complex numbers, so the output at any frequency is also a complex number. We typically use polar form to represent these complex numbers, so the __amplitude of the output signal is the product of the amplitude of the input signal and the magnitude response of the system__ and the __phase of the output signal is the sum of the phase of the input and the phase response of the system__. Mathematically, these are expressed as:
  
-$$|\underline{Y}(j \omega)|=|\underline{U}(j \omega)| \cdot |H (j \omega)|    (Eq. 11.1)+$$|\underline{Y}(j \omega)|=|\underline{U}(j \omega)| \cdot |H (j \omega)|    (Eq. 11.1)$$
  
 And  And 
Line 87: Line 122:
  
 $$\underline{U}_{j \omega} = \begin{cases} $$\underline{U}_{j \omega} = \begin{cases}
-    j \omega, & 0 < \leq 1 \\+    j \omega, & 0 < \omega \leq 1 \\
     j(2-\omega), & 1< \omega < 2 \\     j(2-\omega), & 1< \omega < 2 \\
     0, & \text{otherwise}     0, & \text{otherwise}
Line 258: Line 293:
 And:  And: 
  
-$$\angle H(j \omega) = =\tan^{-1}(\frac{\omega}{2})$$+$$\angle H(j \omega) = -\tan^{-1}(\frac{\omega}{2})$$
  
 Plotting these functions results in the graphical frequency response shown below: Plotting these functions results in the graphical frequency response shown below:
Line 277: Line 312:
 The circuit frequency response, $H(j \omega)$, is the ratio of the output phasor to the input phasor: The circuit frequency response, $H(j \omega)$, is the ratio of the output phasor to the input phasor:
  
-$$H(j \omega) = \frac{\underline{V}{underline{V}_S} = \frac{j2 \omega}{1+j2 \omega}$$+$$H(j \omega) = \frac{\underline{V}}{\underline{V}_S} = \frac{j2 \omega}{1+j2 \omega}$$
  
 So that the magnitude and phase response of the circuit are: So that the magnitude and phase response of the circuit are:
Line 287: Line 322:
 $$\angle H(j \omega) = 90^{\circ} - \tan^{-1}(2 \omega)$$ $$\angle H(j \omega) = 90^{\circ} - \tan^{-1}(2 \omega)$$
  
 +Plots of these functions are shown below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11p.png |Example image 2.}}
 +
 +----
 +
 +==== Checking the Frequency Response ====
 +A circuit’s __amplitude response__ is relatively easy to determine at low and high frequencies. For very low ($\omega \rightarrow 0$) and very high ($\omega \rightarrow \infty$) frequencies, the circuit can be modeled as a purely resistive network. Since resistive networks are relatively easy to analyze (no complex arithmetic is required), this can provide a valuable tool for checking results or predicting expected behavior.
 +  * __Capacitors at low and high frequencies__: A capacitor’s impedance is $Z_C = \frac{1}{j \omega C}$. At low frequencies ($\omega \rightarrow 0$), the impedance $Z_C \rightarrow \infty$, and the capacitor behaves as an open circuit. At high frequencies ($\omega \rightarrow \infty$) the impedance $Z_C \rightarrow 0$ and the capacitor behaves like a short circuit. 
 +  * __Inductors at low and high frequencies__: an inductor's impedance is $Z_L = j \omega L$. At low frequencies ($\omega \rightarrow 0$), the impedance $Z_L \rightarrow 0$, and the inductor behaves as a short circuit. At high frequencies ($\omega \rightarrow \infty$) the impedance $Z_L \rightarrow \infty$ and the inductor behaves like an open circuit. 
 +
 +Please note that the above statements are relative only to the amplitude response. 
 +
 +----
 +
 +==== Example 11.8 ===
 +Use the circuits’ low and high frequency behavior to check the amplitude response plots for example 11.6.
 +
 +The circuit of interest is shown below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11q.png |Example image 1.}}
 +
 +  * At low frequencies, the capacitor becomes an open circuit, no current flows through the resistor, and $v_{out} = v_{in}$. Thus, the amplitude of the output is the same as the amplitude of the input and the gain as $\omega \rightarrow 0$ is one.
 +  * At high frequencies, the capacitor becomes a short circuit, so that $v_{out} = 0$. Since the output amplitude is zero, for a non-zero input, the gain of the circuit as $\omega \rightarrow \infty$ is zero.
 +
 +The expected behavior at low and high frequencies agrees with the amplitude response of example 11.6; the amplitude response is one at $\omega = 0$, and approaches zero as frequency increases.
 +
 +
 +----
 +
 +==== Example 11.9 ====
 +Use the circuits’ low and high frequency behavior to check the amplitude response plots for example 11.7. The circuit of interest is shown below:
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11r.png |Example image 1.}}
 +
 +  * At low frequencies, the inductor becomes a short circuit, so that $v = 0$. Since the output amplitude is zero, for a non-zero input, the gain of the circuit as $\omega \rightarrow 0$ is zero.
 +  * At high frequencies, the inductor becomes an open circuit, no current flows through the resistor, and $v =v_S$. Thus, the amplitude of the output is the same as the amplitude of the input and the gain as $\omega \rightarrow \infty$ is one.
 +
 +The expected behavior at low and high frequencies agrees with the amplitude response of example 11.7; the amplitude response is zero at $\omega =0$, and approaches one as frequency increases.
 +
 +----
 +
 +==== Example 11.10 ====
 +What is the gain of the circuit shown below as $\omega \rightarrow 0$ and $\omega \rightarrow \infty$? The input is $v_{in}(t)$ and the output is $v_{out}(t)$.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11s.png |Example image 1.}}
 +
 +As $\omega \rightarrow 0$, the capacitor becomes an open circuit, and the overall circuit becomes as shown to the left below. As $\omega \rightarrow \infty$, the capacitor is replaced by a short circuit and the overall circuit becomes as shown to the right below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11t.png |Example image 2.}}
 +
 +As $\omega \rightarrow 0$, the circuit becomes a voltage divider, and $v_{out} = \frac{3k \Omega}{2k \Omega + 3k \Omega} \cdot v_{in}$, so that the circuit's gain is $\frac{3}{5}$. As $\omega \rightarrow \infty$, $v_{out}$ is measured across a short circuit, and the gain is zero.
 +
 +
 +----
 +
 +==== Graphical Representation of System Response ====
 +We can use graphical depictions of the input signal spectrum and the frequency response of the system to obtain a graphical representation of a system’s response. This representation can be especially useful in interpreting and understanding the effect of a system on an input signal. This qualitative interpretation of a system’s response can be an invaluable aid in system design.
 +
 +The frequency-domain representation of a system’s response is shown in Figure 11.4. The frequency-domain output is simply a point-by-point multiplication between the input signal and the system’s frequency response. Thus, the amplitude spectrum of the output is simply the point-by-point product of the input signal’s amplitude spectrum with the system’s magnitude response. The phase spectrum of the output is the sum of the input signal’s phase spectrum and the system’s phase response. An example of this process and its use in interpreting a system’s response is provided in the example below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11u.png |Figure 11.4.}}
 +
 +
 +----
 +
 +==== Example 11.11 ====
 +Use graphical methods to interpret the response of the circuit of example 11.6 to an input voltage $v_{in}(t) = 3 \cos(t+20^{\circ}) + 8 \cos(8t-60^{\circ})$. The input voltage time-domain signal is shown below. The signal consists of a relatively small amplitude, low frequency sinusoid superimposed with a large amplitude, higher frequency signal.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11v.png |Example image 1.}}
 +
 +The frequency response of the circuit was determined in example 11.6; the frequency response plots are repeated below:
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11w.png |Example image 2.}}
 +
 +The input signal spectrum, $\underline{V}(j \omega)$ is shown below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11x.png |Example image 3.}}
 +
 +We can obtain the spectrum of the output signal from a frequency-by-frequency product of the input amplitude and the circuit’s amplitude response and a frequency-by-frequency sum of the input phase and the circuit’s phase response. Keep in mind that when the input amplitude is zero, the output amplitude is also zero and the phase is undetermined.
 +
 +This process results in the output spectrum shown below. Notice that the circuit attenuates the magnitude of the high frequency component of the signal relative to the low frequency component. The low frequency component is said to be “passed through” the circuit, while the higher frequency component is “stopped” by the circuit.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11y.png |Example image 4.}}
 +
 +The time-domain signal of the output signal is shown below, superimposed over the input signal. It is clear that the amplitudes of the higher frequency component of the output signal has been reduced relative to the amplitude of the lower frequency component. This circuit is said to be //frequency selective// – it selects low frequencies to pass and high frequencies to stop.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11z.png |Example image 5.}}
 +
 +
 +----
 +
 +==== Section Summary ====
 +  * //Signal spectra// are a primarily a graphical representation of the frequency content of a __signal__. The spectrum consists, in general, of two plots: amplitude as a function of frequency and phase as a function of frequency.
 +  * The signal spectrum is useful, since many signals of interest can be expressed as a superposition of sinusoidal components. This allows signals which do not appear “sinusoidal” to be analyzed using steady-state sinusoidal analysis techniques.
 +  * //Frequency response plots// are a graphical representation of the frequency response of a __system__. Frequency response plots also consist of two parts: the system’s magnitude response as a function of frequency and the system’s phase response as a function of frequency. 
 +  * The combination of the signal spectrum and the frequency response plots can provide valuable insight into a system’s operation. The amplitude of the output signal is the __point-by-point product__ of the input signal’s amplitude and the system’s magnitude response. The phase of the output signal is the __point-by-point sum__ of the input signal’s phase and the system’s phase response.
 +    * Perhaps even more importantly, the signal spectra and frequency response plots can be used as an effective design tool: if the frequency content of the input signal and the __desired__ frequency content of the output signal are both known, we can determine the system frequency response necessary to provide the desired output signal. This allows us to design our system to perform the desired task
 +  * When calculating a system’s frequency response, it is always important to check your result relative to the expected behavior of the system. This can be done by determining the magnitude response at very low ($\omega \rightarrow 0$) and very high ($\omega \rightarrow \infty$) frequencies. In these extreme conditions the circuit can be approximated as a purely resistive circuit, since energy storage elements can be replaced by either short-circuits or open-circuits as follows: 
 +    * __Capacitors at low and high frequencies__: A capacitor’s impedance is $Z_C=\frac{1}{j \omega C}$. At low frequencies ($\omega \rightarrow 0$), the impedance $Z_C \rightarrow \infty$, and the capacitor behaves as an open circuit. At high frequencies ($\omega \rightarrow \infty$) the impedance $Z_C \rightarrow 0$ and the capacitor behaves like a short circuit.
 +    * __Inductors at low and high frequencies__: A inductor’s impedance is $Z_L = j \omega L$. At low frequencies ($\omega \rightarrow 0$), the impedance $Z_L \rightarrow 0$, and the inductor behaves as a short circuit. At high frequencies ($\omega \rightarrow \infty$) the impedance $Z_L \rightarrow \infty$ and the inductor behaves like an open circuit.
 +
 +
 +----
 +
 +==== Exercises ====
 +**1.** The input to a system is $u(t) = 3 \cos(2t-60^{\circ}) + 4 \cos(4t+30^{\circ}) + 7 \cos(6t+45^{\circ})$. The system frequency response is given by the piecewise function:
 +
 +$$H(j \omega) = \begin{cases}
 +    0, & 0< \omega < 3 \\
 +    1, & 3 \leq \omega \leq 5 \\
 +    0, & \omega > 5
 +  \end{cases}
 +$$
 +
 +Sketch:
 +  * The spectrum of the input signal (magnitude and phase)
 +  * The frequency response of the system (magnitude response and phase response)
 +  * And the output signal spectrum.
 +
 +Compare your sketches to your results of exercise 2 in section 1.11. 
 +
 +**2.** Sketch the spectrum for the signal $v(t)=4+3 \cos(2t-45^{\circ}) + 2 \cos(4t+45^{\circ})$. 
 +
 +**3.** Use the circuit behavior at high and low frequencies to check the frequency response you calculated for the circuit of exercise 1 in section 11.1.
 +
 +**4.** Determine the steady-state response of the output $y(t)$ for the circuit below at very low and very high frequencies. 
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11ba.png |Exercise image 1.}}
 +
 +----
 +
 +===== 11.3: Frequency Selective Circuits and Filters =====
 +It is common to categorize circuits by the overall “shape” of their magnitude response. As we saw in example 11.11, in some frequency ranges the output amplitude may be high relative to the input amplitude, while in other frequency ranges the output amplitude will be low relative to the input amplitude. If the output amplitude at some frequency is high relative to the input amplitude, the magnitude response at that frequency is “large” and that frequency is said to be //passed// by the circuit. Conversely, if the output amplitude at some frequency is low relative to the input amplitude, the magnitude response at that frequency is “small” and that frequency is said to be //stopped// by the circuit.
 +
 +Circuits which select certain frequencies to pass and other frequencies to stop are called //frequency selective// circuits or //filters// (since they tend to “filter out” certain frequency ranges of the input signal). The range of frequencies which are passed are called the //passband// of the filter, and the range of frequencies which are stopped are called the //stopband// of the filter. There are four primary categories of filters:
 +  * //Low-pass filters// pass low frequencies and stop high frequencies 
 +  * //High-pass filters// pass high frequencies and stop low frequencies 
 +  * //Band-pass filters// pass a range of frequencies between two ranges of stopped frequencies 
 +  * //Band-reject filters// stop a range of frequencies between two ranges of passed frequencies
 +
 +Filters are also categorized by their //order//. The order of the filter is simply the order of the differential equation governing the filter. Thus a first-order filter is governed by a first-order differential equation, a second-order filter is governed by a second-order differential equation, and so on. Low-pass and high-pass filters can be any order, while band-pass and band-stop filters must be __at least__ second order.
 +
 +In this chapter, we restrict out attention to first order filters, so we will consider __only__ low pass and high pass filters.
 +
 +==== Ideal Low-pass and High-pass Filters ====
 +We will first introduce the basic concepts relative to first order filters in the context of ideal filters. It must be clearly understood that ideal filters are not //physically realizable// – that is, we cannot construct a physical system which can perform this way((In order to implement an ideal filter, the circuit would need to know values of the input signal before the values are applied – that is, the circuit would need to be able to see into the future. The technical term is that the filter would need to be //non-causal//. It is, of course, impossible to build a device that predicts the future.)). Ideal filters entirely stop all input signals in the stopband and completely pass all signals in the passband. Thus, the magnitude response of an ideal filter is exactly one in the passband and exactly zero in the stop band. First order filters can be either high-pass or low-pass filters.
 +
 +An ideal low pass filter has a magnitude response as shown in Figure 11.5. The passband is shown as the shaded area under the magnitude response. The magnitude response is discontinuous – it goes from one to zero instantaneously. The //cutoff frequency//, $\omega_c$, defines the boundary between the passband and the stopband. Any signal with a frequency below $\omega_c$ is passed through the filter without any attenuation; any signal with a frequency above $\omega_c$ is entirely stopped by the filter – it is not present in the output signal.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bb.png?nolink |Figure 11.5.}}
 +
 +An ideal high-pass filter has a magnitude response as shown in Figure 11.6. The passband is again shown as the shaded area under the magnitude response. The magnitude response is discontinuous – it goes from zero to one instantaneously. The //cutoff frequency//, $\omega_c$, again defines the boundary between the passband and the stopband. Any signal with a frequency below $\omega_c$ is entirely stopped by the filter while any signal with a frequency above $\omega_c$ is passed through the filter with no amplitude change.
 +
 +As previously noted, it is impossible to physically implement an ideal filter. Thus, all electrical circuits implement non-ideal filters. Non-ideal filters do not provide an instantaneous transition between the pass band and the stop band. Non-ideal first order filters are discussed in the following subsections.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bc.png?nolink |Figure 11.6.}}
 +
 +==== First Order Low-pass Filters ====
 +The form of the governing differential equation for a first order low pass filter can be written as:
 +
 +$$\frac{dy(t)}{dt} + \omega_c y(t) = K \cdot u(t)    (Eq. 11.5)$$
 +
 +The frequency response of the filter can be determined to be:
 +
 +$$H(j \omega) = \frac{K}{j \omega + \omega_c}   (Eq. 11.6)$$
 +
 +The magnitude response of the filter is thus:
 +
 +$$|H(j \omega)| = \frac{K}{\sqrt{\omega^2 + \omega^2_c}} (Eq. 11.7)$$
 +
 +The maximum magnitude response is $\frac{K}{\omega_c}$ when $\omega = 0$ and the magnitude response is zero as $\omega \rightarrow \infty$. Thus, the filter is passing low frequencies and stopping high frequencies. __The differential equation describes a low-pass filter__.
 +
 +The magnitude response of the filter is shown in Figure 11.7. The frequency response is a smooth curve, rather than the discontinuous function shown in Figure 11.5. There is no single frequency that obviously separates the passband from the stopband, so we must choose a relatively arbitrary point to define the boundary between the passband and the stopband. By consensus, the cutoff frequency for a low-pass filter is defined as the frequency at which the magnitude response is $\frac{1}{\sqrt{2}}$ times the magnitude response at $\omega = 0$. For the magnitude response given by equation (11.7), the cutoff frequency is $\omega = \omega_c$. This point is indicated on Figure 11.7.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bd.png?nolink |Figure 11.7.}}
 +
 +==== First Order High-pass Filters ====
 +The form of the governing differential equation for a first order low pass filter can be written as:
 +
 +$$\frac{dy(t)}{dt} + \omega_c y(t) = K \cdot \frac{du(t)}{dt}  (Eq. 11.8)$$
 +
 +The frequency response of the filter can be determined to be:
 +
 +$$H(j \omega) = \frac{jK \omega}{j \omega + \omega_c}  (Eq. 11.9)$$
 +
 +The magnitude response of the filter is thus:
 +
 +$$|H(j \omega)| = \frac{K \omega}{\sqrt{\omega^2 + \omega^2_c}} (Eq. 11.10)$$
 +
 +The maximum magnitude response is approximately //K// when $\omega \rightarrow \infty$ and the magnitude response is zero at $\omega = 0$. Thus, the filter is passing high frequencies and stopping low frequencies. __The differential equation describes a high-pass filter__.
 +
 +The magnitude response of the filter is shown in Figure 11.8. As with the non-ideal low-pass filter, the frequency response is a smooth curve, rather than the discontinuous function shown in Figure 11.6. Again, there is no single frequency that obviously separates the passband from the stopband, so we must choose a relatively arbitrary point to define the boundary between the passband and the stopband. Consistent with our choice of cutoff frequency for the low-pass filter, the cutoff frequency for a high-pass filter is defined as the frequency at which the magnitude response is $\frac{1}{\sqrt{2}}$ times the magnitude response at $\omega \rightarrow \infty$. For the magnitude response given by equation (1.10), the cutoff frequency is $\omega = \omega_c$. This point is indicated on Figure 11.8.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11be.png?nolink |Figure 11.8.}}
 +
 +=== Notes: ===
 +  * The cutoff frequency is also called the corner frequency, the 3dB frequency, or the half-power point.
 +  * The cutoff frequency for __both__ low-pass and high-pass filters is defined as the frequency at which the magnitude is $\frac{1}{\sqrt{2}}$ times the __maximum__ value of the magnitude response. 
 +  * It can be seen from examples in section 11.2 that the phase response of a first order low-pass filter is $0^{\circ}$ at $\omega = 0$ and decreases to $-90^{\circ}$ as $\omega \rightarrow \infty$. The phase response is $-45^{\circ}$ at the cutoff frequency.
 +  * It can be seen from examples in section 11.2 that the phase response of a first order high-pass filter is $90^{\circ}$ at $\omega = 0$ and decreases to $0^{\circ}$ as $\omega \rightarrow \infty$. The phase response is $45^{\circ}$ at the cutoff frequency.
 +  * For both low-pass and high-pass filters, the cutoff frequency is the inverse of the time constant for the circuit, so that $\omega_c = \frac{1}{\tau}$. 
 +  * The circuit’s response at zero frequency is generally an important parameter to consider. This is called the DC gain, and is the ratio of the output amplitude to the input amplitude for a constant input. A constant input corresponds to a cosine with zero frequency. Low pass filters have a relatively high DC gain and a correspondingly large response to a constant input. High pass filters have a low DC gain; they have little or no response to constant inputs.
 +
 +We conclude this section with examples of circuits from section 10.2 which implement low-pass and high-pass filter operations.
 +
 +
 +----
 +
 +==== Example 11.12: First Order Low-pass Filter ====
 +The circuit below is the circuit from example 11.6. The input is $v_{in}(t)$ and the output is $v_{out}(t)$.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bf.png?nolink |Example image 1.}}
 +
 +In example 11.6, the frequency response was determined to be:
 +
 +$$H(j \omega) = \frac{2}{2+ j \omega}$$
 +
 +The maximum value of the magnitude response is one at a frequency of zero radians/second and the magnitude response goes to infinity as $\omega \rightarrow \infty$, so the circuit acts as a low-pass filter. Comparing the amplitude response above with equation (2) above, it can be seen that the cutoff frequency is $\omega_c = 2$ rad/sec. The amplitude response, with the cutoff frequency labeled, is shown below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bg.png?nolink |Example image 2.}}
 +
 +----
 +
 +==== Example 11.13: First Order High-pass Filter ====
 +The circuit below is the circuit from example 11.7. The input is $v_s(t)$ and the output is $v(t)$.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bh.png?nolink |Example image 1.}}
 +
 +The frequency response of the circuit was previously determined to be:
 +
 +$$H(j \omega) = \frac{\underline{V}}{\underline{V}_S} = \frac{j2 \omega}{1+ j2 \omega}$$
 +
 +The maximum value of the magnitude response is one as $\omega \rightarrow \infty$ and goes to zero at a frequency of zero radians/second, so the circuit acts as a low-pass filter. Comparing the amplitude response above with equation (4) above, it can be seen that the cutoff frequency is $\omega_c = 0.5$ rad/sec. The amplitude response, with the cutoff frequency labeled, is shown below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bi.png?nolink |Example image 2.}}
 +
 +----
 +
 +==== Section Summary ====
 +  * Filters are frequency-selective systems. These systems provide a desired relationship between the input signal spectrum and the output signal spectrum. The filter does this by //passing// certain frequencies from the input to the output and //stopping// some frequencies from propagating from the input to the output. Nomenclature is as follows:
 +    * The range of frequencies which are passed is called the //passband// of the filter
 +    * The range of frequencies which are stopped is called the //stopband// of the filter
 +  * Filters are broadly categorized as follows:
 +    * //Low-pass filters// pass low frequencies and stop high frequencies 
 +    * //High-pass filters// pass high frequencies and stop low frequencies 
 +    * //Band-pass filters// pass a range of frequencies between two ranges of stopped frequencies 
 +    * //Band-reject filters// stop a range of frequencies between two ranges of passed frequencies
 +  * In this chapter, we were concerned only with first-order low-pass and high-pass filters. These filters are primarily characterized by the following parameters:
 +    * Cutoff frequency: the cutoff is defined as the frequency at which the magnitude is $\frac{1}{\sqrt{2}}$ times the __maximum__ value of the magnitude response.
 +    * //DC gain//: the DC gain is the ratio of the output amplitude to the input amplitude for a __constant__ input (a cosine function with zero frequency). Low pass filters have a relatively high DC gain and a correspondingly large response to a constant input. High pass filters have a low DC gain; they have little or no response to constant inputs.
 +
 +
 +----
 +
 +==== Exercises ====
 +**1.** What is the cutoff frequency of the circuit below? (You may want to use your results from exercise 1 of section 11.1.).
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bj.png?nolink |Exercise image 1.}}
 +
 +**2.** Use the circuit behavior at high and low frequencies and your time constant calculated in exercise 1 above to sketch the frequency response of the circuit of exercise 1. Label your frequency response to include DC gain and cutoff frequency. Is the circuit a high-pass or low-pass filter?
 +
 +**3.** Calculate the time constant and the cutoff frequency for the circuit below, if u(t) is the input and $y(t)$ is the output. Verify that the cutoff frequency is the inverse of the time constant. Use the circuit behavior at high and low frequencies to determine whether the circuit is a high-pass or low-pass filter.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bk.png?nolink |Exercise image 2.}}
 +
 +**4.** Calculate the frequency response of the circuit of exercise 3. Compare your frequency response to your results of exercise 3. Resolve any differences between the two.
 +
 +----
 +
 +===== 11.4: Introduction to Bode Plots =====
 +Plotting a systems’ frequency response on a linear scale, as done in sections 11.3 and 11.4, has a number of drawbacks, especially for higher-order systems((Higher order systems are often modeled as a series of lower-order systems (or in the technical parlance, //cascaded// lower-order systems). A combination of cascaded frequency responses is multiplicative. Multiplying several frequency responses together can be tedious)). An alternate format for plotting frequency responses, called a Bode plot, is therefore commonly used((Bode plots use logarithmic scales. Logarithms convert multiplication to addition. Thus, a cascaded set of frequency responses in a logarithmic scale add – adding frequency responses is significantly simpler than multiplying them.)). On Bode plots, the amplitude response is essentially presented as a log-log plot, while the phase response is a semi-log plot. Some reasons for this are:
 +  * Use of logarithms converts the operation of multiplication and division to addition and subtraction. This can simplify the creation of frequency response plots for higher order systems. 
 +  * Frequencies and amplitudes of interest commonly span many orders of magnitude. Logarithmic scales improve the presentation of this type of data. 
 +  * Human senses are fundamentally logarithmic. The use of logarithmic scales is therefore more “natural”. (This is the reason for use of the Richter scale in measuring earthquake intensity, and the decibel scale in measuring sound levels. It is also the reason that increasing a musical tone by one octave corresponds to doubling its frequency.)
 +
 +==== Properties of Logarithms ====
 +Since Bode plots employ logarithms extensively, we will briefly review some of the basic properties of logarithms before proceeding further. Bode plots rely upon base-10 logarithms ($log_{10}$), so we will restrict our attention to base-10 logarithms.
 +
 +A plot of $log_{10}(x)$ vs. $x$ is shown in Figure 11.9 below. A few important features to note are:
 +
 +  * $log_{10}(x)$ is a real number only for positive values of x. 
 +  * $log_{10}(x)$ asymptotically approaches $-\infty$ as $x \rightarrow 0$. The slope of $log_{10}(x)$ becomes very large as $x \rightarrow 0$. 
 +  * The slope of $log_{10}(x)$ becomes small as $x \rightarrow \infty$. 
 +  * From the comments above relative to the slope of $log_{10}(x)$, it can be seen that the sensitivity of $log_{10}(x)$ to variations in $x$ decreases as $x$ increases (this is the reason why logarithmic scales are used when large variations in $x$ are encountered – as in Richter scales and musical scales). 
 +  * $log_{10}(1) = 0$
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bl.png?nolink |Figure 11.9.}}
 +
 +The basic defining property of a base-10 logarithm is that $x=10^y$, then $y = log_{10} x$. This property leads to the following rules governing logarithmic operations:
 +
 +**1.** Logarithms convert multiplication and division to addition and subtraction, respectively. Thus,
 +
 +$$log_{10}(xy) = log_{10}x+log_{10}y$$
 +
 +And:
 +
 +$$log_{10} \left( \frac{x}{y} \right) = log_{10}x-log_{10}y$$
 +
 +This property is especially useful for us, since determining the spectrum of an output signal results from the product of an input signal’s spectrum with the frequency response. Thus, the output spectrum on a logarithmic scale can be obtained from a simple addition.
 +
 +**2.** Logarithms convert exponentiation to multiplication by the exponent, so that:
 +
 +$$log_{10}(x^n)=nlog_{10}x$$
 +
 +
 +==== Decibel Scales ====
 +Magnitude responses are often presented in terms of decibels (abbreviated dB). Decibels are a logarithmic scale. A magnitude response is presented in units of decibels according to the following conversion:
 +
 +$$|H(j \omega)|_{dB} = 20log_{10} (|H(j \omega)|)  (Eq. 11.11)$$
 +
 +Strictly speaking, magnitudes in decibels are only appropriate if the amplitude response is unitless (e.g. the units of the input and output must be the same in order for the logarithm to be a mathematically appropriate operation). However, in practice, magnitude responses are often presented in decibels regardless of the relative units of the input and output – thus, magnitude responses are provided in decibels even if the input is voltage and the output is current or vice-versa.
 +
 +=== Brief Historical Note ===
 +Decibel units are related to the unit “bel”, which are named after Alexander Graham Bell. Units of bels are, strictly speaking, applicable only to power. Power in bels is expressed as $log_{10}( \frac{P}{P}_{ref} )$, where $P_{ref}$ is a “reference” power. Bels are an inconveniently large unit, so these were converted to decibels, or tenths of a bel. Thus, power in decibels is $10log_{10}(\frac{P}{P}_{ref})$. Since the units of interest to electrical engineers are generally voltages or currents, which must be squared to obtain power, we obtain $20log_{10}(|H(j \omega)|)$. The significant aspect of the decibel unit for us is not, however, the multiplicative factor of “20”), but the fact that the unit is __logarithmic__.
 +
 +We conclude this subsection with a table of common values for $|H(j \omega)|$ and their associated decibel values.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11br.png?nolink |Decibel values.}}
 +
 +
 +==== Bode Plots ====
 +Bode plots are simply plots of the magnitude and phase response of a system using a particular set of axes. For Bode plots, 
 +  * Units of frequency are on a base-10 logarithm scale. 
 +  * Amplitudes (or magnitudes) are in decibels (dB) 
 +  * Phases are presented on a linear scale
 +
 +=== Notes ===
 +  * Since frequencies are on a logarithmic scale, frequencies separated by the same multiplicative factor are evenly separated on a logarithmic scale. Some of these multiplicative factors have special names. For example, frequencies separated by a factor of two are said to be separated by //octaves// on a logarithmic scale and frequencies separated by a factor of 10 are said to be separated by //decades//
 +  * Since decibels are intrinsically a logarithmic scale, magnitudes which are separated by the same multiplicative factor are evenly separated on a decibel scale. For example, magnitudes which are separated by a factor of 10 are separated by 20dB on a decibel scale.
 +
 +One convenient aspect of the presentation of frequency responses in terms of Bode plots is the ability to generate a reasonable sketch of a frequency response very easily. In general, this approach consists of approximating the Bode plot of a system by its asymptotic behavior as a set of straight lines. This is called a “straight line approximation” of the Bode plot; the approach is illustrated for a typical low-pass filter in the following subsection.
 +
 +==== Bode Plots for First Order Low-pass Filters ====
 +The frequency response of a general first order low-pass filter is provided in section 11.3 as:
 +
 +$$H(j \omega) = \frac{K}{j \omega + \omega_c}  (Eq. 11.12)$$
 +
 +Thus, magnitude response of the circuit is:
 +
 +$$|H(j \omega)| = \frac{K}{\sqrt{\omega^2 + \omega^2_c}} (Eq. 11.13)$$
 +
 +And the phase response of the circuit is:
 +
 +$$\angle H(j \omega) = -\tan^{-1} \left( \frac{\omega}{\omega_c} \right)  (Eq. 11.14)$$
 +
 +To estimate the asymptotic behavior of the frequency response, we consider the behavior of equations (11.13) and (11.14) for the low frequency and high frequency cases. In general, we consider “low” frequencies to be frequencies which are __less than a factor of 10 below the cutoff frequency__ (i.e. $\omega < \frac{\omega_c}{10}$, or frequencies more than a decade below the cutoff frequency). High frequencies are typically assumed to be frequencies which are __more than a factor of 10 above the cutoff frequency__ (i.e. $\omega > 10 \omega_c$, or more than a decade above the cutoff frequency). We consider the high and low frequency cases separately below.
 +
 +  * __Low frequencies__:
 +    * The magnitude response given by equation (2) is $|H(j \omega)| = \frac{K}{\sqrt{\omega^2 + \omega^2_c}}$. If $\omega << \omega$, the denominator is approximately $\sqrt{\omega^2_c}=\omega_c$ and the magnitude response $|H(j \omega)| \approx \frac{K}{\omega_c}$. If $\omega << \omega_c$, $\frac{\omega}{\omega_c} \approx 0$ and the phase response is approximately $\angle H(j \omega) \approx -\tan^{-1}(0) = 0^{\circ}$.
 +  * __High frequencies__:
 +    * If $\omega >> \omega_c$, the denominator of the amplitude response is $\sqrt{\omega^2 + \omega^2_c} \approx \sqrt{\omega^2} = \omega$. Therefore, for high frequencies, the magnitude response $|H(j \omega)| \approx \frac{K}{\omega}$. If, for high frequencies, we increase the frequency by a factor of 10, we reduce the magnitude response by 20dB (since $|H(j \cdot 10 \omega)| \approx \frac{K}{10 \omega} = 0.1 \frac{K}{\omega}$ and the multiplicative factor of 0.1 corresponds to -20dB). Thus, for frequencies well above the cutoff frequency the magnitude response, presented in Bode plot form, decreases by 20dB/decade. When $\omega >> \omega_c$, the phase response is given by $\angle H(j \omega) = -\tan^{-1} \left( \frac{\omega}{\omega_c} \right) \approx -\tan^{-1} (\infty) = -90^{\circ}$. 
 +
 +=== Summary: Low-pass Filter Straight-line Bode Plot Approximations ===
 +The straight line approximation to the magnitude response is constant below the cutoff frequency, with a value (in decibels) of $20log_{10} \left( \frac{K}{\omega_c} \right)$. Above the cutoff frequency, the Bode plot straight-line approximation has a constant slope of -20 dB/decade.
 +
 +The straight-line approximation to the phase response is zero degrees up to a frequency of $\frac{\omega_c}{10}$ and is $-90^{\circ}$ above a frequency of $10 \omega_c$. A straight line is used ot connect the $\frac{\omega_c}{10}$ and $10 \omega_c$ frequencies. 
 +
 +A straight-line approximation to the Bode plot for a typical low-pass circuit, with $K = \omega_c$ (so that the frequency response is $H(j \omega) = \frac{\omega_c}{j \omega + \omega_c}$ and the DC gain is 1, or 0dB) along with an exact curve is provided below in Figure 11.10.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bm.png?nolink |Figure 11.10.}}
 +
 +We conclude this section with a numerical example of the straight-line approximation to a Bode plot for a specific circuit.
 +
 +==== Example 11.14 ====
 +Sketch a straight-line approximation to the Bode plot for the circuit below. The input is $v_{in}(t)$ and the output is $v_{out}(t)$.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bn.png?nolink |Example image 1.}}
 +
 +The frequency response for this circuit is $H(j \omega) = \frac{1}{j \omega + 2}$. Therefore, the cutoff frequency is $\omega_c=2$ rad/sec and the gain in decibels at low frequencies is $|H(j0)|_{dB} = 20log_{10} \left( \frac{1}{2} \right) \approx -6dB$. Thus, the straight-line magnitude response is -6dB below the cutoff frequency and decreases by 20dB/decade above the cutoff frequency. The straight-line phase response is $0^{\circ}$ below 0.2rad/sec, $-90^{\circ}$ above 20 rad/sec and a straight line between these frequencies. The associated plots are shown below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bo.png?nolink |Example image 2.}}
 +
 +
 +----
 +
 +==== Section Summary ====
 +  * Bode plots are a very useful format for plotting frequency responses. Bode plots provide magnitude responses and phase responses in the following format: 
 +    * Units of frequency are on a base-10 logarithm scale. 
 +    * Amplitudes (or magnitudes) are in decibels (dB) 
 +    * Phases are presented on a linear scale. 
 +    * Magnitude responses in decibels are calculated according to:
 +$$|H(j \omega)|_{dB} = 20log_{10}(|H(j \omega)|)$$
 +  * The use of logarithmic scales in Bode plots has a number of advantages. Logarithms convert multiplication and division into addition and subtraction, respectively. This provides a significant mathematical simplification in the analysis of higher-order systems. Logarithms are also, in some sense, more “natural” to interpret, since human senses are fundamentally logarithmic.
 +  * Bode plots also have the advantage of being approximated fairly well by straight-line approximations. This allows the engineer to sketch a fairly accurate frequency response plot with only a minimal number of calculations.
 +
 +----
 +
 +==== Exercises ====
 +**1.** Sketch a Bode plot (straight-line approximation) for the circuit below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bp.png?nolink |Exercise image 1.}}
 +
 +**2.** Sketch a Bode plot (straight-line approximation) for the circuit below.
 +
 +{{ :learn:courses:real-analog-chapter-11:chapter11bq.png?nolink |Exercise image 2.}}
 +
 +
 +[[{}/learn/courses/real-analog-chapter-10/start|Back to Chapter 10]]
 +[[{}/learn/courses/real-analog-chapter-12/start|Go to Chapter 12]]