Frequency Response Last time we • Revisited formal definitions of linearity and time-invariance • Found an eigenfunction for linear time-invariant systems • Found the frequency response of a linear system to eigenfunction input • Found the frequency response for cascade, feedback, difference equation, and differential equation systems Today we will • Extend the results to accommodate sinusoidal input, and then any input via Fourier series representation • Write the Fourier series in terms of complex exponentials • Provide a method to calculate Fourier series coefficients • Determine properties of these coefficients EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Response of an LTI System to Eigenfunction Last time, we proved that for an input signal x given by x(t) = eiωt for all t œ Reals the corresponding output y of an LTI system can be expressed as y(t) = H(ω) eiωt for all t œ Reals where H(ω) is called the frequency response of the system. The complex exponential eiωt is called an eigenfunction of the system, because it creates an output with the same form, only differing by a scaling factor. The same is true for a discrete input, x(t) = eiωn for all n œ Integers iωn y(n) = H(ω) e for all n œ Integers EECS 20 Chapter 8 Part 2 leads to EECS 20 Chapter 8 Part 2 Cosines as Complex Exponentials Recall that cosines can be expressed as complex exponentials: eiωt + e −iωt cos( ωt ) = 2 If we let x1(t) = eiωt and x2(t) = e-iωt, we express the cosine as cos(ωt) = ½(x1(t) + x2(t)) If we apply the cosine as input to an LTI system S, we find S(½(x1 + x2)) = ½ (S(x1) + S(x2)) and since x1 and x2 are eigenfunctions, we can write y(t) = ½ (S(x1) + S(x2))(t) = ½ (H(ω) eiωt + H(-ω) e-iωt ) So we can use frequency response to express the output for sinusoidal input. EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Conjugate Symmetry So for the input x(t) = cos(ωt), we obtain the output y(t) = ½ (H(ω) eiωt + H(-ω) e-iωt ). Realistic systems will produce purely real output (no imaginary component) for a purely real input like cos(ωt). This means that the imaginary parts of H(ω) eiωt and H(-ω) e-iωt must cancel out; they must be opposite in sign. This is the same as saying that one is the conjugate of the other: H(ω) eiωt = (H(-ω) e-iωt)* = H(-ω)* eiωt For systems that produce real output for real input, it is true that H(ω) = H(-ω)* EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Implications: Scaled and Shifted Sinusoids Systems that produce purely real output for a purely real input are called conjugate symmetric. Let’s look again at the output for our case x(t) = cos(ωt), y(t) = ½ (H(ω) eiωt + H(-ω) e-iωt ) Using the fact that z + z* = 2 Re{z}, y(t) = ½ (2 Re{H(ω) eiωt }) = Re{H(ω) eiωt } – If we express H(ω) in polar form, H(ω) = |H(ω)| ei H(ω), – y(t) = Re{|H(ω)| ei H(ω) eiωt } – = Re{|H(ω)| ei( H(ω)+ωt) } EECS 20 Chapter 8 Part 2 = |H(ω)| cos(ωt+–H(ω)) EECS 20 Chapter 8 Part 2 Computing Sinusoidal Response So, given the system response to an eigenfunction, H(ω), we can compute the magnitude response |H(ω)| and the phase response –H(ω). These form the scaling factor and phase shift in the output, respectively. The frequency of the output sinusoid will be the same as the frequency of the input sinusoid in any LTI system. The LTI system scales and shifts sinusoids. These results hold true for both continuous and discrete signals and systems. EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Example Consider our RC circuit from last time, where we found H(ω) = x(t) 1 1 + iωRC R + _ + _ C y(t) To compute the voltage over the capacitor, y(t), for a sinusoidal input voltage x(t), I simply need to find the magnitude and phase of H(ω) and plug in: 1 1 | H(ω) | = = | 1 + iωRC | 1 + (ωRC)2 ∠H(ω) = ∠1 − ∠(1 + iωRC) = − tan −1 ωRC EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Response to Fourier Series Input In Chapter 7, we mentioned that any periodic signal can be represented by a Fourier series: x( t ) = A 0 + ∞ ∑ A k cos(kω0 t + φk ) k =1 Since we are dealing with LTI systems, where we can pull out constants and distribute over sums, we can get the system output for any input by scaling and summing the output for the individual sinusoids in the Fourier series. EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Alternate Fourier Series Representation Remembering that eiωt + e −iωt 2 ∞ A x( t ) = A 0 + ∑ k ei(kω0 t + φk ) + e −i(kω0 t + φk ) k =1 2 we may write cos( ωt ) = ( ) and also ∞ A k eiφk eikω0 t + A k e −iφk e −ikω0 t 2 k =1 2 x( t ) = A 0 + ∑ A 0 1 Xk = 2 A k eiφk 1 −iφ 2 A −k e −k if k = 0 if k > 0 x( t ) = X0 + if k < 0 we obtain ∞ and letting ikω0 t ∑ Xk e k =1 or simply x( t ) = + X −k e −ikω0 t ∞ ikω0 t ∑ Xk e k = −∞ EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Alternate Fourier Series Representation: Discrete For a discrete periodic signal, with the new notation A0 12 A k eiφk Xk = A cos( φ ) k k − iφ p − k 1 A 2 p −k e if k = 0 if k < p 2 if k = p 2 p −1 x(n) = ∑ Xk eikω0n k =0 if k > p 2 The proof is given in the text on page 303. EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Response to Fourier Series Input Now let’s apply a continuous input x(t) to an LTI system with frequency response H(ω) and find the output y(t): ∞ x( t ) = ∑ Xk eikω0 t k = −∞ Due to linearity, we can distribute over the sum and pull out the constants Xk. The result is a scaled sum of the output generated by each ̥ individual complex exponential eikωt. Since each eiωt has corresponding output H(ω)eiωt , ∞ y( t ) = ∑ XkH(kω0 )eikω0 t k = −∞ EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2 Determining Fourier Series Coefficients We now give formulae for the Fourier series coefficients for a periodic signal of period p: For continuous signals x(t), t œ Reals: For discrete signals x(n) x(n), n œ Integers: 1p Xm = ∫ x( t )e −imω0 t dt p0 Xm = 1 p −1 −imω0n ∑ x(n)e p n =0 The textbook provides a validation of these formulae on page 306, but their derivation will be intuitive once we have covered Fourier transforms. EECS 20 Chapter 8 Part 2 EECS 20 Chapter 8 Part 2