Definite symmetric matrix

From HandWiki

In linear algebra, a symmetric n×n real matrix M is said to be positive-definite if the scalar zTMz is strictly positive for every non-zero column vector z of n real numbers. Here zT denotes the transpose of z.[1] When interpreting Mz as the output of an operator, M, that is acting on an input, z, the property of positive definiteness implies that the output always has a positive inner product with the input, as often observed in physical processes.

More generally, a complex n×n Hermitian matrix M is said to be positive-definite if the scalar z*Mz is strictly positive for every non-zero column vector z of n complex numbers. Here z* denotes the conjugate transpose of z. Note that z*Mz is automatically real since M is Hermitian.

Positive semi-definite matrices are defined similarly, except that the above scalars zTMz or z*Mz must be positive or zero (i.e. non-negative). Negative-definite and negative semi-definite matrices are defined analogously. A matrix that is not positive semi-definite and not negative semi-definite is called indefinite.

The matrix M is positive-definite if and only if the bilinear form z,w=zTMw is positive-definite (and similarly for a positive-definite sesquilinear form in the complex case). This is a coordinate realization of an inner product on a vector space.[2]

Some authors use more general definitions of definiteness, including some non-symmetric real matrices, or non-Hermitian complex ones.

Definitions

In the following definitions, xT is the transpose of x, x* is the conjugate transpose of x and 𝟎 denotes the n-dimensional zero-vector.

Definitions for real matrices

An n×n symmetric real matrix M is said to be positive-definite if xTMx>0 for all non-zero x in n. Formally,

M positive-definitexTMx>0 for all xn𝟎

An n×n symmetric real matrix M is said to be positive semidefinite or non-negative-definite if xTMx0 for all x in n. Formally,

M positive semi-definitexTMx0 for all xn

An n×n symmetric real matrix M is said to be negative-definite if xTMx<0 for all non-zero x in n. Formally,

M negative-definitexTMx<0 for all xn𝟎

An n×n symmetric real matrix M is said to be negative-semidefinite or non-positive-definite if xTMx0 for all x in n. Formally,

M negative semi-definitexTMx0 for all xn

An n×n symmetric real matrix which is neither positive semidefinite nor negative semidefinite is called indefinite.

Definitions for complex matrices

The following definitions all involve the term x*Mx. Notice that this is always a real number for any Hermitian square matrix M.

An n×n Hermitian complex matrix M is said to be positive-definite if x*Mx>0 for all non-zero x in n. Formally,

M positive-definitex*Mx>0 for all xn𝟎

An n×n Hermitian complex matrix M is said to be positive semi-definite or non-negative-definite if x*Mx0 for all x in n. Formally,

M positive semi-definitex*Mx0 for all xn

An n×n Hermitian complex matrix M is said to be negative-definite if x*Mx<0 for all non-zero x in n. Formally,

M negative-definitex*Mx<0 for all xn𝟎

An n×n Hermitian complex matrix M is said to be negative semi-definite or non-positive-definite if x*Mx0 for all x in n. Formally,

M negative semi-definitex*Mx0 for all xn

An n×n Hermitian complex matrix which is neither positive semidefinite nor negative semidefinite is called indefinite.

Consistency between real and complex definitions

Since every real matrix is also a complex matrix, the definitions of "definiteness" for the two classes must agree.

For complex matrices, the most common definition says that "M is positive-definite if and only if z*Mz is real and positive for all non-zero complex column vectors z". This condition implies that M is Hermitian (i.e. its transpose is equal to its conjugate). To see this, consider the matrices A=12(M+M*) and B=12i(MM*), so that M=A+iB and z*Mz=z*Az+iz*Bz. The matrices A and B are Hermitian, therefore z*Az and z*Bz are individually real. If z*Mz is real, then z*Bz must be zero for all z. Then B is the zero matrix and M=A, proving that M is Hermitian.

By this definition, a positive-definite real matrix M is Hermitian, hence symmetric; and zTMz is positive for all non-zero real column vectors z. However the last condition alone is not sufficient for M to be positive-definite. For example, if

M=[1111],

then for any real vector z with entries a and b we have zTMz=(a+b)a+(a+b)b=a2+b2, which is always positive if z is not zero. However, if z is the complex vector with entries 1 and i, one gets

z*Mz=[1,i]M[1,i]T=[1+i,1i][1,i]T=2+2i

which is not real. Therefore, M is not positive-definite.

On the other hand, for a symmetric real matrix M, the condition "zTMz>0 for all nonzero real vectors z" does imply that M is positive-definite in the complex sense.

Notation

If a Hermitian matrix M is positive semi-definite, one sometimes writes M0 and if M is positive-definite one writes M0. To denote that M is negative semi-definite one writes M0 and to denote that M is negative-definite one writes M0.

The notion comes from functional analysis where positive semidefinite matrices define positive operators.

A common alternative notation is M0, M>0, M0 and M<0 for positive semi-definite and positive-definite, negative semi-definite and negative-definite matrices, respectively. This may be confusing, as sometimes nonnegative matrices (respectively, nonpositive matrices) are also denoted in this way.

Examples

  • The identity matrix I=[1001] is positive-definite (and as such also positive semi-definite). It is a real symmetric matrix, and, for any non-zero column vector z with real entries a and b, one has
    zTIz=[ab][1001][ab]=a2+b2.

    Seen as a complex matrix, for any non-zero column vector z with complex entries a and b one has

    z*Iz=[ab][1001][ab]=aa+bb=|a|2+|b|2.
    Either way, the result is positive since z is not the zero vector (that is, at least one of a and b is not zero).
  • The real symmetric matrix
    M=[210121012]
    is positive-definite since for any non-zero column vector z with entries a, b and c, we have
    zTMz=(zTM)z=[(2ab)(a+2bc)(b+2c)][abc]=(2ab)a+(a+2bc)b+(b+2c)c=2a2baab+2b2cbbc+2c2=2a22ab+2b22bc+2c2=a2+a22ab+b2+b22bc+c2+c2=a2+(ab)2+(bc)2+c2
    This result is a sum of squares, and therefore non-negative; and is zero only if a=b=c=0, that is, when z is the zero vector.
  • For any real invertible matrix A, the product ATA is a positive definite matrix. A simple proof is that for any non-zero vector z, the condition zTATAz=(Az)T(Az)=Az2>0, since the invertibility of matrix A means that Az0.
  • The example M above shows that a matrix in which some elements are negative may still be positive definite. Conversely, a matrix whose entries are all positive is not necessarily positive definite, as for example
    N=[1221],
    for which [11]N[11]T=2<0.

Eigenvalues

Let M be an n×n Hermitian matrix. This implies all its eigenvalues are real.

  • M is positive definite if and only if all of its eigenvalues are positive.
  • M is positive semi-definite if and only if all of its eigenvalues are non-negative.
  • M is negative definite if and only if all of its eigenvalues are negative
  • M is negative semi-definite if and only if all of its eigenvalues are non-positive.
  • M is indefinite if and only if it has both positive and negative eigenvalues.

Let P1DP be an eigendecomposition of M, where P is a unitary complex matrix whose rows comprise an orthonormal basis of eigenvectors of M, and D is a real diagonal matrix whose main diagonal contains the corresponding eigenvalues. The matrix M may be regarded as a diagonal matrix D that has been re-expressed in coordinates of the basis P. In particular, the one-to-one change of variable y=Pz shows that z*Mz is real and positive for any complex vector z if and only if y*Dy is real and positive for any y; in other words, if D is positive definite. For a diagonal matrix, this is true only if each element of the main diagonal—that is, every eigenvalue of M—is positive. Since the spectral theorem guarantees all eigenvalues of a Hermitian matrix to be real, the positivity of eigenvalues can be checked using Descartes' rule of alternating signs when the characteristic polynomial of a real, symmetric matrix M is available.

Decomposition

Let M be an n×n Hermitian matrix. M is positive semidefinite if and only if it can be decomposed as a product

M=B*B

of a matrix B with its conjugate transpose.

When M is real, B can be real as well and the decomposition can be written as

M=BTB.

M is positive definite if and only if such a decomposition exists with B invertible. More generally, M is positive semidefinite with rank k if and only if a decomposition exists with a k×n matrix B of full row rank (i.e. of rank k). Moreover, for any decomposition M=B*B, rank(M)=rank(B).[3]

The columns b1,,bn of B can be seen as vectors in the complex or real vector space k, respectively. Then the entries of M are inner products (that is dot products, in the real case) of these vectors

Mij=bi,bj.

In other words, a Hermitian matrix M is positive semidefinite if and only if it is the Gram matrix of some vectors b1,,bn. It is positive definite if and only if it is the Gram matrix of some linearly independent vectors. In general, the rank of the Gram matrix of vectors b1,,bn equals the dimension of the space spanned by these vectors.[4]

Uniqueness up to unitary transformations

The decomposition is not unique: if M=B*B for some k×n matrix B and if Q is any unitary k×k matrix (meaning Q*Q=QQ*=I), then M=B*B=B*Q*QB=A*A for A=QB.

However, this is the only way in which two decompositions can differ: the decomposition is unique up to unitary transformations. More formally, if A is a k×n matrix and B is a ×n matrix such that A*A=B*B, then there is a ×k matrix Q with orthonormal columns (meaning Q*Q=Ik×k) such that B=QA.[5] When =k this means Q is unitary.

This statement has an intuitive geometric interpretation in the real case: let the columns of A and B be the vectors a1,,an and b1,,bn in k. A real unitary matrix is an orthogonal matrix, which describes a rigid transformation (an isometry of Euclidean space k) preserving the 0 point (i.e. rotations and reflections, without translations). Therefore, the dot products aiaj and bibj are equal if and only if some rigid transformation of k transforms the vectors a1,,an to b1,,bn (and 0 to 0).

Square root

A matrix M is positive semidefinite if and only if there is a positive semidefinite matrix B (in particular B is Hermitian, so B*=B) satisfying M=BB. This matrix B is unique,[6] is called the non-negative square root of M, and is denoted with B=M12. When M is positive definite, so is M12, hence it is also called the positive root of M.

The non-negative square root should not be confused with other decompositions M=B*B. Some authors use the name square root and M12 for any such decomposition, or specifically for the Cholesky decomposition, or any decomposition of the form M=BB; other only use it for the non-negative square root.

If M>N>0 then M12>N12>0.

Cholesky decomposition

A positive semidefinite matrix M can be written as M=LL*, where L is lower triangular with non-negative diagonal (equivalently M=B*B where B=L* is upper triangular); this is the Cholesky decomposition. If M is positive definite, then the diagonal of L is positive and the Cholesky decomposition is unique. The Cholesky decomposition is especially useful for efficient numerical calculations. A closely related decomposition is the LDL decomposition, M=LDL*, where D is diagonal and L is lower unitriangular.

Other characterizations

Let M be an n×n Hermitian matrix. The following properties are equivalent to M being positive definite:

The associated sesquilinear form is an inner product
The sesquilinear form defined by M is the function , from n×n to n such that x,y:=y*Mx for all x and y in n, where y* is the conjugate transpose of y. For any complex matrix M, this form is linear in x and semilinear in y. Therefore, the form is an inner product on n if and only if z,z is real and positive for all nonzero z; that is if and only if M is positive definite. (In fact, every inner product on n arises in this fashion from a Hermitian positive definite matrix.)
Its leading principal minors are all positive
The kth leading principal minor of a matrix M is the determinant of its upper-left k×k sub-matrix. It turns out that a matrix is positive definite if and only if all these determinants are positive. This condition is known as Sylvester's criterion, and provides an efficient test of positive definiteness of a symmetric real matrix. Namely, the matrix is reduced to an upper triangular matrix by using elementary row operations, as in the first part of the Gaussian elimination method, taking care to preserve the sign of its determinant during pivoting process. Since the kth leading principal minor of a triangular matrix is the product of its diagonal elements up to row k, Sylvester's criterion is equivalent to checking whether its diagonal elements are all positive. This condition can be checked each time a new row k of the triangular matrix is obtained.

A positive semidefinite matrix is positive definite if and only if it is invertible.[7] A matrix M is negative (semi)definite if and only if M is positive (semi)definite.

Quadratic forms

The (purely) quadratic form associated with a real n×n matrix M is the function Q:n such that Q(x)=xTMx for all x. M can be assumed symmetric by replacing it with 12(M+MT).

A symmetric matrix M is positive definite if and only if its quadratic form is a strictly convex function.

More generally, any quadratic function from n to can be written as xTMx+xTb+c where M is a symmetric n×n matrix, b is a real n-vector, and c a real constant. This quadratic function is strictly convex, and hence has a unique finite global minimum, if and only if M is positive definite. For this reason, positive definite matrices play an important role in optimization problems.

Simultaneous diagonalization

A symmetric matrix and another symmetric and positive definite matrix can be simultaneously diagonalized, although not necessarily via a similarity transformation. This result does not extend to the case of three or more matrices. In this section we write for the real case. Extension to the complex case is immediate.

Let M be a symmetric and N a symmetric and positive definite matrix. Write the generalized eigenvalue equation as (MλN)x=0 where we impose that x be normalized, i.e. xTNx=1. Now we use Cholesky decomposition to write the inverse of N as QTQ. Multiplying by Q and letting x=QTy, we get Q(MλN)QTy=0, which can be rewritten as (QMQT)y=λy where yTy=1. Manipulation now yields MX=NXΛ where X is a matrix having as columns the generalized eigenvectors and Λ is a diagonal matrix of the generalized eigenvalues. Now premultiplication with XT gives the final result: XTMX=Λ and XTNX=I, but note that this is no longer an orthogonal diagonalization with respect to the inner product where yTy=1. In fact, we diagonalized M with respect to the inner product induced by N.[8]

Note that this result does not contradict what is said on simultaneous diagonalization in the article Diagonalizable matrix, which refers to simultaneous diagonalization by a similarity transformation. Our result here is more akin to a simultaneous diagonalization of two quadratic forms, and is useful for optimization of one form under conditions on the other.

Properties

Induced partial ordering

For arbitrary square matrices M, N we write MN if MN0 i.e., MN is positive semi-definite. This defines a partial ordering on the set of all square matrices. One can similarly define a strict partial ordering M>N. The ordering is called the Loewner order.

Inverse of positive definite matrix

Every positive definite matrix is invertible and its inverse is also positive definite.[9] If MN>0 then N1M1>0.[10] Moreover, by the min-max theorem, the kth largest eigenvalue of M is greater than the kth largest eigenvalue of N.

Scaling

If M is positive definite and r>0 is a real number, then rM is positive definite.[11]

Addition

If M and N are positive definite, then the sum M+N is also positive definite.[11]

Multiplication

  • If M and N are positive definite, then the products MNM and NMN are also positive definite. If MN=NM, then MN is also positive definite.
  • If M is positive semidefinite, then A*MA is positive semidefinite for any (possibly rectangular) matrix A. If M is positive definite and Q has full column rank, then A*MA is positive definite.[12]

Submatrices

Every principal submatrix of a positive definite matrix is positive definite.

Trace

The diagonal entries mii of a positive definite matrix are real and non-negative. As a consequence the trace, tr(M)0. Furthermore,[13] since every principal sub-matrix (in particular, 2-by-2) is positive definite,

|mij|miimjjmii+mjj2i,j

and thus

maxi,j|mij|maxi|mii|

An n×n Hermitian matrix M is positive definite if it satisfies the following trace inequalities:[14]

tr(M)>0and(tr(M))2tr(M2)>n1.

Hadamard product

If M,N0, although MN is not necessary positive semidefinite, the Hadamard product is, MN0 (this result is often called the Schur product theorem).[15]

Regarding the Hadamard product of two positive semidefinite matrices M=(mij)0, N0, there are two notable inequalities:

  • Oppenheim's inequality: det(MN)det(N)imii.[16]
  • det(MN)det(M)det(N).[17]

Kronecker product

If M,N0, although MN is not necessary positive semidefinite, the Kronecker product MN0.

Frobenius product

If M,N0, although MN is not necessary positive semidefinite, the Frobenius product M:N0 (Lancaster–Tismenetsky, The Theory of Matrices, p. 218).

Convexity

The set of positive semidefinite symmetric matrices is convex. That is, if M and N are positive semidefinite, then for any α between 0 and 1, αM+(1α)N is also positive semidefinite. For any vector x:

xT(αM+(1α)N)x=αxTMx+(1α)xTNx0.

This property guarantees that semidefinite programming problems converge to a globally optimal solution.

Relation with cosine

The positive-definiteness of a matrix A expresses that the angle θ between any vector x and its image Ax is always π/2<θ<+π/2:

cosθ=xTAxxAx=x,AxxAx,θ=θ(x,Ax)=x,Ax^=the angle between x and Ax

Further properties

  1. If M is a symmetric Toeplitz matrix, i.e. the entries mij are given as a function of their absolute index differences: mij=h(|ij|), and the strict inequality

    j0|h(j)|<h(0)

    holds, then M is strictly positive definite.
  2. Let M>0 and N Hermitian. If MN+NM0 (resp., MN+NM>0) then N0 (resp., N>0).[18]
  3. If M>0 is real, then there is a δ>0 such that M>δI, where I is the identity matrix.
  4. If Mk denotes the leading k×k minor, det(Mk)/det(Mk1) is the kth pivot during LU decomposition.
  5. A matrix is negative definite if its k-th order leading principal minor is negative when k is odd, and positive when k is even.

A Hermitian matrix is positive semidefinite if and only if all of its principal minors are nonnegative. It is however not enough to consider the leading principal minors only, as is checked on the diagonal matrix with entries 0 and −1.

Block matrices

A positive 2n×2n matrix may also be defined by blocks:

M=[ABCD]

where each block is n×n. By applying the positivity condition, it immediately follows that A and D are hermitian, and C=B*.

We have that z*Mz0 for all complex z, and in particular for z=[v,0]T. Then

[v*0][ABB*D][v0]=v*Av0.

A similar argument can be applied to D, and thus we conclude that both A and D must be positive definite matrices, as well.

Converse results can be proved with stronger conditions on the blocks, for instance using the Schur complement.

Local extrema

A general quadratic form f(𝐱) on n real variables x1,,xn can always be written as 𝐱TM𝐱 where 𝐱 is the column vector with those variables, and M is a symmetric real matrix. Therefore, the matrix being positive definite means that f has a unique minimum (zero) when 𝐱 is zero, and is strictly positive for any other 𝐱.

More generally, a twice-differentiable real function f on n real variables has local minimum at arguments x1,,xn if its gradient is zero and its Hessian (the matrix of all second derivatives) is positive semi-definite at that point. Similar statements can be made for negative definite and semi-definite matrices.

Covariance

In statistics, the covariance matrix of a multivariate probability distribution is always positive semi-definite; and it is positive definite unless one variable is an exact linear function of the others. Conversely, every positive semi-definite matrix is the covariance matrix of some multivariate distribution.

Extension for non-Hermitian square matrices

The definition of positive definite can be generalized by designating any complex matrix M (e.g. real non-symmetric) as positive definite if (z*Mz)>0 for all non-zero complex vectors z, where (c) denotes the real part of a complex number c.[19] Only the Hermitian part 12(M+M*) determines whether the matrix is positive definite, and is assessed in the narrower sense above. Similarly, If x and M are real, we have xTMx>0 for all real nonzero vectors x if and only if the symmetric part 12(M+MT) is positive definite in the narrower sense. It is immediately clear that xTMx=xiMijxjis insensitive to transposition of M.

Consequently, a non-symmetric real matrix with only positive eigenvalues does not need to be positive definite. For example, the matrix M=[4914] has positive eigenvalues yet is not positive definite; in particular a negative value of xTMx is obtained with the choice x=[11] (which is the eigenvector associated with the negative eigenvalue of the symmetric part of M).

In summary, the distinguishing feature between the real and complex case is that, a bounded positive operator on a complex Hilbert space is necessarily Hermitian, or self adjoint. The general claim can be argued using the polarization identity. That is no longer true in the real case.

Applications

Heat conductivity matrix

Fourier's law of heat conduction, giving heat flux q in terms of the temperature gradient g=T is written for anisotropic media as q=Kg, in which K is the symmetric thermal conductivity matrix. The negative is inserted in Fourier's law to reflect the expectation that heat will always flow from hot to cold. In other words, since the temperature gradient g always points from cold to hot, the heat flux q is expected to have a negative inner product with g so that qTg<0. Substituting Fourier's law then gives this expectation as gTKg>0, implying that the conductivity matrix should be positive definite.

See also

Notes

  1. "Appendix C: Positive Semidefinite and Positive Definite Matrices". Parameter Estimation for Scientists and Engineers: 259–263. doi:10.1002/9780470173862.app3. 
  2. Stewart, J. (1976). "Positive definite functions and generalizations, an historical survey". Rocky Mountain J. Math. 6 (3): 409–434. doi:10.1216/RMJ-1976-6-3-409. 
  3. (Horn Johnson), p. 440, Theorem 7.2.7
  4. (Horn Johnson), p. 441, Theorem 7.2.10
  5. (Horn Johnson), p. 452, Theorem 7.3.11
  6. (Horn Johnson), p. 439, Theorem 7.2.6 with k=2
  7. (Horn Johnson), p. 431, Corollary 7.1.7
  8. (Horn Johnson), p. 485, Theorem 7.6.1
  9. (Horn Johnson), p. 438, Theorem 7.2.1
  10. (Horn Johnson), p. 495, Corollary 7.7.4(a)
  11. 11.0 11.1 (Horn Johnson), p. 430, Observation 7.1.3
  12. (Horn Johnson), p. 431, Observation 7.1.8
  13. (Horn Johnson), p. 430
  14. Wolkowicz, Henry; Styan, George P.H. (1980). "Bounds for Eigenvalues using Traces". Linear Algebra and its Applications (Elsevier) (29): 471-506. 
  15. (Horn Johnson), p. 479, Theorem 7.5.3
  16. (Horn Johnson), p. 509, Theorem 7.8.16
  17. Styan, G. P. (1973). "Hadamard products and multivariate statistical analysis". Linear Algebra and Its Applications 6: 217–240. , Corollary 3.6, p. 227
  18. Bhatia, Rajendra (2007). Positive Definite Matrices. Princeton, New Jersey: Princeton University Press. pp. 8. ISBN 978-0-691-12918-1. 
  19. Weisstein, Eric W. Positive Definite Matrix. From MathWorld--A Wolfram Web Resource. Accessed on 2012-07-26

References

de:Definitheit#Definitheit von Matrizen