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/18 19:58] 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 295: Line 330:
 ==== Checking the Frequency Response ==== ==== 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. 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.  +  * __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. +  * __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.  Please note that the above statements are relative only to the amplitude response. 
Line 338: Line 373:
 {{ :learn:courses:real-analog-chapter-11:chapter11t.png |Example image 2.}} {{ :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.+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.
  
  
Line 479: Line 514:
 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 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.+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.}} {{ :learn:courses:real-analog-chapter-11:chapter11be.png?nolink |Figure 11.8.}}
Line 486: Line 521:
   * The cutoff frequency is also called the corner frequency, the 3dB frequency, or the half-power point.   * 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.    * 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 $\omaga = 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 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.   * 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}$.    * 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}$. 
Line 498: Line 533:
 ==== Example 11.12: First Order Low-pass Filter ==== ==== 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)$. 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]]