ee16b, spring 2018 uc berkeley eecs maharbiz and ...ee16b/sp18/lec/lecture4a.pdfee16b, spring 2018,...

18
EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018 UC Berkeley EECS Maharbiz and Roychowdhury Lecture 4A: Overview Slides State Space Representations

Upload: others

Post on 14-Aug-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1

EE16B, Spring 2018UC Berkeley EECS

Maharbiz and Roychowdhury

Lecture 4A: Overview Slides

State Space Representations

Page 2: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 2

Systems● Previously: circuits● Now: systems

● circuits + more: a broader concept

● Can be enormously complex● multi-domain

➔ EE (control, comm., computing, ...)

➔ mech., chem., optical, …● hierarchy of sub-systems

Page 3: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 3

Simpler Systems● … easier to understand and to work with

● Even small and simple systems can do interesting things

Page 4: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 4

A Note about Intuition vs Math

● Proper intuition: extremely important● quickly make mental leaps to solve problems and

design new things➔ … avoiding confusion that can arise from masses of detail

● Intuition doesn’t arise magically● mathematics: essential for in-depth understanding

➔ math + experience and practice → intuition

Intuition

Mathbacked by

may be wrong!

sometimes hard to translate math tointuition → not veryuseful for design- but may be usefulfor, eg, understandingand computation

BEST: both!

Page 5: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 5

Inputs and Outputs as VECTORS● (move to xournal)

Page 6: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 6

The Internal State● (move to xournal)

● Internal voltages/currents (unknowns): the state● also written as a vector:

Page 7: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 7

The System’s Equations● (move to xournal)

● can be written using the input and state vectors

Page 8: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 8

The Outputs● (move to xournal)

● also expressed using the input and state vectors

Page 9: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 9

State+Output Eqns Together

● general form: ,

STATE SPACE FORMULATION

* if not explicitly given, the entire state will be the output.

*

+ initial condition (IC)

Page 10: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 10

State Space Formulation: Benefits

● why is it useful?● any circuit can be written like this (not just this one)*

➔ however big or complicated● not just circuits – any system* from any domain!

➔ including multi-domain systems

* some additional generalization needed – won’t cover in this class

Any kind of system(EE, mech., chem.,

optical, multi-domain,...)

STATE SPACEFORMULATION

POWERFUL ANALYSIS METHODS

- phasor analysis - linearization - stability - controllability/observability - nonlinear analyses - computational methods

Deeper understanding

Powerful insights and intuition

Page 11: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 11

Previous Lecture

● examples● RLC circuit● pendulum

Any kind of system(EE, mech., chem.,

optical, multi-domain,...)

STATE SPACEFORMULATION

+ initial condition (IC)

Page 12: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 12

Mechanical Example: Pendulum● (move to xournal)

● The system is nonlinear (because of sin(...))

Page 13: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 13

Pendulum: simplification for small q

● Does this look familiar?

● INSIGHT: RLC ckt and damped pendulum are “the same”!

Filters Filters?? MEMS filters!(smaller, better, cheaper)

k

Page 14: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 14

Recap of Linearity

● The concept of LINEARITY is extremely important● it is fundamentally a systems concept

● 3 steps to check linearity➔ clearly identify your inputs and outputs (this affects linearity)➔ check superposition

● if and , then ,➔ check scaling

● if , then , and

SYSTEMinput output

Page 15: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 15

Linearity of State Space Formulations

● general S.S.F: ,

● If and

● then the system is linear

● Proof?

matrices

matrices

Page 16: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 16

Are these Systems Linear?

Page 17: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 17

State Space F. for Discrete Time Systems

● What is a discrete-time system?● example: compound interest

➔ (move to xournal)

● Discrete time sometimes more natural (eg, for finance, social dynamics, ...)

● general form: ,

STATE SPACE FORMULATION

+ initial condition (IC) given

Page 18: EE16B, Spring 2018 UC Berkeley EECS Maharbiz and ...ee16b/sp18/lec/Lecture4A.pdfEE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 1 EE16B, Spring 2018

EE16B, Spring 2018, Lecture on State-Space Representations (Roychowdhury) Slide 18

Another D.T. Example: Profs. and PhDs.

● (move to xournal)

● Linear? VECTOR D.T. STATE-SPACE FORMULATION