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 is excited by a sinusoidal input , the steady-state output response is an identical sinusoid of the exact same frequency , but with modified amplitude and shifted phase angle:
Where the Sinusoidal Transfer Function is obtained by substituting :
For the canonical second-order closed-loop prototype:
Let normalized frequency . The magnitude ratio is:
This defines three critical frequency-domain performance specifications:
- Resonant Peak (): The maximum value of the closed-loop magnitude ratio . For : Notice: depends strictly on damping ratio . A higher resonant peak directly correlates with larger transient overshoot in the time domain.
- Resonant Frequency (): The frequency at which the maximum magnitude occurs: (For , no resonant peak exists; monotonically decreases from as increases).
- Closed-Loop Bandwidth (): The frequency at which the magnitude drops by ( of its DC value): Bandwidth measures the speed of response (shorter rise time ) 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 ( in rad/s across decades):
- Bode Magnitude Plot: Logarithmic gain in decibels:
- Bode Phase Plot: Phase angle linearly in degrees.
Asymptotic Construction Factors
Any rational transfer function factors into 4 elementary building blocks:
- Constant Gain : Horizontal line at , Phase (or if ).
- Integrator/Differentiator : Straight line with constant slope passing through at . Phase is constant .
- Simple First-Order Factor :
- Corner (break) frequency: .
- Below : Asymptote is .
- Above : Asymptote rolls off at .
- Exact magnitude at is ().
- Phase shifts from to , passing through at .
- Quadratic Complex Factor :
- Corner frequency: .
- High-frequency asymptote rolls off at .
- Phase shifts through , passing through at .
Robustness Metrics: Gain Margin & Phase Margin
To prevent closed-loop instability, the open-loop transfer function must not pass through the critical point (which corresponds to and ):
- Gain Crossover Frequency (): The frequency where the magnitude is unity ():
- Phase Margin (PM): The additional phase lag required at to bring the system to the verge of instability:
- Phase Crossover Frequency (): The frequency where the phase angle is :
- Gain Margin (GM): The reciprocal of the open-loop magnitude at , expressed in dB:
Stability Criteria via Bode Margins:
- Stable: and .
- Marginally Stable: and .
- Unstable: and .
Idea 3: Polar Plots & The Nyquist Stability Encirclement Criterion
The Polar Plot (or Nyquist Plot) graphs the trajectory of the complex phasor directly in the complex plane as frequency sweeps from to .
Cauchy's Principle of the Argument
Let a closed contour in the -plane enclose zeros and poles of a rational function . If the contour does not pass through any poles or zeros, then as traverses clockwise, the mapped contour in the -plane encircles the origin times clockwise, where:
Because , encirclements of the origin by correspond identically to encirclements of the critical point by the open-loop contour .
The Nyquist Stability Theorem
Let:
- : Number of open-loop poles of in the Right-Half -Plane (RHP).
- : Number of clockwise encirclements of the critical point by the complete Nyquist plot of ().
- : Number of closed-loop poles in the RHP (zeros of ).
The fundamental stability formula states: (where 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 ():
- If the open-loop plant is already stable (), then the closed-loop system is stable if and only if the Nyquist plot does NOT encircle ().
- If the open-loop plant has unstable poles (), the Nyquist plot MUST encircle exactly 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 under zero initial conditions. Modern state-space control represents an -th order dynamic system as a set of coupled first-order differential equations:
Where:
- : State Vector (minimal set of internal dynamic variables, e.g., position, velocity, inductor current, capacitor voltage).
- : Input Vector (control inputs).
- : Output Vector (measured sensor outputs).
- : System Matrix (governs internal unforced dynamics).
- : Input Matrix (couples control inputs to state derivatives).
- : Output Matrix (couples states to observed sensor measurements).
- : Direct Transmission (Feedthrough) Matrix (instantaneous throughput).
Phase-Variable (Controllable Canonical) Form
Given an -th order differential equation , define state variables as successive derivatives: , , , , . 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.