Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 1 of 2

Certify positive energy with Schur complements

Derive positive leading-minor and LDL* tests, then prove why semidefinite energy requires all principal minors.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

A coupled energy can be positive even when some cross terms are negative. Consider the real symmetric matrix A(t) with rows (2,1,0), (1,2,1), (0,1,t). For a column vector z=(x,y,w), its energy is the real number zᵀA(t)z. Expand it and complete squares:

2x²+2xy+2y²+2yw+tw² = 2(x+y/2)² + (3/2)(y+2w/3)² + (t−2/3)w².

Check each coefficient on the right. The first square contributes y²/2, the second contributes 3y²/2 and 2w²/3, and the final term corrects the coefficient of w². This identity exposes directions that the original entries hide. When t is greater than 2/3, every nonzero input has positive energy. At t=2/3 there is a nonzero invisible direction. Below that threshold, a negative-energy direction exists.

Find that direction before reading further: make the first two squares vanish and choose w=3. You obtain z=(1,−2,3), whose energy is 9t−6. At the boundary A(2/3)z=0, which you can verify row by row. A determinant sign alone would not supply this useful witness.

Predict

Does “all leading determinants are nonnegative” certify nonnegative energy? Test diag(0,−1). Its leading determinants are 0 and 0, but its energy at (0,1) is −1. The first zero has hidden the negative entry from the leading determinant chain.

Now predict whether positive leading determinants work without symmetry. The matrix with rows (1,4),(0,1) has leading determinants 1 and 1. Yet at (1,−1) its quadratic expression is −2. The criterion we will prove requires symmetry over the real numbers, or its conjugate analogue over the complex numbers. These are mathematical hypotheses, not cosmetic matrix formatting.

Experiment

Use the completed squares as a manual energy experiment. First set t=1, then 2/3, then 1/3. For each setting predict the sign at (1,−2,3), calculate it, and compare with the determinant. Next choose another vector to check that a single positive evaluation cannot establish positivity in every direction.

tDiagonal square weightsEnergy at (1,−2,3)Conclusion
12, 3/2, 1/33Positive definite
2/32, 3/2, 00Positive semidefinite, rank 2
1/32, 3/2, −1/3−3Not positive semidefinite

Here A=LDLᵀ with L having rows (1,0,0), (1/2,1,0), (0,2/3,1) and D=diag(2,3/2,t−2/3). Multiplication verifies the factorization even at the zero final pivot. The three leading principal minors are 2, 3 and 3t−2. Their consecutive ratios, starting with the empty minor Δ₀=1, are exactly the displayed weights. This particular singular factorization does not authorize dividing by a zero pivot in another matrix.

Understand

Let A be an n×n matrix, with n≥1. Over the complex numbers, A∗ denotes conjugate transpose: transpose the matrix and conjugate each entry. A is Hermitian when A=A∗. Then x∗Ax is real, since its complex conjugate equals itself. Over the real numbers this condition is symmetry and ∗ becomes transpose. A is positive definite when x∗Ax>0 for every nonzero vector x, and positive semidefinite when x∗Ax≥0 for every vector. The squared Euclidean length is ||x||²=x∗x. All assertions here are exact; a rounded near-zero value is not a sign certificate.

A principal submatrix selects the same index set for rows and columns. A leading principal submatrix selects indices 1 through k; write its determinant as Δₖ. Principal minors and leading principal minors are different collections. The empty principal determinant is 1.

Completing a block square

Write a Hermitian matrix in blocks as A=(H,B;B∗,C), with H positive definite. Such H is invertible: a nonzero vector in its kernel would have zero energy. Its inverse is Hermitian because taking the adjoint of HH⁻¹=I proves (H⁻¹)∗=(H∗)⁻¹=H⁻¹. Define the Schur complement S=C−B∗H⁻¹B. For vectors x and y of the corresponding block sizes, direct expansion gives

(x,y)∗A(x,y) = (x+H⁻¹By)∗H(x+H⁻¹By) + y∗Sy.

The cross terms on the right are x∗By and y∗B∗x; the added y∗B∗H⁻¹By cancels the subtraction in S. The coordinate change (x,y)↦(x+H⁻¹By,y) is invertible. Consequently A is positive definite exactly when S is positive definite. For necessity set x=−H⁻¹By; for sufficiency separate y≠0 from y=0,x≠0. With non-strict inequalities the same argument says A is positive semidefinite exactly when S is, still under the hypothesis H positive definite. We have not inverted a singular semidefinite block.

Deriving the positive leading-minor test

The scalar version uses A=(a,r∗;r,C), where a is real. If A is positive definite, a>0 by testing the first coordinate vector, and its Schur complement S=C−rr∗/a is positive definite by the square identity. Induct on dimension. The one-dimensional case is a positive scalar. If S=LₛDₛLₛ∗ with Lₛ unit lower triangular and Dₛ positive diagonal, then

L=(1,0;r/a,Lₛ), D=diag(a,Dₛ), and A=LDL∗.

Block multiplication verifies the equality. Every diagonal entry of L is 1, so it is invertible. Its leading blocks give Δₖ=d₁⋯dₖ>0, where dⱼ are the real diagonal entries of D. In particular positive definiteness implies positive leading minors without needing eigenvalues.

Conversely suppose every leading minor is positive. Then a=Δ₁>0. On each leading (j+1)-block, subtract r/a times the first row from the lower rows. These determinant-preserving operations leave a block triangular matrix with first diagonal entry a and the leading j-block of S. Thus that minor of S is Δⱼ₊₁/a>0. Induction makes S positive definite, and the square identity makes A positive definite. This proves Sylvester’s criterion, including its construction rather than merely naming it.

Finally, any factorization A=LDL∗ with invertible L and positive diagonal D gives positive energy because L∗x is nonzero whenever x is nonzero. In the unit lower normalization, consecutive leading products give dₖ=Δₖ/Δₖ₋₁. We have proved the equivalence of positive definiteness, positive leading principal minors and positive normalized LDL∗ pivots. The empty-dimensional convention has determinant 1 and an empty factorization; the stated induction starts at dimension 1.

Why semidefiniteness needs all principal minors

Necessity uses the existing Hermitian spectral theorem and positive forms, rather than reproving diagonalization here. If A is positive semidefinite, any principal block is too: extend its vectors by zeros in the omitted coordinates. Its Hermitian eigenvalues are nonnegative, so their product, its determinant, is nonnegative.

For sufficiency assume every principal minor of A is nonnegative. Let ε be any positive real number. For an m×m principal block M, column multilinearity gives

det(M+εI) = Σ over J⊆❴1,…,m❵ of ε^(m−|J|) det(M[J]).

Here |J| counts selected indices. To prove the coefficient identity, choose columns from M at indices in J and coordinate columns εeⱼ elsewhere. In the permutation formula every coordinate column forces its own row. The remaining row and column indices are both J, and the permutation sign is that of the restricted permutation: adjoining fixed points does not change parity. The surviving sum is exactly det(M[J]). The empty choice contributes εᵐ, with coefficient 1.

All summands are nonnegative and that empty term is positive. Hence every leading minor of A+εI is positive. Sylvester’s criterion makes A+εI positive definite. For fixed nonzero x this says x∗Ax+ε||x||²>0 for every ε>0. If x∗Ax were negative, taking ε smaller than −x∗Ax/||x||² would contradict it. Therefore x∗Ax≥0. The zero vector already has zero energy, completing the proof.

This is why checking only leading minors is insufficient in the semidefinite case. For diag(0,−1) the missing singleton principal minor at index 2 detects the failure. Another consequence is useful before elimination: if a diagonal entry of a positive semidefinite Hermitian matrix is zero, every off-diagonal entry in that row must vanish. The principal 2×2 determinant is then −|aᵢⱼ|²≥0, forcing aᵢⱼ=0. A nonzero coupling beside a zero diagonal entry is a direct obstruction.

Apply

Change the worked matrix to B(t) with rows (3,1,0), (1,1,1), (0,1,t). Construct the squares yourself before revealing the result. Your certificate must include factors, a parameter boundary, and a vector that distinguishes the boundary from smaller parameters.

Review the changed certificate

The energy is 3(x+y/3)²+(2/3)(y+3w/2)²+(t−3/2)w². Thus the boundary is t=3/2. The leading minors are 3,2,2t−3. The vector (1,−3,2) has energy 4t−6 and is a kernel vector at the boundary. Above the boundary all three square weights are positive; at the boundary the energy is nonnegative with exactly one free zero direction. Below it the displayed vector proves failure.

Now test your complex convention. For H(s) with rows (2,i),(−i,s), the square is 2|x+iy/2|²+(s−1/2)|y|². The vector (−i,2) has energy 4s−2. Using i² in place of |i|² would produce the wrong threshold. Explain aloud where conjugation entered the expansion.

Continue

A positive-definite factorization supplies a verified energy decomposition and prepares a square-root triangular factor. A semidefinite boundary requires separate care: a zero weight can represent a genuine kernel, while a zero leading pivot with a nonzero coupling can expose failure of positivity. Compare the exact square identity, all-principal-minor criterion and a concrete witness before choosing a solver.

Return to exact LU existence and normalization for the algebra behind pivot ratios. Use positive operators and spectral roots to connect these elimination certificates with the already proved spectral viewpoint. This lesson supplies an alternative proof of the strict criterion; it does not claim floating-point elimination alone certifies the sign of an uncertain matrix.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

For the real symmetric matrix B(t) with rows (3,1,0),(1,1,1),(0,1,t), compute normalized LDLᵀ and all leading minors. Classify positive definite, positive semidefinite but singular, and not positive semidefinite values of t. Supply a kernel vector at the boundary and an explicit negative-energy vector below it.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Let A be Hermitian with blocks (H,B;B*,C), where H is positive definite. Prove the completing-square identity with S=C−B*H⁻¹B. Deduce both A positive definite iff S positive definite and A positive semidefinite iff S positive semidefinite. Explain the invertibility and conjugation steps.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

For an n×n Hermitian matrix, n≥1, prove equivalence of positive definiteness, positive leading principal minors, and A=LDL* with L unit lower triangular and D positive real diagonal. Derive dₖ=Δₖ/Δₖ₋₁ with Δ₀=1. Do not simply cite Sylvester’s criterion.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove that a Hermitian matrix is positive semidefinite iff every principal minor is nonnegative. You may use the previously proved Hermitian spectral theorem for necessity. For sufficiency prove det(M+εI)=Σ over index subsets J of ε^(m−|J|)det(M[J]) for each principal m×m block M, and then use the positive-definite criterion. Diagnose the leading-only test with diag(0,−1).

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Classify the Hermitian matrix H(s) with rows (2,i),(−i,s), for real s, by completing the square. Give a boundary kernel vector and negative witness. Then explain why positive leading minors alone do not establish positive quadratic energy for the real nonsymmetric matrix N with rows (1,4),(0,1).

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Prove that a zero diagonal entry of a positive semidefinite Hermitian matrix forces every entry in that row and column to vanish. Use this to diagnose K with rows (0,1),(1,4). Explain why diag(0,2) is nevertheless positive semidefinite and why permuting coordinates changes which minors are leading without changing positivity.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.