For AI agents: use /llms.txt for the Nakafa content index.
Imagine we have a bowl that always faces upward. No matter from which direction we throw a ball into it, the ball will always roll to the lowest point. Positive definite matrices have a property similar to this bowl in mathematical space.
A symmetric matrix A∈Rn×n or Hermitian matrix A∈Cn×n is called if:
positive semidefinite
A matrix is called positive definite if a stronger condition is satisfied:
Conversely, a matrix is called negative semidefinite if −A is positive semidefinite, and negative definite if −A is positive definite. A matrix that is neither positive nor negative semidefinite is called indefinite.
Why is this concept important? Let's look at it from an interesting geometric perspective.
If A is a positive definite matrix, then the set:
forms an ellipsoid in n-dimensional space centered at the origin. This ellipsoid shape provides a visual representation of how the matrix "stretches" space in various directions.
Specifically, if A=r21I where I is the identity matrix, then E becomes a sphere with radius r.
One simple but important property of positive definite matrices is that all their diagonal elements must be positive.
If A is a positive definite matrix, then all diagonal elements aii>0 for i=1,2,…,n.
Why is this so? Because if we take the standard basis vector ei that has component 1 at position i and 0 elsewhere, then:
However, this condition is not sufficient to guarantee positive definiteness. We can have a matrix with all positive diagonal elements but still not be positive definite.
The most elegant way to determine positive definiteness is through eigenvalues. Let's look at this very useful criterion.
A symmetric matrix A∈Rn×n or Hermitian matrix A∈Cn×n is positive definite if and only if all its eigenvalues are positive:
For positive semidefinite, all eigenvalues must be non-negative (λi≥0).
Why is this true? Because for symmetric or Hermitian matrices, we can perform orthogonal diagonalization. If A=QΛQT where Λ is a diagonal matrix containing eigenvalues, then:
where y=QTx. This expression is positive for all x=0 if and only if all λi>0.
There's another practical way to check positive definiteness without computing eigenvalues. This method is called the leading principal minor criteria or Hauptminorenkriterium.
Let A∈Rn×n be a symmetric matrix. For k=1,2,…,n, define the k-th leading principal minor as:
This is the upper-left submatrix of size k×k from matrix A. The determinant of Ak is called the k-th leading principal minor.
A symmetric matrix A is positive definite if and only if all its leading principal minors are positive:
It's important to note that this leading principal minor criterion only detects positive definiteness, not positive semidefiniteness.
Let's look at some examples to better understand these concepts.
Consider the matrix A=(1554). This matrix has eigenvalues approximately λ1≈7.7202 and λ2≈−2.7202.
Since there is a negative eigenvalue, this matrix is indefinite. Even though its diagonal elements (1 and 4) are both positive, this doesn't guarantee positive definiteness.
Now consider the matrix A=(5114). This matrix has eigenvalues λ1≈5.6180 and λ2≈3.3820. Both eigenvalues are positive, so this matrix is positive definite.
We can also verify this using the leading principal minor criteria:
Since all leading principal minors are positive, this matrix is positive definite.
From the previous example, the inverse of the positive definite matrix is:
This matrix has eigenvalues approximately λ1≈0.17800 and λ2≈0.29569. Both are positive, so A−1 is also positive definite.
One important result in linear algebra is the property of the matrix ATA for rectangular matrices.
If A∈Rm×n with m≥n, then the matrix ATA∈Rn×n is positive semidefinite. This matrix becomes positive definite if and only if A has full rank (rank n).
Why is this so? Because for any vector x∈Rn:
This expression equals zero only if Ax=0. If A has full rank, then Ax=0 only for x=0, so ATA is positive definite.
A very useful concept in practice is the ability to "shift" the spectrum of a matrix.
If A∈Rn×n is a symmetric matrix or A∈Cn×n is a Hermitian matrix, and t is a real number smaller than all eigenvalues of A, then the matrix:
This provides a practical way to make a matrix positive definite by shifting its eigenvalues. If we know the lower bound of the smallest eigenvalue, we can shift the spectrum so that all eigenvalues become positive.
Positive definite matrices play a central role in optimization, numerical analysis, and machine learning due to their geometric properties that guarantee the existence of a unique global minimum.