LINEAR-ALGEBRA ยท Interactive Practice | Unit 24 ยท Video 4

Three Tests, One Truth: Positive Definite Matrices

IKey Tests Reference

A symmetric matrix A=ATA = A^T is positive definite if and only if any one of these equivalent tests holds:

Test Condition Cost
Eigenvalues All ฮปi>0\lambda_i > 0 Expensive (iterative for nโ‰ฅ5n \geq 5)
Pivots All pivots from elimination >0> 0 O(n3)O(n^3) โ€” fast
Leading minors detโก(Ak)>0\det(A_k) > 0 for k=1,2,โ€ฆ,nk = 1, 2, \ldots, n Fastest for small nn

Pivot Sign Theorem: For symmetric AA, the number of positive pivots equals the number of positive eigenvalues. Same signs, different values.

Trap: detโก(A)>0\det(A) > 0 alone is not enough โ€” it only tells you there are an even number of negative eigenvalues. Always check every leading minor.

IIVisualization 1 โ€” The Geometry of Positive Definiteness

The level sets of xTAx=ax2+2bxy+cy2\mathbf{x}^{T} A \mathbf{x} = a x^{2} + 2 b x y + c y^{2} are ellipses when AA is definite, hyperbolas when it is indefinite.

๐Ÿ’ก Trap: set a=โˆ’1a = -1, b=1b = 1, c=โˆ’2c = -2 โ€” the determinant is positive, yet the level sets are the red (negative) family, so AA is negative definite, not positive.

IIIVisualization 2 โ€” Three Tests, One Region

Pivots, eigenvalues, and leading minors all turn positive on exactly the same interval of tt.

IVPractice Quiz

Question 1

Consider the symmetric matrix A=(4223).A = \begin{pmatrix} 4 & 2 \\ 2 & 3 \end{pmatrix}.

Using the leading principal minors test, is AA positive definite?

โœ… Correct! Both leading minors are positive, so AA is positive definite.

โŒ Not quite. Recompute d2=(4)(3)โˆ’(2)(2)d_2 = (4)(3) - (2)(2) and check both leading minors.

Show solution

Solution:

Compute the two leading minors:

  • d1=4>0d_1 = 4 > 0 โœ“
  • d2=detโก(A)=(4)(3)โˆ’(2)(2)=12โˆ’4=8>0d_2 = \det(A) = (4)(3) - (2)(2) = 12 - 4 = 8 > 0 โœ“

Both leading minors are positive, so AA is positive definite.

(The third option โ€” "detโก(A)>0\det(A) > 0 alone is sufficient" โ€” is a tempting trap. For 2ร—2 it happens to give the right answer here only because we also checked d1>0d_1 > 0. In general, detโก>0\det > 0 alone is not enough; the trap matrix (โˆ’111โˆ’2)\begin{pmatrix} -1 & 1 \\ 1 & -2 \end{pmatrix} has detโก=1>0\det = 1 > 0 but is not positive definite.)

Question 2

True or False: If a symmetric matrix AA has detโก(A)>0\det(A) > 0, then AA is positive definite.

โœ… Correct! A positive determinant only guarantees an even count of negative eigenvalues โ€” possibly zero, possibly two.

โŒ Not quite. Consider the matrix from the video: (โˆ’111โˆ’2)\begin{pmatrix} -1 & 1 \\ 1 & -2 \end{pmatrix} has detโก=1>0\det = 1 > 0 but both eigenvalues are negative.

Show solution

Solution:

The determinant equals the product of the eigenvalues. So detโก(A)>0\det(A) > 0 only tells us:

  • Either all eigenvalues are positive (positive definite), or
  • An even number of eigenvalues are negative (e.g., two negative eigenvalues in a 2ร—2).

Counterexample: B=(โˆ’111โˆ’2),detโก(B)=(โˆ’1)(โˆ’2)โˆ’(1)(1)=1>0.B = \begin{pmatrix} -1 & 1 \\ 1 & -2 \end{pmatrix}, \quad \det(B) = (-1)(-2) - (1)(1) = 1 > 0.

But d1=โˆ’1<0d_1 = -1 < 0, so BB fails the very first leading minor. Both eigenvalues are negative.

Lesson: Always check every leading minor โ€” not just detโก(A)\det(A).

Question 3

Apply Gaussian elimination to A=(5223).A = \begin{pmatrix} 5 & 2 \\ 2 & 3 \end{pmatrix}.

What are the pivots, and what do they tell you?

โœ… Correct! p1=5p_1 = 5, p2=11/5p_2 = 11/5, and their product equals detโก(A)=11\det(A) = 11.

โŒ Not quite. After eliminating below the first pivot, the (2,2) entry becomes 3โˆ’25(2)=1153 - \frac{2}{5}(2) = \frac{11}{5}. Pivots are not eigenvalues.

Show solution

Solution:

Eliminate below the first pivot. The first pivot is p1=5p_1 = 5. Subtract 25\frac{2}{5} times row 1 from row 2:

(5223)โ†’(5203โˆ’25(2))=(520115).\begin{pmatrix} 5 & 2 \\ 2 & 3 \end{pmatrix} \to \begin{pmatrix} 5 & 2 \\ 0 & 3 - \tfrac{2}{5}(2) \end{pmatrix} = \begin{pmatrix} 5 & 2 \\ 0 & \tfrac{11}{5} \end{pmatrix}.

So p2=115p_2 = \frac{11}{5}. Both pivots are positive, so AA is positive definite.

Sanity check: The product of pivots equals the determinant: p1โ‹…p2=5โ‹…115=11=detโก(A).p_1 \cdot p_2 = 5 \cdot \tfrac{11}{5} = 11 = \det(A).

The eigenvalues of AA are 4ยฑ5โ‰ˆ6.244 \pm \sqrt{5} \approx 6.24 and 1.761.76 โ€” not the pivots. But by the pivot sign theorem, both pivots and both eigenvalues share the same signs.

Question 4

For a 100ร—100100 \times 100 symmetric matrix, which test for positive definiteness is generally the most efficient in practice?

โœ… Correct! A single O(n3)O(n^3) elimination pass gives all 100 pivots โ€” no iteration, no characteristic polynomial.

โŒ Not quite. Eigenvalue computation is iterative for large nn, and computing 100 separate determinants is wasteful. One elimination gives you all the pivots at once.

Show solution

Solution:

For large nn:

  • Eigenvalues require iterative methods (no closed form for nโ‰ฅ5n \geq 5). Convergence can be slow, and you only need signs, not exact values โ€” so this is overkill.
  • Pivots come from a single Gaussian elimination, costing O(n3)O(n^3). After elimination you simply read the diagonal. This is direct, non-iterative, and the standard choice for large nn.
  • All leading minors would require computing nn separate determinants โ€” far more expensive than one elimination pass.
  • Just detโก(A)>0\det(A) > 0 is insufficient (as shown in Question 2).

Rule of thumb:

  • n=2,3n = 2, 3: leading sub-determinants are fastest.
  • nn large: one Gaussian elimination + check pivot signs.
  • Eigenvalues: only when you actually need their values.

Solved: 0 / 4