Signals and Systems. Fourier Transform: Solving differential equations when the input is periodic

Similar documents
Superposition (take 3)

Chapter 10: Sinusoidal Steady-State Analysis

Fourier Transform. Find the Fourier series for a periodic waveform Determine the output of a filter when the input is a periodic function

Circuit Analysis-III. Circuit Analysis-II Lecture # 3 Friday 06 th April, 18

I. Impedance of an R-L circuit.

Lecture 16 FREQUENCY RESPONSE OF SIMPLE CIRCUITS

Electric Circuit Theory

Complex Numbers Review

Basic Electronics. Introductory Lecture Course for. Technology and Instrumentation in Particle Physics Chicago, Illinois June 9-14, 2011

Lectures 16 & 17 Sinusoidal Signals, Complex Numbers, Phasors, Impedance & AC Circuits. Nov. 7 & 9, 2011

Sinusoids and Phasors

Frequency Response. Re ve jφ e jωt ( ) where v is the amplitude and φ is the phase of the sinusoidal signal v(t). ve jφ

Fall 2011 ME 2305 Network Analysis. Sinusoidal Steady State Analysis of RLC Circuits

Electric Circuits II Sinusoidal Steady State Analysis. Dr. Firas Obeidat

Chapter 9 Objectives

ECE 45 Average Power Review

Review of 1 st Order Circuit Analysis

Chapter 10: Sinusoids and Phasors

Phasors: Impedance and Circuit Anlysis. Phasors

EE221 Circuits II. Chapter 14 Frequency Response

EE221 Circuits II. Chapter 14 Frequency Response

Dynamic circuits: Frequency domain analysis

REACTANCE. By: Enzo Paterno Date: 03/2013

Alternating Current (AC) Circuits

K.K. Gan L3: R-L-C AC Circuits. amplitude. Volts. period. -Vo

Review of DC Electric Circuit. DC Electric Circuits Examples (source:

Chapter 5 Steady-State Sinusoidal Analysis

Phasor Diagram. Figure 1: Phasor Diagram. A φ. Leading Direction. θ B. Lagging Direction. Imag. Axis Complex Plane. Real Axis

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Discussion 5A

1 Phasors and Alternating Currents

EE40 Lecture 11 Josh Hug 7/19/2010

The Phasor Solution Method

EE 230. Lecture 4. Background Materials

BIOEN 302, Section 3: AC electronics

Sinusoidal Steady State Analysis (AC Analysis) Part II

EE292: Fundamentals of ECE

Sinusoidal Steady-State Analysis

Chapter 33. Alternating Current Circuits

Sinusoidal Steady State Analysis (AC Analysis) Part I

Circuit Analysis Using Fourier and Laplace Transforms

(Refer Slide Time: 01:30)

Finding Transfer Functions of Circuits Using State-Space

Passive RL and RC Filters

Refresher course on Electrical fundamentals (Basics of A.C. Circuits) by B.M.Vyas

Sinusoidal Steady-State Analysis

EIT Quick-Review Electrical Prof. Frank Merat

/ \ ( )-----/\/\/\/ \ / In Lecture 3 we offered this as an example of a first order LTI system.

Chapter 10: Sinusoidal Steady-State Analysis

SCHOOL OF MATHEMATICS MATHEMATICS FOR PART I ENGINEERING. Self-paced Course

L L, R, C. Kirchhoff s rules applied to AC circuits. C Examples: Resonant circuits: series and parallel LRC. Filters: narrowband,

Sinusoidal Steady State Analysis

Name: Lab: M8 M2 W8 Th8 Th11 Th2 F8. cos( θ) = cos(θ) sin( θ) = sin(θ) sin(θ) = cos. θ (radians) θ (degrees) cos θ sin θ π/6 30

Three Phase Circuits

1. (10 points) Find the general solution to the following second-order differential equation:

EE 40: Introduction to Microelectronic Circuits Spring 2008: Midterm 2

School of Electrical and Computer Engineering ECE2040 Dr. George F. Riley Summer 2007, GT Lorraine Analysis of LRC with Sinusoidal Sources

EE348L Lecture 1. EE348L Lecture 1. Complex Numbers, KCL, KVL, Impedance,Steady State Sinusoidal Analysis. Motivation

1.3 Sinusoidal Steady State

Solved Problems. Electric Circuits & Components. 1-1 Write the KVL equation for the circuit shown.

Fourier series. XE31EO2 - Pavel Máša. Electrical Circuits 2 Lecture1. XE31EO2 - Pavel Máša - Fourier Series

f = 1 T 6 a.c. (Alternating Current) Circuits Most signals of interest in electronics are periodic : they repeat regularly as a function of time.

Sinusoidal Steady-State Analysis

EDEXCEL NATIONAL CERTIFICATE UNIT 28 FURTHER MATHEMATICS FOR TECHNICIANS OUTCOME 3 TUTORIAL 1 - TRIGONOMETRICAL GRAPHS

Course Updates. Reminders: 1) Assignment #10 due Today. 2) Quiz # 5 Friday (Chap 29, 30) 3) Start AC Circuits

6.1 Introduction

Prof. Shayla Sawyer CP08 solution

Revision of Basic A.C. Theory

Poles, Zeros, and Frequency Response

NETWORK ANALYSIS WITH APPLICATIONS

Electronic Power Conversion

Notes on Mutual Inductance and Transformers J. McCalley

Name (print): Lab (circle): W8 Th8 Th11 Th2 F8. θ (radians) θ (degrees) cos θ sin θ π/ /2 1/2 π/4 45 2/2 2/2 π/3 60 1/2 3/2 π/

To find the step response of an RC circuit

Sum of Two Equal-Frequency Sinusoids by Richard (Rick) Lyons

The Transmission Line Wave Equation

d n 1 f dt n 1 + K+ a 0f = C cos(ωt + φ)

EE100Su08 Lecture #11 (July 21 st 2008)

CIRCUIT ANALYSIS II. (AC Circuits)

EE221 - Practice for the Midterm Exam

Handout 11: AC circuit. AC generator

The Fourier Transform (and more )

Sinusoidal steady-state analysis

High Voltage DC Transmission Prof. Dr. S.N. Singh Department of Electrical Engineering Indian Institute of Technology, Kanpur

Fourier Series Tutorial

Schedule. ECEN 301 Discussion #20 Exam 2 Review 1. Lab Due date. Title Chapters HW Due date. Date Day Class No. 10 Nov Mon 20 Exam Review.

BE 3600 BIOMEDICAL INSTRUMENTATION (LAB) - WEEK 2

Lecture 9 Time Domain vs. Frequency Domain

CHAPTER 4 FOURIER SERIES S A B A R I N A I S M A I L

P A R T 2 AC CIRCUITS. Chapter 9 Sinusoids and Phasors. Chapter 10 Sinusoidal Steady-State Analysis. Chapter 11 AC Power Analysis

AC Circuits Homework Set

Chapter 10 Sinusoidal Steady State Analysis Chapter Objectives:

Sinusoidal Response of RLC Circuits

Review of Linear Time-Invariant Network Analysis

Electric Circuits I FINAL EXAMINATION

Speaker: Arthur Williams Chief Scientist Telebyte Inc. Thursday November 20 th 2008 INTRODUCTION TO ACTIVE AND PASSIVE ANALOG

Phasor mathematics. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

ME 563 HOMEWORK # 7 SOLUTIONS Fall 2010

Lecture 4: R-L-C Circuits and Resonant Circuits

ENGN3227 Analogue Electronics. Problem Sets V1.0. Dr. Salman Durrani

Physics 2112 Unit 20. Outline: Driven AC Circuits Phase of V and I Conceputally Mathematically With phasors

Transcription:

Signals and Systems Fourier Transform: Solving differential equations when the input is periodic Objectives Determine a least-squares curve fit for a function using a sinusoidal series (Fourier series) Determine the output of a filter when the input is periodic (but not a sine wave) Problem: One model for the cardiovascular system is a Winkessel model: V(t) Aortic Pressure Aorta L C I(t) R Heart Assume you know I(t) ( corresponding to the blood the heart pumps out). Find V(t). Using s-notation, the impedance of R, L, and C become R R L jωl = Ls C 1 jωc = 1 Cs The resistance of the above circuit is then Meaning Z = 1 1/Cs + 1 Z = Cs + 1 Ls+R Ls+R 1 1 Z = Cs(Ls+R)+1 1 Ls+R Z = Ls+R CLs 2 +CRs+1 1 March 27, 2018

V = IR V = If you assume R = 1 L = 0.1 C = 1 you get V = Ls+R CLs 2 +CRs+1 s 2 +10 I I Case 1: Sinusoidal Input Find V(t) assuming I(t)=3sin(10t) This is a phasor problem. Using phasor notation, voltages and currents are represented as a + jb a cos(ωt) bsin (ωt) so I(t)=0 j3 The frequency is 10 rad/sec s = j10 so the output is then meaning V = V = s 2 +10 s 2 +10 I ( j3) s=j10 V = (0.0055 j0.1050) ( j3) V =-0.3149-0.0166i v(t) = 0.3149 cos(10t) + 0.0166 sin(10t) or if you prefer polar form 2 March 27, 2018

meaning V = 0.3154 177 0 v(t)=0.3154 cos (10t 177 0 ) Either answer is valid. Case 2: Input is Periodic but Not a Sinusoid Suppose instead I(t) is periodic every and I t + 2π 10 = I(t) I(t)= 1 0< t < 0.2 0 otherwise 2π 10 seconds I(t) vs. time. Note that I(t) is period every 2π 10 seconds Find V(t) assuming I(t) and V(t) are related by V = Now find V(t) s 2 +10 I 3 March 27, 2018

Solution 1: Least Squares Curve Fitting: To solve this problem, change it so that I(t) is a sinusoid, or more accurately, a bunch of sinusoids. Then 2π you can use the previous solution for each sinusoidal input. Since I(t) is periodic in seconds, express 10 2π I(t) in terms of sine waves which are also periodic in seconds (i.e. harmonics) 10 I(t) a 0 + a 1 cos (10t) + b 1 sin(10t) + a 2 cos(20t) + b 2 sin(20t)+... In theory, you should go out to infinity. For the sake of space, let's just go out to 5 terms. Using least squares, we can solve for the constants. First, write this in matrix form I(t) 1cos(10t) sin(10t) cos(20t) sin(20t) or in matrix form Y = BA where B is your basis function and A is you unknow constants. B is not invertable, so multiply both sides by B T Solve for A B T Y = B T BA A = (B T B) 1 B T Y a 0 a 1 b 1 a 2 b 2 In Matlab: >> t = [0:0.0001:1]' * 2*pi/10; >> I = 1.* (t < 0.2); >> B = [t.^0, cos(10*t), sin(10*t), cos(20*t), sin(20*t)]; >> A = inv(b'*b)*b'*i a0 0.3186 a1 0.2895 b1 0.4513 a2-0.1208 b2 0.2634 >> plot(t,i,t,b*a); 4 March 27, 2018

3-Cycles for I(t) (blue) and it's approximation using 5 terms (red): DC + 10 rad/sec + 20 rad/sec terms What this means is I(t) 0.3186 + 0.2895 cos(10t) 0.4513 sin(10t) 0.1208 cos(20t) 0.2634 sin(20t) Note: The approximation gets better if you add more terms. If you go out to the 20th harmonic, this plot looks like the following: 3-Cycles for I(t) (blue) and it's approximation using 20 harmonics ( 40 terms + DC - red ) Adding more terms makes the analysis more accurate - but more tedious. It's kind of a judgement call: how many terms you need to include for the results to be accurate enough. Often times, just a few harmonics are used: Signals tend to have most of their energy in the low-frequency terms (DC abnd1st harmonc typically) Most systems are low-pass filters: they tend to attenuate high-frequency signals. This results in the higher harmonics starting out small and getting smaller after filtering. It looks like you need a lot of terms to do Fourier analysis - but in acuality you normally only need a few (1 to 3). 5 March 27, 2018

Solution 2: Fourier Transform There's actually an easier way to get each term. Assume that I(t) a 0 + a 10 cos (10t) + b 10 sin(10t) + a 20 cos(20t) + b 20 sin(20t) Note that avg(cos (at)) = 0 avg(sin(at)) = 0 You can thus determine the DC term (a0) by a 0 = avg(i(t)) Also note that all sine waves are orthogonal Thus avg(sin(at) cos(bt)) = 0 avg(sin(at) sin(bt)) = 1 2 a = b 0 otherwise avg(cos(at) cos(bt)) = 1 2 a = b 0 otherwise a 10 = 2 avg(cos(10t) I(t)) b 10 = 2 avg(sin(10t) I(t)) a 20 = 2 avg(cos(20t) I(t)) b 20 = 2 avg(sin(20t) I(t)) etc. In Matlab: >> a0 = mean(i) 0.3186 >> a10 = 2*mean(cos(10*t).* I) 0.2896 >> b10 = 2*mean(sin(10*t).* I) 0.4513 >> a20 = 2*mean(cos(20*t).* I) 6 March 27, 2018

-0.1207 >> b20 = 2*mean(sin(20*t).* I) 0.2634 Note that you get the exact same answer you got using least squares curve fitting. So, I(t) contains three frequencies (five terms): A DC term: I 0 (t) 0.3186 A term at 10 rad/sec I 10 (t) 0.2895 cos(10t) 0.4513 sin(10t) A term at 20 rad/sec I 20 (t) 0.1208 cos(20t) 0.2634 sin(20t) In Matlab: % Start with the DC term... I0 = a0; % add in the 10 rad/sec term... I10 = a10*cos(10*t) + b10*sin(10*t); % add in the 20 rad/sec term... I20 = a20*cos(20*t) + b20*sin(20*t); % plot I(t) alongs with it's approximation taken out to 20 rad/sec plot(t,i,t,i0 + I10 + I20) This gives same plot as before ( just the first cycle: two more cycles are plotted so you can see the periodic nature of the signal ) 7 March 27, 2018

Finding V(t): Since I(t) has three separate frequencies, treat this as three separate problems. a) I(t)=0.3186 Using phasor analysis and I = 0.3186 s = 0 V 0 = s 2 +10 I 0 s=0 V 0 = (1) (0.3186) v(t)=0.3186 b) I 10 (t)=0.2895 cos(10t) 0.4513 sin(10t) Using phasor analysis and I 10 = 0.2895 + j0.4513 s = j10 V 10 = s 2 +10 I 10 s=j10 V 10 = (0.0055 j0.1050) (0.2895 + j0.4513) V 10 =-0.0458-0.0329i v 10 (t)= 0.0458 cos(10t) + 0.0329 sin(10t) c) I 20 (t)=0.1208 cos(20t) 0.2634 sin(20t) Using phasor analysis and I 20 = 0.1208 + j0.2634 s = j20 V 20 = s 2 +10 I 20 s=j20 V 20 = (0.0005 j0.0510) (0.1208 + j0.2634) 8 March 27, 2018

V 20 =-0.0135 + j0.0060 v 20 (t)= 0.0135 cos(20t) 0.0060 sin(20t) To get the total input, add up I(t) for part a), b), and c) To get the total output, add up V(t) for part a), b), and c) v(t)=v 0 (t)+v 10 (t)+v 20 (t) v(t) = 0.3186 0.0458 cos(10t) + 0.0329 sin(10t) 0.0135 cos(20t) 0.0060 sin(20t) This looks like the following: I(t) (blue) and V(t) (red) - shown for three cycles 9 March 27, 2018

Matlab Solution In Matlab, this is actually a lot easier ( hint: use this method for solving the homework ) First, input the function. Assume the period is 2π 10 t = [0:0.0001:1]' * 2*pi/10; x = 1 * (t < 0.2); a) At s = 0 (DC), s = 0; a0 = mean(x); I0 = a0 0.3186 ( the DC component of I(t) ) G0 = ( s + 10 ) / ( s^2 + 10*s + 10 ) 1 ( the gain at s = 0 ) V0 = G0 * I0 0.3186 ( the DC component of V(t) ) b) At 10 rad/sec ( 1st harmonic ) s = j*10; a10 = 2*mean(x.* cos(10*t)); b10 = 2*mean(x.* sin(10*t)); I10 = a10 - j*b10 0.2896-0.4513i ( the phasor representation for I(t) at 10 rad/sec ) G10 = ( s + 10 ) / ( s^2 + 10*s + 10 ) 0.0055-0.1050i ( the gain at s = j10 ) V10 = G10 * I10-0.0458-0.0329i ( the phasor representation for V(t) at 10 rad/sec ) 10 March 27, 2018

c) At 20 rad/sec: s = j*20; a20 = 2 * mean( x.* cos(20*t) ); b20 = 2 * mean( x.* sin(20*t) ); I20 = a20 - j*b20-0.1207-0.2634i ( the phasor representation for I(t) at 20 rad/sec ) G20 = ( s + 10 ) / ( s^2 + 10*s + 10 ) 0.0005-0.0510i ( the gain at s = j20 ) V20 = G20 * I20-0.0135 + 0.0060i ( the phasor representation for V(t) at 20 rad/sec ) Finally, convert from phasor notoation back to time domain: % Start with the DC term... V = V0; % add in the 10 rad/sec term... V = V + real(v10)*cos(10*t) - imag(v10)*sin(10*t); % add in the 20 rad/sec term... V = V + real(v20)*cos(20*t) - imag(v20)*sin(20*t); plot(t,i,t,v) I(t) (blue) and V(t) (red) - shown for three cycles ( same results as before ) 11 March 27, 2018