TL;DR
A switched linear system is a set of linear rules, for , together with a rule that says which one is active at each time. The state follows whichever matrix is active. A single linear system is stable when its matrix has all eigenvalues inside the unit circle. Two stable systems can still combine into an unstable one, because the order in which they are switched matters.
Where you'll see it: in power converters that turn switches on and off, in vehicles that change gear or drive mode, in networks whose communication links change over time, and in any controller that uses a different linear gain in each operating region.
Intuition
Same rule, different rules
Think of a car whose suspension has two settings, soft and firm. Each setting alone is a perfectly good linear spring-and-damper model. The car is a switched system because the driver, or a sensor, changes the setting over time. The question engineers ask is: whatever the sequence of settings, does the car settle down after a bump, or can the switching pump energy into the motion?
Switching is a different kind of thing from a single linear system. A single linear system's behaviour is fixed by one matrix, and its eigenvalues tell you everything about long-run growth or decay. With switching, there is no single matrix that tells the story. The state is pushed by one rule, then another, and the total effect depends on the whole sequence.
Why the order matters
Consider two rules that each shrink the state. Apply rule 1 then rule 2 and the state shrinks. Apply rule 2 then rule 1 and it also shrinks. But a clever choice of which rule runs when can stretch the state in directions the individual rules were not stretching. Each matrix here is non-normal: it shears the state, which can stretch it for a moment even though its eigenvalues are small. Alternating two shears in different directions makes that stretching accumulate instead of dying out. This is why switched systems are harder than the sum of their parts, and why the eigenvalues of each matrix alone do not settle stability.
The math
Definition
Let be matrices, and let be a switching signal that picks the active mode at each step. The discrete-time switched linear system is
Here is the state at step . The continuous-time version is .
If is constant, this reduces to a single linear system . The switching signal is either chosen by a designer (a controller), imposed by the environment, or unknown. A stability guarantee has to hold for the switching signals you allow, so the first decision is which family to cover. Two common choices are arbitrary switching (any sequence) and switching under a dwell-time constraint (each mode stays active for at least some minimum time).
Stability for every switching sequence
We want the state to go to zero whatever does. Under arbitrary switching, the cleanest sufficient test is a common Lyapunov function: a single function that decreases along every mode.
For the discrete system, choose a quadratic with symmetric and positive definite. Then
If for every , then decreases at every step under any switching, and the state goes to zero. The conditions on are linear matrix inequalities, which convex solvers handle well.
The simplest special case is . Then the test is that every mode has spectral norm less than one, , because .
Why eigenvalues of each mode are not enough
Each mode can have all eigenvalues inside the unit circle and the switched system can still diverge. The example below shows it.
Worked examples
Take
- Each mode is triangular, so its eigenvalues are its diagonal entries: and . Both modes are stable on their own.
- Switch alternately, then , and look at two steps at once. The two-step matrix is The entry is .
- The eigenvalues of satisfy , since the trace is and the determinant is .
- The roots are . The larger root is .
- Since , the state grows by about every two steps under this switching sequence, although each mode alone has spectral radius and its state decays to zero in the long run (like up to a small polynomial factor, after a possible short-lived bump from the off-diagonal term).
- Interpretation: the switching sequence pumps energy in a direction that neither mode alone can. Stability of each mode is not a stability guarantee for the switched system.
- growth envelope under alternating switching
- each mode alone, per step
Take two stable modes that do not cause trouble together:
- Try , so . We need the largest eigenvalue of for each mode.
- For : . Its trace is and its determinant is . The largest root is .
- For : . It has the same eigenvalues, so the largest is again .
- Therefore, for any switching sequence, .
- After steps, , whatever the order of switching.
- Interpretation: this is a certificate, not a simulation. It holds for every switching sequence, so the designer does not need to know the future switch times.
Compare with the earlier example: the same test with would fail there, because has largest eigenvalue about . The test is conservative: it can fail for a switched system that is in fact stable, so a failed test is inconclusive.
Tradeoffs and failure modes
Switched systems are useful, and their guarantees depend on what you assume about the switching.
| Situation | Problem | Better choice |
|---|---|---|
| Switching can be arbitrary and fast | Each mode stable, but the switched system may diverge | Common Lyapunov function, checked as a linear matrix inequality |
| No common Lyapunov function exists | Quadratic certificate fails even when the system is stable | Multiple Lyapunov functions, one per mode, with a rule for when to switch |
| Modes stay active for a known minimum time | Arbitrary-switching test is too pessimistic | Dwell-time analysis, which allows stability with slow switching |
| Switching is chosen by a designer | You can avoid bad sequences by design | Choose the switching rule to keep one Lyapunov function decreasing |
| Only a simulation is available | A few simulated sequences give false confidence | Use a worst-case certificate, or test many sequences including adversarial ones |
Practical warnings:
- Stable modes are necessary, not sufficient. The example above is the standard reason this topic exists.
- Quadratic certificates are conservative. A failed test does not prove instability.
- Switching is often the hazard. Fast switching can excite modes that slow switching would never reach, so simulate the transitions as well as the modes.
History
Switched and hybrid systems grew from several fields at once: relay and sliding-mode control, power electronics, and automata-based models of computer control. Early work on stability under switching asked when a family of stable linear systems stays stable under arbitrary switching, and the common Lyapunov function became the central tool for the question. In the late 1990s, Michael Branicky and others introduced multiple Lyapunov functions, which allow one function per mode and a rule for changing between them. Daniel Liberzon's 2003 book organised the theory into the form most control courses now use.
The field matters because switching is everywhere in practice. Converters, gearboxes and mode-dependent controllers all switch, and the simple intuition that stable parts make a stable whole is wrong for them. The example with two stable triangular matrices is the classic demonstration of why the subject needs its own theory.
Check yourself
QuestionEach of two matrices has all eigenvalues inside the unit circle. Does that guarantee the switched system is stable for every switching sequence? Explain with the example.Show answer
No. The example has two modes with eigenvalues , but alternating them gives a two-step matrix with eigenvalue about , so the state grows under that switching sequence. Stability of each mode alone does not imply stability of the switched system.
QuestionFor and , compute the trace and determinant of .Show answer
, so the trace is and the determinant is .
QuestionWhy does the test for every mode guarantee stability under arbitrary switching?Show answer
With , with . Whatever mode is active, the length of the state shrinks by at least the factor each step, so the length goes to zero. The argument uses only the bound, not the order of switching.
QuestionA converter has two modes, each stable, and the controller switches between them every few microseconds. A colleague says the switched system is stable because both modes are. What would you check before agreeing?Show answer
Check whether the two modes share a common Lyapunov function, for example with the quadratic test and a linear matrix inequality solver, or check the switching rule's dwell time against what the test needs. Also simulate the switching transitions, since fast switching can excite behaviour that each mode alone never shows. Stability of each mode is necessary, not sufficient.
Sources
- Hybrid system (Wikipedia): https://en.wikipedia.org/wiki/Hybrid_system
- Lyapunov stability (Wikipedia): https://en.wikipedia.org/wiki/Lyapunov_stability
- Boyd and Vandenberghe, Convex Optimization, linear matrix inequalities: https://web.stanford.edu/~boyd/cvxbook/