Related Concepts: 3.01 Introduction to State-Space & Phase-Variable Formulations | 3.02 State-Space Modeling of Transfer Functions (Canonic Forms) | 3.03 State-Space Modeling of Electrical Circuits
3.04 State-Space Modeling of Block Diagrams & Signal Flow Graphs
Core Idea
Operational block diagrams and signal flow graphs (SFGs) are graphical representations of a system’s mathematical relationships. By assigning state variables to the outputs of integrators (in continuous-time systems) or unit delays (in discrete-time systems), we can systematically extract the coupled first-order matrix state equations () directly from the graphical signal paths.
1. State-Variable Assignment Rules for Graphical Systems
To systematically formulate state equations from any block diagram or signal flow graph, we apply two rigid assignment rules depending on the system domain:
Rule 1: Continuous-Time (CT) Systems (Integrators)
The state variables represent the output signals of the integrator blocks {integrators accumulate signals over time}.
- If an integrator block has output , then its input must be the first derivative of that state:
- For a system of order , there will be exactly cascaded or parallel integrator blocks ( in the s-domain), yielding state variables.
Rule 2: Discrete-Time (DT) Systems (Unit Delays)
The state variables represent the output signals of the unit delay blocks {delays hold discrete samples for one interval}.
- If a unit delay block () has output , then its input must be the next advanced sample state:
- For a discrete system of order , there will be exactly delay elements, yielding discrete state variables.
2. Rigorous 5-Step Graphical-to-Matrix Algorithm
Follow this mechanical checklist to convert any operational flowchart into state-space matrix format:
graph TD A[Step 1: Label Outputs of Integrators/Delays as x_i] --> B[Step 2: Label Inputs of Integrators/Delays as dx_i or x_i_plus_1] B --> C[Step 3: Write Equations for Adder Nodes in terms of x_i and u] C --> D[Step 4: Express System Output y in terms of x_i and u] D --> E[Step 5: Assemble Vector-Matrix Equations A, B, C, D]
- Step 1: Identify all integrator blocks () or delay blocks (). Label their outputs as state variables .
- Step 2: Label the inputs to these blocks as (for CT) or (for DT).
- Step 3: Systematically write algebraic equations for each adder node {summation points} in the diagram. Express the derivative/advanced states ( or ) strictly as a linear combination of the state variables and the external inputs .
- Step 4: Write the output equation by expressing or strictly in terms of the state variables and input .
- Step 5: Group coefficients and assemble into the canonical matrix format: \text{State Equation:} & \quad \mathbf{\dot{X}} = \mathbf{A}\mathbf{X} + \mathbf{B}\mathbf{U} \\ \text{Output Equation:} & \quad \mathbf{Y} = \mathbf{C}\mathbf{X} + \mathbf{D}\mathbf{U} \end{aligned}$$
3. Continuous-Time (CT) Block Diagram Modeling
Consider a continuous-time system containing three integrators. We want to extract the state-space representation directly from its hardware block wiring.
3.1 Worked Numerical: Multi-Feedback Integrator Diagram
Question: Obtain the state model of the continuous-time block diagram represented below:
[DIAGRAM: Continuous 3-integrator block diagram. Input u(t) enters an adder on the left. The output of this adder goes into Integrator 1. The output of Integrator 1 is state x3(t), which feeds into Integrator 2. The output of Integrator 2 is state x2(t), which feeds into Integrator 3. The output of Integrator 3 is state x1(t). Feedback gains of -5, -4, and -2 are taken from state outputs x1(t), x2(t), and x3(t) respectively, and routed back to the main input adder. The output y(t) is a linear sum of x1(t) and x2(t) - source: Azmat Sir Slide 15]
Step-by-Step Solution:
-
Step 1: Assign States Let the outputs of the three integrators be assigned as:
-
Step 2: Assign State Derivatives The inputs to the integrators are:
-
Step 3: Establish Integrator Connections From the cascading connections:
\dot{x}_1(t) &= x_2(t) \\ \dot{x}_2(t) &= x_3(t) \end{aligned}$$ -
Step 4: Write Main Adder Equation The input to the first integrator is , which is the output of the main feedback adder node. Let us trace the signals entering this adder:
-
Step 5: Write Output Equation The system output is the sum of and :
-
Step 6: Assemble State-Space Matrices
Thus, the continuous-time state matrices are:
4. Discrete-Time (DT) Block Diagram Modeling
Discrete-time diagrams utilize unit delays (). The mathematical extraction requires careful tracking of step indices.
4.1 Worked Numerical: Unit Delay Network [PYQ 2016]
Question: Find the state-space description corresponding to the system depicted below by choosing the state variables to be the outputs of the unit delays:
[DIAGRAM: Discrete-time realization block diagram containing two delay blocks (z^-1). Node labels: Input u[n] enters on the left, feeding into a top-path adder and a bottom-path adder. Delay Block 1 has output state x1[n], and Delay Block 2 has output state x2[n]. Tracing feedback path loops: the input to Delay 1 (x1[n+1]) is fed by u[n] + 1/3 x2[n]. The input to Delay 2 (x2[n+1]) is fed by the output of a multiplier (4/3) from x2[n] + x1[n] + u[n]. The output y[n] is tapped from the final right-side adder node - source: KUET 2016 Question 4a]
Step-by-Step Solution:
-
Assign State Variables: Let the outputs of the delay blocks be the states:
-
Establish Advanced State Equations: Tracing the signals at the inputs of the delays ():
-
Establish Output Equation: Tracing the output path from the final right-side adder node:
-
Formulate Coupled Matrices:
Thus, the final discrete state-space matrices are:
5. Signal Flow Graph (SFG) State-Space Formulations
A Signal Flow Graph (SFG) is a simplified directed graph where nodes represent variables and branches represent gains. It is mathematically equivalent to block diagrams.
5.1 The SFG State Extraction Rule
- Identify all branch transmittance terms that contain the integrator factor (or delay factor ).
- The State Node Rule: The output node of every branch with transmittance is designated as a state variable . The input node to that same branch represents the derivative of that state, .
\dot{x}_i(t) 1/s x_i(t)
o-------------( Integrator )------------->o- Write nodal equations for all derivative nodes () by summing all incoming branch signals entering that specific node.
6. Common Mistakes That Cost Marks
The Integrator Output-Input Swapping Trap
Never swap the input and output variables of the integrator! The output of the integrator block is the state , and the input is . If you mistakenly write the input as and output as , your derivative equations will involve unwanted integral calculus, completely violating the algebraic first-order state format.
The Direct Feedforward Path () Oversight
Always verify if there is a direct feedforward path bypassing the delay/integrator chains directly from the input terminal to the output terminal . If such a path exists (for example, a gain branch running from start to finish), your direct transmission matrix is non-zero (). Forgetting to include this feedforward term in your output equation yields a major structural grading deduction.
7. PYQ Bank — Verbatim Questions & Answer Plans
7.1 PYQ 2016 Question 4a [12 Marks]
Question: Find the state variable description corresponding to the system depicted in Fig. 4(a) by choosing the state variables to be the outputs of the unit delays.
- Answer Plan: Follow the step-by-step discrete mathematical derivation provided in Section 4.1. Clearly label the state variables and at the delay outputs, trace the inputs and , formulate the node state equations, write the output equation, and present the final matrices () with their respective dimensions to secure all 12 marks.
8. Self-Check Before Moving On
- Can you define state-variable assignment rules for continuous integrators and discrete unit delays?
- Do you know how to write algebraic equations for adder nodes by summing incoming branch signals?
- Have you mastered the 5-step graphical-to-matrix mapping algorithm?
- Can you identify non-zero matrices caused by direct input-output feedforward branches?
Source: (k.Deergha Rao) signals and systems.pdf (Chapter 8), ECE-2107_STATE_SPACE_ANALYSIS.pdf, Azmat Sir-2309008.pdf (Class Lecture Slides).