Your Equation

Library / Control engineering / CTL-13

Control engineering

Critical gain from the Routh–Hurwitz cubic test

Largest gain for which the characteristic polynomial a₃s³ + a₂s² + a₁s + K has all its roots in the left half-plane.

Ref
CTL-13
Rev
v1
Field
Control engineering
Result
Kmax

For a₃s³ + a₂s² + a₁s + K = 0 with a₃ > 0, the roots all lie in the left half-plane when a₂ > 0, a₁ > 0, K > 0 and a₂a₁ > a₃K. The last condition sets the largest stable gain Kmax = a₂a₁/a₃. At that gain a pair of roots sits on the imaginary axis at ±j√(a₁/a₃) and the loop oscillates with constant amplitude. The gain K in use is entered to give the gain margin.

Largest gain for which the characteristic polynomial a₃s³ + a₂s² + a₁s + K has all its roots in the left half-plane. At this gain a pair of roots sits on the imaginary axis and the loop oscillates steadily.

Calculator

Solve for
0.55
0.510
0.510
0.110
  • Gain margin, Kmax / K3
  • Gain margin in decibels9.542 dB
  • Oscillation frequency at Kmax, √(a₁/a₃)1.414 rad/s
  • Period of that oscillation4.443 s

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Critical (maximum stable) gain () current value 6
a1Coefficient of sKey driver
1.530
a2Coefficient of s²
120
a3Coefficient of s³
1.212
KGain in use
  • With s³ + 3s² + 2s + K, the loop is stable for K between 0 and 6. At the limit two roots sit at ±j1.414 rad/s and the loop rings with a period of 4.44 s.
  • The gain in use is 2, a factor 3 below the limit, or 9.54 dB. Common practice asks for a margin of at least about 6 dB (a factor of 2), so there is some room before the loop becomes uncomfortably oscillatory.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing ()Local stepChange in result
a1 Coefficient of s0.5 to 10 1.53028.5+10%+10 %
a2 Coefficient of s²0.5 to 10 12019+10%+10 %
a3 Coefficient of s³0.5 to 5 1.21210.8+10%−9.09 %
K Gain in use0.1 to 10 660+10%0 %

Sweep of Coefficient of s²

Coefficient of s²Critical (maximum stable) gain
0.51
1.6883.375
2.8755.75
4.0638.125
5.2510.5
6.43812.88
7.62515.25
8.81317.63
1020

Sweep one variable

Critical (maximum stable) gain ()Hover, touch, or use the arrow keys on the chart
05101520 246810 Coefficient of s² now 6

Variables and how each one contributes

Kmax

Critical (maximum stable) gain

Result ·

What the equation gives you. Everything else feeds it.

a3

Coefficient of s³

· typical 0.5 to 5

The coefficient of s³ in the characteristic polynomial. It must be positive. Inversely proportional: a larger leading coefficient gives a smaller stable gain range. Raising it by 10 % (to 1.1) moves the result by −9.09 %, from 6 to 5.455.

a2

Coefficient of s²

· typical 0.5 to 10

The coefficient of s². It must be positive for stability. Directly proportional: more damping-like content widens the stable range. Raising it by 10 % (to 3.3) moves the result by +10 %, from 6 to 6.6.

a1

Coefficient of s

· typical 0.5 to 10

The coefficient of s. It must be positive for stability. Directly proportional: it widens the stable range and raises the oscillation frequency. Raising it by 10 % (to 2.2) moves the result by +10 %, from 6 to 6.6.

K

Gain in use

· typical 0.1 to 10

The gain in use, which enters the constant term of the polynomial. No effect on Kmax, which depends only on a₃, a₂ and a₁. It sets how close to the limit the loop is: the gain margin is Kmax/K = 3 at the defaults.

Worked example with the values above

  1. The conditions a₂ > 0, a₁ > 0 and K > 0 are satisfied by the coefficients 3, 2 and 2.
  2. The cubic test needs a₂a₁ > a₃K, that is 3 × 2 = 6 > 1 K.
  3. So K < a₂a₁/a₃ = 6, and K = 2 is stable with a margin of 3.

Assumptions and limits

  • A cubic characteristic polynomial with real constant coefficients, a₃ > 0, and the gain K appearing only in the constant term.
  • Strict stability is what is tested. Equality a₂a₁ = a₃K is the boundary case of sustained oscillation.

Common mistakes

  • Checking only that all coefficients are positive. That is necessary but, from third order up, not sufficient: a₂a₁ > a₃K must hold as well.
  • Using it when the gain also changes the other coefficients. The inequality must then be re-derived with the gain in the right places.

Statistics and uncertainty

Kmax = a₂a₁/a₃ is a product-over-quotient, so independent relative errors combine in quadrature: 3 % in each of the three coefficients gives about 5 % in Kmax (√3 × 3). Coefficients that come from identified models are usually uncertain by much more, so a gain margin of only a few per cent should not be trusted.

Where it is used

  • Finding the stability limit and gain margin of a third-order loop without computing the roots.
  • Predicting the frequency at which a loop will oscillate when its gain is raised too far.

Maths you need

  • Characteristic polynomial: the denominator of the closed loop, set to zero
  • Left half-plane roots: stability means all roots have negative real part

Related formulas

Practise this formula