Proving that a dynamical system is stable is one of the fundamental challenges in control theory and engineering. For linear systems, this is a solved problem: we can simply check if the eigenvalues of the system matrix have negative real parts. But real-world systems—from robot arms and aircraft to power grids and biological neurons—are inherently nonlinear.
For nonlinear systems, the gold standard for proving stability is Lyapunov stability theory. If we can find a scalar "energy" function $V(x)$ that is strictly positive everywhere (except at the origin) and always decreases along the system's trajectories ($\dot{V}(x) < 0$), the system is guaranteed to be stable.
The catch? Finding this Lyapunov function is notoriously difficult. Historically, it required deep mathematical intuition, trial and error, or restrictive simplifications. For decades, the lack of a systematic way to construct Lyapunov functions created a bottleneck in nonlinear control.
Sum-of-Squares (SOS) programming solves this by turning the manual art of finding Lyapunov functions into an automated, algorithmic search powered by convex optimization.
The Core Bottleneck: The Hardness of Positivity
To understand why SOS programming is such a breakthrough, we must first understand why certifying stability is computationally hard.
Suppose our system's dynamics are governed by a vector of polynomials, $\dot{x} = f(x)$. We want to find a polynomial Lyapunov function $V(x)$ such that:
- $V(x) > 0$ for all $x \neq 0$
- $\dot{V}(x) = \nabla V(x) \cdot f(x) < 0$ for all $x \neq 0$
This requires us to guarantee that a multivariate polynomial (either $V(x)$ or $-\dot{V}(x)$) is globally non-negative. Crucially, checking whether a multivariate polynomial of degree 4 or higher is globally non-negative is NP-hard. As the number of states or the degree of the polynomial grows, the problem quickly becomes intractable.
The Core Insight: Sum of Squares as a Convex Proxy
We need a sufficient condition for non-negativity that is computationally cheap to verify. The core insight of SOS programming is to replace the condition "this polynomial is non-negative" with the stricter condition "this polynomial can be written as a sum of squared polynomials."
If a polynomial $p(x)$ can be written as: $$p(x) = \sum_{i} g_i(x)^2$$ it is immediately obvious that $p(x) \ge 0$ for all $x$.
While not every non-negative polynomial can be written as a sum of squares, the subset of SOS polynomials serves as an exceptionally powerful proxy. Why? Because checking if a polynomial is a sum of squares can be cast exactly as a Semidefinite Program (SDP), a class of convex optimization problems that can be solved efficiently in polynomial time.
The Gram Matrix Trick
To see why checking the SOS condition is convex, consider a polynomial $p(x)$ of degree $2d$. We can express $p(x)$ in terms of a vector of all monomials up to degree $d$, denoted as $z(x)$. For example, if $x \in \mathbb{R}^2$ and $d=1$, then $z(x) = [1, x_1, x_2]^T$.
We can write $p(x)$ as a quadratic form in these monomials using a symmetric matrix $Q$, known as the Gram matrix: $$p(x) = z(x)^T Q z(x)$$
If we can find a matrix $Q$ that is positive semidefinite ($Q \succeq 0$), we can compute its Cholesky factorization or eigendecomposition $Q = L^T L$. Substituting this back gives: $$p(x) = z(x)^T L^T L z(x) = \|L z(x)\|^2 = \sum_{i} (L_i z(x))^2$$
Because each term $L_i z(x)$ is a polynomial, $p(x)$ is explicitly revealed to be a sum of squares.
Finding such a matrix $Q$ requires satisfying two sets of constraints:
- Linear constraints: Expanding $z(x)^T Q z(x)$ and matching its coefficients to the coefficients of our target polynomial $p(x)$.
- Semidefinite constraints: Requiring $Q \succeq 0$.
This is the exact definition of a Semidefinite Program. By parameterizing a candidate Lyapunov function $V(x)$ with unknown coefficients, we can express the conditions $V(x) \in \text{SOS}$ and $-\dot{V}(x) \in \text{SOS}$ as an SDP. Off-the-shelf convex solvers can then search for the coefficients of $V(x)$ and the underlying Gram matrices simultaneously.
From Theory to Automation
This algorithmic pipeline shifts the burden of stability analysis from human mathematicians to numerical solvers. To make this practical, researchers have developed high-level software toolboxes. For instance, Stéphane Drobot et al. introduced SOStab in SOStab: A Matlab toolbox for transient stability analysis, which automates the translation of nonlinear power system dynamics into solvable SDPs, allowing engineers to calculate stability certificates without manually managing polynomial constraints.
Beyond verifying existing models, this optimization framework can be embedded directly into data-driven workflows. Mark M. Tobenkin et al. demonstrated in Convex optimization in identification of stable non-linear state space models that SOS constraints can be integrated into system identification. When learning a nonlinear model from raw data, enforcing that the model must satisfy an SOS stability certificate guarantees that the identified system will not suffer from exploding, unstable simulations.
Mapping Safe Zones: Regions of Attraction
In practice, few nonlinear systems are globally stable. More commonly, they are stable only within a certain neighborhood around an equilibrium point, known as the Region of Attraction (ROA). SOS programming excels at finding guaranteed inner bounds of these "safe zones."
By finding a polynomial Lyapunov function $V(x)$ and a corresponding sublevel set $\Omega = \{x \mid V(x) \le \gamma\}$, we can certify that any trajectory starting inside $\Omega$ will safely converge to the origin, provided that $\dot{V}(x) < 0$ holds everywhere within $\Omega$.
[ True Region of Attraction (Complex/Unknown Shape) ]
┌─────────────────────────────────────────────────────┐
│ │
│ [ SOS Certified Inner Bound (Sublevel Set) ]│
│ ┌───────────────────────────────────┐ │
│ │ │ │
│ │ x (Origin) │ │
│ │ │ │
│ └───────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────┘
This capability has proven vital for safety-critical engineering applications:
- Aerospace: Abhijit Chakraborty et al. applied these techniques in Applications of Linear and Nonlinear Robustness Analysis Techniques to the F/A-18 Flight Control Laws to analyze the F/A-18 Hornet's flight control software. While traditional linear analysis failed to capture dangerous "falling leaf" instabilities, SOS programming successfully computed rigorous lower bounds on the aircraft's ROA, validating the robustness of revised control laws.
- Robotics: Anirudha Majumdar et al. extended this to dynamic trajectories in Control Design along Trajectories with Sums of Squares Programming. They computed invariant "funnels" around planned robot trajectories, providing formal safety margins for underactuated systems operating under strict torque limits.
- Hardware Optimization: In Polynomial Method for PLL Controller Optimization, Ta-Chung Wang et al. used SOS constraints to maximize the domain of attraction for Phase-Locked Loops (PLLs), outperforming traditional linear design methodologies.
- Uncertain Systems: Real-world systems often feature shifting equilibria due to parametric uncertainty. To handle this, Andrea Iannelli et al. developed an equilibrium-independent ROA formulation in An equilibrium-independent region of attraction formulation for systems with uncertainty-dependent equilibria, allowing SOS optimization to certify entire branches of moving steady states without requiring explicit closed-form mathematical descriptions of how those states shift.
- Algorithmic Convergence: The utility of ROA estimation extends beyond physical hardware. Harald Leisenberger et al. demonstrated in Convergence behavior of belief propagation: estimating regions of attraction via Lyapunov functions that message-passing algorithms like Belief Propagation can be modeled as discrete nonlinear dynamical systems. By applying SOS programming, the authors mapped the analytical convergence zones of these algorithms for the first time.
Scaling to Infinite Dimensions: Time-Delays and PDEs
The power of SOS programming becomes even more apparent when moving from Ordinary Differential Equations (ODEs) to infinite-dimensional systems, such as systems with time-delays or systems governed by Partial Differential Equations (PDEs). In these domains, states are functions rather than vectors, making manual stability proofs extraordinarily complex.
Time-Delay Systems
When a system's rate of change depends on past states ($\dot{x}(t) = f(x(t), x(t-\tau))$), the state space becomes infinite-dimensional. To certify stability, Matthew M. Peet et al. showed in Positive Forms and Stability of Linear Time-Delay Systems that Lyapunov functionals can be constructed using piecewise polynomial matrices. By converting the positivity conditions of these functional operators into SOS constraints, they mapped the stability verification of time-delay systems directly onto SDP solvers.
Partial Differential Equations (PDEs)
For distributed parameter systems (like fluid flow or heat diffusion), stability analysis requires proving integral inequalities over spatial domains. The authors of Semi-definite programming and functional inequalities for Distributed Parameter Systems bridged this gap by integrating boundary conditions directly into the optimization problem using polynomial slack functions. This eliminated the need for manual analytical derivations.
Building on this, Aditya Gahlawat et al. demonstrated in A Semi-Definite Programming Approach to Stability Analysis of Linear Partial Differential Equations that parameterizing Lyapunov functionals with SOS polynomials yields near-analytical accuracy for 1-D PDEs in under a minute of compute time. They later extended this framework in Output Feedback Control of Inhomogeneous Parabolic PDEs with Point Actuation and Point Measurement using SOS and Semi-Separable Kernels to synthesize output-feedback controllers for parabolic PDEs using positive operators defined by semi-separable kernels, offering a highly automated alternative to traditional backstepping methods.
Hybrid Systems, Optimization, and Learning
Because SOS programming translates abstract stability criteria into concrete feasibility problems, it serves as a versatile tool across several adjacent domains:
- Hybrid and Switched Systems: Systems that jump between discrete modes or exhibit infinite switching in finite time (Zeno behavior) are notoriously difficult to analyze. Chaitanya Murti et al. utilized SOS programming in A sum-of-squares approach to the analysis of Zeno stability in polynomial hybrid systems to construct Lyapunov functions that guarantee a system will settle into a stable state despite parametric uncertainties. Similarly, Hamed Mojallali et al. leveraged SOS feasibility formulations in On robust stability of switched systems in the context of Filippov solutions to efficiently verify the robust stability of polynomial switched systems under Filippov solutions.
- Biological Modeling: In A Nonlinear Synchronization Scheme for Hindmarsh-Rose Models, Jung‐Su Kim treated the synchronization of chaotic neuron models as a stabilization problem of polynomial error dynamics, using SOS optimization to automatically discover the required nonlinear observers.
- Algorithm Verification: Optimization algorithms themselves are discrete-time dynamical systems. Ernest K. Ryu et al. demonstrated in Finding the Forward-Douglas-Rachford-Forward Method that automated SDP searches can identify Lyapunov functions for complex operator-splitting methods, providing computer-assisted convergence proofs for algorithms that are too algebraically intricate for manual derivation.
- Imitation Learning: In robot learning, ensuring that a policy safely reaches its target is paramount. Amin Abyaneh et al. introduced PLYDS in Learning Lyapunov-Stable Polynomial Dynamical Systems Through Imitation, a framework that jointly learns a polynomial motion policy and an SOS Lyapunov function. By solving this joint optimization as an SDP, the robot is guaranteed to remain globally stable even when subjected to external physical disturbances.
Is an SOS Certificate Guaranteed to Exist?
Whenever we use a relaxation—like substituting the SOS condition for true polynomial positivity—we must ask: What do we lose? If a system is stable, are we guaranteed to find an SOS Lyapunov function, or could the relaxation fail and leave us empty-handed?
This fundamental theoretical question was resolved by Antonis Papachristodoulou et al. in A Converse Sum of Squares Lyapunov Result with a Degree Bound. The authors proved a converse theorem: if a polynomial system is exponentially stable on a bounded set, a Sum-of-Squares Lyapunov function is guaranteed to exist. Furthermore, they established a finite upper bound on the required degree of the polynomial.
This result provides the ultimate justification for the field. It implies that nonlinear stability verification for polynomial systems is a decidable problem. If a system is stable, we can systematically find the proof simply by increasing the degree of our polynomial search space until the semidefinite program returns a valid certificate.
Key Foundational Work
Applications of Linear and Nonlinear Robustness Analysis Techniques to the F/A-18 Flight Control Laws (2009) — contributed 2 concept elements to this direction.
Convex optimization in identification of stable non-linear state space models (2010) — contributed 1 concept elements to this direction.
A Nonlinear Synchronization Scheme for Hindmarsh-Rose Models (2010) — contributed 1 concept elements to this direction.