Objectives of State-Variable Analysis:
* Obtain the dynamic equations of control systems.
* Model electrical circuits in state space.
* Convert a transfer function to a state-space representation (Decomposition).
* Convert a state-space representation back to a transfer function.
* Perform linear transformations between similar systems using transformation matrices.
* Find the time-domain solution of state equations.
Comparison Between Classical and Modern Control Theory:
* Classical Control Theory: Based on simple input-output descriptions, usually expressed as a transfer function. It does not utilize knowledge of the plant's interior structure and is limited to Single-Input Single-Output (SISO) systems. Feedback control provides only limited control of closed-loop behavior.
* Modern Control Theory: Uses a "richer" description of plant dynamics called the state-space description. It provides dynamics through a set of coupled first-order differential equations in terms of internal variables (state variables) and algebraic equations for physical output variables.
Fundamental Definitions in State-Space
State: The minimum set of variables, known as state variables, that fully describe the system and its response to any given set of inputs.
State-Determined System Model: A mathematical description in terms of a minimum set of variables xi(t), i=1,…,n. Together with initial conditions at time t0 and system inputs for t≥t0, these are sufficient to predict future states and outputs for all t>t0. In linear time-invariant systems, t0 is usually chosen as zero.
State Variables: The smallest set of variables required to completely describe the dynamic behavior of the system.
State Vector: If n state variables {x1(t),x2(t),…,xn(t)} are needed, they are treated as components of a vector x(t), called the state vector.
State Space: An n-dimensional space where the coordinate axes are the state variables x1,x2,…,xn. Any state of the system is represented by a specific point in this space.
State, Output, and Dynamic Equations
State Equations: Relations governing the derivatives of state variables as functions of state variables and system inputs.
* x˙1=a11x1+a12x2+⋯+a1nxn+b11u1+⋯+b1mum
* x˙n=an1x1+an2x2+⋯+annxn+bn1u1+⋯+bnmum
Matrix Form of State Equation:x˙(t)=Ax(t)+Bu(t)
* x(t): State vector (n×1).
* u(t): Input vector (m×1).
* A: System matrix (n×n).
* B: Input matrix (n×m).
Output Equations: Relations governing the system outputs as functions of state variables and inputs.
* y1=c11x1+⋯+c1nxn+d11u1+⋯+d1mum
Matrix Form of Output Equation:y(t)=Cx(t)+Du(t)
* y(t): Output vector (k×1).
* C: System matrix/Output matrix (k×n).
* D: Direct-link/Feed-forward matrix (k×m).
Dynamic Equation: The combination of both the state equation and the output equation.
Linear Independence: State variables must be linearly independent, and a minimum number of variables must be chosen. The choice of variables is not unique.
Representing Electrical Networks in State-Space
Modeling Strategy: Typically, choose capacitor voltages (vc) and inductor currents (iL) as state variables because they represent the energy stored in the system (differentiated quantities).
Example 3 (Two Resistor Network):
* Output vector: y=[IR2VR1]T. State variables: x1=iL, x2=vc.
* Resulting matrices utilize a constant Δ=R1−4R1R2+R2R1.
* State Equation:
(x˙1x˙2)=(−LΔR2−(C1−CR1ΔR2)LΔ−CR1Δ)(x1x2)+(LΔR2(C1−CR1ΔR2))i(t)
* Output Equation:
(y1y2)=(−Δ−ΔR2R2Δ−1Δ)(x1x2)+(ΔΔR2)i(t)
Converting Transfer Functions to State Space (Decomposition)
Phase Variables: A set of state variables where each subsequent variable is the derivative of the previous one.
Direct Decomposition (Constant Numerator):
* Case Example (Ex 4):R(s)C(s)=s3+9s2+26s+2424
* Differential Equation: c...+9c¨+26c˙+24c=24r
* State Variables: x1=c, x2=c˙, x3=c¨.
* State Matrix (Phase Variable Canonical Form):
x˙1x˙2x˙3=00−2410−2601−9x1x2x3+0024r(t)
* Output: c(t)=(100)x+[0]r(t).
* Note: The last row of matrix A contains the denominator coefficients in negative and reverse order.
Direct Decomposition (Polynomial Numerator - Ex 8):
* R(s)C(s)=s3+9s2+26s+24s2+7s+2.
* Method: Divide by highest power of s, multiply by dummy variable X(s), and draw state diagram.
* System Matrix (A) stays in phase variable canonical form.
* Output Vector (C): contains the numerator coefficients (C=[271]).
Cascaded Decomposition:
* The transfer function is factored into first-order systems (e.g., s+11,s+2s+4,…) connected in series.
* Ex 11 Results: Matrices reveal system poles along the diagonal of A if factored completely.
* Example Result (Ex 11): A=−3002−2011−1, B=[005]T, pole values: −1,−2,−3.
Parallel Decomposition:
* Uses Partial Fraction Expansion to break the Transfer Function into parallel terms (s+p1A+s+p2B+…).
* Results in a Diagonal Matrix (if roots are distinct) or Jordan Canonical Form (if roots are repeated).
* Ex 13 Result:A=diag(−1,−2,−3), B=[7.5−102.5]T, C=[111].
* Repeated Roots (Ex 15):(s+4)(s+3)35. Leads to a Jordan block for the triple root at −3.
A=−30001−30001−30000−4
Converting State Space to Transfer Function
Formula:G(s)=U(s)Y(s)=C[sI−A]−1B+D
Example 19:
* A=(0−21−3),B=(01),C=(01),D=[0]
* [sI−A]−1=(s+1)(s+2)1(s+3−21s)
* Result: G(s)=(s+1)(s+2)s.
Characteristic Equation and Eigenvalues
Characteristic Equation:
* From Transfer Function: Denominator polynomial set to zero.
* From State Space: det(sI−A)=0.
Eigenvalues (\lambda): are the roots of the characteristic equation and determine system stability and time behavior.
Eigenvectors (P): For each eigenvalue λi, the eigenvector Pi is found by solving:
[λiI−A]Pi=0
Linear Transformations
Transformation Matrix (P): Relates old state vector x(t) to a new state vector z(t).
x(t)=Pz(t)orz(t)=P−1x(t)
Transformed System Matrices:
* Aˉ=P−1AP
* Bˉ=P−1B
* Cˉ=CP
Diagonalization:
* Case 1:A is in Phase Variable Canonical Form with distinct eigenvalues. P is a Vandermonde Matrix:
P=1λ1λ12⋮1λ2λ22⋮………⋱1λnλn2⋮
* Case 2:A is not in phase variable form. P is composed of the eigenvalues' corresponding eigenvectors: P=[P1P2…Pn].
Conversion to Phase Variable Canonical Form:
* Only possible if system is controllable (Matrix S=[BABA2B…An−1B] is non-singular).
* Transformation matrix Q is used.
Full Solution (Homogeneous + Forced/Unit Step):
* x(t)=Φ(t)x(0)+∫0tΦ(t−τ)Bu(τ)dτ
* In Laplace domain: X(s)=[sI−A]−1x(0)+[sI−A]−1BU(s)
Complex MIMO System (Ex 24):
* Input: u(t)=[12]T. Initial state: x(0)=[100]T.
* Calculates transfer matrix components individually (e.g., C1R1,C1R2,C2R1,C2R2).
* Final state component solution for x2(t):
x2(t)=2.2+0.2725e2.3532t−2.47256e0.8234tcos(1.202835t)+2.82217e0.8234tsin(1.202835t)
Numerical Examples Summary
Example 19 (SS to TF):G(s)=(s+2)(s+1)s.
Example 20 (Transfer Matrix Calculation): Uses adj(sI−A) and Δ=s3+9s2+35s+3 to find four individual transfer functions.
Example 23 (Unity-feedback TF to SS): System s2+6s+2525. After 2ms, x1(t)=1.00199.
Example 25 (Direct Decomposition of 2nd order DE):x1(t) and x2(t) at 2ms results in 1.001972 and 0.9722 respectively.