In mathematics, a homogeneous form h(x) of degree 2m in the real n-dimensional vector x is SOS (sum of squares of homogeneous forms) if and only if it can be written as a sum of squares of homogeneous forms of degree m:

SOS of polynomials is a special case of SOS of homogeneous forms since any polynomial is a homogeneous form with an additional variable set to 1. Explicit sufficient conditions for a polynomial f to be a sum of squares of other polynomials were found ([1], [2]). However every real nonnegative polynomial f can be approximated as closely as desired (in the
-norm of its coefficient vector) by a sequence of polynomials
that are sums of squares of polynomials [3].
Square matricial representation (SMR)
To establish whether a form h(x) is a SOS or not amounts to solving a convex optimization problem. Indeed, any h(x) can be written as

where
is a vector containing a base for the homogeneous forms of degree m in x (such as all monomials of degree m in x), the prime ′ denotes the transpose, H is any symmetric matrix satisfying

and
is a linear parameterization of the linear space

The dimension of the vector
is given by

whereas the dimension of the vector
is given by

Then, h(x) is a SOS if and only if there exists a vector
such that

meaning that the matrix
is positive-semidefinite. This is a linear matrix inequality (LMI) feasibility test, which is a convex optimization problem. The expression
was introduced in [1] with the name SMR (square matricial representation) in order to investigate polynomial positivity via the LMI
. This representation is also known as Gram matrix (see [2] and references therein).
Examples
- Consider the homogeneous form of degree 4 in two variables, which is given by
. We have

Since there exists an α such that
, namely
, it follows that h(x) is a SOS.
-


Since
for α = (1.18, −0.43, 0.73, 1.13, −0.37, 0.57)', it follows that h(x) is a SOS.
Matrix SOS
A matrix homogeneous form H(x) (i.e., a matrix whose entries are homogeneous forms) of dimension r and degree 2m in the real n-dimensional vector x is a SOS if and only if it can be written as sum of products of matrix homogeneous forms of degree m times their transpose:

Matrix SMR
To establish whether a matrix homogeneous form H(x) is a SOS or not amounts to solving a convex optimization. Indeed, similarly to the scalar case any H(x) can be written according to the matrix SMR as

where
is the Kronecker product of matrices, H is any symmetric matrix satisfying

and
is a linear parameterization of the linear space

The dimension of the vector
is given by

Then, H(x) is a SOS if and only if the following LMI holds:

Matrix SOS and matrix SMR have been introduced in [3].
References
[1] G. Chesi, A. Tesi, A. Vicino, and R. Genesio, On convexification of some minimum distance problems, 5th European Control Conference, Karlsruhe (Germany), 1999.
[2] M. Choi, T. Lam, and B. Reznick, Sums of squares of real polynomials, in Proc. of Symposia in Pure Mathematics, 1995.
[3] G. Chesi, A. Garulli, A. Tesi, and A. Vicino, Robust stability for polytopic systems via polynomially parameter-dependent Lyapunov functions, in 42nd IEEE Conference on Decision and Control, Maui (Hawaii), 2003.