Certifying Nonlinear Stability via Sum of Squares Programming

27 concepts22 papers1 proposal

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:

  1. $V(x) > 0$ for all $x \neq 0$
  2. $\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:

  1. Linear constraints: Expanding $z(x)^T Q z(x)$ and matching its coefficients to the coefficients of our target polynomial $p(x)$.
  2. 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:

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:

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.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_automated_stability_certification_f4b1df15,
  title = {automated stability certification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-stability-certification/rdr_f4b1df1534b74d61ab9f68a9b5fd95a3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_automated_stability_certification_f4b1df15_v1,
  title = {automated stability certification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-stability-certification/rdr_f4b1df1534b74d61ab9f68a9b5fd95a3/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake