All notes

Quadratic forms and definiteness

GATE DA130 min read

Free preview: 29% of the note

From a polynomial to a matrix

Definition. A quadratic form in x=(x1,…,xn)x = (x_1, \dots, x_n) is a polynomial in which every term has degree exactly 2. It can always be written as

q(x)=x⊤Ax=∑i,jaijxixjq(x) = x^\top A x = \sum_{i,j} a_{ij} x_i x_j

with AA symmetric. The squared terms go on the diagonal, and each cross term is split equally between the two off-diagonal positions.

Example 1. q(x,y)=2x2+6xy+5y2q(x, y) = 2x^2 + 6xy + 5y^2 has A=(2335)A = \begin{pmatrix} 2 & 3 \\ 3 & 5 \end{pmatrix}. Check: x⊤Ax=2x2+3xy+3yx+5y2x^\top A x = 2x^2 + 3xy + 3yx + 5y^2.

Example 2. q=x12−2x22+4x1x3−6x2x3q = x_1^2 - 2x_2^2 + 4x_1x_3 - 6x_2x_3 has A=(1020−2−32−30).A = \begin{pmatrix} 1 & 0 & 2 \\ 0 & -2 & -3 \\ 2 & -3 & 0 \end{pmatrix}.

A non-symmetric matrix gives the same form as its symmetric part. x⊤Ax=x⊤A+A⊤2xx^\top A x = x^\top \frac{A + A^\top}{2} x, because the skew part contributes 0. For example, (1401)\begin{pmatrix} 1 & 4 \\ 0 & 1 \end{pmatrix} and (1221)\begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} both give x2+4xy+y2x^2 + 4xy + y^2.

Definiteness

NameCondition for all x≠0x \ne 0Eigenvalues of AA
Positive definite (PD)q(x)>0q(x) > 0all >0> 0
Positive semidefinite (PSD)q(x)≥0q(x) \ge 0all ≥0\ge 0
Negative definiteq(x)<0q(x) < 0all <0< 0
Negative semidefiniteq(x)≤0q(x) \le 0all ≤0\le 0
Indefinitetakes both signssome >0> 0 and some <0< 0

Tests

  1. Eigenvalues, as in the table.
  2. Sylvester's criterion. AA is PD exactly when all leading principal minors are positive: D1=a11>0D_1 = a_{11} > 0, D2=det⁡D_2 = \det of the top-left 2×22 \times 2 block >0> 0, …, Dn=det⁡A>0D_n = \det A > 0.
  3. Negative definite exactly when the leading minors alternate in sign: D1<0D_1 < 0, D2>0D_2 > 0, D3<0D_3 < 0, … Equivalently, −A-A is PD.
  4. Semidefinite needs all principal minors (not only the leading ones) to be ≥0\ge 0.
  5. 2 × 2 shortcut. For (abbc)\begin{pmatrix} a & b \\ b & c\end{pmatrix}:
    • PD exactly when a>0a > 0 and ac−b2>0ac - b^2 > 0;
    • indefinite exactly when ac−b2<0ac - b^2 < 0.

Quick necessary conditions.

  • PD needs every diagonal entry to be positive. A zero or negative diagonal entry rules it out at once.
  • PD needs det⁡A>0\det A > 0 and trace⁡A>0\operatorname{trace} A > 0.
  • These conditions are necessary but not sufficient.

Why the semidefinite case needs all minors. (000−1)\begin{pmatrix} 0 & 0 \\ 0 & -1 \end{pmatrix} has leading minors 0 and 0, both ≥0\ge 0. Yet q=−y2≤0q = -y^2 \le 0, so it is not PSD. The principal minor −1-1 (the bottom-right entry) reveals this.

Solved examples

Example 3: a positive definite 3 × 3 matrix. A=(2−10−12−10−12)A = \begin{pmatrix} 2 & -1 & 0 \\ -1 & 2 & -1 \\ 0 & -1 & 2 \end{pmatrix}.

  • D1=2D_1 = 2 and D2=4−1=3D_2 = 4 - 1 = 3.
  • D3=2(4−1)−(−1)(−2−0)+0=6−2=4D_3 = 2(4 - 1) - (-1)(-2 - 0) + 0 = 6 - 2 = 4.

All are positive, so AA is PD. Its eigenvalues are 2−22 - \sqrt2, 22 and 2+22 + \sqrt2, whose product is (4−2)×2=4=D3(4 - 2) \times 2 = 4 = D_3.

You have read the free 29% of this note

Sign in with Google to keep reading. It is free, takes one tap, and you also get:

  • 6 practice questions from this note
  • Every note in full, plus the PDF library
  • Official past papers as timed tests, with explanations
  • An AI tutor for doubts, in Hindi or English
  • Your progress, mistakes and study plan saved on every device
Continue reading, free