Tutorials › Linear Algebra › Classifying Definiteness From Eigenvalues

Quadratic Forms and Definiteness · Tutorial 761 of 1000

Classifying Definiteness From Eigenvalues

Learn how the signs and zeros in a real symmetric matrix’s eigenvalue list determine the definiteness of its quadratic form.

Advanced 10 min read

What You'll Learn

  • State the eigenvalue sign conditions for all five definiteness classifications.
  • Distinguish definite forms from semidefinite forms when zero eigenvalues occur.
  • Compute eigenvalues and use their signs to classify a quadratic form.
  • Check classifications by evaluating the form on eigenvectors.
  • Explain why determinant sign alone does not determine definiteness.

Definiteness and the Eigenvalue Sign Test

A quadratic form assigns a real number to each vector. Its definiteness describes whether those values keep one sign, and whether they can equal zero for nonzero vectors. For a real symmetric matrix, its eigenvalues provide a compact way to make this classification: the signs matter, and zero eigenvalues mark important boundary cases.

Throughout, let \(\mathbf{A}\in\mathbb{R}^{n\times n}\) be symmetric, with \(n\geq 1\), and define its quadratic form by \(q(\mathbf{x})=\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) for \(\mathbf{x}\in\mathbb{R}^n\). The definitions below compare the value of \(q\) with zero. In the definite cases the comparison is required only for nonzero vectors; in the semidefinite cases it is required for every vector.

Definition: The quadratic form \(q\) is positive definite if \(q(\mathbf{x})>0\) for every \(\mathbf{x}\ne\mathbf{0}\); positive semidefinite if \(q(\mathbf{x})\geq0\) for every \(\mathbf{x}\); negative definite if \(q(\mathbf{x})<0\) for every \(\mathbf{x}\ne\mathbf{0}\); and negative semidefinite if \(q(\mathbf{x})\leq0\) for every \(\mathbf{x}\). It is indefinite if it takes both a positive value and a negative value.

Each definition has a different boundary requirement. A positive semidefinite form may equal zero at some nonzero vector, while a positive definite form cannot. Negative semidefinite and negative definite have the corresponding distinction. The zero form is both positive semidefinite and negative semidefinite, but is neither definite nor indefinite. Thus the classifications are not five mutually exclusive labels: the two semidefinite categories overlap when every value is zero.

Spectral classification theorem (standard result; proof in the following treatment of why eigenvalue signs determine definiteness): For a real symmetric matrix \(\mathbf{A}\), its quadratic form is positive definite exactly when every eigenvalue is positive; positive semidefinite exactly when every eigenvalue is nonnegative; negative definite exactly when every eigenvalue is negative; and negative semidefinite exactly when every eigenvalue is nonpositive. The form is indefinite exactly when at least one eigenvalue is positive and at least one is negative. These conditions include eigenvalues according to their multiplicities, although repeating an eigenvalue does not change the sign test.

The real-symmetric hypothesis is essential to this test as stated: the spectral theorem gives a real orthogonal diagonalization. Specifically, there is an orthogonal matrix \(\mathbf{Q}\) and a diagonal matrix \(\boldsymbol{\Lambda}=\operatorname{diag}(\lambda_1,\dots,\lambda_n)\) such that \(\mathbf{A}=\mathbf{Q}\boldsymbol{\Lambda}\mathbf{Q}^{\top}\). For \(\mathbf{y}=\mathbf{Q}^{\top}\mathbf{x}\), the quadratic form can then be written as

$$ q(\mathbf{x})=\mathbf{x}^{\top}\mathbf{A}\mathbf{x} =\mathbf{y}^{\top}\boldsymbol{\Lambda}\mathbf{y} =\lambda_1y_1^2+\cdots+\lambda_ny_n^2. $$

This identity is a useful way to organize the calculation: each eigenvalue contributes its sign to one squared coordinate. The classification theorem turns those signs into the stated equivalences; its full justification is treated in the following discussion of why the signs determine definiteness. Here, the theorem is the decision rule, and the examples show how to apply and check it.

Applying the Sign Test

Worked Example: A Positive Definite Form

Classify the quadratic form associated with \(\mathbf{A}=\begin{bmatrix}2&1\\1&2\end{bmatrix}\).

Compute the characteristic equation using the convention \(p_{\mathbf{A}}(\lambda)=\det(\mathbf{A}-\lambda\mathbf{I})\):

$$ \det\begin{bmatrix}2-\lambda&1\\1&2-\lambda\end{bmatrix} =(2-\lambda)^2-1 =\lambda^2-4\lambda+3 =(\lambda-1)(\lambda-3). $$

The eigenvalues are \(1\) and \(3\), both positive. The sign test therefore classifies the form as positive definite.

Check: the vectors \(\begin{bmatrix}1\\-1\end{bmatrix}\) and \(\begin{bmatrix}1\\1\end{bmatrix}\) verify the eigenvalues directly:

$$ \begin{bmatrix}2&1\\1&2\end{bmatrix}\begin{bmatrix}1\\-1\end{bmatrix} =\begin{bmatrix}1\\-1\end{bmatrix} =1\begin{bmatrix}1\\-1\end{bmatrix}, \qquad \begin{bmatrix}2&1\\1&2\end{bmatrix}\begin{bmatrix}1\\1\end{bmatrix} =\begin{bmatrix}3\\3\end{bmatrix} =3\begin{bmatrix}1\\1\end{bmatrix}. $$

For a direct value check, \(q(x_1,x_2)=2x_1^2+2x_1x_2+2x_2^2\). In the corresponding orthogonal coordinates \(y_1=(x_1-x_2)/\sqrt{2}\) and \(y_2=(x_1+x_2)/\sqrt{2}\), this is \(y_1^2+3y_2^2\), which is positive whenever \((x_1,x_2)\ne(0,0)\).

Worked Example: An Indefinite Form

Classify the form for \(\mathbf{B}=\begin{bmatrix}1&2\\2&1\end{bmatrix}\).

Its characteristic equation is

$$ \det\begin{bmatrix}1-\lambda&2\\2&1-\lambda\end{bmatrix} =(1-\lambda)^2-4 =\lambda^2-2\lambda-3 =(\lambda-3)(\lambda+1). $$

The eigenvalues are \(3\) and \(-1\). One is positive and the other negative, so the form is indefinite. To check that both signs actually occur, use the eigenvectors \(\begin{bmatrix}1\\1\end{bmatrix}\) and \(\begin{bmatrix}1\\-1\end{bmatrix}\):

$$ \mathbf{B}\begin{bmatrix}1\\1\end{bmatrix} =\begin{bmatrix}3\\3\end{bmatrix}, \qquad q_{\mathbf{B}}\begin{pmatrix}1\\1\end{pmatrix} =\begin{bmatrix}1&1\end{bmatrix}\begin{bmatrix}3\\3\end{bmatrix} =6>0; $$ $$ \mathbf{B}\begin{bmatrix}1\\-1\end{bmatrix} =\begin{bmatrix}-1\\1\end{bmatrix}, \qquad q_{\mathbf{B}}\begin{pmatrix}1\\-1\end{pmatrix} =\begin{bmatrix}1&-1\end{bmatrix}\begin{bmatrix}-1\\1\end{bmatrix} =-2<0. $$

The values have opposite signs, as required by the definition of indefinite. In general, exhibiting vectors that produce opposite signs is a direct check of indefiniteness.

Worked Example: Positive Semidefinite but Not Positive Definite

Consider \(\mathbf{C}=\begin{bmatrix}1&-1\\-1&1\end{bmatrix}\). Compute its characteristic equation:

$$ \det\begin{bmatrix}1-\lambda&-1\\-1&1-\lambda\end{bmatrix} =(1-\lambda)^2-1 =\lambda^2-2\lambda =\lambda(\lambda-2). $$

The eigenvalues are \(0\) and \(2\). They are both nonnegative, so the form is positive semidefinite. Because one eigenvalue is zero, it is not positive definite.

Check: for \(\mathbf{x}=\begin{bmatrix}x_1\\x_2\end{bmatrix}\), direct multiplication gives \(q_{\mathbf{C}}(\mathbf{x})=x_1^2-2x_1x_2+x_2^2=(x_1-x_2)^2\geq0\). For the nonzero vector \(\begin{bmatrix}1\\1\end{bmatrix}\), this value is \(0\), confirming why the form is not positive definite. The eigenvectors also verify the eigenvalues:

$$ \mathbf{C}\begin{bmatrix}1\\1\end{bmatrix} =\begin{bmatrix}0\\0\end{bmatrix} =0\begin{bmatrix}1\\1\end{bmatrix}, \qquad \mathbf{C}\begin{bmatrix}1\\-1\end{bmatrix} =\begin{bmatrix}2\\-2\end{bmatrix} =2\begin{bmatrix}1\\-1\end{bmatrix}. $$

Worked Example: Negative Semidefinite but Not Negative Definite

Let \(\mathbf{D}=\begin{bmatrix}-3&0&0\\0&0&0\\0&0&-1\end{bmatrix}\). This matrix is already diagonal, so its eigenvalues are \(-3,0,-1\). All are nonpositive and one is zero. Therefore its form is negative semidefinite, but not negative definite.

Check: multiplication gives \(q_{\mathbf{D}}(\mathbf{x})=-3x_1^2-x_3^2\leq0\) for every \(\mathbf{x}=\begin{bmatrix}x_1\\x_2\\x_3\end{bmatrix}\). At the nonzero vector \(\begin{bmatrix}0\\1\\0\end{bmatrix}\), the value is \(0\), so the strict inequality required for negative definiteness fails. Indeed, \(\mathbf{D}\begin{bmatrix}0\\1\\0\end{bmatrix}=\mathbf{0}\), verifying the zero eigenvalue as well.

What Zero Eigenvalues Change

A zero eigenvalue does not by itself tell you whether a form is positive or negative semidefinite: the other eigenvalues must also be inspected. The examples show three distinct patterns. A list consisting of positive values and zero gives a positive semidefinite form that is not positive definite. A list consisting of negative values and zero gives a negative semidefinite form that is not negative definite. A list containing both a positive and a negative value gives an indefinite form, whether or not zero is also present.

In particular, \((4,0,0)\) passes the nonnegative test but fails the strictly positive test; \((-4,0,0)\) passes the nonpositive test but fails the strictly negative test; and \((4,-1,0)\) is indefinite. These sign checks apply to all eigenvalues, not merely to the largest or smallest one. Repeated eigenvalues are counted in the eigenvalue list, but repetition does not create a new sign condition.

Proposition: If \(c>0\), multiplying a quadratic form by \(c\) preserves each of the five classifications. If \(c<0\), positive definiteness and negative definiteness are exchanged, positive semidefiniteness and negative semidefiniteness are exchanged, and indefiniteness is preserved.

Proof. Let \(q\) be the original form and consider \(cq\). If \(c>0\), then for every vector \(\mathbf{x}\), \(q(\mathbf{x})\) and \(cq(\mathbf{x})\) have the same sign, and \(q(\mathbf{x})=0\) exactly when \(cq(\mathbf{x})=0\). Thus each strict or non-strict sign condition in the definitions is unchanged, and a pair of values with opposite signs remains a pair with opposite signs. If \(c<0\), multiplication reverses the sign of every nonzero value and leaves zero values equal to zero. Therefore positive and negative conditions exchange, while values of both signs remain values of both signs. \(\square\)

The same bookkeeping is visible in eigenvalues: if \(\mathbf{A}=\mathbf{Q}\boldsymbol{\Lambda}\mathbf{Q}^{\top}\), then \(-\mathbf{A}=\mathbf{Q}(-\boldsymbol{\Lambda})\mathbf{Q}^{\top}\), so negating the matrix negates every eigenvalue. This gives a convenient cross-check when a matrix is the negative of one already classified.

Common Pitfall: Determinant Sign Is Not the Classification

A positive determinant does not imply positive definiteness. For a concrete counterexample, take \(\mathbf{E}=\begin{bmatrix}-1&0\\0&-2\end{bmatrix}\). Its determinant is \((-1)(-2)=2>0\). The incorrect conclusion “the determinant is positive, so the form is positive definite” ignores the signs of the eigenvalues. The eigenvalues are \(-1\) and \(-2\), so the form is negative definite; directly, \(q_{\mathbf{E}}(x_1,x_2)=-x_1^2-2x_2^2<0\) for every nonzero vector.

For a \(2\times2\) symmetric matrix, a negative determinant does imply eigenvalues of opposite signs, but a positive determinant alone cannot distinguish two positive eigenvalues from two negative ones. For larger matrices, determinant sign is even less informative about the full sign pattern. Use the eigenvalue list for this classification task, and keep strict versus non-strict inequalities in view.

Eigenvalue signsClassificationBoundary note
All positivePositive definiteNo zero eigenvalues
All nonnegativePositive semidefinitePositive definite only if none is zero
All negativeNegative definiteNo zero eigenvalues
All nonpositiveNegative semidefiniteNegative definite only if none is zero
At least one positive and one negativeIndefiniteZero eigenvalues may also occur

A reliable workflow is to first confirm that the matrix is real and symmetric, then find all eigenvalues with multiplicity, and finally check which sign condition the complete list satisfies. If the classification is semidefinite, look specifically for a zero eigenvalue before calling the form definite. If it is indefinite, verify that both signs occur; a zero eigenvalue alone is not enough.

Check Your Understanding

For each question, use the eigenvalue signs and attend carefully to whether the inequality is strict.

  1. Classify a real symmetric matrix whose eigenvalues are \(2,5,5\).
  2. Classify a real symmetric matrix whose eigenvalues are \(-3,0,-1\). Is its form negative definite?
  3. A real symmetric matrix has eigenvalues \(4,-2,0\). Which classification applies, and what sign values must its quadratic form attain?
  4. Explain why eigenvalues \(0,0,0\) give a form that is both positive semidefinite and negative semidefinite, but neither definite.
  5. Give a diagonal \(2\times2\) matrix with positive determinant whose quadratic form is not positive definite, and justify the classification from its eigenvalues.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon