yesterday: un international women's day...

24
1 Systems Theory: Linear Differential Systems © 2017 School of Information Technology and Electrical Engineering at The University of Queensland http://elec3004.com Yesterday: UN International Women's Day 2017 ELEC 3004: Systems 9 March 2017 - 2

Upload: others

Post on 22-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

1

Systems Theory: Linear Differential Systems

© 2017 School of Information Technology and Electrical Engineering at The University of Queensland

TexPoint fonts used in EMF.

Read the TexPoint manual before you delete this box.: AAAAA

http://elec3004.com

Yesterday: UN International Women's Day 2017

ELEC 3004: Systems 9 March 2017 - 2

Page 2: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

2

Lecture Schedule: Week Date Lecture Title

1 28-Feb Introduction

2-Mar Systems Overview

2 7-Mar Systems as Maps & Signals as Vectors

9-Mar Systems: Linear Differential Systems

3 14-Mar Sampling Theory & Data Acquisition

16-Mar Antialiasing Filters

4 21-Mar Discrete System Analysis

23-Mar Convolution Review

5 28-Mar Frequency Response

30-Mar Filter Analysis

5 4-Apr Digital Filters (IIR)

6-Apr Digital Windows

6 11-Apr Digital Filter (FIR)

13-Apr FFT

18-Apr

Holiday 20-Apr

25-Apr

7 27-Apr Active Filters & Estimation

8 2-May Introduction to Feedback Control

4-May Servoregulation/PID

10 9-May Introduction to (Digital) Control

11-May Digitial Control

11 16-May Digital Control Design

18-May Stability

12 23-May Digital Control Systems: Shaping the Dynamic Response

25-May Applications in Industry

13 30-May System Identification & Information Theory

1-Jun Summary and Course Review

9 March 2017 - ELEC 3004: Systems 3

Follow Along Reading:

B. P. Lathi

Signal processing

and linear systems

1998

TK5102.9.L38 1998

• Chapter 2:

Time-Domain Analysis of

Continuous-Time Systems

– § 2.1 Introduction

– § 2.3 The Unit Impulse Response

– § 2.6 System Stability

– § 2.7 Intuitive Insights

into System Behaviour

– § 2.9 Summary

9 March 2017 - ELEC 3004: Systems 4

Page 3: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

3

Linear Differential Systems

9 March 2017 - ELEC 3004: Systems 5

• Consider system of linear equations:

• This can be written in a matrix form as 𝑦 = 𝐴𝑥, where

Linearity: Linear Equations

Source: Boyd, EE263, Slide 2-2

9 March 2017 - ELEC 3004: Systems 6

Page 4: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

4

• A function f ℝ𝑛 → ℝ𝑚 is linear if:

• That is, Superposition holds:

Linearity: Linear Functions

9 March 2017 - ELEC 3004: Systems 7

Consider a 𝑓: ℝ𝑛 → ℝ𝑚

given by 𝑓(𝑥) = 𝐴𝑥, where 𝐴 ∈ ℝ𝑚×𝑛

As matrix multiplication function if 𝒇 is linear, we may now say:

• converse is true: any linear function 𝑓: ℝ𝑛 → ℝ𝑚 can be

written as 𝑓(𝑥) = 𝐴𝑥, for dome 𝐴 ∈ ℝ𝑚×𝑛

• Representation via matrix multiplication is unique:

for any linear function 𝒇 there is only one matrix

𝑨 for which 𝑓 (𝑥) = 𝐴 𝑥 for all 𝑥

• 𝑦 = 𝐴𝑥 is a concrete representation of a generic linear function

Linearity: Linear functions and Matrix Multiplication

9 March 2017 - ELEC 3004: Systems 8

Page 5: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

5

of 𝑦 = 𝐴𝑥: • 𝑦 is measurement or observation; 𝑥 is unknown to be determined • 𝑥 is an “input” or “stated action”; 𝑦 is “output” or “result”

– In controls this “𝑥” is sometimes “separated” into 𝑥 and 𝑢 such that 𝒙 is the state and the 𝒖 is the action done by the controller

• A function/transformation that maps 𝒙 ∈ ℝ𝑛 into 𝒚 ∈ ℝ𝑚

of 𝐴 (or 𝑎𝑖𝑗):

• 𝑎𝑖𝑗 is a gain factor from 𝑗𝑡ℎ input (𝑥𝑗) to 𝑖𝑡ℎ output (𝑦𝑖)

• 𝑖𝑡ℎ row of A concerns 𝑖𝑡ℎ output (“row-out to sea”)

• 𝑗𝑡ℎ column of A concerns 𝑗𝑡ℎ input (“col-in to land”)

• 𝑎34 = 0 means 3rd output (𝑦3) doesn’t depend on 4th input (𝑥4)

• |𝑎34| ≫ 𝑎3𝑗 for 𝒋 ≠ 𝟒 means 𝒚𝟑 depends mainly on 𝑥4

• |𝑎34| ≫ |𝑎𝑖4| for 𝑖 ≠ 3 means 𝑥4 affects mainly 𝑦3

• If 𝐴 is diagonal, then 𝑖𝑡ℎ output depends only on 𝑖𝑡ℎ input • If A is lower triangular [i.e., 𝑎𝑖𝑗 = 0 for 𝑖 < 𝑗], then the 𝑦𝑖 only depends on 𝑥𝟏, . . . , 𝑥𝒊

Nothing tells you something:

• The sparsity pattern of A [i.e, zero/nonzero entries], shows which 𝑥𝑗 affect which 𝑦𝑖 : spy(A) [or just try spy]

Linearity: Interpretations

9 March 2017 - ELEC 3004: Systems 9

≡ LTI systems for which the input & output are linear ODEs

• Total response = Zero-input response + Zero-state response

Linear Dynamic [Differential] System

Initial conditions External Input

9 March 2017 - ELEC 3004: Systems 10

Page 6: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

6

• Linear system described by differential equation

Linear Systems and ODE’s

• Which using Laplace Transforms can be written as

0 1 0 1

n m

n mn m

dy d y dx d xa y a a b x b b

dt dt dt dt

)()()()(

)()()()()()( 1010

sXsBsYsA

sXsbssXbsXbsYsassYasYa m

m

n

n

where A(s) and B(s) are polynomials in s

9 March 2017 - ELEC 3004: Systems 11

• δ(t): Impulsive excitation

• h(t): characteristic mode terms

Unit Impulse Response

LTI

F(δ(t)) δ(t) h(t)=F(δ(t))

Ex:

9 March 2017 - ELEC 3004: Systems 12

Page 7: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

7

First Order Systems

9 March 2017 - ELEC 3004: Systems 13

First Order Systems

9 March 2017 - ELEC 3004: Systems 14

Page 8: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

8

First Order Systems

9 March 2017 - ELEC 3004: Systems 15

First Order Systems

9 March 2017 - ELEC 3004: Systems 16

Page 9: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

9

Second Order Systems

9 March 2017 - ELEC 3004: Systems 17

Second Order Systems

9 March 2017 - ELEC 3004: Systems 18

Page 10: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

10

Unit-Step Response

Second Order Response

Normalize

9 March 2017 - ELEC 3004: Systems 19

Second Order Response Envelope Curves

9 March 2017 - ELEC 3004: Systems 20

Page 11: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

11

• Delay time, td: The time required for the response to reach half the final value

• Rise time, tr: The time required for the response to rise from 10% to 90%

• Peak time, tp:The time required for the response to reach the first peak of the overshoot

• Maximum (percent) overshoot, Mp:

• Settling time, ts: The time to be within 2-5% of the final value

Second Order Response Unit Step Response Terms

9 March 2017 - ELEC 3004: Systems 21

Second Order Response Seeing this on the S-plane

9 March 2017 - ELEC 3004: Systems 22

Page 12: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

12

• The addition of a zero (a s term) gives a system with a shorter

rise time, a shorter peak time, and a larger overshoot

Second Order Response The Case of Adding a Zero

Increasing τ

Adapted from Qui,

IFC 2010 – pp. 154-5

9 March 2017 - ELEC 3004: Systems 23

• The addition of a pole (a 1/s term) slows down the system

response and reduces the overshoot.

Second Order Response The Case of Adding a Zero

Increasing τ

Adapted from Qui,

IFC 2010 – pp. 154-5

9 March 2017 - ELEC 3004: Systems 24

Page 13: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

13

• KCL:

• KVL:

• Combining:

Example of 2nd Order: RLC Circuits

L

R2

C

R1

+

−v S( t )

i ( t )

v C( t )

9 March 2017 - ELEC 3004: Systems 26

BREAK

9 March 2017 - ELEC 3004: Systems 27

Page 14: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

14

Multi-Domain-sional Nature of Multidimensional Signals & Systems

9 March 2017 - ELEC 3004: Systems 28

Equivalence Across Domains

Source: Dorf & Bishop, Modern Control Systems, 12th Ed., p. 73

9 March 2017 - ELEC 3004: Systems 29

Page 15: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

15

Source: Dorf & Bishop, Modern Control Systems, 12th Ed., p. 74

9 March 2017 - ELEC 3004: Systems 30

9 March 2017 - ELEC 3004: Systems 31

Page 16: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

16

• 2nd Order System Sallen–Key Low-Pass Topology:

Example: 2nd Order Active RC Filter (Sallen–Key)

R2 C1 +

–C2

VinVout

• KCL:

• Combined with Op-Amp Law:

• Solving for Gives a 2nd order System:

Build this for

Real in

ELEC 4403

9 March 2017 - ELEC 3004: Systems 33

Motors

9 March 2017 - ELEC 3004: Systems 34

Page 17: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

17

Mechanical Systems

9 March 2017 - ELEC 3004: Systems 35

Thermal Systems

9 March 2017 - ELEC 3004: Systems 36

Page 18: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

18

Example: Quarter-Car Model

9 March 2017 - ELEC 3004: Systems 37

Example: Quarter-Car Model (2)

9 March 2017 - ELEC 3004: Systems 38

Page 19: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

19

Materials, parts, labour, etc. (inputs) are combined to make a

number of products (outputs):

• 𝑥𝑗: price per unit of production input 𝑗

• 𝑎𝑖𝑗: input 𝑗 required to manufacture one unit of product 𝑖

• 𝑦𝑖: production cost per unit of product 𝑖

• For 𝑦 = 𝐴𝑥:

o 𝑖𝑡ℎ row of 𝐴 is bill of materials for unit of product 𝑖

• Production inputs needed: – 𝑞𝑖 is quantity of product 𝑖 to be produced

– 𝑟𝑗 is total quantity of production input 𝑗 needed

∴ 𝑟 = 𝐴𝑇𝑞

& Total production cost is:

𝑟𝑇𝑥 = 𝐴𝑇𝑞 𝑇𝑥 = 𝑞𝑇𝐴𝑥

Economics: Cost of Production

Source: Boyd, EE263, Slide 2-18

9 March 2017 - ELEC 3004: Systems 39

𝑦 = 𝐴𝑥

• 𝑦𝑖 is 𝑖𝑡ℎ measurement or sensor reading (which we have)

• 𝑥𝑗 is 𝑗𝑡ℎ parameter to be estimated or determined

• 𝑎𝑖𝑗 is sensitivity of 𝑖𝑡ℎ sensor to 𝑗𝑡ℎ parameter

• sample problems: o find 𝑥, given 𝑦

o find all x’s that result in y (i.e., all x’s consistent with measurements)

o if there is no x such that 𝑦 = 𝐴𝑥, find 𝑥 s.t. 𝑦 ≈ 𝐴𝑥 (i.e., if the sensor readings are inconsistent, find x which is almost consistent)

Estimation (or inversion)

Source: Boyd, EE263, Slide 2-26

9 March 2017 - ELEC 3004: Systems 40

Page 20: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

20

Mechanics: Total force/torque on rigid body

Source: Boyd, EE263, Slide 2-9

9 March 2017 - ELEC 3004: Systems 41

Another 2nd Order System: Accelerometer or Mass Spring Damper (MSD)

• General accelerometer: – Linear spring (k) (0th order w/r/t o)

– Viscous damper (b) (1st order)

– Proof mass (m) (2nd order)

Electrical system analogy: – resistor (R) : damper (b)

– inductance (L) : spring (k)

– capacitance (C) : mass (m)

9 March 2017 - ELEC 3004: Systems 42

Page 21: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

21

Measuring Acceleration: Sense a by measuring spring motion Z

• Start with Newton’s 2nd Law:

• Substitute:

• Solve ODE:

The “displacement”

measured by the unit

(the motion of m relative the

accelerometer frame)

9 March 2017 - ELEC 3004: Systems 43

Measuring Acceleration [2] • Substitute candidate solutions:

• Define Natural Frequency (ω0)

& Simplify for Z0 (the spring displacement “magnitude”):

9 March 2017 - ELEC 3004: Systems 44

Page 22: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

22

Acceleration: 2nd Order System

• Plot for a “unit” mass, etc….

• For ω<<ω0:

it’s an

Accelerometer

• For ω~ω0

– As: b 0, Z ∞

– Sensitivity ↑

• For ω>>ω0:

it’s a Seismometer Accelerometer Seismometer

9 March 2017 - ELEC 3004: Systems 45

overall loop gain, LG

v

Chemo-

reflex

Plant

chemical

drive

d +

disturbance

ventilation 2COP

delay

Disturbance

Ven

tila

tion

Response

PCO2

Ex3: “Loop Gain” to Quantify Ventilatory Stability:

9 March 2017 - ELEC 3004: Systems 46

Page 23: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

23

Estimating LG from Clinical PSG:

s1

Gevv

s

Echem

2950 3000 3050 3100 3150 3200 3250 3300-1

01

2950 3000 3050 3100 3150 3200 3250 3300

Abdo RIP

Thorax RIP

Flow

2950 3000 3050 3100 3150 3200 3250 3300

0

0.5

1

1.5

2

LGn=0.64 LG60=0.9 LG30=0.46

9 March 2017 - ELEC 3004: Systems 48

• Matlab: deconvwnr

Ex: Deblurring

9 March 2017 - ELEC 3004: Systems 49

Page 24: Yesterday: UN International Women's Day 2017robotics.itee.uq.edu.au/~elec3004/2017/lectures/L4-LDS.pdf · 2017-03-09 · 18-Apr 20-Apr Holiday 25-Apr 7 27-AprActive Filters & Estimation

24

• We will talk about sampling

• Please complete the “practice assignment” before

starting Problem Set 1

• Thank you!

Next Time…

9 March 2017 - ELEC 3004: Systems 50