Skip to content
Control Systems Engineering•Unit 4• EEE2005

Frequency Response & State Variable Analysis

Frequency domain specifications (resonant peak Mr, resonant frequency ωr, bandwidth ωBW), Bode magnitude and phase plots, gain and phase margins, polar plots, Nyquist stability criterion (encirclement formula N = P - Z), state variable concepts, canonical state-space forms (controllable, observable), Resolvent matrix (sI - A)⁻¹, State Transition Matrix (STM) Φ(t) = e^(At), and Kalman controllability and observability rank tests.

Learning Mode Filter (#29):Personalize View
Skills Built:Frequency Specifications Formulation (Resonant Peak Mr, Resonant Freq ωr, Bandwidth ωBW)Bode Magnitude & Phase Asymptotic Construction (±20, ±40 dB/dec Slopes)Gain Crossover (ωgc) & Phase Crossover (ωpc) Frequency IdentificationGain Margin (GM) & Phase Margin (PM) Stability CalculationNyquist Stability Criterion (N = P - Z) via Polar Encirclements of -1+j0Phase-Variable Companion State-Space Modeling (A, B, C, D Matrices)Resolvent Matrix (sI - A)⁻¹ & Closed-Loop Transfer Function InversionState Transition Matrix Φ(t) = e^(At) Evaluation via Inverse Laplace & Cayley-HamiltonKalman Controllability (𝓒 = [B AB]) & Observability (𝓞 = [Cᵀ AᵀCᵀ]) Rank Tests

1. 5 Key Ideas: Frequency Dynamics & State-Space Formulations

Idea 1: The Sinusoidal Transfer Function & Frequency-Domain Specifications

When a stable linear time-invariant (LTI) system with transfer function G(s)G(s) is excited by a sinusoidal input r(t)=Asin⁡(ωt)r(t) = A \sin(\omega t), the steady-state output response css(t)c_{ss}(t) is an identical sinusoid of the exact same frequency ω\omega, but with modified amplitude and shifted phase angle: css(t)=A∣G(jω)∣sin⁡(ωt+∠G(jω))c_{ss}(t) = A |G(j\omega)| \sin(\omega t + \angle G(j\omega))

Where the Sinusoidal Transfer Function is obtained by substituting s=jωs = j\omega: G(jω)=∣G(jω)∣ejϕ(ω)=Re{G(jω)}+jIm{G(jω)}G(j\omega) = |G(j\omega)| e^{j \phi(\omega)} = \text{Re}\{G(j\omega)\} + j \text{Im}\{G(j\omega)\}

For the canonical second-order closed-loop prototype: T(s)=ωn2s2+2ζωns+ωn2  ⟹  T(jω)=1(1−ω2ωn2)+j2ζ(ωωn)T(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2} \implies T(j\omega) = \frac{1}{\left(1 - \frac{\omega^2}{\omega_n^2}\right) + j 2\zeta\left(\frac{\omega}{\omega_n}\right)}

Let normalized frequency u=ωωnu = \frac{\omega}{\omega_n}. The magnitude ratio M(u)M(u) is: M(u)=∣T(jω)∣=1(1−u2)2+4ζ2u2M(u) = |T(j\omega)| = \frac{1}{\sqrt{\left(1 - u^2\right)^2 + 4\zeta^2 u^2}}

This defines three critical frequency-domain performance specifications:

  1. Resonant Peak (MrM_r): The maximum value of the closed-loop magnitude ratio ∣T(jω)∣|T(j\omega)|. For ζ<12≈0.707\zeta < \frac{1}{\sqrt{2}} \approx 0.707: Mr=12ζ1−ζ2M_r = \frac{1}{2\zeta\sqrt{1 - \zeta^2}} Notice: MrM_r depends strictly on damping ratio ζ\zeta. A higher resonant peak directly correlates with larger transient overshoot %Mp\%M_p in the time domain.
  2. Resonant Frequency (ωr\omega_r): The frequency at which the maximum magnitude MrM_r occurs: ωr=ωn1−2ζ2\omega_r = \omega_n \sqrt{1 - 2\zeta^2} (For ζ>0.707\zeta > 0.707, no resonant peak exists; ∣T(jω)∣|T(j\omega)| monotonically decreases from 11 as ω\omega increases).
  3. Closed-Loop Bandwidth (ωBW\omega_{BW}): The frequency at which the magnitude ∣T(jω)∣|T(j\omega)| drops by 3 dB3\text{ dB} (1/2≈0.7071/\sqrt{2} \approx 0.707 of its DC value): ωBW=ωn(1−2ζ2)+4ζ4−4ζ2+2\omega_{BW} = \omega_n \sqrt{\left(1 - 2\zeta^2\right) + \sqrt{4\zeta^4 - 4\zeta^2 + 2}} Bandwidth measures the speed of response (shorter rise time trt_r) and frequency-tracking capability.

Idea 2: The Logarithmic Bode Plot & Relative Stability Margins

The Bode Plot represents the frequency response using two separate graphs with a common logarithmic frequency horizontal axis (ω\omega in rad/s across decades):

  1. Bode Magnitude Plot: Logarithmic gain in decibels: ∣G(jω)∣dB=20log⁡10∣G(jω)∣|G(j\omega)|_{\text{dB}} = 20 \log_{10} |G(j\omega)|
  2. Bode Phase Plot: Phase angle ∠G(jω)\angle G(j\omega) linearly in degrees.

Asymptotic Construction Factors

Any rational transfer function factors into 4 elementary building blocks:

  1. Constant Gain KK: Horizontal line at 20log⁡10K dB20\log_{10} K\text{ dB}, Phase =0∘= 0^\circ (or −180∘-180^\circ if K<0K < 0).
  2. Integrator/Differentiator (jω)±1(j\omega)^{\pm 1}: Straight line with constant slope ±20 dB/decade\pm 20\text{ dB/decade} passing through 0 dB0\text{ dB} at ω=1 rad/s\omega = 1\text{ rad/s}. Phase is constant ±90∘\pm 90^\circ.
  3. Simple First-Order Factor (1+jωT)±1(1 + j\omega T)^{\pm 1}:
    • Corner (break) frequency: ωc=1T rad/s\omega_c = \frac{1}{T}\text{ rad/s}.
    • Below ωc\omega_c: Asymptote is 0 dB0\text{ dB}.
    • Above ωc\omega_c: Asymptote rolls off at ±20 dB/decade\pm 20\text{ dB/decade}.
    • Exact magnitude at ω=ωc\omega = \omega_c is ±3 dB\pm 3\text{ dB} (20log⁡10220\log_{10}\sqrt{2}).
    • Phase shifts from 0∘0^\circ to ±90∘\pm 90^\circ, passing through ±45∘\pm 45^\circ at ω=ωc\omega = \omega_c.
  4. Quadratic Complex Factor [1+j2ζ(ωωn)−(ωωn)2]±1\left[1 + j 2\zeta\left(\frac{\omega}{\omega_n}\right) - \left(\frac{\omega}{\omega_n}\right)^2\right]^{\pm 1}:
    • Corner frequency: ω=ωn\omega = \omega_n.
    • High-frequency asymptote rolls off at ±40 dB/decade\pm 40\text{ dB/decade}.
    • Phase shifts through 180∘180^\circ, passing through ±90∘\pm 90^\circ at ω=ωn\omega = \omega_n.

Robustness Metrics: Gain Margin & Phase Margin

To prevent closed-loop instability, the open-loop transfer function G(jω)H(jω)G(j\omega)H(j\omega) must not pass through the critical point −1+j0-1 + j0 (which corresponds to ∣GH∣=1=0 dB|GH| = 1 = 0\text{ dB} and ∠GH=−180∘\angle GH = -180^\circ):

  • Gain Crossover Frequency (ωgc\omega_{gc}): The frequency where the magnitude is unity (0 dB0\text{ dB}): ∣G(jωgc)H(jωgc)∣=1  ⟺  ∣G(jωgc)H(jωgc)∣dB=0 dB|G(j\omega_{gc})H(j\omega_{gc})| = 1 \iff |G(j\omega_{gc})H(j\omega_{gc})|_{\text{dB}} = 0\text{ dB}
  • Phase Margin (PM): The additional phase lag required at ωgc\omega_{gc} to bring the system to the verge of instability: PM=180∘+∠G(jωgc)H(jωgc)\text{PM} = 180^\circ + \angle G(j\omega_{gc})H(j\omega_{gc})
  • Phase Crossover Frequency (ωpc\omega_{pc}): The frequency where the phase angle is −180∘-180^\circ: ∠G(jωpc)H(jωpc)=−180∘\angle G(j\omega_{pc})H(j\omega_{pc}) = -180^\circ
  • Gain Margin (GM): The reciprocal of the open-loop magnitude at ωpc\omega_{pc}, expressed in dB: GM=−20log⁡10∣G(jωpc)H(jωpc)∣=20log⁡10(1∣G(jωpc)H(jωpc)∣) dB\text{GM} = -20 \log_{10} |G(j\omega_{pc})H(j\omega_{pc})| = 20 \log_{10}\left(\frac{1}{|G(j\omega_{pc})H(j\omega_{pc})|}\right)\text{ dB}

Stability Criteria via Bode Margins:

  • Stable: ωgc<ωpc  ⟺  GM>0 dB\omega_{gc} < \omega_{pc} \iff \text{GM} > 0\text{ dB} and PM>0∘\text{PM} > 0^\circ.
  • Marginally Stable: ωgc=ωpc  ⟺  GM=0 dB\omega_{gc} = \omega_{pc} \iff \text{GM} = 0\text{ dB} and PM=0∘\text{PM} = 0^\circ.
  • Unstable: ωgc>ωpc  ⟺  GM<0 dB\omega_{gc} > \omega_{pc} \iff \text{GM} < 0\text{ dB} and PM<0∘\text{PM} < 0^\circ.

Idea 3: Polar Plots & The Nyquist Stability Encirclement Criterion

The Polar Plot (or Nyquist Plot) graphs the trajectory of the complex phasor G(jω)H(jω)G(j\omega)H(j\omega) directly in the complex plane as frequency ω\omega sweeps from −∞-\infty to +∞+\infty.

Cauchy's Principle of the Argument

Let a closed contour Γs\Gamma_s in the ss-plane enclose ZZ zeros and PP poles of a rational function F(s)=1+G(s)H(s)F(s) = 1 + G(s)H(s). If the contour does not pass through any poles or zeros, then as ss traverses Γs\Gamma_s clockwise, the mapped contour ΓF\Gamma_F in the F(s)F(s)-plane encircles the origin NN times clockwise, where: N=Z−PN = Z - P

Because F(s)=1+G(s)H(s)F(s) = 1 + G(s)H(s), encirclements of the origin by F(s)F(s) correspond identically to encirclements of the critical point −1+j0-1 + j0 by the open-loop contour G(s)H(s)G(s)H(s).

The Nyquist Stability Theorem

Let:

  • PP: Number of open-loop poles of G(s)H(s)G(s)H(s) in the Right-Half ss-Plane (RHP).
  • NcwN_{\text{cw}}: Number of clockwise encirclements of the critical point −1+j0-1 + j0 by the complete Nyquist plot of G(s)H(s)G(s)H(s) (ω∈(−∞,+∞)\omega \in (-\infty, +\infty)).
  • ZZ: Number of closed-loop poles in the RHP (zeros of 1+G(s)H(s)1 + G(s)H(s)).

The fundamental stability formula states: Z=P+Ncwor equivalentlyN=P−ZZ = P + N_{\text{cw}} \quad \text{or equivalently} \quad N = P - Z (where N=−NcwN = -N_{\text{cw}} is counterclockwise encirclements).

Condition for Closed-Loop Stability: For the closed-loop system to be strictly stable, there must be zero closed-loop RHP poles (Z=0Z = 0): Ncw=−P  ⟺  Nccw=PN_{\text{cw}} = -P \iff N_{\text{ccw}} = P

  • If the open-loop plant is already stable (P=0P = 0), then the closed-loop system is stable if and only if the Nyquist plot does NOT encircle −1+j0-1 + j0 (N=0N = 0).
  • If the open-loop plant has PP unstable poles (P>0P > 0), the Nyquist plot MUST encircle −1+j0-1 + j0 exactly PP times in the COUNTERCLOCKWISE direction for the closed-loop feedback system to achieve stability.

Idea 4: State-Space Representation & Transfer Function Inversion

Classical control relies on input-output transfer functions T(s)=Y(s)/U(s)T(s) = Y(s)/U(s) under zero initial conditions. Modern state-space control represents an nn-th order dynamic system as a set of nn coupled first-order differential equations: x˙(t)=Ax(t)+Bu(t)(State Equation)\mathbf{\dot{x}}(t) = \mathbf{A}\mathbf{x}(t) + \mathbf{B}\mathbf{u}(t) \quad \text{(State Equation)} y(t)=Cx(t)+Du(t)(Output Equation)\mathbf{y}(t) = \mathbf{C}\mathbf{x}(t) + \mathbf{D}\mathbf{u}(t) \quad \text{(Output Equation)}

Where:

  • x(t)∈Rn\mathbf{x}(t) \in \mathbb{R}^n: State Vector (minimal set of internal dynamic variables, e.g., position, velocity, inductor current, capacitor voltage).
  • u(t)∈Rm\mathbf{u}(t) \in \mathbb{R}^m: Input Vector (control inputs).
  • y(t)∈Rp\mathbf{y}(t) \in \mathbb{R}^p: Output Vector (measured sensor outputs).
  • A∈Rn×n\mathbf{A} \in \mathbb{R}^{n \times n}: System Matrix (governs internal unforced dynamics).
  • B∈Rn×m\mathbf{B} \in \mathbb{R}^{n \times m}: Input Matrix (couples control inputs to state derivatives).
  • C∈Rp×n\mathbf{C} \in \mathbb{R}^{p \times n}: Output Matrix (couples states to observed sensor measurements).
  • D∈Rp×m\mathbf{D} \in \mathbb{R}^{p \times m}: Direct Transmission (Feedthrough) Matrix (instantaneous throughput).

Phase-Variable (Controllable Canonical) Form

Given an nn-th order differential equation dnydtn+an−1dn−1ydtn−1+⋯+a1dydt+a0y=u(t)\frac{d^n y}{dt^n} + a_{n-1}\frac{d^{n-1}y}{dt^{n-1}} + \dots + a_1\frac{dy}{dt} + a_0 y = u(t), define state variables as successive derivatives: x1=yx_1 = y, x2=y˙x_2 = \dot{y}, x3=y¨x_3 = \ddot{y}, …\dots, xn=y(n−1)x_n = y^{(n-1)}. The companion matrix takes the canonical form:

0 & 1 & 0 & \dots & 0 \\ 0 & 0 & 1 & \dots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & \dots & 1 \\ -a_0 & -a_1 & -a_2 & \dots & -a_{n-1} \end{bmatrix}, \quad \mathbf{B} = \begin{bmatrix} 0 \\ 0 \\ \vdots \\ 0 \\ 1 \end{bmatrix}$$ #### Deriving Transfer Function from State Model Taking the Laplace transform with zero initial states: $$s\mathbf{X}(s) = \mathbf{A}\mathbf{X}(s) + \mathbf{B}\mathbf{U}(s) \implies (s\mathbf{I} - \mathbf{A})\mathbf{X}(s) = \mathbf{B}\mathbf{U}(s)$$ $$\mathbf{X}(s) = (s\mathbf{I} - \mathbf{A})^{-1} \mathbf{B} \mathbf{U}(s)$$ Substituting into the output equation $\mathbf{Y}(s) = \mathbf{C}\mathbf{X}(s) + \mathbf{D}\mathbf{U}(s)$: $$\mathbf{Y}(s) = \left[\mathbf{C}(s\mathbf{I} - \mathbf{A})^{-1}\mathbf{B} + \mathbf{D}\right] \mathbf{U}(s)$$ $$\mathbf{T}(s) = \frac{\mathbf{Y}(s)}{\mathbf{U}(s)} = \mathbf{C}(s\mathbf{I} - \mathbf{A})^{-1}\mathbf{B} + \mathbf{D} = \frac{\mathbf{C} \operatorname{adj}(s\mathbf{I} - \mathbf{A}) \mathbf{B}}{\det(s\mathbf{I} - \mathbf{A})} + \mathbf{D}$$ The roots of $\det(s\mathbf{I} - \mathbf{A}) = 0$ are the **eigenvalues $\lambda_i$ of $\mathbf{A}$**, which are identical to the **closed-loop poles** of the transfer function. ### Idea 5: The State Transition Matrix $\mathbf{\Phi}(t)$ & Kalman Duals #### The State Transition Matrix (STM) The homogeneous (unforced, $\mathbf{u}(t) = \mathbf{0}$) state equation $\mathbf{\dot{x}}(t) = \mathbf{A}\mathbf{x}(t)$ has the unique closed-form matrix solution: $$\mathbf{x}(t) = e^{\mathbf{A}t} \mathbf{x}(0) = \mathbf{\Phi}(t) \mathbf{x}(0)$$ Where $\mathbf{\Phi}(t) = e^{\mathbf{A}t}$ is the **State Transition Matrix**, evaluated via the inverse Laplace transform of the Resolvent matrix: $$\mathbf{\Phi}(t) = \mathcal{L}^{-1}\left[(s\mathbf{I} - \mathbf{A})^{-1}\right] = \mathbf{I} + \mathbf{A}t + \frac{\mathbf{A}^2 t^2}{2!} + \frac{\mathbf{A}^3 t^3}{3!} + \dots$$ **Fundamental Properties of $\mathbf{\Phi}(t)$**: 1. $\mathbf{\Phi}(0) = e^{\mathbf{A} \cdot 0} = \mathbf{I}$ (Identity Matrix). 2. $[\mathbf{\Phi}(t)]^{-1} = \mathbf{\Phi}(-t) = e^{-\mathbf{A}t}$. 3. $\mathbf{\Phi}(t_1 + t_2) = \mathbf{\Phi}(t_1) \mathbf{\Phi}(t_2)$ (Semigroup composition law). 4. $[\mathbf{\Phi}(t)]^k = \mathbf{\Phi}(kt)$. 5. $\frac{d\mathbf{\Phi}(t)}{dt} = \mathbf{A}\mathbf{\Phi}(t) = \mathbf{\Phi}(t)\mathbf{A}$. The complete forced solution including input $\mathbf{u}(t)$ is governed by the matrix convolution integral: $$\mathbf{x}(t) = \mathbf{\Phi}(t)\mathbf{x}(0) + \int_{0}^{t} \mathbf{\Phi}(t - \tau)\mathbf{B}\mathbf{u}(\tau)\,d\tau$$ #### Kalman Controllability & Observability Rank Criteria A fundamental insight by Rudolf Kalman (1960) established that not all mathematical state representations can be actively steered or observed: 1. **State Controllability**: A system is completely state controllable if an unconstrained control input $\mathbf{u}(t)$ can transfer any initial state $\mathbf{x}(0)$ to any desired target state $\mathbf{x}(t_1)$ in a finite time interval $t_1$. - **Kalman Controllability Matrix**: $$\mathcal{C} = \begin{bmatrix} \mathbf{B} & \mathbf{AB} & \mathbf{A}^2\mathbf{B} & \dots & \mathbf{A}^{n-1}\mathbf{B} \end{bmatrix}$$ - **Criterion**: The system is completely controllable **if and only if $\text{rank}(\mathcal{C}) = n$** (full rank, non-zero determinant $\det(\mathcal{C}) \ne 0$). 2. **State Observability**: A system is completely observable if the initial state $\mathbf{x}(0)$ can be uniquely reconstructed from observations of the output $\mathbf{y}(t)$ over a finite time interval $t \in [0, t_1]$. - **Kalman Observability Matrix**: $$\mathcal{O} = \begin{bmatrix} \mathbf{C} \\ \mathbf{CA} \\ \mathbf{CA}^2 \\ \vdots \\ \mathbf{CA}^{n-1} \end{bmatrix}$$ - **Criterion**: The system is completely observable **if and only if $\text{rank}(\mathcal{O}) = n$** (full rank, non-zero determinant $\det(\mathcal{O}) \ne 0$). *If pole-zero cancellation occurs in $T(s) = \mathbf{C}(s\mathbf{I} - \mathbf{A})^{-1}\mathbf{B}$, the cancelled mode is either uncontrollable, unobservable, or both!* --- ## 2. Key Formula Box <FormulaStrip title="Frequency Response & State-Space Core Equations" formulas={[ { name: "Resonant Peak Mr", symbol: "M_r = \\frac{1}{2\\zeta\\sqrt{1-\\zeta^2}}", description: "Maximum peak magnitude of second-order closed-loop frequency response (for ζ < 0.707)." }, { name: "Resonant Frequency ωr", symbol: "\\omega_r = \\omega_n\\sqrt{1 - 2\\zeta^2}", description: "Frequency corresponding to the maximum resonant peak Mr." }, { name: "Phase Margin (PM)", symbol: "PM = 180^\\circ + \\angle G(j\\omega_{gc})", description: "Angular buffer above -180° measured at the gain crossover frequency where |G(jω)| = 0 dB." }, { name: "Gain Margin (GM)", symbol: "GM = -20\\log_{10}|G(j\\omega_{pc})| \\; \\text{dB}", description: "Decibel attenuation measured at the phase crossover frequency where ∠G(jω) = -180°." }, { name: "Nyquist Criterion", symbol: "Z = P + N_{cw}", description: "Encirclement theorem relating closed-loop RHP poles Z, open-loop RHP poles P, and clockwise encirclements Ncw." }, { name: "State Model Transfer Function", symbol: "T(s) = \\mathbf{C}(s\\mathbf{I} - \\mathbf{A})^{-1}\\mathbf{B} + \\mathbf{D}", description: "Inversion formula converting state matrices A, B, C, D into the classical s-plane transfer function." }, { name: "State Transition Matrix", symbol: "\\mathbf{\\Phi}(t) = \\mathcal{L}^{-1}\\left[(s\\mathbf{I} - \\mathbf{A})^{-1}\\right]", description: "Matrix exponential e^(At) propagating unforced state trajectories over time." }, { name: "Controllability Matrix", symbol: "\\mathcal{C} = [\\mathbf{B} \\;\\; \\mathbf{AB} \\;\\; \\dots \\;\\; \\mathbf{A}^{n-1}\\mathbf{B}]", description: "Kalman rank test matrix; full rank n guarantees all state modes are controllable." } ]} /> --- ## 3. In-Depth Mathematical Derivations ### Derivation 1: Closed-Form Derivation of Resonant Peak $M_r$ and Resonant Frequency $\omega_r$ Where do the formulas $M_r = \frac{1}{2\zeta\sqrt{1-\zeta^2}}$ and $\omega_r = \omega_n\sqrt{1-2\zeta^2}$ come from? <Derivation title="Derivation of Resonant Peak Mr and Resonant Frequency ωr" steps={[ { title: "Step 1: Write the normalized magnitude squared function", formula: "M^2(u) = \\frac{1}{g(u)}, \\quad g(u) = (1 - u^2)^2 + 4\\zeta^2 u^2, \\quad u = \\frac{\\omega}{\\omega_n}", explanation: "To maximize M(u), we find the frequency u where the denominator polynomial g(u) reaches its absolute minimum." }, { title: "Step 2: Differentiate g(u) with respect to u", formula: "\\frac{dg}{du} = 2(1 - u^2)(-2u) + 8\\zeta^2 u = -4u(1 - u^2) + 8\\zeta^2 u = 0", explanation: "Factoring out 4u: 4u [-(1 - u^2) + 2 zeta^2] = 4u [u^2 - (1 - 2 zeta^2)] = 0." }, { title: "Step 3: Solve for the critical non-zero root ur", formula: "u_r^2 = 1 - 2\\zeta^2 \\implies u_r = \\frac{\\omega_r}{\\omega_n} = \\sqrt{1 - 2\\zeta^2}", explanation: "Multiplying by omega_n gives the resonant frequency: omega_r = omega_n * sqrt(1 - 2 zeta^2). For omega_r to be real, we must have 1 - 2 zeta^2 > 0 => zeta < 1/sqrt(2) ≈ 0.707." }, { title: "Step 4: Substitute ur back into the magnitude expression", formula: "g(u_r) = [1 - (1 - 2\\zeta^2)]^2 + 4\\zeta^2(1 - 2\\zeta^2) = [2\\zeta^2]^2 + 4\\zeta^2 - 8\\zeta^4 = 4\\zeta^2 - 4\\zeta^4 = 4\\zeta^2(1 - \\zeta^2)", explanation: "Taking the square root and reciprocating yields the resonant peak: M_r = 1 / sqrt(g(u_r)) = 1 / [2 zeta sqrt(1 - zeta^2)]." } ]} /> ### Derivation 2: Inversion of State-Space Equations to Rational Transfer Function How does the matrix Resolvent $(s\mathbf{I} - \mathbf{A})^{-1}$ yield the scalar transfer function? <Derivation title="State-Space to Transfer Function Resolvent Derivation" steps={[ { title: "Step 1: Apply Laplace transform to state differential equation", formula: "\\mathcal{L}\\{\\mathbf{\\dot{x}}(t)\\} = s\\mathbf{X}(s) - \\mathbf{x}(0) = \\mathbf{A}\\mathbf{X}(s) + \\mathbf{B}\\mathbf{U}(s)", explanation: "By definition of the transfer function, set all initial condition states to zero: x(0) = 0." }, { title: "Step 2: Collect state vector X(s) to the left side", formula: "s\\mathbf{X}(s) - \\mathbf{A}\\mathbf{X}(s) = (s\\mathbf{I} - \\mathbf{A})\\mathbf{X}(s) = \\mathbf{B}\\mathbf{U}(s)", explanation: "Where I is the n x n identity matrix. Multiply on the left by the inverse matrix (sI - A)^-1 (the Resolvent matrix)." }, { title: "Step 3: Solve for state vector X(s)", formula: "\\mathbf{X}(s) = (s\\mathbf{I} - \\mathbf{A})^{-1} \\mathbf{B} \\mathbf{U}(s) = \\frac{\\operatorname{adj}(s\\mathbf{I} - \\mathbf{A})}{\\det(s\\mathbf{I} - \\mathbf{A})} \\mathbf{B} \\mathbf{U}(s)", explanation: "Notice that the denominator of all internal state variables is det(sI - A), the characteristic polynomial of the system." }, { title: "Step 4: Substitute into the output sensor equation", formula: "\\mathbf{Y}(s) = \\mathbf{C}\\mathbf{X}(s) + \\mathbf{D}\\mathbf{U}(s) = \\left[\\mathbf{C}(s\\mathbf{I} - \\mathbf{A})^{-1}\\mathbf{B} + \\mathbf{D}\\right] \\mathbf{U}(s)", explanation: "Dividing by U(s) yields the celebrated transfer function formula: T(s) = C (sI - A)^-1 B + D." } ]} /> ### Derivation 3: State Transition Matrix $\mathbf{\Phi}(t)$ via Laplace Inversion Why is the State Transition Matrix equal to $e^{\mathbf{A}t} = \mathcal{L}^{-1}[(s\mathbf{I} - \mathbf{A})^{-1}]$? <Derivation title="Matrix Exponential and Laplace Transform Equivalence" steps={[ { title: "Step 1: Write the series expansion for the scalar exponential", formula: "e^{at} = 1 + at + \\frac{a^2 t^2}{2!} + \\frac{a^3 t^3}{3!} + \\dots = \\mathcal{L}^{-1}\\left[\\frac{1}{s - a}\\right]", explanation: "Recall that L[e^(at)] = 1/(s - a). By matrix analogy, define e^(At) as the matrix power series sum." }, { title: "Step 2: Expand the Resolvent matrix using geometric series in s^-1", formula: "(s\\mathbf{I} - \\mathbf{A})^{-1} = s^{-1}\\left(\\mathbf{I} - \\frac{\\mathbf{A}}{s}\\right)^{-1} = \\frac{\\mathbf{I}}{s} + \\frac{\\mathbf{A}}{s^2} + \\frac{\\mathbf{A}^2}{s^3} + \\frac{\\mathbf{A}^3}{s^4} + \\dots", explanation: "This matrix series converges for |s| > ||A||, exactly mirroring scalar 1/(s - a) = 1/s + a/s^2 + a^2/s^3 + ..." }, { title: "Step 3: Take the term-by-term inverse Laplace transform", formula: "\\mathcal{L}^{-1}\\left[(s\\mathbf{I} - \\mathbf{A})^{-1}\\right] = \\mathbf{I} \\mathcal{L}^{-1}\\left[\\frac{1}{s}\\right] + \\mathbf{A} \\mathcal{L}^{-1}\\left[\\frac{1}{s^2}\\right] + \\mathbf{A}^2 \\mathcal{L}^{-1}\\left[\\frac{1}{s^3}\\right] + \\dots", explanation: "Using L^-1[1/s^(k+1)] = t^k / k!: L^-1[(sI - A)^-1] = I + A t + A^2 t^2 / 2! + A^3 t^3 / 3! + ... = e^(At)." } ]} /> --- ## 4. Typical Laboratory Hardware Values & Engineering Benchmarks <TypicalValues values={[ { parameter: "Servo Drive Phase Margin (PM)", typical: "PM = 45° - 60°", range: "35° - 65°", notes: "Corresponds to damping ratio ζ ≈ 0.45 - 0.65; guarantees fast transient settling with %Mp < 10%." }, { parameter: "Gain Margin (GM) Safety Buffer", typical: "GM ≥ 6 to 10 dB", range: "6 - 15 dB", notes: "Allows loop gain to increase by a factor of 2× to 3× before instability occurs." }, { parameter: "Grid-Tied Solar Inverter Bandwidth", typical: "ωBW ≈ 1.5 - 3.0 kHz", range: "1.0 - 5.0 kHz", notes: "High bandwidth needed to suppress 50/60 Hz harmonics and ensure IEEE 1547 compliance." }, { parameter: "Hard Disk Servo Bandwidth", typical: "ωBW ≥ 2500 rad/s", range: "2000 - 4000 rad/s", notes: "Sub-millisecond track following requires extremely wide closed-loop bandwidth." }, { parameter: "Kalman Matrix Determinant Threshold", typical: "|det(𝓒)| > 10⁻⁴", range: "Condition number < 100", notes: "Near-zero determinant indicates an almost unsteerable state, demanding higher actuator effort." } ]} /> --- ## 5. Worked Examples: Step-by-Step Analytical Solutions <WorkedSolution problem="[Presidency University Exam Problem] A unity feedback system has open-loop transfer function G(s) = 100 / [s(s + 1)(s + 10)]. (1) Identify all corner frequencies, (2) Construct the asymptotic Bode magnitude table, (3) Calculate the exact Phase Crossover Frequency ωpc and Gain Margin GM, and (4) Calculate the Gain Crossover Frequency ωgc and Phase Margin PM." steps={[ { title: "Step 1: Put G(s) into standard time-constant (Bode) form", detail: "G(s) = 100 / [s * 1(1 + s) * 10(1 + s/10)] = 100 / [10 s (1 + s) (1 + 0.1s)]\nG(s) = 10 / [s (1 + s) (1 + 0.1s)].\nBode gain K_b = 10.\nCorner frequencies:\nomega_c1 = 1 / 1 = 1.0 rad/s (from factor 1 + s)\nomega_c2 = 1 / 0.1 = 10.0 rad/s (from factor 1 + 0.1s)." }, { title: "Step 2: Construct the Asymptotic Magnitude Table", detail: "1. For w < 1.0 rad/s: Dominated by term 10/s. Slope = -20 dB/dec. At w = 1 rad/s, mag = 20*log10(10/1) = 20 dB.\n2. At w = 1.0 rad/s: Factor 1/(1+s) adds -20 dB/dec slope => New slope = -40 dB/dec.\n3. At w = 10.0 rad/s: Magnitude drops by 40 dB over 1 decade => Mag = 20 - 40 = -20 dB.\n4. At w = 10.0 rad/s: Factor 1/(1+0.1s) adds -20 dB/dec => New slope = -60 dB/dec for w > 10." }, { title: "Step 3: Calculate Phase Crossover Frequency ωpc and Gain Margin GM", detail: "Phase expression: phi(w) = -90° - atan(w) - atan(0.1w).\nSet phi(w_pc) = -180° => -90° - atan(w_pc) - atan(0.1w_pc) = -180°\natan(w_pc) + atan(0.1w_pc) = 90°.\nUsing identity tan(A + B) = (tan A + tan B)/(1 - tan A tan B):\n(w_pc + 0.1w_pc) / (1 - 0.1 w_pc^2) = tan(90°) = ∞ => 1 - 0.1 w_pc^2 = 0\nw_pc^2 = 1 / 0.1 = 10 => w_pc = sqrt(10) ≈ 3.162 rad/s.\nMagnitude at w_pc:\n|G(j 3.162)| = 10 / [3.162 * sqrt(1 + 10) * sqrt(1 + 0.1*10)]\n= 10 / [3.162 * sqrt(11) * sqrt(2)] = 10 / [3.162 * 3.3166 * 1.4142] = 10 / 14.832 = 0.6742.\nGM = -20*log10(0.6742) = +3.42 dB." }, { title: "Step 4: Calculate Gain Crossover Frequency ωgc and Phase Margin PM", detail: "Set |G(jw_gc)| = 1 => 10 / [w_gc * sqrt(1 + w_gc^2) * sqrt(1 + 0.01 w_gc^2)] = 1.\nSolving iteratively yields w_gc ≈ 2.54 rad/s.\nPhase at w_gc:\nphi(2.54) = -90° - atan(2.54) - atan(0.254) = -90° - 68.51° - 14.25° = -172.76°.\nPhase Margin PM = 180° + (-172.76°) = +7.24°." } ]} answer="Corner Frequencies: 1.0 and 10.0 rad/s; Phase Crossover ωpc = 3.16 rad/s with Gain Margin GM = +3.42 dB; Gain Crossover ωgc = 2.54 rad/s with Phase Margin PM = +7.24°. System is Closed-Loop Stable." /> <WorkedSolution problem="[Nyquist Stability with Open-Loop RHP Pole] A feedback control system has open-loop transfer function G(s)H(s) = K / [s(s - 1)(s + 4)]. Note the unstable open-loop pole at s = +1 (P = 1). (1) Sketch the polar path and find the negative real axis crossing frequency ωpc, and (2) Determine the exact range of loop gain K for which the closed-loop system is stable using the Nyquist encirclement criterion." steps={[ { title: "Step 1: Evaluate G(jω)H(jω) along the imaginary axis", detail: "G(jw)H(jw) = K / [jw (jw - 1) (jw + 4)] = K / [jw (-w^2 + 3jw - 4)]\nDenominator = jw (-w^2 - 4 + 3jw) = -3w^2 + j(-w^3 - 4w).\nRationalize by multiplying numerator and denominator by complex conjugate:\nG(jw)H(jw) = K [-3w^2 - j(-w^3 - 4w)] / [9w^4 + (w^3 + 4w)^2]\nReal part: Re = -3K w^2 / Denom.\nImaginary part: Im = K (w^3 + 4w) / Denom." }, { title: "Step 2: Find Phase Crossover Frequency ωpc", detail: "Negative real axis crossing occurs where imaginary part Im = 0:\nw^3 + 4w = 0 => w(w^2 + 4) = 0.\nThis has no real non-zero solutions! For all finite w > 0, Im is strictly positive.\nLet us examine low-frequency limit as w -> 0+:\nAs w -> 0+, G(jw)H(jw) -> K / [jw (-1)(4)] = K / [-4jw] = j K / (4w).\nFor the small semi-circle detour around origin s = ε e^(j theta) (theta from -90° to +90°):\nG(s) -> K / [-4 ε e^(j theta)] = (K / 4ε) e^(j (180° - theta)).\nAs theta sweeps -90° to +90°, angle sweeps +270° to +90° (passing through 180° on negative real axis)." }, { title: "Step 3: Analyze Encirclements of -1+j0 via Cauchy's Theorem", detail: "Here P = 1 (one open-loop pole in RHP at s = +1).\nFor closed-loop stability, we require Z = 0 closed-loop RHP poles.\nNyquist formula: Z = P + N_cw => 0 = 1 + N_cw => N_cw = -1.\nThis means we MUST have N_ccw = 1 (exactly ONE counterclockwise encirclement of -1+j0)!\nFor this plant, closing the Nyquist contour via the infinite detour and origin indentation reveals that counterclockwise encirclement occurs if and only if K > 4." } ]} answer="Open-loop RHP poles P = 1; for closed-loop stability Z = 0, the Nyquist plot must encircle -1+j0 once counterclockwise (N_ccw = 1), which requires K > 4.0." /> <WorkedSolution problem="[State-Space Realization, STM & Kalman Tests] A mechanical system is governed by differential equation d²y/dt² + 5 dy/dt + 6y = 2 u(t), with sensor output y(t). (1) Obtain the phase-variable state-space model (A, B, C, D), (2) Compute the Resolvent matrix (sI - A)⁻¹ and State Transition Matrix Φ(t), (3) Verify the transfer function T(s) = Y(s)/U(s), and (4) Test for Kalman Controllability and Observability." steps={[ { title: "Step 1: Set up state variables in companion form", detail: "Let x1 = y, x2 = dy/dt.\nThen dx1/dt = x2.\ndx2/dt = -6 x1 - 5 x2 + 2 u.\nOutput: y = x1.\nIn matrix form:\nA = [ 0 1 ; -6 -5 ], B = [ 0 ; 2 ], C = [ 1 0 ], D = [ 0 ]." }, { title: "Step 2: Compute Resolvent Matrix (sI - A)⁻¹ and STM Φ(t)", detail: "sI - A = [ s -1 ; 6 s+5 ].\ndet(sI - A) = s(s + 5) + 6 = s^2 + 5s + 6 = (s + 2)(s + 3).\nAdjugate: adj(sI - A) = [ s+5 1 ; -6 s ].\n(sI - A)^-1 = 1/[(s+2)(s+3)] * [ s+5 1 ; -6 s ].\nUsing partial fractions for each matrix element:\nRow 1, Col 1: (s+5)/[(s+2)(s+3)] = 3/(s+2) - 2/(s+3) => 3 e^(-2t) - 2 e^(-3t).\nRow 1, Col 2: 1/[(s+2)(s+3)] = 1/(s+2) - 1/(s+3) => e^(-2t) - e^(-3t).\nRow 2, Col 1: -6/[(s+2)(s+3)] = -6/(s+2) + 6/(s+3) => -6 e^(-2t) + 6 e^(-3t).\nRow 2, Col 2: s/[(s+2)(s+3)] = -2/(s+2) + 3/(s+3) => -2 e^(-2t) + 3 e^(-3t).\nTherefore:\nPhi(t) = e^(At) = [ 3 e^(-2t) - 2 e^(-3t), e^(-2t) - e^(-3t) ; -6 e^(-2t) + 6 e^(-3t), -2 e^(-2t) + 3 e^(-3t) ]." }, { title: "Step 3: Verify Transfer Function T(s) = C(sI - A)⁻¹B + D", detail: "(sI - A)^-1 B = 1/[(s+2)(s+3)] * [ s+5 1 ; -6 s ] * [ 0 ; 2 ]\n= 1/[(s+2)(s+3)] * [ 2 ; 2s ].\nC * (sI - A)^-1 B = [ 1 0 ] * [ 2 ; 2s ] / [(s+2)(s+3)] = 2 / [(s+2)(s+3)]\n= 2 / (s^2 + 5s + 6).\nMatches classical Laplace transform of differential equation exactly!" }, { title: "Step 4: Kalman Controllability and Observability Tests", detail: "Controllability Matrix C_mat = [ B, AB ]:\nAB = [ 0 1 ; -6 -5 ] * [ 0 ; 2 ] = [ 2 ; -10 ].\nC_mat = [ 0 2 ; 2 -10 ].\ndet(C_mat) = (0)(-10) - (2)(2) = -4 != 0 => Rank = 2 (Full Rank). Completely State Controllable!\n\nObservability Matrix O_mat = [ C ; CA ]:\nCA = [ 1 0 ] * [ 0 1 ; -6 -5 ] = [ 0 1 ].\nO_mat = [ 1 0 ; 0 1 ] = I (Identity matrix).\ndet(O_mat) = 1 != 0 => Rank = 2 (Full Rank). Completely State Observable!" } ]} answer="A = [0 1; -6 -5], B = [0; 2], C = [1 0]; Eigenvalues λ = -2, -3; Resolvent det = s² + 5s + 6; STM Φ(t) derived via partial fractions; Both Controllability and Observability matrices possess full rank (Rank = 2)." /> --- ## 6. Common Exam Traps & Where Marks Are Lost <ExamTraps traps={[ "Bode Form Gain (Kb) vs Transfer Function Gain (K): When putting a transfer function into Bode form G(s) = K / [s(s + a)(s + b)], you MUST factor out constants: G(s) = (K / ab) / [s(1 + s/a)(1 + s/b)]. The Bode gain is Kb = K / (ab), NOT K! Plotting with K instead of Kb shifts the entire magnitude curve by 20 log10(ab) dB, invalidating all crossover frequencies.", "Decibel Sign in Gain Margin: Gain Margin GM is measured below the 0 dB axis at ωpc. If |G(jωpc)| = -12 dB, the Gain Margin is GM = +12 dB (STABLE). If |G(jωpc)| = +6 dB (above 0 dB), the Gain Margin is GM = -6 dB (UNSTABLE). Forgetting the negative sign in GM = -20 log10 |G(jωpc)| is the single most common mistake on control exams.", "Phase Margin Formula Angle Addition: Remember that Phase Margin is PM = 180° + ∠G(jωgc). Because ∠G(jωgc) is typically a negative angle (e.g., -135°), PM = 180° + (-135°) = +45°. Do not subtract the angle (writing 180° - (-135°) = 315°), which is meaningless.", "Nyquist Direction Convention: Be extremely diligent with clockwise (N_cw) vs counterclockwise (N_ccw) encirclement definitions. In Cauchy's theorem N = P - Z, N is counterclockwise encirclements! If you use clockwise encirclements, the formula is Z = P + N_cw. Mixing up these two conventions reverses your stability conclusion.", "Resolvent Matrix Inversion Error: When calculating (sI - A)⁻¹ for a 2x2 matrix [a b; c d], the inverse is (1 / det) * [d -b; -c a]. Students frequently forget to negate the off-diagonal elements (-b and -c) or forget to swap the diagonal elements." ]} /> --- ## 7. Interactive Circuit Verification & Laboratory Workbench Experiment with logarithmic Bode frequency plots, extract gain and phase margins, observe polar Nyquist encirclements around $(-1, j0)$, and validate state-space companion forms and Kalman rank conditions in the live simulator below: <Simulator name="frequency-response-nyquist" /> <BreakIt prompt="What happens to the Gain Margin (GM) and Phase Margin (PM) if you increase the loop gain K of a third-order plant? Does the phase curve change?" hint="Increasing loop gain K shifts the ENTIRE Bode magnitude curve UPWARDS by 20 log10(K) dB, but leaves the Phase curve COMPLETELY UNCHANGED! As a result, the gain crossover frequency ωgc shifts to the right toward the phase crossover frequency ωpc, drastically decreasing both the Phase Margin and Gain Margin until the system goes unstable!" /> --- ## 8. Parametric Practice Problem <ParametricProblem type="thevenin-divider" /> --- ## 9. Unit Mastery Quiz export const quizQuestions = [ { question: "A control system has gain crossover frequency ωgc = 4 rad/s and phase crossover frequency ωpc = 8 rad/s, with phase angle ∠G(j 4) = -130°. What is the Phase Margin and stability status?", options: [ "PM = +50°, Closed-Loop Stable", "PM = -50°, Unstable", "PM = +130°, Marginally Stable", "PM = +30°, Marginally Stable" ], correctAnswer: 0, explanation: "Phase Margin PM = 180° + ∠G(jωgc) = 180° + (-130°) = +50°. Since ωgc (4 rad/s) < ωpc (8 rad/s) and PM > 0°, the system is closed-loop stable.", }, { question: "For a prototype second-order underdamped system, what is the upper limit of damping ratio ζ beyond which no resonant peak Mr exists in the frequency response?", options: [ "ζ = 0.500", "ζ = 1 / √2 ≈ 0.707", "ζ = 1.000", "ζ = √2 ≈ 1.414" ], correctAnswer: 1, explanation: "From the resonant frequency formula ωr = ωn √(1 - 2ζ²), for ωr to be real and non-zero, 1 - 2ζ² > 0 => ζ < 1/√2 ≈ 0.707. For ζ ≥ 0.707, the magnitude monotonically rolls off from DC with no peak.", }, { question: "An open-loop plant has 2 unstable poles in the right-half plane (P = 2). According to the Nyquist criterion, how many times must the Nyquist plot encircle -1+j0 for the closed-loop system to be stable?", options: [ "Zero times (no encirclement)", "2 times clockwise", "2 times counterclockwise", "1 time counterclockwise" ], correctAnswer: 2, explanation: "From Nyquist criterion Z = P - N_ccw => 0 = 2 - N_ccw => N_ccw = 2. The Nyquist plot must encircle the critical point -1+j0 exactly 2 times in the counterclockwise direction to cancel the 2 open-loop RHP poles.", }, { question: "What are the eigenvalues of the system matrix A = [ 0 1 ; -12 -7 ]?", options: [ "λ₁ = -3, λ₂ = -4", "λ₁ = +3, λ₂ = +4", "λ₁ = -1, λ₂ = -12", "λ₁ = -7, λ₂ = -12" ], correctAnswer: 0, explanation: "Characteristic equation: det(λI - A) = det([ λ -1 ; 12 λ+7 ]) = λ(λ + 7) + 12 = λ² + 7λ + 12 = (λ + 3)(λ + 4) = 0. Roots are λ₁ = -3, λ₂ = -4.", }, { question: "Given state matrix A and input matrix B, under what condition is the single-input system completely state controllable according to Kalman?", options: [ "det(A) must be equal to zero", "The controllability matrix 𝓒 = [B AB ... Aⁿ⁻¹B] must have full rank n (det(𝓒) ≠ 0)", "All eigenvalues of A must be purely imaginary", "Matrix B must be an identity matrix" ], correctAnswer: 1, explanation: "Kalman's Controllability Criterion requires the n x n controllability matrix 𝓒 = [B AB ... Aⁿ⁻¹B] to possess full rank n, meaning det(𝓒) ≠ 0, ensuring every state mode can be influenced by the input.", }, { question: "Which of the following properties of the State Transition Matrix Φ(t) = e^(At) is TRUE for all t?", options: [ "Φ(0) = 0 (Null Matrix)", "[Φ(t)]⁻¹ = Φ(-t)", "Φ(t₁ + t₂) = Φ(t₁) + Φ(t₂)", "det(Φ(t)) is always equal to 0" ], correctAnswer: 1, explanation: "The State Transition Matrix satisfies [Φ(t)]⁻¹ = [e^(At)]⁻¹ = e^(-At) = Φ(-t). Additionally, Φ(0) = I (Identity) and Φ(t₁ + t₂) = Φ(t₁) · Φ(t₂).", }, ]; <Quiz questions={quizQuestions} unitTitle="Frequency Response & State Variable Analysis" /> --- ## 10. References & Further Reading 1. **Ogata, Katsuhiko**: *Modern Control Engineering*, 5th Edition, Prentice Hall (Chapters 8, 9 & 10: Frequency-Response Analysis and State-Space Analysis). 2. **Nise, Norman S.**: *Control Systems Engineering*, 8th Edition, John Wiley & Sons (Chapter 10: Frequency Response Techniques, Chapter 12: State Space). 3. **Kuo, Benjamin C., and Farid Golnaraghi**: *Automatic Control Systems*, 9th Edition, Wiley (Frequency-Domain and State-Variable Methods). 4. **Kailath, Thomas**: *Linear Systems*, Prentice-Hall, 1980 (The definitive advanced treatise on state-space realizations, controllability, and observability). 5. **Presidency University Courseware**: *EEE2005 - Control Systems Engineering*, Department of Electrical & Electronics Engineering, Bengaluru.