An n × n real symmetric matrix M is positive definite if zTMz > 0 for all non-zero vectors z with real entries (
), where zT denotes the transpose of z.
For complex matrices, this definition becomes: a Hermitian matrix M is positive definite if z†Mz > 0 for all non-zero complex vectors z, where z† denotes the conjugate transpose of z. The quantity z†Mz is always real because M is a Hermitian matrix. For this reason, positive-definite matrices are often defined to be Hermitian matrices satisfying z†Mz > 0 for non-zero z. The section Non-Hermitian matrices discusses the consequences of dropping the requirement that M be Hermitian.
The matrix
is positive definite. For a vector with entries
the quadratic form is
when the entries z0, z1 are real and at least one of them nonzero, this is positive.
The matrix
is not positive definite. When
the quadratic form at z is then
Another example of positive definite matrix is given by
It is positive definite since for any non-zero vector
, we have
For a huge class of examples, consider that in Statistics positive definite matrices appears as covariance matrices. In fact all positive definite matrices are a covariance matrix for some probability distribution.
Let M be an n × n Hermitian matrix. The following properties are equivalent to M being positive definite:
1. All eigenvalues λi of M are positive. Recall that any Hermitian M, by the spectral theorem, may be regarded as a real diagonal matrix D that has been re-expressed in some new coordinate system (i.e., M = P − 1DP for some unitary matrix P whose rows are orthonormal eigenvectors of M, forming a basis). So this characterization means that M is positive definite if and only if the diagonal elements of D (the eigenvalues) are all positive. In other words, in the basis consisting of the eigenvectors of M, the action of M is component-wise multiplication with a (fixed) element in Cn with positive entries[clarification needed].
defines an inner product on Cn. (In fact, every inner product on Cn arises in this fashion from a Hermitian positive definite matrix.)
for some k. That is, M satisfies:
The vectors xi may optionally be restricted to fall in Cn. In other words, M is of the form A*A where A is not necessarily square but must be injective in general.
In other words, all of the leading principal minors are positive. For positive semidefinite matrices, all principal minors have to be non-negative. The leading principal minors alone do not imply positive semidefiniteness, as can be seen from the example
where L * is the conjugate transpose of L. This factorization is called Cholesky decomposition.
For real symmetric matrices, these properties can be simplified by replacing
with
, and "conjugate transpose" with "transpose."
Echoing condition 2 above, one can also formulate positive-definiteness in terms of quadratic forms. Let K be the field R or C, and V be a vector space over K. A Hermitian form
is a bilinear map such that B(x, y) is always the complex conjugate of B(y, x). Such a function B is called positive definite if B(x, x) > 0 for every nonzero x in V.
The n × n Hermitian matrix M is said to be negative-definite if
for all non-zero
(or, all non-zero
for the real matrix).
It is called positive-semidefinite (or sometimes nonnegative-definite) if
for all
(or, all
for the real matrix).
It is called negative-semidefinite if
for all
(or, all
for the real matrix).
A matrix M is positive-semidefinite if and only if it arises as the Gram matrix of some set of vectors. In contrast to the positive-definite case, these vectors need not be linearly independent.
For any matrix A, the matrix A*A is positive semidefinite, and rank(A) = rank(A*A). Conversely, any positive semidefinite matrix M can be written as M = A*A; this is the Cholesky decomposition.
A Hermitian matrix which is neither positive- nor negative-semidefinite is called indefinite.
A matrix is negative definite if all kth order leading principal minors are negative if k is odd and positive if k is even.
A matrix is negative-definite, negative-semidefinite, or positive-semidefinite if and only if all of its eigenvalues are negative, non-positive, or non-negative, respectively.
If M is positive-semidefinite, one sometimes writes
and if M is positive-definite one writes M > 0.[1]The notion comes from functional analysis where positive definite matrices define positive operators.
For arbitrary square matrices M,N we write
if
, i.e. M − N 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.
Every positive definite matrix is invertible and its inverse is also positive definite.[2] If
then
.[3]
If M and N are positive definite, then the sum M + N[4] and the products MNM and NMN are also positive definite. If MN = NM, then MN is also positive definite.
and thus
[5]
(Here
denotes Kronecker product.)
[8]
(MN + NM > 0) then
( N > 0. )
are real matrices then
where I is the identity matrix.
A real matrix M may have the property that xTMx > 0 for all nonzero real vectors x without being symmetric. The matrix