LINEAR-ALGEBRA · Interactive Practice | Unit 24 · Video 3

The Eigenvalue Shortcut: Why Counting Pivots Beats Solving Polynomials

IKey Formulas

Formula Name Meaning
A=LDLA = LDL^\top Symmetric factorization The diagonal of DD holds the pivots
#(pos pivots)=#(pos eigenvalues)\#(\text{pos pivots}) = \#(\text{pos eigenvalues}) Sign Theorem (Sylvester's Law) Pivot signs match eigenvalue signs (symmetric AA)
det(A)=di=λi\det(A) = \prod d_i = \prod \lambda_i Product Identity Pivots and eigenvalues share the same product
λi(AcI)=λi(A)c\lambda_i(A - cI) = \lambda_i(A) - c Shifting Trick Subtracting cIcI shifts every eigenvalue by c-c

IIVisualization 1 — Pivots vs. eigenvalues

Pivots and eigenvalues rarely match value-for-value — yet their sign split and their product always agree.

💡 Challenge: make the matrix indefinite (set a11=3a_{11} = -3) — a red pivot appears exactly when a red eigenvalue does.

IIIVisualization 2 — The shifting trick

How many eigenvalues sit above a threshold cc? Count the positive pivots of AcIA - cI.

💡 Probe at several shifts and subtract the counts to trap each eigenvalue in an interval — the bisection that solvers like LAPACK run on cheap elimination alone.

IVQuiz Questions

Question 1

Suppose you run elimination on a symmetric 4×44 \times 4 matrix AA and find the pivots d1=3,d2=2,d3=1,d4=5.d_1 = 3, \quad d_2 = -2, \quad d_3 = 1, \quad d_4 = -5.

How many positive eigenvalues does AA have?

Correct! The number of positive pivots equals the number of positive eigenvalues.

Not quite. Count the pivots that are positive — those are 33 and 11.

Show solution

Solution:

By the Sign Theorem (Sylvester's Law of Inertia), for a symmetric matrix: #(positive pivots)=#(positive eigenvalues).\#(\text{positive pivots}) = \#(\text{positive eigenvalues}).

The pivots are {3,2,1,5}\{3, -2, 1, -5\}. There are 2 positive pivots (33 and 11), so AA has 2 positive eigenvalues (and 2 negative ones).

Note: The actual eigenvalue values are not equal to the pivots — only the sign counts match.

Question 2

A student claims: "For any square matrix AA, the number of positive pivots equals the number of positive eigenvalues."

Is this claim true or false?

Correct! Symmetry is essential — the Sign Theorem fails for general matrices.

Not quite. The Sign Theorem (Sylvester's Law) requires the matrix to be symmetric.

Show solution

Solution:

The claim is false. The Sign Theorem requires AA to be symmetric.

For non-symmetric matrices:

  • Eigenvalues can be complex (so "positive" doesn't always make sense).
  • Even when eigenvalues are real, the sign counts of pivots and eigenvalues can disagree.

Symmetry guarantees that A=LDLA = LDL^\top (a congruence transformation), and Sylvester's Law of Inertia says congruence preserves the signature. Drop symmetry and the protection is gone.

Question 3

For a symmetric 3×33 \times 3 matrix AA, you compute the pivots and find d1=2,d2=52,d3=35.d_1 = 2, \quad d_2 = \tfrac{5}{2}, \quad d_3 = \tfrac{3}{5}.

Without computing eigenvalues, what is det(A)\det(A)?

Correct! det(A)=25235=3\det(A) = 2 \cdot \tfrac{5}{2} \cdot \tfrac{3}{5} = 3.

Not quite. The determinant equals the product of the pivots.

Show solution

Solution:

The determinant equals the product of the pivots (and equivalently, the product of the eigenvalues): det(A)=d1d2d3=25235=3.\det(A) = d_1 \cdot d_2 \cdot d_3 = 2 \cdot \tfrac{5}{2} \cdot \tfrac{3}{5} = 3.

This is one of the two invariants that pivots and eigenvalues share — products always agree, even though individual values do not.

Question 4

You run elimination on a symmetric 5×55 \times 5 matrix AA at three different shifts and count positive pivots:

  • Pivots of A0IA - 0I: 4 positive
  • Pivots of A5IA - 5I: 2 positive
  • Pivots of A10IA - 10I: 0 positive

How many eigenvalues of AA lie in the interval (0,5](0, 5]?

Correct! Subtract: 4 eigenvalues above 0, minus 2 above 5, leaves 2 in (0,5](0, 5].

Not quite. Use subtraction: (eigenvalues above 0) minus (eigenvalues above 5).

Show solution

Solution:

The number of positive pivots of AcIA - cI equals the number of eigenvalues of AA greater than cc.

  • Eigenvalues >0> 0: 4
  • Eigenvalues >5> 5: 2
  • Eigenvalues >10> 10: 0

So the number of eigenvalues in the interval (0,5](0, 5] is: #{λ>0}#{λ>5}=42=2.\#\{\lambda > 0\} - \#\{\lambda > 5\} = 4 - 2 = 2.

This is the bisection idea: by combining counts at different shifts, we can locate every eigenvalue in an interval — using only elimination, no polynomial root-finding.

Solved: 0 / 4