Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 32

Eigenvalue Classification of Symmetric Matrices

Recommended resources

Hello! Welcome back to our study of symmetric operators.

In the last lesson, we introduced the concepts of positive definite and positive semi-definite matrices. We defined them based on the sign of the quadratic form, , which we interpreted as the "energy" of a system or the geometric relationship between an input vector and its transformation . We noted that while this definition is fundamental, testing it for all possible vectors is impossible.

Today, we'll build on that foundation by connecting definiteness to a much more practical tool: eigenvalues. Our learning outcome is to classify a symmetric matrix as positive definite, semi-definite, or indefinite using its eigenvalues. As we've seen, the Spectral Theorem guarantees that a symmetric matrix's eigenvalues are always real, making this a reliable and powerful method.

1. The Eigenvalue Test for Definiteness

The most important takeaway from this lesson will be a set of simple rules that link the signs of a symmetric matrix's eigenvalues to its definiteness classification. This is the practical payoff from our study of the Spectral Theorem.

The following resources provide a clear and direct statement of these rules.

Definite matrix

The 'Eigenvalues' section of this Wikipedia article provides the definitive rules connecting eigenvalues to definiteness. This is the core of today's lesson.

Read the short section titled 'Eigenvalues'. Focus on the five bullet points that state the 'if and only if' conditions for each classification.

2.7: Critical Points

These notes from the University of Toronto offer a slightly different presentation of the same theorem and also explicitly state the rules for negative definite/semidefinite cases.

Read the subsection 'Eigenvalues of definite matrices', down to just before 'Example 1'. This section clearly lays out the theorem and its implications.

Let's summarize these crucial rules for an symmetric matrix with eigenvalues :

Classification Condition on Eigenvalues
Positive Definite All
Positive Semi-definite All (with at least one )
Negative Definite All
Negative Semi-definite All (with at least one )
Indefinite Has both positive () and negative () eigenvalues.

Why does this work? Recall from our previous lesson that a matrix is positive definite if . If is an eigenvector with eigenvalue , then:

Since is always positive, the sign of is determined entirely by the sign of . Because the eigenvectors of a symmetric matrix form a complete basis for the space, this relationship extends to any vector , not just eigenvectors.

The following video gives a great visual explanation of this connection.

What Does It Mean For a Matrix to be POSITIVE? The Practical Guide to Semidefinite Programming(1/4)

This video from 'Visually Explained' provides an excellent intuition for why the eigenvalue signs determine the definiteness of the matrix.

Watch from 6:02 to 7:34. The animation clearly shows how a positive eigenvalue scales an eigenvector, while a negative eigenvalue reflects and scales it, violating the 'same side' condition required for positive definiteness.

Test your understanding!

Consider the matrix . Since it's a diagonal matrix, its eigenvalues are simply its diagonal entries. How would you classify this matrix?

Show answer

The eigenvalues are , , and . Since the matrix has both positive and negative eigenvalues, it is indefinite.


2. Visualizing Definiteness through Quadratic Forms

The signs of the eigenvalues directly determine the shape of the surface defined by the quadratic form . Given your background in multivariable calculus, you can visualize these as surfaces in 3D for a matrix.

Visualizing Quadratic Forms and Matrix Definiteness
This figure illustrates the connection between matrix definiteness and the geometry of the corresponding quadratic form \(f(x_1, x_2) = \mathbf{x}^T A \mathbf{x}\). A positive definite matrix corresponds to a 'bowl' shape (minimum). A negative definite matrix corresponds to an inverted 'bowl' (maximum). A positive semi-definite matrix forms a 'trough' with a line of minima. An indefinite matrix forms a 'saddle' point.

Let's connect these shapes to our eigenvalue rules:

  • Positive Definite (all ): The surface is a paraboloid opening upwards, with a unique global minimum at the origin. Think of the function .
  • Negative Definite (all ): The surface is an inverted paraboloid opening downwards, with a unique global maximum at the origin. Think of .
  • Positive Semi-definite (all , one is 0): The surface is a parabolic "trough" or "valley". It has a minimum value of 0, but this minimum is achieved along an entire line or subspace (the null space of the matrix). The direction corresponding to the zero eigenvalue is "flat".
  • Indefinite (mixed signs): The surface is a saddle shape. It goes up in some directions (along eigenvectors with positive ) and down in others (along eigenvectors with negative ).

This geometric view is essential for optimization problems in deep learning. The Hessian matrix of a cost function tells you about the local curvature. If the Hessian is positive definite at a point where the gradient is zero, you've found a local minimum—the bottom of a "bowl".


3. Applying the Eigenvalue Test: Worked Examples

Let's put this theory into practice.

Example 1: The "Borderline" Case (Positive Semi-Definite)

Professor Strang's lectures provide excellent, intuitive examples. Let's watch how he analyzes matrices and deduces the signs of their eigenvalues, often without calculating them directly.

5. Positive Definite and Semidefinite Matrices

In this segment, Prof. Strang introduces the concept of a semi-definite matrix as the 'borderline' case and analyzes a singular matrix to show it's positive semi-definite.

Watch from 37:43 to 40:20. Notice how he identifies a semi-definite matrix. First, he establishes that the determinant is zero, which guarantees one eigenvalue is zero. Then, he uses the trace (the sum of eigenvalues) to confirm that the other eigenvalue must be positive.

This is a powerful technique for matrices. Recall that:

If , you know one eigenvalue is zero. The sign of the trace then tells you the sign of the other eigenvalue.

Example 2: A Matrix

For larger matrices, we usually have to compute the characteristic polynomial and find its roots.

2.7: Critical Points

This example from the University of Toronto notes provides a step-by-step calculation for a 3x3 matrix.

Study 'Example 1'. Follow the calculation of the characteristic polynomial and the identification of its roots (the eigenvalues). See how the set of eigenvalues {0, 1, 3} leads to the conclusion.

The example analyzes the matrix .
The eigenvalues are found to be .
Since all eigenvalues are non-negative () and at least one is zero, the matrix is positive semi-definite.

Test your understanding!

Let .

  1. Calculate its eigenvalues.
  2. Classify the matrix based on the signs of the eigenvalues.
Show answer
  1. Find Eigenvalues: We solve the characteristic equation .





    The eigenvalues are and .

  2. Classify: Both eigenvalues are strictly positive. Therefore, the matrix is positive definite.


Conclusion

In this lesson, we established the most practical method for classifying symmetric matrices: the eigenvalue test. This powerful tool connects the algebraic properties of a matrix directly to its geometric behavior.

Key Takeaways:

  • The definiteness of a symmetric matrix is determined entirely by the signs of its eigenvalues.
  • Positive Definite: All eigenvalues are positive (). This corresponds to a "bowl-shaped" quadratic form with a unique minimum.
  • Positive Semi-definite: All eigenvalues are non-negative (), with at least one zero eigenvalue. This corresponds to a "trough" shape with a line or subspace of minima.
  • Indefinite: The matrix has both positive and negative eigenvalues. This corresponds to a "saddle" shape, which is neither a minimum nor a maximum.
  • Similar rules apply for negative definite () and negative semi-definite () matrices.

Preview of the Next Lesson:

We have now seen the definition of definiteness through quadratic forms and the practical test using eigenvalues. In the next lesson, we will formalize the final learning outcome of this module: Relate the definiteness of a symmetric matrix to the properties of the quadratic form it defines. We will solidify the connection between positive definiteness and the convexity of functions, a concept that is absolutely central to the theory of optimization used in training deep learning models.