State-Variable Analysis in Control Systems

Overview of State-Variable Analysis

  • 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)x_i(t), i=1,…,ni = 1, \dots, n. Together with initial conditions at time t0t_0 and system inputs for t≥t0t \geq t_0, these are sufficient to predict future states and outputs for all t>t0t > t_0. In linear time-invariant systems, t0t_0 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 nn state variables {x1(t),x2(t),…,xn(t)}\{x_1(t), x_2(t), \dots, x_n(t)\} are needed, they are treated as components of a vector x(t)\mathbf{x}(t), called the state vector.
  • State Space: An nn-dimensional space where the coordinate axes are the state variables x1,x2,…,xnx_1, x_2, \dots, x_n. 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\dot{x}_1 = a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n + b_{11}u_1 + \dots + b_{1m}u_m     * x˙n=an1x1+an2x2+⋯+annxn+bn1u1+⋯+bnmum\dot{x}_n = a_{n1}x_1 + a_{n2}x_2 + \dots + a_{nn}x_n + b_{n1}u_1 + \dots + b_{nm}u_m

  • Matrix Form of State Equation:x˙(t)=Ax(t)+Bu(t)\dot{\mathbf{x}}(t) = A\mathbf{x}(t) + B\mathbf{u}(t)     * x(t)\mathbf{x}(t): State vector (n×1n \times 1).     * u(t)\mathbf{u}(t): Input vector (m×1m \times 1).     * AA: System matrix (n×nn \times n).     * BB: Input matrix (n×mn \times m).

  • Output Equations: Relations governing the system outputs as functions of state variables and inputs.     * y1=c11x1+⋯+c1nxn+d11u1+⋯+d1mumy_1 = c_{11}x_1 + \dots + c_{1n}x_n + d_{11}u_1 + \dots + d_{1m}u_m

  • Matrix Form of Output Equation:y(t)=Cx(t)+Du(t)\mathbf{y}(t) = C\mathbf{x}(t) + D\mathbf{u}(t)     * y(t)\mathbf{y}(t): Output vector (k×1k \times 1).     * CC: System matrix/Output matrix (k×nk \times n).     * DD: Direct-link/Feed-forward matrix (k×mk \times 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 (vcv_c) and inductor currents (iLi_L) as state variables because they represent the energy stored in the system (differentiated quantities).

  • Example 1 (RLC Circuit):     * Inputs: u(t)u(t). Output: vov_o. State variables: x1=vcx_1 = v_c, x2=iLx_2 = i_L.     * Equations:         * v˙c=1Cu(t)−1CiL\dot{v}_c = \frac{1}{C}u(t) - \frac{1}{C}i_L         * i˙L=1Lvc−RLiL\dot{i}_L = \frac{1}{L}v_c - \frac{R}{L}i_L         * y=RiLy = Ri_L     * Matrix form:         (x˙1x˙2)=(0−1C1L−RL)(x1x2)+(1C0)u\begin{pmatrix} \dot{x}_1 \\ \dot{x}_2 \end{pmatrix} = \begin{pmatrix} 0 & -\frac{1}{C} \\ \frac{1}{L} & -\frac{R}{L} \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} + \begin{pmatrix} \frac{1}{C} \\ 0 \end{pmatrix} uy=(0R)(x1x2)+[0]uy = \begin{pmatrix} 0 & R \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} + [0]u

  • Example 2 (Complex RLC):     * State variables: x1=vcx_1 = v_c, x2=iLx_2 = i_L. Output: vRv_R.     * Equations:         * x˙1=−1RCx1+1Cx2\dot{x}_1 = -\frac{1}{RC}x_1 + \frac{1}{C}x_2         * x˙2=−1Lx1+1Lv(t)\dot{x}_2 = -\frac{1}{L}x_1 + \frac{1}{L}v(t)         * y=x1y = x_1     * Matrix form:         (x˙1x˙2)=(−1RC1C−1L0)(x1x2)+(01L)v(t)\begin{pmatrix} \dot{x}_1 \\ \dot{x}_2 \end{pmatrix} = \begin{pmatrix} -\frac{1}{RC} & \frac{1}{C} \\ -\frac{1}{L} & 0 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} + \begin{pmatrix} 0 \\ \frac{1}{L} \end{pmatrix} v(t)y=(10)(x1x2)+[0]uy = \begin{pmatrix} 1 & 0 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} + [0]u

  • Example 3 (Two Resistor Network):     * Output vector: y=[IR2 VR1]Ty = [I_{R2} \, V_{R1}]^T. State variables: x1=iLx_1 = i_L, x2=vcx_2 = v_c.     * Resulting matrices utilize a constant Δ=R1R1−4R1R2+R2\Delta = \frac{R1}{R1 - 4R1R2 + R2}.     * State Equation:         (x˙1x˙2)=(−ΔR2LΔL−(1C−ΔR2CR1)−ΔCR1)(x1x2)+(ΔR2L(1C−ΔR2CR1))i(t)\begin{pmatrix} \dot{x}_1 \\ \dot{x}_2 \end{pmatrix} = \begin{pmatrix} -\frac{\Delta R2}{L} & \frac{\Delta}{L} \\ -(\frac{1}{C} - \frac{\Delta R2}{CR1}) & -\frac{\Delta}{CR1} \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} + \begin{pmatrix} \frac{\Delta R2}{L} \\ (\frac{1}{C} - \frac{\Delta R2}{CR1}) \end{pmatrix} i(t)     * Output Equation:         (y1y2)=(−ΔΔ−1R2−ΔR2Δ)(x1x2)+(ΔΔR2)i(t)\begin{pmatrix} y_1 \\ y_2 \end{pmatrix} = \begin{pmatrix} -\Delta & \frac{\Delta - 1}{R_2} \\ -\Delta R_2 & \Delta \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} + \begin{pmatrix} \Delta \\ \Delta R_2 \end{pmatrix} 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): C(s)R(s)=24s3+9s2+26s+24\frac{C(s)}{R(s)} = \frac{24}{s^3 + 9s^2 + 26s + 24}     * Differential Equation: c...+9c¨+26c˙+24c=24r\dddot{c} + 9\ddot{c} + 26\dot{c} + 24c = 24r     * State Variables: x1=cx_1 = c, x2=c˙x_2 = \dot{c}, x3=c¨x_3 = \ddot{c}.     * State Matrix (Phase Variable Canonical Form):         (x˙1x˙2x˙3)=(010001−24−26−9)(x1x2x3)+(0024)r(t)\begin{pmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{pmatrix} = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -24 & -26 & -9 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} + \begin{pmatrix} 0 \\ 0 \\ 24 \end{pmatrix} r(t)     * Output: c(t)=(100)x+[0]r(t)c(t) = \begin{pmatrix} 1 & 0 & 0 \end{pmatrix} \mathbf{x} + [0]r(t).     * Note: The last row of matrix AA contains the denominator coefficients in negative and reverse order.

  • Direct Decomposition (Polynomial Numerator - Ex 8):     * C(s)R(s)=s2+7s+2s3+9s2+26s+24\frac{C(s)}{R(s)} = \frac{s^2 + 7s + 2}{s^3 + 9s^2 + 26s + 24}.     * Method: Divide by highest power of ss, multiply by dummy variable X(s)X(s), and draw state diagram.     * System Matrix (AA) stays in phase variable canonical form.     * Output Vector (CC): contains the numerator coefficients (C=[2 7 1]C = [2 \, 7 \, 1]).

  • Cascaded Decomposition:     * The transfer function is factored into first-order systems (e.g., 1s+1,s+4s+2,…\frac{1}{s+1}, \frac{s+4}{s+2}, \dots) connected in series.     * Ex 11 Results: Matrices reveal system poles along the diagonal of AA if factored completely.     * Example Result (Ex 11): A=(−3210−2100−1)A = \begin{pmatrix} -3 & 2 & 1 \\ 0 & -2 & 1 \\ 0 & 0 & -1 \end{pmatrix}, B=[0 0 5]TB = [0 \, 0 \, 5]^T, pole values: −1,−2,−3-1, -2, -3.

  • Parallel Decomposition:     * Uses Partial Fraction Expansion to break the Transfer Function into parallel terms (As+p1+Bs+p2+…\frac{A}{s+p1} + \frac{B}{s+p2} + \dots).     * 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)A = \text{diag}(-1, -2, -3), B=[7.5 −10 2.5]TB = [7.5 \, -10 \, 2.5]^T, C=[1 1 1]C = [1 \, 1 \, 1].     * Repeated Roots (Ex 15): 5(s+4)(s+3)3\frac{5}{(s+4)(s+3)^3}. Leads to a Jordan block for the triple root at −3-3.         A=(−31000−31000−30000−4)A = \begin{pmatrix} -3 & 1 & 0 & 0 \\ 0 & -3 & 1 & 0 \\ 0 & 0 & -3 & 0 \\ 0 & 0 & 0 & -4 \end{pmatrix}

Converting State Space to Transfer Function

  • Formula:G(s)=Y(s)U(s)=C[sI−A]−1B+DG(s) = \frac{Y(s)}{U(s)} = C[sI - A]^{-1}B + D
  • Example 19:     * A=(01−2−3),B=(01),C=(01),D=[0]A = \begin{pmatrix} 0 & 1 \\ -2 & -3 \end{pmatrix}, B = \begin{pmatrix} 0 \\ 1 \end{pmatrix}, C = \begin{pmatrix} 0 & 1 \end{pmatrix}, D = [0]     * [sI−A]−1=1(s+1)(s+2)(s+31−2s)[sI - A]^{-1} = \frac{1}{(s+1)(s+2)} \begin{pmatrix} s+3 & 1 \\ -2 & s \end{pmatrix}     * Result: G(s)=s(s+1)(s+2)G(s) = \frac{s}{(s+1)(s+2)}.

Characteristic Equation and Eigenvalues

  • Characteristic Equation:     * From Transfer Function: Denominator polynomial set to zero.     * From State Space: det⁡(sI−A)=0\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\lambda_i, the eigenvector PiP_i is found by solving:     [λiI−A]Pi=0[\lambda_i I - A]P_i = \mathbf{0}

Linear Transformations

  • Transformation Matrix (P): Relates old state vector x(t)\mathbf{x}(t) to a new state vector z(t)\mathbf{z}(t).     x(t)=Pz(t)orz(t)=P−1x(t)\mathbf{x}(t) = P\mathbf{z}(t) \quad \text{or} \quad \mathbf{z}(t) = P^{-1}\mathbf{x}(t)

  • Transformed System Matrices:     * Aˉ=P−1AP\bar{A} = P^{-1}AP     * Bˉ=P−1B\bar{B} = P^{-1}B     * Cˉ=CP\bar{C} = CP

  • Diagonalization:     * Case 1: AA is in Phase Variable Canonical Form with distinct eigenvalues. PP is a Vandermonde Matrix:         P=(11…1λ1λ2…λnλ12λ22…λn2⋮⋮⋱⋮)P = \begin{pmatrix} 1 & 1 & \dots & 1 \\ \lambda_1 & \lambda_2 & \dots & \lambda_n \\ \lambda_1^2 & \lambda_2^2 & \dots & \lambda_n^2 \\ \vdots & \vdots & \ddots & \vdots \end{pmatrix}     * Case 2: AA is not in phase variable form. PP is composed of the eigenvalues' corresponding eigenvectors: P=[P1 P2 … Pn]P = [P_1 \, P_2 \, \dots \, P_n].

  • Conversion to Phase Variable Canonical Form:     * Only possible if system is controllable (Matrix S=[B AB A2B … An−1B]S = [B \, AB \, A^2B \, \dots \, A^{n-1}B] is non-singular).     * Transformation matrix QQ is used.

Time Domain Solution of State Equations

  • Homogeneous Equation (Zero-Input Response):     * x˙(t)=Ax(t)\dot{\mathbf{x}}(t) = A\mathbf{x}(t)     * Solution: x(t)=eAtx(0)\mathbf{x}(t) = e^{At}\mathbf{x}(0)

  • State Transition Matrix (\Phi(t)):     * Φ(t)=eAt=L−1{[sI−A]−1}\Phi(t) = e^{At} = \mathcal{L}^{-1}\{[sI - A]^{-1}\}     * Properties: Φ(0)=I\Phi(0) = I, Φ−1(t)=Φ(−t)\Phi^{-1}(t) = \Phi(-t), Φ(t1+t2)=Φ(t1)Φ(t2)\Phi(t_1 + t_2) = \Phi(t_1)\Phi(t_2).

  • Full Solution (Homogeneous + Forced/Unit Step):     * x(t)=Φ(t)x(0)+∫0tΦ(t−τ)Bu(τ)dτ\mathbf{x}(t) = \Phi(t)\mathbf{x}(0) + \int_{0}^{t} \Phi(t-\tau)B\mathbf{u}(\tau) d\tau     * In Laplace domain: X(s)=[sI−A]−1x(0)+[sI−A]−1BU(s)\mathbf{X}(s) = [sI - A]^{-1}\mathbf{x}(0) + [sI - A]^{-1}B\mathbf{U}(s)

  • Complex MIMO System (Ex 24):     * Input: u(t)=[1 2]Tu(t) = [1 \, 2]^T. Initial state: x(0)=[1 0 0]Tx(0) = [1 \, 0 \, 0]^T.     * Calculates transfer matrix components individually (e.g., C1R1,C1R2,C2R1,C2R2C_1R_1, C_1R_2, C_2R_1, C_2R_2).     * Final state component solution for x2(t)x_2(t):         x2(t)=2.2+0.2725e2.3532t−2.47256e0.8234tcos⁡(1.202835t)+2.82217e0.8234tsin⁡(1.202835t)x_2(t) = 2.2 + 0.2725e^{2.3532t} - 2.47256e^{0.8234t}\cos(1.202835t) + 2.82217e^{0.8234t}\sin(1.202835t)

Numerical Examples Summary

  • Example 19 (SS to TF): G(s)=s(s+2)(s+1)G(s) = \frac{s}{(s+2)(s+1)}.
  • Example 20 (Transfer Matrix Calculation): Uses adj(sI−A)\text{adj}(sI - A) and Δ=s3+9s2+35s+3\Delta = s^3 + 9s^2 + 35s + 3 to find four individual transfer functions.
  • Example 23 (Unity-feedback TF to SS): System 25s2+6s+25\frac{25}{s^2 + 6s + 25}. After 2 ms2\,ms, x1(t)=1.00199x_1(t) = 1.00199.
  • Example 25 (Direct Decomposition of 2nd order DE): x1(t)x_1(t) and x2(t)x_2(t) at 2 ms2\,ms results in 1.0019721.001972 and 0.97220.9722 respectively.