3.04 State-Space Modeling of Block Diagrams & SFGs | 3.06 State Transition Matrix: Properties & Solution Methods
3.05 Discrete-Time State-Space Representation
Core Idea
Just as continuous-time (CT) systems can be represented in state-space using derivatives, discrete-time (DT) systems described by linear constant-coefficient difference equations (LCCDEs) {equations relating discrete input and output sequences through delays} can be modeled using first-order shift-operator difference matrix equations. Instead of continuous integrators (), DT systems utilize unit delays () as their physical memory storage elements, where the state variables represent delayed values of the output or internal signals.
1. The Discrete-Time State-Space Formulation
In the discrete-time domain, the state-space model is formulated as a set of coupled, first-order difference matrix equations that track state transitions from sample index to {the discrete sample counter representing sequential clock ticks}.
1.1 The Discrete State Equation
The state equation governs how the internal state vector at the next clock cycle () is computed from the current state vector () and the current input vector ():
1.2 The Discrete Output Equation
The output equation maps the current states and current inputs directly to the system’s measurable output terminals ():
Where:
- is the State Vector containing the internal memory states.
- is the Input Vector containing the external excitation sequences.
- is the Output Vector containing the system outputs.
- is the System Matrix (governing natural dynamics and discrete poles).
- is the Input Matrix.
- is the Output Matrix.
- is the Direct Transmission Matrix.
2. Phase-Variable Selection in Discrete Time
For an -th order recursive LCCDE with output delays:
To eliminate high-order delays and construct first-order state-space matrices, we apply a standard Delay-Chain Phase Variable Mapping.
Step-by-Step Selection Workflow
Step 1: Assign State Variables to Bounded Delays
We define our state variables as the output of the unit delay elements, starting from the longest delay () up to the single-sample delay ():
Step 2: Write First-Order Shift Equations
Advance each state variable by one sample index () to find its state-transition behavior:
Step 3: Solve for the Final State Transition
The transition of the final state variable () represents the current output . Isolate in the original difference equation:
Substitute the state variable definitions from Step 1 into this expression:
Step 4: Assemble the Canonical Companion Matrix
Gather the state transitions into the discrete-time companion matrix format:
3. Comprehensive Worked Examples (The Exam Killers)
3.1 Example 1: Third-Order Recursive Difference Equation [Passage 84]
Question: Obtain the state-space model in companion form for the system described by the difference equation:
Step-by-Step Solution:
-
Normalize the Difference Equation (Monic Lead Coefficient): Divide the entire difference equation by the coefficient of (which is ):
-
Define Phase-Variable States (): Assign our state variables to the outputs of the cascade of three delay elements:
-
Formulate State Shifts: Shift each state variable forward by one step:
Solve for the final state shift by isolating in the normalized LCCDE:
-
Assemble the State Equation Matrix:
-
Assemble the Output Equation Matrix: Since our output sequence is (the current updated output), we substitute the state transition of directly to write our Output Equation strictly in terms of current states and current inputs:
Thus, the final discrete companion state-space matrices are:
4. Hardware Realization (Direct Form II Canonic Structure)
To visualize this discrete-time state-space system, we can map the matrices directly to a Canonic Direct Form II block diagram. Each state variable corresponds to the output of a physical unit-delay element ().
u[n]
│
v [x 1/4]
│
+─────────> ( + ) <─────────────────────────────────┐
│ │
v │
┌───────┐ │
│ z^-1 │───────> x3[n] ───( x -3/4 )──────┤
└───────┘ │
│ │
v │
┌───────┐ │
│ z^-1 │───────> x2[n] ───( x -1/2 )──────┤
└───────┘ │
│ │
v │
┌───────┐ │
│ z^-1 │───────> x1[n] ───( x -1/4 )──────┘
└───────┘
│
+───────────> Output y[n] = x3[n+1]5. Common Mistakes That Cost Marks
The Monic Coefficient Oversight
Students frequently forget to normalize the lead coefficient of to 1 before assigning phase-variable states. In the equation , starting state assignments without dividing by 4 first yields feedback gains and input scaling coefficients that are off by a factor of 4, leading to a critical grading penalty.
The Current Output () State Definition Trap
Defining as a state variable is a major error. The current output is not a memory state; it is a dependent response that changes instantaneously with the current input. State variables must represent delayed storage elements (e.g., ) to avoid algebraic loops during transition matrix calculations.
6. Potential/Grounded Exam Questions
6.1 Discrete LCCDE Conversion
Question: Represent the second-order recursive system in state-space companion form.
- Answer Plan:
- Define and .
- Write shifts: , and .
- Assemble state-space matrices:
7. Self-Check Before Moving On
- Can you write out the discrete-time State and Output matrix equations with correct variable dimensions?
- Do you know how to assign delay-chain state variables to an -th order difference equation?
- Have you mastered the requirement to normalize the coefficient of to 1 before formulating state companion matrices?
- Can you draw a Canonic Direct Form II block diagram from a discrete state-space model?
Source: (k.Deergha Rao) signals and systems.pdf (Chapter 6 & 8), ECE-2107_STATE_SPACE_ANALYSIS.pdf, Rabiul sir -2309008.pdf (Class Lecture Notes).