Advanced maths

Joint spectral radius bounds calculator for switching matrix products

Bound the maximum asymptotic growth of arbitrary switching products from a finite set of two-by-two matrices.

Your numbers

Use the documented format and bounds; rows may be separated by new lines.
Use the documented format and bounds; rows may be separated by new lines.
Use the documented format and bounds; rows may be separated by new lines.
Use the documented format and bounds; rows may be separated by new lines.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Bound the maximum asymptotic growth of arbitrary switching products from a finite set of two-by-two matrices.

THE FORMULAmax ρ(A_word)^(1/k) ≤ ρ_joint ≤ max ||A_word||∞^(1/k), with all length-k words enumerated for each tested k.

A worked example

For the two default shear matrices at depth 4, the lower bound is approximately 1.6180339887 and the upper bound is approximately 1.6817928305. A product word of length two witnesses the lower bound; the remaining gap is not set to zero.

Good to know

Two or three real 2×2 matrices with entries within ±100, depth 1–10 and a 150000 visited-prefix cap. Complete finite-product spectral-radius lower and induced-infinity-norm upper estimates; floating arithmetic, not outward-rounded interval certificates or a general exact JSR solver.

Growth under arbitrary switching

The joint spectral radius asks how fast long products can grow when each factor may be chosen from a fixed finite matrix set. It is not the maximum of the individual spectral radii in general. Switching can combine directions that no single matrix amplifies repeatedly on its own.

This page accepts two or three real two-by-two matrices and explores every product through a selected finite length. Its output is a lower and upper estimate based on mathematical bounding identities. It does not claim that trying a few products identifies the exact asymptotic growth rate for every matrix family.

Completed product lengths tighten switching growth estimates1234Product length kBlue: upper estimateGreen: lower estimateDepth 4:[1.618034, 1.681793]
Scroll across to see the full diagram.
For the two default shear matrices at depth 4, the lower bound is approximately 1.6180339887 and the upper bound is approximately 1.6817928305. A product word of length two witnesses the lower bound; the remaining gap is not set to zero.

Compare this with the Spectral radius of a symmetric two-by-two matrix calculator. Bound maximum asymptotic growth over arbitrary products from a finite matrix set, rather than compute the spectral radius of one fixed matrix.

Specify product order and depth

The witness word lists the chosen matrix indices in the implementation’s multiplication sequence. A new matrix acts on the left of the accumulated product. Because matrix multiplication is generally noncommutative, reversing a word can change its entries even when some cyclic products happen to share eigenvalues.

Depth is a search limit, not a physical time duration. Increasing it grows the number of words exponentially, so the page uses a visited-prefix resource cap as well as a maximum entered depth of ten. Exhausting that cap gives an unresolved error; it does not validate the best partial estimate as a complete depth calculation.

Inspect the default shear example

The first default shear is [[1,1],[0,1]] and the second is [[1,0],[1,1]]. Each has individual spectral radius one. Their length-two alternating product has spectral radius approximately 2.6180339887, whose square root is approximately 1.6180339887. Thus switching already gives a lower bound larger than either individual radius.

At depth four, the induced-infinity-norm upper estimate is approximately 1.6817928305. The gap between that estimate and the lower bound remains visible. The calculator reports the finite-product evidence it has computed rather than inserting a known-looking limiting constant as if finite enumeration had independently proved equality.

Why a product provides a lower bound

Any finite word can be repeated indefinitely. The spectral radius of that repeated product therefore supplies a candidate exponential growth rate per factor, obtained by taking the appropriate root for the word length. The largest such candidate found through the completed search is a lower bound in exact mathematical arithmetic.

The witness word and its product length explain where the lower estimate came from. A very large matrix norm for one short product does not automatically provide the same lower bound, because a transient norm amplification may disappear when that product is repeated. Spectral radius and norm play different roles in the calculation.

Why a complete level gives an upper bound

For a fixed length k, every possible length-k product is enumerated and its induced infinity norm is evaluated. The largest norm bounds all such blocks. Submultiplicativity then yields a per-factor upper bound after taking the kth root; completed levels can be combined by retaining the smallest upper estimate.

The lower envelope is nondecreasing and the retained upper envelope is nonincreasing as completed levels are added. They may converge slowly and can leave a substantial gap even when the matrices are small. A narrow interval is useful evidence, but the page does not suppress a genuine gap to make the result appear more conclusive.

Distinguish mathematical bounds from rounding certificates

The inequalities justify the method over exact real arithmetic. The implementation evaluates products, eigenvalues and norms in floating-point arithmetic, without directed outward rounding. The displayed endpoints are therefore numerical bound estimates rather than a formally certified interval guaranteed to contain the exact joint spectral radius at every final printed digit.

The code checks for an inconsistent lower estimate above the upper estimate beyond tolerance and rejects that case. This catches a useful failure mode, but does not replace interval arithmetic. If a stability decision depends on an endpoint extremely close to one, obtain a stronger certificate or higher-precision bound before making that decision.

Read the output in its intended scope

The graph of completed levels shows which lengths improve the bounds and whether progress has stalled. The associated word is one growth witness, not a unique worst switching law. Multiple words can attain the same candidate rate, and the maximizing finite word can change when the depth is increased.

The page does not impose a switching automaton, dwell-time constraint, stochastic transition rule or feedback policy. Those restrictions define different growth questions. Use the returned estimates only for the unrestricted finite set that was entered, and retain the numerical precision caveat when exporting them into a larger analysis.

A few questions, answered

Why can switching grow faster than any individual matrix?

Different factors can amplify directions created by previous factors. The spectral radius of one matrix does not describe every mixed product.

Does a witness word prove the exact joint radius?

Usually not. Repeating it supplies a lower bound; a matching independent upper certificate is needed to prove equality.

Why do the bounds stop improving?

Finite depth can leave a gap, and the resource grows exponentially. A stalled finite envelope does not imply exact convergence.

Are these interval-arithmetic bounds?

No. The bounding formulas are mathematical, but the implementation uses ordinary floating-point evaluation without outward-rounded endpoint certification.

Find your calculator

Start typing to explore the library.