Skip to content

Definite Matrix

Definition

Let A\boldsymbol{A} be a real symmetric matrix. The definiteness of A\boldsymbol{A} classifies the sign of the quadratic form x⊤Ax\boldsymbol{x}^{\top} \boldsymbol{A} \boldsymbol{x}:

  • Positive definite: x⊤Ax>0\boldsymbol{x}^{\top}\boldsymbol{A}\boldsymbol{x}>0 for every nonzero vector x\boldsymbol{x}.
  • Positive semidefinite: x⊤Ax≥0\boldsymbol{x}^{\top}\boldsymbol{A}\boldsymbol{x}\ge 0 for every vector x\boldsymbol{x}.
  • Negative definite: x⊤Ax<0\boldsymbol{x}^{\top}\boldsymbol{A}\boldsymbol{x}<0 for every nonzero vector x\boldsymbol{x}.
  • Negative semidefinite: x⊤Ax≤0\boldsymbol{x}^{\top}\boldsymbol{A}\boldsymbol{x}\le 0 for every vector x\boldsymbol{x}.
  • Indefinite: x⊤Ax\boldsymbol{x}^{\top}\boldsymbol{A}\boldsymbol{x} takes both positive and negative values.

Interpretation

Definiteness tells whether the quadratic form determined by a symmetric matrix is always positive, always nonnegative, always negative, always nonpositive, or changes sign. It is the matrix version of the sign of aa in ax2ax^2.

Four panels of level curves of quadratic forms: ellipses for a positive definite and a negative definite matrix, parallel lines for a semidefinite one, and hyperbolas for an indefinite one.

The four panels show the curves on which x⊤Ax\boldsymbol{x}^{\top}\boldsymbol{A}\boldsymbol{x} is constant, its level curves, for diag⁡(1,2)\operatorname{diag}(1,2), diag⁡(−1,−2)\operatorname{diag}(-1,-2), diag⁡(0,1)\operatorname{diag}(0,1) and diag⁡(1,−1)\operatorname{diag}(1,-1). For a diagonal matrix the form is d1x12+d2x22d_1x_1^2+d_2x_2^2, so its signs can be read off the diagonal. The first two give ellipses, the first form positive and the second negative in every direction. The third form, x22x_2^2, gives horizontal lines and is zero along the whole x1x_1-axis: nonnegative but not positive, so positive semidefinite. The fourth, x12−x22x_1^2-x_2^2, gives hyperbolas and takes both signs.

Positive definite means x⊤Ax>0\boldsymbol{x}^{\top}\boldsymbol{A}\boldsymbol{x}>0 for every x≠0\boldsymbol{x}\neq\boldsymbol{0}: the curve on the right stays above 00. Try the examples, and look for directions where the form vanishes.

A positive definite A\boldsymbol{A} gives a bowl, a negative definite one a cap, and an indefinite one a saddle; the eigenvalues are shown below.

The definition quantifies over all nonzero x\boldsymbol{x}, not only the axes. Testing the standard basis vectors gives ei⊤Aei=aii\boldsymbol{e}_i^{\top}\boldsymbol{A}\boldsymbol{e}_i=a_{ii}, so a positive definite matrix has positive diagonal entries. The converse fails: (1221)\begin{pmatrix}1&2\\2&1\end{pmatrix} has a positive diagonal, but the value 1−4+1=−21-4+1=-2 at x=(1,−1)\boldsymbol{x}=(1,-1), so it is indefinite. The categories overlap: every positive definite matrix is also positive semidefinite, and the zero matrix is both positive and negative semidefinite.

In one variable, the second-order condition reads the sign of f′′(x0)f''(x_0) at a stationary point. For functions of several variables, a symmetric matrix of second derivatives takes the place of f′′(x0)f''(x_0), and its definiteness separates local minima, maxima and saddle points.


Key Results

  • A symmetric matrix is positive definite if and only if all its eigenvalues are positive.
  • A symmetric matrix is positive semidefinite if and only if all its eigenvalues are nonnegative.
  • A symmetric matrix is negative definite if and only if all its eigenvalues are negative.
  • A symmetric matrix is negative semidefinite if and only if all its eigenvalues are nonpositive.
  • A symmetric matrix is indefinite if and only if it has both positive and negative eigenvalues.

Examples

  • In\boldsymbol{I}_n is positive definite, while −In-\boldsymbol{I}_n is negative definite.
  • (1000)\begin{pmatrix}1&0\\0&0\end{pmatrix} is positive semidefinite, and (100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix} is indefinite.

Prerequisites

Sources

Aliases: nonnegative definite Keywords: positive definite matrix, positive semidefinite matrix, negative definite matrix, negative semidefinite matrix, indefinite matrix, definiteness

Last updated: 20 October 2026 03:02