# Definiteness of a matrix

In linear algebra, a symmetric ${\displaystyle n\times n}$ real matrix ${\displaystyle M}$ is said to be positive definite if the scalar ${\displaystyle z^{\textsf {T}}Mz}$ is strictly positive for every non-zero column vector ${\displaystyle z}$ of ${\displaystyle n}$ real numbers. Here ${\displaystyle z^{\textsf {T}}}$ denotes the transpose of ${\displaystyle z}$.[1] When interpreting ${\displaystyle Mz}$ as the output of an operator, ${\displaystyle M}$, that is acting on an input, ${\displaystyle 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 ${\displaystyle n\times n}$ Hermitian matrix ${\displaystyle M}$ is said to be positive definite if the scalar ${\displaystyle z^{*}Mz}$ is strictly positive for every non-zero column vector ${\displaystyle z}$ of ${\displaystyle n}$ complex numbers. Here ${\displaystyle z^{*}}$ denotes the conjugate transpose of ${\displaystyle z}$. Note that ${\displaystyle z^{*}Mz}$ is automatically real since ${\displaystyle M}$ is Hermitian.

Positive semi-definite matrices are defined similarly, except that the above scalars ${\displaystyle z^{\textsf {T}}Mz}$ or ${\displaystyle 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 ${\displaystyle M}$ is positive definite if and only if the bilinear form ${\displaystyle \langle z,w\rangle =z^{\textsf {T}}Mw}$ 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, ${\displaystyle x^{\textsf {T}}}$ is the transpose of ${\displaystyle x}$, ${\displaystyle x^{*}}$ is the conjugate transpose of ${\displaystyle x}$ and ${\displaystyle \mathbf {0} }$ denotes the n-dimensional zero-vector.

### Definitions for real matrices

A ${\displaystyle n\times n}$ symmetric real matrix ${\displaystyle M}$ is said to be positive definite if ${\displaystyle x^{\textsf {T}}Mx>0}$ for all non-zero ${\displaystyle x}$ in ${\displaystyle \mathbb {R} ^{n}}$. Formally,

${\displaystyle M{\text{ positive definite}}\quad \iff \quad x^{\textsf {T}}Mx>0{\text{ for all }}x\in \mathbb {R} ^{n}\setminus \mathbf {0} }$

A ${\displaystyle n\times n}$ symmetric real matrix ${\displaystyle M}$ is said to be positive semidefinite or non-negative definite if ${\displaystyle x^{\textsf {T}}Mx\geq 0}$ for all ${\displaystyle x}$ in ${\displaystyle \mathbb {R} ^{n}}$. Formally,

${\displaystyle M{\text{ positive semi-definite}}\quad \iff \quad x^{\textsf {T}}Mx\geq 0{\text{ for all }}x\in \mathbb {R} ^{n}}$

A ${\displaystyle n\times n}$ symmetric real matrix ${\displaystyle M}$ is said to be negative definite if ${\displaystyle x^{\textsf {T}}Mx<0}$ for all non-zero ${\displaystyle x}$ in ${\displaystyle \mathbb {R} ^{n}}$. Formally,

${\displaystyle M{\text{ negative definite}}\quad \iff \quad x^{\textsf {T}}Mx<0{\text{ for all }}x\in \mathbb {R} ^{n}\setminus \mathbf {0} }$

A ${\displaystyle n\times n}$ symmetric real matrix ${\displaystyle M}$ is said to be negative semidefinite or non-positive definite if ${\displaystyle x^{\textsf {T}}Mx\leq 0}$ for all ${\displaystyle x}$ in ${\displaystyle \mathbb {R} ^{n}}$. Formally,

${\displaystyle M{\text{ negative semi-definite}}\quad \iff \quad x^{\textsf {T}}Mx\leq 0{\text{ for all }}x\in \mathbb {R} ^{n}}$

A ${\displaystyle n\times 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 ${\displaystyle x^{*}Mx}$. Notice that this is always a real number for any Hermitian square matrix ${\displaystyle M}$.

A ${\displaystyle n\times n}$ Hermitian complex matrix ${\displaystyle M}$ is said to be positive definite if ${\displaystyle x^{*}Mx>0}$ for all non-zero ${\displaystyle x}$ in ${\displaystyle \mathbb {C} ^{n}}$. Formally,

${\displaystyle M{\text{ positive definite}}\quad \iff \quad x^{*}Mx>0{\text{ for all }}x\in \mathbb {C} ^{n}\setminus \mathbf {0} }$

A ${\displaystyle n\times n}$ Hermitian complex matrix ${\displaystyle M}$ is said to be positive semi-definite or non-negative definite if ${\displaystyle x^{*}Mx\geq 0}$ for all ${\displaystyle x}$ in ${\displaystyle \mathbb {C} ^{n}}$. Formally,

${\displaystyle M{\text{ positive semi-definite}}\quad \iff \quad x^{*}Mx\geq 0{\text{ for all }}x\in \mathbb {C} ^{n}}$

A ${\displaystyle n\times n}$ Hermitian complex matrix ${\displaystyle M}$ is said to be negative definite if ${\displaystyle x^{*}Mx<0}$ for all non-zero ${\displaystyle x}$ in ${\displaystyle \mathbb {C} ^{n}}$. Formally,

${\displaystyle M{\text{ negative definite}}\quad \iff \quad x^{*}Mx<0{\text{ for all }}x\in \mathbb {C} ^{n}\setminus \mathbf {0} }$

A ${\displaystyle n\times n}$ Hermitian complex matrix ${\displaystyle M}$ is said to be negative semi-definite or non-positive definite if ${\displaystyle x^{*}Mx\leq 0}$ for all ${\displaystyle x}$ in ${\displaystyle \mathbb {C} ^{n}}$. Formally,

${\displaystyle M{\text{ negative semi-definite}}\quad \iff \quad x^{*}Mx\leq 0{\text{ for all }}x\in \mathbb {C} ^{n}}$

A ${\displaystyle n\times 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 "${\displaystyle M}$ is positive definite if and only if ${\displaystyle z^{*}Mz}$ is real and positive for all non-zero complex column vectors ${\displaystyle z}$". This condition implies that ${\displaystyle M}$ is Hermitian (i.e. its transpose is equal to its conjugate). To see this, consider the matrices ${\displaystyle A={\tfrac {1}{2}}\left(M+M^{*}\right)}$ and ${\displaystyle B={\tfrac {1}{2i}}\left(M-M^{*}\right)}$, so that ${\displaystyle M=A+iB}$ and ${\displaystyle z^{*}Mz=z^{*}Az+iz^{*}Bz}$. The matrices ${\displaystyle A}$ and ${\displaystyle B}$ are Hermitian, therefore ${\displaystyle z^{*}Az}$ and ${\displaystyle z^{*}Bz}$ are individually real. If ${\displaystyle z^{*}Mz}$ is real, then ${\displaystyle z^{*}Bz}$ must be zero for all ${\displaystyle z}$. Then ${\displaystyle B}$ is the zero matrix and ${\displaystyle M=A}$, proving that ${\displaystyle M}$ is Hermitian.

By this definition, a positive definite real matrix ${\displaystyle M}$ is Hermitian, hence symmetric; and ${\displaystyle z^{\textsf {T}}Mz}$ is positive for all non-zero real column vectors ${\displaystyle z}$. However the last condition alone is not sufficient for ${\displaystyle M}$ to be positive definite. For example, if

${\displaystyle M={\begin{bmatrix}1&1\\-1&1\end{bmatrix}},}$

then for any real vector ${\displaystyle z}$ with entries ${\displaystyle a}$ and ${\displaystyle b}$ we have ${\displaystyle z^{\textsf {T}}Mz=(a-b)a+(a+b)b=a^{2}+b^{2}}$, which is always positive if ${\displaystyle z}$ is not zero. However, if ${\displaystyle z}$ is the complex vector with entries ${\displaystyle 1}$ and ${\displaystyle i}$, one gets

${\displaystyle z^{*}Mz=[1,-i]M[1,i]^{\textsf {T}}=[1+i,1-i][1,i]^{\textsf {T}}=2+2i}$

which is not real. Therefore, ${\displaystyle M}$ is not positive definite.

On the other hand, for a symmetric real matrix ${\displaystyle M}$, the condition "${\displaystyle z^{\textsf {T}}Mz>0}$ for all nonzero real vectors ${\displaystyle z}$" does imply that ${\displaystyle M}$ is positive definite in the complex sense.

### Notation

If a Hermitian matrix ${\displaystyle M}$ is positive semi-definite, one sometimes writes ${\displaystyle M\succeq 0}$ and if ${\displaystyle M}$ is positive definite one writes ${\displaystyle M\succ 0}$. To denote that ${\displaystyle M}$ is negative semi-definite one writes ${\displaystyle M\preceq 0}$ and to denote that ${\displaystyle M}$ is negative definite one writes ${\displaystyle M\prec 0}$.

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

A common alternative notation is ${\displaystyle M\geq 0}$, ${\displaystyle M>0}$, ${\displaystyle M\leq 0}$ and ${\displaystyle 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 ${\displaystyle I={\begin{bmatrix}1&0\\0&1\end{bmatrix}}}$ 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
${\displaystyle z^{\textsf {T}}Iz={\begin{bmatrix}a&b\end{bmatrix}}{\begin{bmatrix}1&0\\0&1\end{bmatrix}}{\begin{bmatrix}a\\b\end{bmatrix}}=a^{2}+b^{2}}$.

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

${\displaystyle z^{*}Iz={\begin{bmatrix}{\overline {a}}&{\overline {b}}\end{bmatrix}}{\begin{bmatrix}1&0\\0&1\end{bmatrix}}{\begin{bmatrix}a\\b\end{bmatrix}}={\overline {a}}a+{\overline {b}}b=|a|^{2}+|b|^{2}}$.
Either way, the result is positive since ${\displaystyle z}$ is not the zero vector (that is, at least one of ${\displaystyle a}$ and ${\displaystyle b}$ is not zero).
• The real symmetric matrix
${\displaystyle M={\begin{bmatrix}2&-1&0\\-1&2&-1\\0&-1&2\end{bmatrix}}}$

is positive definite since for any non-zero column vector z with entries a, b and c, we have

{\displaystyle {\begin{aligned}z^{\textsf {T}}Mz=\left(z^{\textsf {T}}M\right)z&={\begin{bmatrix}(2a-b)&(-a+2b-c)&(-b+2c)\end{bmatrix}}{\begin{bmatrix}a\\b\\c\end{bmatrix}}\\&=(2a-b)a+(-a+2b-c)b+(-b+2c)c\\&=2a^{2}-ba-ab+2b^{2}-cb-bc+2c^{2}\\&=2a^{2}-2ab+2b^{2}-2bc+2c^{2}\\&=a^{2}+a^{2}-2ab+b^{2}+b^{2}-2bc+c^{2}+c^{2}\\&=a^{2}+(a-b)^{2}+(b-c)^{2}+c^{2}\end{aligned}}}
This result is a sum of squares, and therefore non-negative; and is zero only if ${\displaystyle a=b=c=0}$, that is, when z is the zero vector.
• For any real invertible matrix ${\displaystyle A}$, the product ${\displaystyle A^{\textsf {T}}A}$ is a positive definite matrix. A simple proof is that for any non-zero vector ${\displaystyle z}$, the condition ${\displaystyle z^{\textsf {T}}A^{\textsf {T}}Az=(Az)^{\textsf {T}}(Az)=\|Az\|^{2}>0,}$ since the invertibility of matrix ${\displaystyle A}$ means that ${\displaystyle Az\neq 0.}$
• The example ${\displaystyle 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
${\displaystyle N={\begin{bmatrix}1&2\\2&1\end{bmatrix}},}$
for which ${\displaystyle {\begin{bmatrix}-1&1\end{bmatrix}}N{\begin{bmatrix}-1&1\end{bmatrix}}^{\textsf {T}}=-2<0.}$

## Eigenvalues

Let ${\displaystyle M}$ be an ${\displaystyle n\times n}$ Hermitian matrix.

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

Let ${\displaystyle P^{-1}DP}$ be an eigendecomposition of ${\displaystyle M}$, where ${\displaystyle P}$ is a unitary complex matrix whose rows comprise an orthonormal basis of eigenvectors of ${\displaystyle M}$, and ${\displaystyle D}$ is a real diagonal matrix whose main diagonal contains the corresponding eigenvalues. The matrix ${\displaystyle M}$ may be regarded as a diagonal matrix ${\displaystyle D}$ that has been re-expressed in coordinates of the basis ${\displaystyle P}$. In particular, the one-to-one change of variable ${\displaystyle y=Pz}$ shows that ${\displaystyle z^{*}Mz}$ is real and positive for any complex vector ${\displaystyle z}$ if and only if ${\displaystyle y^{*}Dy}$ is real and positive for any ${\displaystyle y}$; in other words, if ${\displaystyle D}$ is positive definite. For a diagonal matrix, this is true only if each element of the main diagonal—that is, every eigenvalue of ${\displaystyle 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 ${\displaystyle M}$ is available.

## Connections

A general purely quadratic real function ${\displaystyle f(\mathbf {x} )}$ on ${\displaystyle n}$ real variables ${\displaystyle x_{1},\ldots ,x_{n}}$ can always be written as ${\displaystyle \mathbf {x} ^{\textsf {T}}M\mathbf {x} }$ where ${\displaystyle \mathbf {x} }$ is the column vector with those variables, and ${\displaystyle M}$ is a symmetric real matrix. Therefore, the matrix being positive definite means that ${\displaystyle f}$ has a unique minimum (zero) when ${\displaystyle \mathbf {x} }$ is zero, and is strictly positive for any other ${\displaystyle \mathbf {x} }$.

More generally, a twice-differentiable real function ${\displaystyle f}$ on ${\displaystyle n}$ real variables has local minimum at arguments ${\displaystyle x_{1},\ldots ,x_{n}}$ 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.

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.

## Characterizations

Let ${\displaystyle M}$ be an ${\displaystyle n\times n}$ Hermitian matrix. The following properties are equivalent to ${\displaystyle M}$ being positive definite:

The associated sesquilinear form is an inner product
The sesquilinear form defined by ${\displaystyle M}$ is the function ${\displaystyle \langle \cdot ,\cdot \rangle }$ from ${\displaystyle \mathbb {C} ^{n}\times \mathbb {C} ^{n}}$ to ${\displaystyle \mathbb {C} ^{n}}$ such that ${\displaystyle \langle x,y\rangle :=y^{*}Mx}$ for all ${\displaystyle x}$ and ${\displaystyle y}$ in ${\displaystyle \mathbb {C} ^{n}}$, where ${\displaystyle y^{*}}$ is the conjugate transpose of ${\displaystyle y}$. For any complex matrix ${\displaystyle M}$, this form is linear in ${\displaystyle x}$ and semilinear in ${\displaystyle y}$. Therefore, the form is an inner product on ${\displaystyle \mathbb {C} ^{n}}$ if and only if ${\displaystyle \langle z,z\rangle }$ is real and positive for all nonzero ${\displaystyle z}$; that is if and only if ${\displaystyle M}$ is positive definite. (In fact, every inner product on ${\displaystyle \mathbb {C} ^{n}}$ arises in this fashion from a Hermitian positive definite matrix.)
It is the Gram matrix of a set of linearly independent vectors
Let ${\displaystyle x_{1},\ldots ,x_{n}}$ be a list of ${\displaystyle n}$ linearly independent vectors of some complex vector space with an inner product ${\displaystyle \langle \cdot ,\cdot \rangle }$. It can be verified that the Gram matrix ${\displaystyle M}$ of those vectors, defined by ${\displaystyle M_{ij}=\langle x_{i},x_{j}\rangle }$, is always positive definite. Conversely, if ${\displaystyle M}$ is positive definite, it has an eigendecomposition ${\displaystyle P^{-1}DP}$ where ${\displaystyle P}$ is unitary, ${\displaystyle D}$ diagonal, and all diagonal elements ${\displaystyle D_{ii}=\lambda _{i}}$ of ${\displaystyle D}$ are real and positive. Let ${\displaystyle E}$ be the real diagonal matrix with entries ${\displaystyle E_{ii}={\sqrt {\lambda _{i}}}}$ so ${\displaystyle E^{2}=D}$; then ${\displaystyle P^{-1}DP=P^{*}DP=P^{*}EEP=(EP)^{*}EP}$. Now we let ${\displaystyle x_{1},\ldots ,x_{n}}$ be the columns of ${\displaystyle EP}$. These vectors are linearly independent, and by the above ${\displaystyle M}$ is their Gram matrix, under the standard inner product of ${\displaystyle \mathbb {C} ^{n}}$, namely ${\displaystyle \langle x_{i},x_{j}\rangle =x_{i}^{\ast }x_{j}}$.
Its leading principal minors are all positive
The kth leading principal minor of a matrix ${\displaystyle M}$ is the determinant of its upper-left ${\displaystyle k\times 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 ${\displaystyle 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 ${\displaystyle k}$ of the triangular matrix is obtained.

The (purely) quadratic form associated with a real ${\displaystyle n\times n}$ matrix ${\displaystyle M}$ is the function ${\displaystyle Q:\mathbb {R} ^{n}\mapsto \mathbb {R} }$ such that ${\displaystyle Q(x)=x^{\textsf {T}}Mx}$ for all ${\displaystyle x}$. ${\displaystyle M}$ can be assumed symmetric by replacing it with ${\displaystyle {\tfrac {1}{2}}\left(M+M^{\textsf {T}}\right)}$.

A symmetric matrix ${\displaystyle M}$ is positive definite if and only if its quadratic form is a strictly convex function.

More generally, any quadratic function from ${\displaystyle \mathbb {R} ^{n}}$ to ${\displaystyle \mathbb {R} }$ can be written as ${\displaystyle x^{\textsf {T}}Mx+x^{\textsf {T}}b+c}$ where ${\displaystyle M}$ is a symmetric ${\displaystyle n\times n}$ matrix, ${\displaystyle b}$ is a real ${\displaystyle n}$-vector, and ${\displaystyle c}$ a real constant. This quadratic function is strictly convex, and hence has a unique finite global minimum, if and only if ${\displaystyle 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 ${\displaystyle M}$ be a symmetric and ${\displaystyle N}$ a symmetric and positive definite matrix. Write the generalized eigenvalue equation as ${\displaystyle (M-\lambda N)x=0}$ where we impose that ${\displaystyle x}$ be normalized, i.e. ${\displaystyle x^{\textsf {T}}Nx=1}$. Now we use Cholesky decomposition to write the inverse of ${\displaystyle N}$ as ${\displaystyle Q^{\textsf {T}}Q}$. Multiplying by ${\displaystyle Q}$ and letting ${\displaystyle x=Q^{\textsf {T}}y}$, we get ${\displaystyle Q(M-\lambda N)Q^{\textsf {T}}y=0}$, which can be rewritten as ${\displaystyle \left(QMQ^{\textsf {T}}\right)y=\lambda y}$ where ${\displaystyle y^{\textsf {T}}y=1}$. Manipulation now yields ${\displaystyle MX=NX\Lambda }$ where ${\displaystyle X}$ is a matrix having as columns the generalized eigenvectors and ${\displaystyle \Lambda }$ is a diagonal matrix of the generalized eigenvalues. Now premultiplication with ${\displaystyle X^{\textsf {T}}}$ gives the final result: ${\displaystyle X^{\textsf {T}}MX=\Lambda }$ and ${\displaystyle X^{\textsf {T}}NX=I}$, but note that this is no longer an orthogonal diagonalization with respect to the inner product where ${\displaystyle y^{\textsf {T}}y=1}$. In fact, we diagonalized ${\displaystyle M}$ with respect to the inner product induced by ${\displaystyle N}$.

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.[3]

## Properties

### Induced partial ordering

For arbitrary square matrices ${\displaystyle M}$, ${\displaystyle N}$ we write ${\displaystyle M\geq N}$ if ${\displaystyle M-N\geq 0}$ i.e., ${\displaystyle 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 ${\displaystyle 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.[4] If ${\displaystyle M\geq N>0}$ then ${\displaystyle N^{-1}\geq M^{-1}>0}$.[5] Moreover, by the min-max theorem, the kth largest eigenvalue of ${\displaystyle M}$ is greater than the kth largest eigenvalue of ${\displaystyle N}$.

### Scaling

If ${\displaystyle M}$ is positive definite and ${\displaystyle r>0}$ is a real number, then ${\displaystyle rM}$ is positive definite.[6]

If ${\displaystyle M}$ and ${\displaystyle N}$ are positive definite, then the sum ${\displaystyle M+N}$ is also positive definite.[6]

### Multiplication

• If ${\displaystyle M}$ and ${\displaystyle N}$ are positive definite, then the products ${\displaystyle MNM}$ and ${\displaystyle NMN}$ are also positive definite. If ${\displaystyle MN=NM}$, then ${\displaystyle MN}$ is also positive definite.
• If ${\displaystyle M}$ is positive semidefinite, then ${\displaystyle Q^{\textsf {T}}MQ}$ is positive semidefinite. If ${\displaystyle M}$ is positive definite and ${\displaystyle Q}$ has full rank, then ${\displaystyle Q^{\textsf {T}}MQ}$ is positive definite.[7]

### Cholesky decomposition

For any matrix ${\displaystyle A}$, the matrix ${\displaystyle A^{*}A}$ is positive semidefinite, and ${\displaystyle \operatorname {rank} (A)=\operatorname {rank} (A^{*}A)}$. Conversely, any Hermitian positive semi-definite matrix ${\displaystyle M}$ can be written as ${\displaystyle M=LL^{*}}$, where ${\displaystyle L}$ is lower triangular; this is the Cholesky decomposition. If ${\displaystyle M}$ is not positive definite, then some of the diagonal elements of ${\displaystyle L}$ may be zero.

A hermitian matrix ${\displaystyle M}$ is positive definite if and only if it has a unique Cholesky decomposition, i.e. the matrix ${\displaystyle M}$ is positive definite if and only if there exists a unique lower triangular matrix ${\displaystyle L}$, with real and strictly positive diagonal elements, such that ${\displaystyle M=LL^{*}}$.

### Square root

A matrix ${\displaystyle M}$ is positive semi-definite if and only if there is a positive semi-definite matrix ${\displaystyle B}$ with ${\displaystyle B^{2}=M}$. This matrix ${\displaystyle B}$ is unique,[8] is called the square root of ${\displaystyle M}$, and is denoted with ${\displaystyle B=M^{\frac {1}{2}}}$ (the square root ${\displaystyle B}$ is not to be confused with the matrix ${\displaystyle L}$ in the Cholesky factorization ${\displaystyle M=LL^{*}}$, which is also sometimes called the square root of ${\displaystyle M}$).

If ${\displaystyle M>N>0}$ then ${\displaystyle M^{\frac {1}{2}}>N^{\frac {1}{2}}>0}$.

### Submatrices

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

### Trace

The diagonal entries ${\displaystyle m_{ii}}$ of a positive definite matrix are real and non-negative. As a consequence the trace, ${\displaystyle \operatorname {tr} (M)\geq 0}$. Furthermore,[9] since every principal sub-matrix (in particular, 2-by-2) is positive definite,

${\displaystyle \left|m_{ij}\right|\leq {\sqrt {m_{ii}m_{jj}}}\leq {\frac {m_{ii}+m_{jj}}{2}}\quad \forall i,j}$

and thus

${\displaystyle \max _{i,j}\left|m_{ij}\right|\leq \max _{i}\left|m_{ii}\right|}$

If ${\displaystyle M,N\geq 0}$, although ${\displaystyle MN}$ is not necessary positive semidefinite, the Hadamard product ${\displaystyle M\circ N\geq 0}$ (this result is often called the Schur product theorem).[10]

Regarding the Hadamard product of two positive semidefinite matrices ${\displaystyle M=(m_{ij})\geq 0}$, ${\displaystyle N\geq 0}$, there are two notable inequalities:

• Oppenheim's inequality: ${\displaystyle \det(M\circ N)\geq \det(N)\prod \nolimits _{i}m_{ii}.}$[11]
• ${\displaystyle \det(M\circ N)\geq \det(M)\det(N)}$.[12]

### Kronecker product

If ${\displaystyle M,N\geq 0}$, although ${\displaystyle MN}$ is not necessary positive semidefinite, the Kronecker product ${\displaystyle M\otimes N\geq 0}$.

### Frobenius product

If ${\displaystyle M,N\geq 0}$, although ${\displaystyle MN}$ is not necessary positive semidefinite, the Frobenius product ${\displaystyle M:N\geq 0}$ (Lancaster–Tismenetsky, The Theory of Matrices, p. 218).

### Convexity

The set of positive semidefinite symmetric matrices is convex. That is, if ${\displaystyle M}$ and ${\displaystyle N}$ are positive semidefinite, then for any ${\displaystyle \alpha }$ between 0 and 1, ${\displaystyle \alpha M+(1-\alpha )N}$ is also positive semidefinite. For any vector ${\displaystyle x}$:

${\displaystyle x^{\textsf {T}}\left(\alpha M+(1-\alpha )N\right)x=\alpha x^{\textsf {T}}Mx+(1-\alpha )x^{\textsf {T}}Nx\geq 0.}$

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

### Relation with cosine

The positive-definiteness of a matrix ${\displaystyle A}$ expresses that the angle ${\displaystyle \theta }$ between any vector ${\displaystyle x}$ and its image ${\displaystyle Ax}$ is always ${\displaystyle -\pi /2<\theta <+\pi /2}$:

${\displaystyle \cos(\theta )={\frac {x^{T}Ax}{\left\Vert x\right\Vert \left\Vert Ax\right\Vert }}={\frac {}{\left\Vert x\right\Vert \left\Vert Ax\right\Vert }},\theta =\theta (x,Ax)={\widehat {x,Ax}}=the\ angle\ between\ x\ and\ Ax}$

### Further properties

1. If ${\displaystyle M}$ is a symmetric Toeplitz matrix, i.e. the entries ${\displaystyle m_{ij}}$ are given as a function of their absolute index differences: ${\displaystyle m_{ij}=h(|i-j|)}$, and the strict inequality

${\displaystyle \sum \nolimits _{j\neq 0}\left|h(j)\right|

holds, then ${\displaystyle M}$ is strictly positive definite.
2. Let ${\displaystyle M>0}$ and ${\displaystyle N}$ Hermitian. If ${\displaystyle MN+NM\geq 0}$ (resp., ${\displaystyle MN+NM>0}$) then ${\displaystyle N\geq 0}$ (resp., ${\displaystyle N>0}$).[13]
3. If ${\displaystyle M>0}$ is real, then there is a ${\displaystyle \delta >0}$ such that ${\displaystyle M>\delta I}$, where ${\displaystyle I}$ is the identity matrix.
4. If ${\displaystyle M_{k}}$ denotes the leading ${\displaystyle k\times k}$ minor, ${\displaystyle \det \left(M_{k}\right)/\det \left(M_{k-1}\right)}$ is the kth pivot during LU decomposition.
5. A matrix is negative definite if its k-th order leading principal minor is negative when ${\displaystyle k}$ is odd, and positive when ${\displaystyle k}$ is even.
6. A matrix ${\displaystyle 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.

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 ${\displaystyle 2n\times 2n}$ matrix may also be defined by blocks:

${\displaystyle M={\begin{bmatrix}A&B\\C&D\end{bmatrix}}}$

where each block is ${\displaystyle n\times n}$. By applying the positivity condition, it immediately follows that ${\displaystyle A}$ and ${\displaystyle D}$ are hermitian, and ${\displaystyle C=B^{*}}$.

We have that ${\displaystyle z^{*}Mz\geq 0}$ for all complex ${\displaystyle z}$, and in particular for ${\displaystyle z=[v,0]^{\textsf {T}}}$. Then

${\displaystyle {\begin{bmatrix}v^{*}&0\end{bmatrix}}{\begin{bmatrix}A&B\\B^{*}&D\end{bmatrix}}{\begin{bmatrix}v\\0\end{bmatrix}}=v^{*}Av\geq 0.}$

A similar argument can be applied to ${\displaystyle D}$, and thus we conclude that both ${\displaystyle A}$ and ${\displaystyle 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.

## Extension for non-Hermitian square matrices

The definition of positive definite can be generalized by designating any complex matrix ${\displaystyle M}$ (e.g. real non-symmetric) as positive definite if ${\displaystyle \Re \left(z^{*}Mz\right)>0}$ for all non-zero complex vectors ${\displaystyle z}$, where ${\displaystyle \Re (c)}$ denotes the real part of a complex number ${\displaystyle c}$.[14] Only the Hermitian part ${\displaystyle {\tfrac {1}{2}}\left(M+M^{*}\right)}$ determines whether the matrix is positive definite, and is assessed in the narrower sense above. Similarly, If ${\displaystyle x}$ and ${\displaystyle M}$ are real, we have ${\displaystyle x^{\textsf {T}}Mx>0}$ for all real nonzero vectors ${\displaystyle x}$ if and only if the symmetric part ${\displaystyle {\tfrac {1}{2}}\left(M+M^{\textsf {T}}\right)}$ is positive definite in the narrower sense. It is immediately clear that ${\displaystyle x^{\textsf {T}}Mx=x_{i}M_{ij}x_{j}}$is 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 ${\displaystyle M=\left[{\begin{smallmatrix}4&9\\1&4\end{smallmatrix}}\right]}$ has positive eigenvalues yet is not positive definite; in particular a negative value of ${\displaystyle x^{\textsf {T}}Mx}$ is obtained with the choice ${\displaystyle x=\left[{\begin{smallmatrix}-1\\1\end{smallmatrix}}\right]}$ (which is the eigenvector associated with the negative eigenvalue of the symmetric part of ${\displaystyle 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 ${\displaystyle q}$ in terms of the temperature gradient ${\displaystyle g=\nabla T}$ is written for anisotropic media as ${\displaystyle q=-Kg}$, in which ${\displaystyle 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 ${\displaystyle g}$ always points from cold to hot, the heat flux ${\displaystyle q}$ is expected to have a negative inner product with ${\displaystyle g}$ so that ${\displaystyle q^{\textsf {T}}g<0}$. Substituting Fourier's law then gives this expectation as ${\displaystyle g^{\textsf {T}}Kg>0}$, implying that the conductivity matrix should be positive definite.

## 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 (1985), p. 218 ff.
4. Horn & Johnson (1985), p. 397
5. Horn & Johnson (1985), Corollary 7.7.4(a)
6. Horn & Johnson (1985), Observation 7.1.3
7. Horn, Roger A.; Johnson, Charles R. (2013). "7.1 Definitions and Properties". Matrix Analysis (2nd ed.). Cambridge University Press. p. 431. ISBN 978-0-521-83940-2. "Observation 7.1.8 Let ${\displaystyle A\in M_{n}}$ be Hermitian and let ${\displaystyle C\in M_{n,m}}$:
• Suppose that A is positive semidefinite. Then ${\displaystyle C^{*}AC}$ is positive semidefinite, ${\displaystyle \operatorname {nullspace} C^{*}AC)=\operatorname {nullspace} (AC)}$, and ${\displaystyle \operatorname {rank} (C^{*}AC)=\operatorname {rank} (AC)^{*}}$
• Suppose that A is positive definite. Then ${\displaystyle \operatorname {rank} (C^{*}AC)=\operatorname {rank} (C)}$, and ${\displaystyle C^{*}AC}$ is positive definite if and only if rank(C) = m"
8. Horn & Johnson (1985), Theorem 7.2.6 with ${\displaystyle k=2}$
9. Horn & Johnson (1985), p. 398
10. Horn & Johnson (1985), Theorem 7.5.3
11. Horn & Johnson (1985), Theorem 7.8.6
12. Styan (1973)
13. Bhatia, Rajendra (2007). Positive Definite Matrices. Princeton, New Jersey: Princeton University Press. p. 8. ISBN 978-0-691-12918-1.
14. Weisstein, Eric W. Positive Definite Matrix. From MathWorld--A Wolfram Web Resource. Accessed on 2012-07-26