Matrix Size:
2
Matrix A
Advertisement Slot

What is a Positive Definite Matrix?

A real symmetric matrix \(A\) is positive definite if its corresponding quadratic form is strictly positive for any non-zero vector \(x\):

Quadratic Form Definition & Sylvester's Criterion:

\(x^T A x > 0 \quad \forall x \neq \mathbf{0}\)

\(\Delta_k = \det(A_{1:k, 1:k}) > 0 \quad \text{for } k = 1, 2, \dots, n\)

All leading principal minors (top-left submatrices) must have strictly positive determinants.

Why Positive Definite Matrices are Crucial

  • Convex Optimization: In machine learning, a quadratic loss function \(f(x) = \frac{1}{2} x^T A x - b^T x\) has a unique global minimum if and only if the Hessian matrix \(A\) is positive definite.
  • Covariance in Statistics: Valid covariance matrices for random variables with non-zero variance are strictly positive definite.
  • Cholesky Decomposition: Only positive definite matrices allow efficient \(A = L L^T\) factorization, speeding up linear solvers and Gaussian processes.

Solved Examples: Positive Definite vs. Indefinite

Solved Example 1: Positive Definite Matrix (Verdict: YES)

Test if \(A = \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix}\) is positive definite:

Step 1: Check symmetry: \(A = A^T\) ✓

Step 2: Check leading principal minors:

  • \(\Delta_1 = \det\begin{bmatrix} 2 \end{bmatrix} = 2 > 0\) ✓
  • \(\Delta_2 = \det\begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} = (2)(2) - (-1)(-1) = 4 - 1 = 3 > 0\) ✓

Both minors are strictly positive.

Verdict: YES — Matrix is positive definite.

Solved Example 2: Indefinite Saddle Matrix (Verdict: NO)

Test if \(B = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix}\) is positive definite:

Step 1: Check symmetry: \(B = B^T\) ✓

Step 2: Check leading principal minors:

  • \(\Delta_1 = 1 > 0\) ✓
  • \(\Delta_2 = (1)(1) - (2)(2) = 1 - 4 = -3 \le 0\) ✗

The second principal minor is negative. The quadratic form creates a saddle surface rather than an energy bowl.

Verdict: NO — Matrix is indefinite and not positive definite.

Machine Learning & AI Applications

Discover why positive definite covariance and Hessian matrices form the backbone of modern machine learning algorithms.

Read our student tutorial: Why Positive Definite Matrices Matter in ML →
Advertisement Slot

Frequently Asked Questions

A real symmetric matrix A is positive definite if for every non-zero vector x, the quadratic form x^T A x is strictly positive (x^T A x > 0).
Sylvester's Criterion states that a real symmetric matrix is positive definite if and only if all of its leading principal minors (determinants of top-left k x k submatrices) are strictly greater than zero.
Every eigenvalue of a real symmetric positive definite matrix is strictly positive (lambda_i > 0). If any eigenvalue is zero, the matrix is positive semi-definite; if any is negative, it is indefinite.
Positive definite matrices ensure that quadratic energy functions and cost functions are strictly convex with a unique global minimum. Hessian matrices at local minima must be positive definite.