Euler Hall — free maths guides

Test whether x transpose A x is positive for every nonzero x

State the positive definite definition as a for-all statement and the negation as a there-exists. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Positive definite is a for-all statement, and its negation is a there-exists

A symmetric matrixSS is positive definite when

xTSx>0for every x≠0.x^{T}Sx>0\qquad\text{for every } x\ne0.

Read that literally and it looks impossible to check: infinitely many vectors, one test. That is exactly why four other tests exist in this module — pivots, leading minors,S=RTRS=R^{T}R, and eigenvalues. Each of them settles the whole for-all in finite work.

There is one direction you can check by hand, and it is the direction exam questions actually use:

S is NOT positive definite  ⟺  there is one x≠0 with xTSx≤0.S \text{ is NOT positive definite} \iff \text{there is one } x\ne0 \text{ with } x^{T}Sx\le0.

So one counterexample kills definiteness, and no number of positive samples establishes it.

Why the quantifier is "every nonzeroxx" and not "everyxx": atx=0x=0 the value is always00, so including it would make the definition unsatisfiable.

The boundary case matters too. Positive semidefinite allowsxTSx≥0x^{T}Sx\ge0 with equality possible at a nonzeroxx. The difference between the two words is exactly whether that equality happens.

The energy of a 2x2 is a quadratic in one ratio

ForS=[abbc]S=\begin{bmatrix}a&b\\b&c\end{bmatrix} andx≠0x\ne0, writet=x1/x2t=x_1/x_2 (or usex2=0x_2=0 separately). Then

xTSx=x22(at2+2bt+c).x^{T}Sx=x_2^{2}\big(at^{2}+2bt+c\big).

Sincex22>0x_2^{2}>0, the sign of the energy is the sign of the bracket for every realtt. A quadratic in one variable is positive for alltt exactly when its leading coefficient is positive and its discriminant is negative:

a>0,(2b)2−4ac<0 ⟺ a>0, ac−b2>0.a>0,\qquad (2b)^{2}-4ac<0\ \Longleftrightarrow\ a>0,\ ac-b^{2}>0.

That is the two-condition testa11>0a_{11}>0 anddet⁡S>0\det S>0. So the for-all statement about vectors becomes a two-number test, and the derivation is a change of variable — no spectral theory needed.

For largernn the same idea needs more than the determinant: three dimen­sions give a cubic and the test becomes the leading-minor one. That is the next skill but one.

Worked example, both verdicts

A matrix that is definite.S=[2112]S=\begin{bmatrix}2&1\\1&2\end{bmatrix}. Testa11=2>0a_{11}=2>0 anddet⁡S=4−1=3>0\det S=4-1=3>0. Both hold, soSS is positive definite. Confirm by completing the square:2x12+2x1x2+2x22=2(x1+12x2)2+32x222x_1^2+2x_1x_2+2x_2^2=2(x_1+\tfrac12x_2)^2+\tfrac32x_2^2, a sum of two squares with positive coefficients.

A matrix that is not.S=[2331]S=\begin{bmatrix}2&3\\3&1\end{bmatrix}. Herea11=2>0a_{11}=2>0 butdet⁡S=2−9=−7<0\det S=2-9=-7<0. Negative determinant means the eigenvalues have opposite signs, so some direction goes downhill. Find it: tryx=(1,−1)x=(1,-1) giving2−6+1=−32-6+1=-3. Indefinite.

A semidefinite one, the edge case.S=[1111]S=\begin{bmatrix}1&1\\1&1\end{bmatrix} hasdet⁡S=0\det S=0. The energy isx12+2x1x2+x22=(x1+x2)2≥0x_1^2+2x_1x_2+x_2^2=(x_1+x_2)^2\ge0, and it is00 atx=(1,−1)≠0x=(1,-1)\ne0. SoSS is positive semidefinite and not positive definite. The distinction is that single zero.

By the end you can
  • State the positive definite definition as a for-all statement and the negation as a there-exists
  • Refute definiteness by producing one vector with non-positive energy
  • Decide a symmetric 2x2 by the two-condition test a11 > 0 and det > 0
  • Distinguish positive definite from positive semidefinite at the zero boundary
Test yourself
  1. 1. Is[4113]\begin{bmatrix}4&1\\1&3\end{bmatrix} positive definite?
  2. 2. Is[4221]\begin{bmatrix}4&2\\2&1\end{bmatrix} positive definite?
  3. 3. Give a nonzeroxx withxTSx=0x^{T}Sx=0 forS=[1−1−11]S=\begin{bmatrix}1&-1\\-1&1\end{bmatrix}.
Answers

1.a11=4>0a_{11}=4>0 anddet⁡=12−1=11>0\det=12-1=11>0, so yes. 2.a11=4>0a_{11}=4>0 butdet⁡=4−4=0\det=4-4=0, so it is only semidefinite. Indeed the form is4x12+4x1x2+x22=(2x1+x2)24x_1^2+4x_1x_2+x_2^2=(2x_1+x_2)^2, which is00 atx=(1,−2)x=(1,-2). 3. Any multiple of(1,1)(1,1): the form is(x1−x2)2(x_1-x_2)^2, sox=(1,1)x=(1,1) gives00.

Work out where to start — free, no accountAnswer six real questions — free, no account