Positive Definite vs. Positive Semidefinite
Positive definiteness and semidefiniteness describe the sign of the quadratic form $x\trans A x$ of a symmetric matrix, and they appear in optimization, stability, and statistics. A symmetric matrix $A$ is positive semidefinite if $x\trans A x \geq 0$ for every vector $x$, and positive definite if $x\trans A x > 0$ for every nonzero $x$. Equivalently, the eigenvalues of $A$ are nonnegative or positive.
positive definite ⊂ positive semidefinite
Definitions
Level:
Notation
Examples
-
The $3 \times 3$ identity matrix is positive definite, because $x\trans I x = \norm{x}^2 > 0$ for every nonzero $x$.
-
The matrix \(A = \begin{bmatrix} 4 & 2 \\ 2 & 3 \end{bmatrix}\) is positive definite, because it is symmetric and \(x\trans A x = 4 x_1^2 + 4 x_1 x_2 + 3 x_2^2 = (2 x_1 + x_2)^2 + 2 x_2^2,\) which is positive unless $x_2 = 0$ and $2 x_1 + x_2 = 0$, that is, unless $x = 0$.
Non-examplesThings that may be mistaken for examples of this term.
-
The matrix \(\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}\) is not positive definite, because $x = (2, -1)$ gives $x\trans A x = 0$. This is a consequence of $A$ having $0$ as an eigenvalue.
-
The matrix \(A = \begin{bmatrix} 1 & 1 \\ -1 & 1 \end{bmatrix}\) is not positive definite under the usual convention, because it is not symmetric, even though $x\trans A x = x_1^2 + x_2^2 > 0$ for every nonzero $x$. Authors who do not require symmetry call it positive definite.
Properties
- A symmetric matrix is positive definite if and only if all of its eigenvalues are positive.
- A symmetric matrix is positive definite if and only if all of its leading principal minors (the determinants of its upper-left $k \times k$ submatrices) are positive (Sylvester’s criterion).
- A symmetric matrix is positive definite if and only if it has a Cholesky decomposition $A = L L\trans$ with $L$ invertible.
- A positive definite matrix $A$ defines an inner product $\ip{x}{y} = x\trans A y$ on $\reals^n$.
Examples
-
The $3 \times 3$ identity matrix is positive semidefinite, because it is positive definite.
-
The matrix \(\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}\) is positive semidefinite, because $x\trans A x = (x_1 + 2 x_2)^2 \geq 0$.
Non-examplesThings that may be mistaken for examples of this term.
-
The matrix \(\begin{bmatrix} 1 & 1 \\ -1 & 1 \end{bmatrix}\) satisfies $x\trans A x = x_1^2 + x_2^2 > 0$ for every nonzero $x$, but it is not symmetric, so under the usual convention it is neither positive definite nor positive semidefinite. Authors who do not require symmetry call it positive definite.
Properties
- A symmetric matrix is positive semidefinite if and only if all of its eigenvalues are nonnegative.
- Every matrix of the form $B\trans B$ is positive semidefinite, because $x\trans B\trans B x = \norm{B x}^2 \geq 0$. Conversely, every positive semidefinite matrix can be written in this form.
- A positive semidefinite matrix is positive definite if and only if it is invertible.
- Sylvester’s criterion with $\geq$ does not test positive semidefiniteness: all leading principal minors of \(\begin{bmatrix} 0 & 0 \\ 0 & -1 \end{bmatrix}\) are $\geq 0$, but $x = (0, 1)$ gives $x\trans A x = -1$. All principal minors (not only the leading ones) must be nonnegative.
Examples
| Example | positive definite matrix | positive semidefinite | Why |
|---|---|---|---|
| The $3 \times 3$ identity matrix | ✓ | ✓ | positive definite matrix: The $3 \times 3$ identity matrix is positive definite, because $x\trans I x = \norm{x}^2 > 0$ for every nonzero $x$.
positive semidefinite: The $3 \times 3$ identity matrix is positive semidefinite, because it is positive definite.
|
| The matrix $[4, 2; 2, 3]$ | ✓ | ✓ | positive definite matrix: The matrix \(A = \begin{bmatrix} 4 & 2 \\ 2 & 3 \end{bmatrix}\) is positive definite, because it is symmetric and \(x\trans A x = 4 x_1^2 + 4 x_1 x_2 + 3 x_2^2 = (2 x_1 + x_2)^2 + 2 x_2^2,\) which is positive unless $x_2 = 0$ and $2 x_1 + x_2 = 0$, that is, unless $x = 0$.
|
| The matrix $[1, 2; 2, 4]$ | ✗ | ✓ | positive definite matrix: The matrix \(\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}\) is not positive definite, because $x = (2, -1)$ gives $x\trans A x = 0$. This is a consequence of $A$ having $0$ as an eigenvalue.
positive semidefinite: The matrix \(\begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix}\) is positive semidefinite, because $x\trans A x = (x_1 + 2 x_2)^2 \geq 0$.
|
Missing example: begin_bmatrix_1_2_2_3_end_bmatrix | |||
| The matrix $[1, 1; -1, 1]$ | ✗ | ✗ | The matrix \(\begin{bmatrix} 1 & 1 \\ -1 & 1 \end{bmatrix}\) satisfies $x\trans A x = x_1^2 + x_2^2 > 0$ for every nonzero $x$, but it is not symmetric, so under the usual convention it is neither positive definite nor positive semidefinite. Authors who do not require symmetry call it positive definite. |
Notes
- Negative definite and negative semidefinite matrices are defined the same way, with the inequalities reversed: $A$ is negative definite exactly when $-A$ is positive definite.
- A matrix that is neither positive nor negative semidefinite is indefinite.
- A positive definite function, as used for Lyapunov functions, is a different notion: a function with $V(0) = 0$ and $V(x) > 0$ for $x \neq 0$. The quadratic form $V(x) = x\trans A x$ is a positive definite function exactly when $A$ is a positive definite matrix.