Module 02 Control Systems Preliminaries, Intro to State Space

Similar documents
Module 03 Modeling of Dynamical Systems

Module 09 From s-domain to time-domain From ODEs, TFs to State-Space Modern Control

Module 02 CPS Background: Linear Systems Preliminaries

U(s) = 0 + 0s 3 + 0s 2 + 0s + 125

Module 03 Linear Systems Theory: Necessary Background

Module 07 Controllability and Controller Design of Dynamical LTI Systems

Module 08 Observability and State Estimator Design of Dynamical LTI Systems

Chap 4. State-Space Solutions and

Module 07 Control Systems Design & Analysis via Root-Locus Method

Control Systems (ECE411) Lectures 7 & 8

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Linear Algebra. P R E R E Q U I S I T E S A S S E S S M E N T Ahmad F. Taha August 24, 2015

Module 06 Stability of Dynamical Systems

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Linear System Theory. Wonhee Kim Lecture 1. March 7, 2018

Laplace Transform Part 1: Introduction (I&N Chap 13)

Introduction to Modern Control MT 2016

Signals and Systems Chapter 2

Identification Methods for Structural Systems

ẋ n = f n (x 1,...,x n,u 1,...,u m ) (5) y 1 = g 1 (x 1,...,x n,u 1,...,u m ) (6) y p = g p (x 1,...,x n,u 1,...,u m ) (7)

Linear Systems Theory

Control Systems. Laplace domain analysis

Problem Weight Score Total 100

Module 05 Introduction to Optimal Control

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

School of Engineering Faculty of Built Environment, Engineering, Technology & Design

STABILITY. Have looked at modeling dynamic systems using differential equations. and used the Laplace transform to help find step and impulse

Control Systems I. Lecture 2: Modeling and Linearization. Suggested Readings: Åström & Murray Ch Jacopo Tani

16.30 Estimation and Control of Aerospace Systems

Solving a RLC Circuit using Convolution with DERIVE for Windows

Introduction to Process Control

Discrete and continuous dynamic systems

Mathematical Analysis of Epidemiological Models: Introduction

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Dynamic Response

Intro. Computer Control Systems: F8

Overview of the Seminar Topic

ECE557 Systems Control

I System variables: states, inputs, outputs, & measurements. I Linear independence. I State space representation

Course Background. Loosely speaking, control is the process of getting something to do what you want it to do (or not do, as the case may be).

MODELING OF CONTROL SYSTEMS

Differential Equations and Lumped Element Circuits

Control Systems Engineering (Chapter 2. Modeling in the Frequency Domain) Prof. Kwang-Chun Ho Tel: Fax:

MATHEMATICAL MODELING OF CONTROL SYSTEMS

I Laplace transform. I Transfer function. I Conversion between systems in time-, frequency-domain, and transfer

BIBO STABILITY AND ASYMPTOTIC STABILITY

State Space Control D R. T A R E K A. T U T U N J I

Course roadmap. ME451: Control Systems. Example of Laplace transform. Lecture 2 Laplace transform. Laplace transform

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

Perspective. ECE 3640 Lecture 11 State-Space Analysis. To learn about state-space analysis for continuous and discrete-time. Objective: systems

Lecture 1: Feedback Control Loop

Chapter 2 Time-Domain Representations of LTI Systems

Control Systems. Frequency domain analysis. L. Lanari

EE Experiment 11 The Laplace Transform and Control System Characteristics

Continuous Dynamics Solving LTI state-space equations גרא וייס המחלקה למדעי המחשב אוניברסיטת בן-גוריון

Systems of Ordinary Differential Equations

Control System. Contents

Time Response Analysis (Part II)

INC 341 Feedback Control Systems: Lecture 2 Transfer Function of Dynamic Systems I Asst. Prof. Dr.-Ing. Sudchai Boonto

Introduction to SEIR Models

Taking the Laplace transform of the both sides and assuming that all initial conditions are zero,

EE16B, Spring 2018 UC Berkeley EECS. Maharbiz and Roychowdhury. Lectures 4B & 5A: Overview Slides. Linearization and Stability

Controls Problems for Qualifying Exam - Spring 2014

Dr Ian R. Manchester

Linearization problem. The simplest example

MAE143A Signals & Systems - Homework 5, Winter 2013 due by the end of class Tuesday February 12, 2013.

ECE504: Lecture 9. D. Richard Brown III. Worcester Polytechnic Institute. 04-Nov-2008

Pole placement control: state space and polynomial approaches Lecture 2

Computer Problems for Methods of Solving Ordinary Differential Equations

EE 16B Midterm 2, March 21, Name: SID #: Discussion Section and TA: Lab Section and TA: Name of left neighbor: Name of right neighbor:

Multivariable Control. Lecture 03. Description of Linear Time Invariant Systems. John T. Wen. September 7, 2006

Linear Systems. Linear systems?!? (Roughly) Systems which obey properties of superposition Input u(t) output

Modeling and Control Overview

Review: transient and steady-state response; DC gain and the FVT Today s topic: system-modeling diagrams; prototype 2nd-order system

9. Introduction and Chapter Objectives

Control Systems I. Lecture 5: Transfer Functions. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

EE102 Homework 2, 3, and 4 Solutions

Control Systems. System response. L. Lanari

EEE582 Homework Problems

6.003 Homework #6 Solutions

Differential and Difference LTI systems

Math 315: Differential Equations Lecture Notes Patrick Torres

Richiami di Controlli Automatici

Linear dynamical systems with inputs & outputs

ACM/CMS 107 Linear Analysis & Applications Fall 2016 Assignment 4: Linear ODEs and Control Theory Due: 5th December 2016

Section 8.1 Def. and Examp. Systems

MTH210 DIFFERENTIAL EQUATIONS. Dr. Gizem SEYHAN ÖZTEPE

Lecture 7: Laplace Transform and Its Applications Dr.-Ing. Sudchai Boonto

EE/ME/AE324: Dynamical Systems. Chapter 7: Transform Solutions of Linear Models

6.241 Dynamic Systems and Control

CONTROL DESIGN FOR SET POINT TRACKING

Linear System Theory

An Introduction to Control Systems

Lecture 1 From Continuous-Time to Discrete-Time

Unit 2: Modeling in the Frequency Domain Part 2: The Laplace Transform. The Laplace Transform. The need for Laplace

Analog Signals and Systems and their properties

Dr. Ian R. Manchester

ECE504: Lecture 8. D. Richard Brown III. Worcester Polytechnic Institute. 28-Oct-2008

Topic # Feedback Control Systems

Intro. Computer Control Systems: F9

Transcription:

Module 02 Control Systems Preliminaries, Intro to State Space Ahmad F. Taha EE 5143: Linear Systems and Control Email: ahmad.taha@utsa.edu Webpage: http://engineering.utsa.edu/ taha August 28, 2017 Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 1 / 55

Module 2 Outline 1 Physical laws and equations 2 Transfer function model 3 Model of actual systems 4 Examples 5 From s-domain to time-domain 6 Introduction to state space representation 7 State space canonical forms 8 Analytical examples Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 2 / 55

Physical Laws and Models Any controls course is generally about dynamical or dynamic systems By definition, dynamical systems are dynamic because they change with time Change in the sense that their intrinsic properties evolve, vary Examples: coordinates of a drone, speed of a car, body temperature, concentrations of chemicals in a centrifuge Physicists and engineers like to represent dynamic systems with equations because nerdiness Why? Well, the answer is fairly straightforward Equations allow us to get away from chaos Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 3 / 55

Physical Laws For many systems, it s easy to understand the physics, and hence the math behind the physics Examples: circuits, motion of a cart, pendulum, suspension system For the majority of dynamical systems, the actual physics is complex Hence, it can be hard to depict the dynamics with differential eqns Examples: human body temperature, thermodynamics, spacecrafts This illustrates the needs for models Dynamic system model: a mathematical description of the actual physics Very important question: Why do we need a system model? Because control Remember George Box s quote: All models are wrong, but some are useful. Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 4 / 55

Modeling in Control 101: Transfer Functions? * TFs: a mathematical representation to describe relationship between inputs and outputs of the physics of a system, i.e., of the differential equations that govern the motion of bodies, for example Input: always defined as u(t) called control action Output: always defined as y(t) called measurement or sensor data TF relates the derivatives of u(t) and y(t) Why is that important? Well, think of F = ma F above is the input (exerted forces), and the output is the acceleration, a Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 5 / 55

Construction of Transfer Functions For linear systems, we can often represent the system dynamics through an nth order ordinary differential equation (ODE): y (n) (t) + a n 1 y (n 1) (t) + a n 2 y (n 2) (t) + + a 0 y(t) = u (m) (t) + b m 1 u (m 1) (t) + b m 2 u (m 2) (t) + + b 0 u(t) The y (k) notation means we re taking the kth derivative of y(t) Given that ODE description, we can take the Laplace transform (assuming zero initial conditions for all signals) [ ] L f (n) (t) = s n F (s) s n 1 f (0) s n 2 f (1) (0)... sf (n 2) (0) f (n 1) (0) H(s) = Y (s) U(s) = sm + b m 1 s m 1 + + b 0 s n + a n 1 s n 1 + + a 0 Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 6 / 55

Transfer Functions (Are Boring) Given this TF: H(s) = Y (s) U(s) = sm + b m 1 s m 1 + + b 0 s n + a n 1 s n 1 + + a 0 For a given control signal u(t) or U(s), we can find the output of the system, y(t), or Y (s) Impulse response: defined as h(t) the output y(t) if the input u(t) = δ(t) Step response: the output y(t) if the input u(t) = 1 + (t) For any input u(t), the output is: y(t) = h(t) u(t) But...Convolutions are nasty...who likes them? Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 7 / 55

TFs of Generic LTI Systems So, we can take the Laplace transform: Typically, we can write the TF as: Y (s) = H(s)U(s) H(s) = Y (s) U(s) = sm + b m 1 s m 1 + + b 0 s n + a n 1 s n 1 + + a 0 Roots of numerator are called the zeros of H(s) or the system Roots of the denominator are called the poles of H(s) Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 8 / 55

Example 2s + 1 Given: H(s) = s 3 4s 2 + 6s 4 Zeros: z 1 = 0.5 Poles: solve s 3 4s 2 + 6s 4 = 0, use MATLAB s roots command * poles=roots[1-4 6-4]; poles = {2, 1 + j, 1 j} Factored form: s + 0.5 H(s) = 2 (s 2)(s 1 j)(s 1 + j) Please go through http://engineering.utsa.edu/ taha/ teaching2/ee3413_module2.pdf for a review of Laplace transforms and ODEs Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 9 / 55

Analyzing Generic Physical Systems Seven-step algorithm: 1 Identify dynamic variables, inputs (u), and system outputs (y) 2 Focus on one component, analyze the dynamics (physics) of this component How? Use Newton s Equations, KVL, or thermodynamics laws... 3 After that, obtain an nth order ODE: n α i y (i) (t) = i=1 m β j u (j) (t) j=1 4 Take the Laplace transform of that ODE 5 Combine the equations to eliminate internal variables 6 Write the transfer function from input to output 7 For a certain control U(s), find Y (s), then y(t) = L 1 [Y (s)] Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 10 / 55

Active Suspension Model Each car has 4 active suspension systems (on each wheel) System is nonlinear, but we consider approximation. Objective? Input: road altitude r(t) (or u(t)), Output: car body height y(t) Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 11 / 55

Active Suspension Model Equations for 1 Wheel We only consider one of the four systems System has many components, most important ones are: body (m 2 ) & wheel (m 1 ) weights Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 12 / 55

Active Suspension Model Equations for Car Body We now have 2 equations depicting the car body and wheel motion Objective: find the TF relating output (y(t)) to input (r(t)) What is H(s) = Y (s) R(s)? Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 13 / 55

Active Suspension Model Transfer Function Differential equations (in time): m 1 ẍ(t) = k s (y(t) x(t)) + b(ẏ(t) ẋ(t)) k w (x(t) r(t)) m 2 ÿ(t) = k s (y(t) x(t)) b(ẏ(t) ẋ(t)) Take Laplace transform given zero ICs: Solution: Find H(s) = Y (s) R(s) Solution: Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 14 / 55

Basic Circuits Components Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 15 / 55

Basic Circuits RLCs & Op-Amps Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 16 / 55

TF of an RLC Circuit Example Apply KVL (assume zero ICs): v i(t) = Ri(t) + L di(t) + 1 dt C v o(t) = 1 i(τ)dt C i(τ)dt Take LT for the above differential equations: V i(s) = RI(s) + LsI(s) + 1 Cs I(s) V o(s) = 1 I(s) I(s) = CsVo(s) Cs Vo(s) V i(s) = 1 LCs 2 + RCs + 1 Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 17 / 55

Generic Circuit Analysis Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 18 / 55

General Discussion on Equivalent Systems Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 19 / 55

Dynamic Models in Nature Predator-prey equations are 1st order non-linear, ODEs Describe the dynamics of biological systems where 2 species interact One species as a predator and the other as a prey Populations change through time according to these equations: x(t): # of preys (e.g., rabbits) y(t): # of predators (e.g., foxes) ẋ(t) = αx(t) βx(t)y(t) ẏ(t) = δx(t)y(t) γy(t) ẋ(t), ẏ(t): growth rates of the 2 species function of time, t α, β, γ, δ: +ve real parameters depicting the interaction of the species Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 20 / 55

Mathematical Model ẋ(t) = αx(t) βx(t)y(t) ẏ(t) = δx(t)y(t) γy(t) Prey s population grows exponentially (αx(t)) why? Rate of predation is assumed to be proportional to the rate at which the predators and the prey meet (βx(t)y(t)) If either x(t) or y(t) is zero then there can be no predation δx(t)y(t) represents the growth of the predator population No prey no food for the predator y(t) decays Is there an equilibrium? What is it? Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 21 / 55

Dynamics in Epidemiology Epidemiology: The branch of medicine that deals with the incidence, distribution, and possible control of diseases and other factors relating to health In the past 10 years, mathematicians, biologists, and physicists studied mathematical models of epidemics Why is that important? Various models focus on different things: SIR Model: S for the number susceptible, I for the number of infectious, and R for the number recovered SIS Model: Infections like cold and influenza, do not possess lasting immunity SEIR: E for exposed MSIR: M stands for maternally-derived immunity SEIS and many, many more Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 22 / 55

SIR Model Here, we present the dynamic model for the SIR model We take flu as an example of the SIR model Define variable S(t), I(t), R(t) representing the number of people in each category at time t. The SIR model can be written as ds = βis dt N di = βis dt N γi dr = γi. dt N is the total number of people, with S(t) + I(t) + R(t) = N The force of infection F can be written as F = βi/n β is the contact rate, and γ is the transition rate (rate of recovery) Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 23 / 55

So who do these quantities vary? Blue represents Susceptible, Green represents Infected, and Red represents the Recovered population. Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 24 / 55

System Model Generalization Beyond ODEs Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 25 / 55

Input & Output Signals Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 26 / 55

Causality in Systems Causality is the basic property in systems that one process caused another process to happen Do not confuse causation with correlation: causation necessitates a relationship between the cause and effect correlation does not Anyway, here s some rigorous definitions DEF1 A system N is causal if the output at time t does not depend on the values of the input at any time t > t DEF2 A system N mapping x to y is causal IFF for any pair of input signals x 1(t) and x 2(t) such that x 1(t) = x 2(t), t t 0, the output satisfies y 1(t) = y 2(t), t t 0. DEF3 If h(t) is the impulse response of the system N, then the system is causal IFF h(t) = 0, t < 0 Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 27 / 55

Discrete vs. Continuous & Linear vs. Nonlinear Systems Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 28 / 55

Time-Invariant vs. Time-Varying & Lumped vs. Distributed Systems Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 29 / 55

Examples Are these systems linear? Nonlinear? TV? TI? Discrete? Continuous? Causal? Non-Causal? y(t) = (u(t)) 2 y(t) = t 2 u(t) y(t) = u(t) u(t 1) y(t) = u(t) u(t + 1) ẏ(t) = (u(t)) 2 + u(t 1) y(k + 1) = y(k) + u(k) Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 30 / 55

Modern Control In the undergrad control course, methods that pertain to the analysis and design of control systems via frequency-domain techniques were presented Root locus, PID controllers, compensators, state-feedback control, etc... These studies are considered as the classical control theory based on the s-domain This course focuses on time-domain techniques Theory is based on State-Space Representations modern control Why do we need that? Many reasons Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 31 / 55

ODEs & Transfer Functions For linear systems, we can often represent the system dynamics through an nth order ordinary differential equation (ODE): y (n) (t) + a 1 y (n 1) (t) + a 2 y (n 2) (t) + + a n 1 ẏ(t) + a n y(t) = b 0 u (n) (t) + b 1 u (n 1) (t) + b 2 u (b 2) (t) + + b n 1 u(t) + b n u(t) Input: u(t); Output: y(t) What if we have MIMO system? Given that ODE description, we can take the LT (assuming zero initial conditions for all signals): H(s) = Y (s) U(s) = b 0s n + b 1 s n 1 + + b n 1 s + b n s n + a 1 s n 1 + + a n 1 s + a n Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 32 / 55

ODEs & TFs H(s) = Y (s) U(s) = b 0s n + b 1 s n 1 + + b n 1 s + b n s n + a 1 s n 1 + + a n 1 s + a n This equation represents relationship between one system input and one system output This relationship, however, does not show me the internal states of the system, nor does it explain the case with multi-input system For that (and other reasons), we discuss the notion of system state Definition: x(t) is a state-vector that belongs to R n : x(t) R n x(t) is an internal state of a system Examples: voltages and currents of circuit components Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 33 / 55

ODEs, TFs to State-Space Representations H(s) = Y (s) U(s) = b 0s n + b 1 s n 1 + + b n 1 s + b n s n + a 1 s n 1 + + a n 1 s + a n State-space (SS) theory: representing the above TF of a system by a vector-form first order ODE: ẋ(t) = Ax(t) + Bu(t), x initial = x t0, (1) y(t) = Cx(t) + Du(t), (2) x(t) R n : dynamic state-vector of the LTI system, u(t): control input-vector, n = order of the TF/ODE y(t): output-vector and A, B, C, D are constant matrices For the above transfer function, we have one input U(s) and one output Y (s), hence the size of y(t) and u(t) is only one (scalars), while the size of vector x(t) is n, which is the order of the TF Objective: learn how to construct matrices A, B, C, D given a TF Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 34 / 55

State-Space Representation 1 H(s) = Y (s) U(s) = b 0s n + b 1 s n 1 + + b n 1 s + b n s n + a 1 s n 1 + + a n 1 s + a n Given the above TF/ODE, we want to find ẋ(t) = Ax(t) + Bu(t) y(t) = Cx(t) + Du(t) The above two equations represent a relationship between the input and output of the system via the internal system states The above 2 equations are nothing but a first order differential equation Wait, WHAT? But the TF/ODE was an nth order ODE. How do we have a first order ODE now? Well, because this equation is vector-matrix equation, whereas the ODE/TF was a scalar equation Next, we ll learn how to get to these 2 equations from any TF Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 35 / 55

State-Space Representation 2 [Ogata, P. 689] Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 36 / 55

State-Space Representation 3 [Ogata, P. 689] Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 37 / 55

State-Space Representation 4 [Ogata, P. 689] Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 38 / 55

Final Solution Combining equations (9-74,75,76), we can obtain the following vector-matrix first order differential equation: ẋ 1 (t) 0 1 0 0 x 1 (t) 0 ẋ 2 (t) 0 0 1 0 x 2 (t) 0 ẋ(t) =. =..... +. u(t) ẋ n 1 (t) 0 0 0 1 x n 1 (t) 0 ẋ n (t) a n } a n 1 a n 2 {{ a 1 x n (t) } 1 }{{ } Ax(t) Bu(t) x 1 (t) x 2 (t) y(t) = [ ] b n a n b 0 b n 1 a n 1 b 0 b 1 a 1 b 0. x n 1 (t) } {{ x n (t) } Cx(t) + b 0 u(t) }{{} Du(t) Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 39 / 55

Remarks For any TF with order n (order of the denominator), with one input and one output: A R n n, B R n 1, C R 1 n, D R Above matrices are constant system is linear time-invariant (LTI) If one term of the TF/ODE (i.e., the a s and b s) change as a function of time, the matrices derived above will also change in time system is linear time-varying (LTV) The above state-space form is called the controllable canonical form You can come up with different forms of A, B, C, D matrices given a different transformation Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 40 / 55

State-Space and Block Diagrams From the derived eqs. before, you can construct the block diagram An integrator block is equivalent to a 1 s, the inputs and outputs of each integrator are the derivative of the state ẋ i (t) and x i (t) A system (TF/ODE) of order n can be constructed with n integrators (you can construct the system with more integrators) Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 41 / 55

Example 1 Find a state-space representation (i.e., the state-space matrices) for the system represented by this second order transfer function: Y (s) U(s) = s + 3 s 2 + 3s + 2 Solution: look at the previous slides with the matrices: H(s) = Y (s) U(s) = b 0s n + b 1 s n 1 + + b n 1 s + b n s n + a 1 s n 1 + + a n 1 s + a n = b 0 {}}{ First, n = 2 A R 2 2, B R 2 1, C R 1 2, D R [ ] [ 0 1 0 ẋ(t) = x(t) + u(t) 2 3 1] }{{}}{{} A B y(t) = [ 3 1 ] x(t) + 0 u(t) }{{} C }{{} D b 1 {}}{ 0 s 2 + 1 s + s 2 + }{{} 3 b 2 {}}{ 3 s + }{{} 2 a 1 Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 42 / 55 a 2

Other State-Space Forms Given a TF/ODE 1 Observable Canonical Form: 1 Derivation from Ogata, but similar to the controllable canonical form. Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 43 / 55

Block Diagram of Observable Canonical Form Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 44 / 55

2 This factorization assumes that the TF has only distinct real poles. Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 45 / 55 Other State-Space Forms Given a TF/ODE Diagonal Canonical Form 2 :

Block Diagram of Diagonal Canonical Form Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 46 / 55

Example 1 Solution for other Canonical Forms Find the observable and diagonal forms for Y (s) U(s) = b 0 {}}{ b 1 {}}{ 0 s 2 + 1 s + s 2 + }{{} 3 b 2 {}}{ 3 s + }{{} 2 a 1 Solution: look at the previous slides with the constructed state-space matrices: Observable Canonical Form: [ ] [ ] 0 2 3 ẋ(t) = x(t) + u(t), y(t) = [ 0 1 ] x(t) + 1 3 1 }{{}}{{} 0 u(t) }{{}}{{} D C A B Diagonal Canonical Form: [ ] [ ] 1 0 1 ẋ(t) = x(t)+ u(t), y(t) = [ 2 1 ] x(t)+ 0 2 1 }{{}}{{} 0 u(t) }{{}}{{} D C A B Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 47 / 55 a 2

State-Space to Transfer Functions Given a state-space representation: ẋ(t) = Ax(t) + Bu(t) y(t) = Cx(t) + Du(t) can we obtain the transfer function back? Yes: Y (s) U(s) = C(sI A) 1 B + D Example: find the TF corresponding for this SISO system: [ ] [ 1 0 1 ẋ(t) = x(t)+ u(t), y(t) = 0 2 1] [ 2 1 ] x(t)+ }{{}}{{} 0 u(t) }{{}}{{} D C A B Solution: Y (s) U(s) = C(sI n A) 1 B+D = [ 2 1 ] ( [ ] [ ]) 1 [ ] 1 0 1 0 1 s +0 0 1 0 2 1 s + 3 = s 2, that s the TF from the previous example! + 3s + 2 Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 48 / 55

MATLAB Commands ss2tf(a,b,c,d,iu) tf2ss(num,den) Demo Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 49 / 55

Important Remarks So why do we want to go from a transfer function to a time-representation, ODE form of the system? There are many benefits for doing so, such as: 1 Stability analysis for MIMO systems becomes way easier 2 We have powerful mathematical tools that help us design controllers 3 RL and compensator designs were relatively tedious design problems 4 With state-space representations, we can easily design controllers 5 Nonlinear dynamics: cannot use TFs for nonlinear systems 6 State-space is all about time-domain analysis, which is far more intuitive than frequency-domain analysis 7 With Laplace transforms and TFs, we had to take inverse Laplace transforms. In many cases, the Laplace transform does not exist, which means time-domain analysis is the only way to go We will learn how to get a solution for y(t) for any given u(t) from the state-space representation of the system without Laplace transform via ODE solutions for matrix-vector equations Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 50 / 55

State Space Generalization: Nonlinear Lumped Systems Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 51 / 55

State Space Generalization: LTV Systems Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 52 / 55

State Space Generalization: LTI Systems Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 53 / 55

Important Remarks, Milestones We have introduced state-space (SS) representations The main use of SS is to generate real-time values and numerical solutions for x(t), the vector that includes the states of the system The main problem to be solved here is: Given an initial condition for system x(0) and a control input u(t) (single input (scalar), or multiple inputs (vector)), what will the state of the system (x(t)) be? What about y(t)? To answer this question, we need to find a solution to the matrix-vector differential equation: ẋ(t) = Ax(t) + Bu(t) If the system has one state, no controls, the solution is obvious If the system has multiple states, controls, solution is a bit complicated To find the answer to the above question, we will have to go through a review of basic mathematical concepts next Module Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 54 / 55

Questions And Suggestions? Thank You! Please visit engineering.utsa.edu/ taha IFF you want to know more Ahmad F. Taha Module 02 Control Systems Preliminaries, Introduction to State Space 55 / 55