How this calculation works
The structured stability radius measures the smallest allowed perturbation that can move a stable matrix to the boundary of stability. Here the perturbation is real and diagonal, and its size is the largest absolute diagonal change.
A=[[a,b],[c,d]] real2x2strictHurwitz ifftrace=a+d<0,det=ad-bc>0. Perturbdiagδ1,δ2 withnorm∞maxabs. Traceboundaryclosest rtr=-trace/2 attainedδ1=δ2=r. determinantbilinearonbox[-r,r]²: minimumat4corners. Eachcornerq_s(r)=det+(s1*d+s2*a)r+s1*s2r². Enumerateallpositive realrootsof4quadratics andrtr,taker*. Atleastoneboundaryrealizable, noearliertrace/detviolation; witnesscornerortrwithactualperturbcheck. Exactrational coefficients andquadraticalgebraics possible. Returnradiusnotinverseμ orsingularvaluedistance.A worked example
With the prefilled inputs, radius = 1.
Good to know
Real additive diagonal perturbations; norm is max(|d₁|,|d₂|). Bilinear determinant extrema occur at box corners; first loss of strict Hurwitz stability includes imaginary/zero boundary.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
Distance to losing stability
The structured stability radius measures the smallest allowed perturbation that can move a stable matrix to the boundary of stability. Here the perturbation is real and diagonal, and its size is the largest absolute diagonal change.
Restricting the structure changes the answer. This is not the same as allowing every matrix entry to vary, taking a singular value, or calculating a complex perturbation radius. The two-state restriction makes a direct algebraic certificate possible.
Compare with the SISO H infinity norm calculator for a stable rational transfer function. Findneareststructuredrealdiagonaluncertaintycausingloss ofHurwitzstability; frequencyresponseHinfisunstructuredgainandnotthisrealparameterdistance.
Checking the nominal matrix first
Use the prefilled input structure and preserve the declared column or index order. For a real two-by-two continuous-time matrix, strict Hurwitz stability requires a negative trace and positive determinant. Both should be checked before searching for a destabilizing perturbation. An already unstable matrix does not have the positive stable-margin problem described here.
The four entries are finite real numbers handled in floating arithmetic in this release. The returned radius and witness are numerical, not exact rational or algebraic-number objects. Off-diagonal entries remain fixed during this calculation. The input units should be consistent across states, since rescaling state coordinates changes some matrix entries even though a carefully transformed perturbation structure can preserve the intended problem.
Two ways to reach the boundary
A real two-state matrix can leave the Hurwitz region when its trace reaches zero or its determinant reaches zero. The nearest trace boundary under diagonal infinity-norm changes is obtained by increasing both diagonal entries equally.
The determinant is bilinear in the two diagonal perturbations. Over a square perturbation box its extrema occur at corners. That property converts the determinant part of the search into four one-variable quadratic equations rather than a numerical search over arbitrary perturbation pairs.
Quadratic candidates and witnesses
For each sign pair, substitute diagonal changes equal to that sign times a nonnegative radius. The determinant becomes a quadratic in the radius. Collect its positive real roots and compare the smallest candidate with the trace-boundary candidate.
A candidate should be returned with an actual perturbation and the trace and determinant of its boundary matrix. These witnesses document what instability boundary is reached. The implementation uses a cancellation-resistant quadratic-root formula and returns numerical candidates. Scale-separated tests are important because subtracting two nearly equal large quantities can otherwise erase the smallest destabilizing radius.
A symmetric worked matrix
Take diagonal entries minus two and off-diagonal entries one. Increasing both diagonal entries by one gives the matrix with diagonal minus one and off-diagonal one. Its eigenvalues are zero and minus two, so it lies on the stability boundary.
The corresponding corner determinant is radius minus one times radius minus three, with its first positive zero at one. The trace cannot reach zero until radius two. The stability radius is therefore one, achieved by the diagonal perturbation one, one.
Reading a margin geometrically
A static figure can show the square of allowed diagonal changes and the trace and determinant boundaries in that plane. The first touching point explains the maximum-entry norm more clearly than a single number without its perturbation.
A radius is a distance to a non-strict boundary, not a permitted operating limit with an automatic safety buffer. Every perturbation with strictly smaller norm remains Hurwitz under the stated proof; perturbations on the boundary may be only marginally stable. The first loss of strict stability is a boundary event. It can occur when determinant vanishes, producing a zero eigenvalue, or when trace vanishes while determinant remains nonnegative. The perturbation norm bounds both diagonal changes simultaneously, rather than summing their magnitudes. Stable quadratic root evaluation matters for widely separated time scales because direct subtraction can otherwise erase the smaller destabilizing perturbation.
What the certificate covers
The algebraic reduction is special to two real states and independent real diagonal changes. Larger matrices can cross a stability boundary in more complicated ways. The page should not silently apply this candidate list to higher-dimensional systems.
An uncertain physical model may have correlated or weighted perturbations rather than the entered infinity norm. Such constraints change the margin. The algebraic boundary reduction is valid for the stated matrix structure, while its implementation is numerical. The returned trace and determinant of the witness help assess arithmetic error; they are not a rigorous interval enclosure of the margin. Real additive diagonal perturbations; norm is max(|d₁|,|d₂|). Bilinear determinant extrema occur at box corners; first loss of strict Hurwitz stability includes imaginary/zero boundary.
A few questions, answered
Is this the smallest change to any matrix entry?
No; only real diagonal entries are allowed to change, measured by their maximum absolute change.
Why are four determinant corners sufficient?
The determinant is bilinear in the two perturbations, so its extrema over a square occur at corners.
What if the original matrix is already unstable?
It fails the strict-Hurwitz premise and should be reported separately rather than assigned a positive stable margin.
Does reaching the radius always give a positive eigenvalue?
It reaches a non-strict stability boundary, which can include a zero or imaginary-axis eigenvalue.