Inverse Laplace w/ a 2-pole Lowpass filter ECE 3100 John Stahl Western Michigan University The circuit shown below is a two stage low pass filter with different corner frequencies 1. Derive the Transfer function H(s). 2. Generate the Bode Magnitude using LTSpice, Matlab, and by Hand. 3. For a Step Response show the output Vo(t). a. By Hand using Partial Fraction Expansion and Plot in Matlab b. LTSpice Simulation c. Simulink Transfer Function π1 − 0 0 − ππ1 = 3.33π πππ −πππ ππ1 = = π»1 π 3.33π π1 π»1 π = − πππ ππ¨π ππ β 10π = ππ + 10π ππ β 10π 3.33π ππ + 10π ππ = 1 β 10π π πΆ π πΆ =− 1 3.33π π πΆ + 10π π πΆ π»1 π = −3 1 π πΆ 1 π 1 + 1000 The Transfer Function for the total circuit is the product of the two stages. The derivation of the 2nd stage is the same as the 1st. π» π =6 π 1 + 1000 1+ π 15000 π 1 = −1000 2ππ1 = 1000 The angular corner frequencies of the circuit are 1krad/sec and 15krad/sec. In this context we call the roots of the denominator poles or eigenvalues. We can draw a Bode plot by hand just as we did for H(w). The corner frequencies for the Bode Plot are 160Hz and 2.39kHz. The Passband gain is 20log(6) = 15.6dB 1 π1 = 160π»π§ π 1 = −15000 2ππ2 = −15000 π2 = 2.39ππ»π§ 15.6dB -20dB/dec -40dB/dec freq 160Hz 2.39kHz 15.6dB -20dB/dec -40dB/dec 160Hz 2.39kHz Using LTSpice we see the Magnitude of the Bode plot matches the predicted one. The graph below shows Matlab’s Bode Magnitude. Step Response Vin π Vo π H(s) πππ π β π» π = ππ π ππ π = 1 6 β π 1+ π 1000 1 + Poles 0 π = −1000 −15000 π 15000 The input to the circuit is a unit step, u(t). Solve for the output vo(t). The Laplace form for the step is 1 πππ π = π . We are trying to take the Inverse Laplace of Vo(s). We are going to manipulate the function to make Vo(s) easier to transform back to the time domain. Partial Fraction Expansion requires the poles of the denominator. Including the one added by the input. Partial Fraction Expansion π π 1 + 1000 6 π΄ π΅ πΆ = + π + π π π 1 + 1000 1 + 1+ 15000 15000 π 6= π΄ 1+ 1000 π π π 1+ + π΅π 1 + + πΆπ 1 + 15000 15000 1000 Evaluate the equation at each pole to solve for A, B, and C. @π = 0 6=π΄ 1+0 1+0 +π΅β0+πΆβ0 π΄=6 @π = −1000 6 = π΄ β 0 + π΅ β −1000 π΅ = −6.429 β 10−3 1+ −1000 +πΆβ0 15000 @π = −15000 6 = π΄ β 0 + π΅ β 0 + πΆ β −15000 −15000 1+ 1000 πΆ = 2.857 β 10−5 π π+π We want the components to have this form for the Inverse Laplace 6 −6.429 β 10−3 1000 2.857 β 10−5 15000 ππ π = + β + β π π π 1000 15000 1 + 1000 1+ 15000 ππ π = 6 −6.429 0.4286 + + π 1000 + π 15000 + π β −1 π = ππ −ππ‘ π’ π‘ π+π π£π π‘ = 6π’ π‘ − 6.429 β π −1000π‘ β π’ π‘ + 0.4286 β π −15000π‘ β π’ π‘ Plots The derived function, y(t) was plotted using Matlab and compared to the simulation performed in LTSpice. The plots are identical. Links go to source code and SPICE model. Matlab Plot of y(t) LTSpice Simulation Output