4.5.39 · D3Linear Algebra (Full)

Worked examples — Quadratic forms — positive definite, negative definite, indefinite

2,574 words12 min readBack to topic

We lean on two tools throughout — the eigenvalue test (via the Spectral Theorem for Symmetric Matrices) and Sylvester's determinant test. We close with the Hessian Matrix / Second Derivative Test payoff.


The scenario matrix

Every symmetric quadratic form lands in exactly one row below. The columns tell you what the two tests should say, so you can check yourself.

# Cell (what makes it special) Eigenvalue signs Sylvester Type
A Both dials up PD
B Both dials down ND
C One up, one down any, Indefinite
D One dial flat (up branch) PSD (not PD)
E One dial flat (down branch) NSD (not ND)
F Both dials flat — degenerate zero machine Both PSD & NSD (only zero output)
G Limiting family — a parameter tips PD → PSD → indefinite crosses crosses transitions
H Trap: " so it's PD" (Sylvester misread) Indefinite (not PD)
I Word problem — real Hessian, minimize a cost PD → minimum
J Exam twist — , mixed mixed Indefinite

The examples below hit every one of A–J.


Example 1 — Cell A (Positive definite)


Example 2 — Cell B (Negative definite)


Example 3 — Cell C (Indefinite saddle) — with figure

Figure — Quadratic forms — positive definite, negative definite, indefinite

Look at the saddle: the pale-yellow ridge (going up) is the eigendirection, the chalk-blue valley (going down) is the direction. Standing at the center, you go up one way and down the other — that is what "indefinite" looks like.


Example 4 — Cell D (PSD, not PD)


Example 5 — Cell E (NSD, not ND)


Example 6 — Cell F (Degenerate zero machine)


Example 7 — Cell G (Limiting family: one parameter tips the type) — with figure

Figure — Quadratic forms — positive definite, negative definite, indefinite

The figure plots the two eigenvalues (pale yellow) and (chalk blue) against the dial . PD is the band where both curves sit above the axis; at one curve touches zero (PSD); outside that, one curve crosses below → indefinite. Definiteness is literally "are both curves above the line?"


Example 8 — Cell H (The Sylvester trap)


Example 9 — Cell I (Word problem: minimizing a real cost)


Example 10 — Cell J (Exam twist: a )


Recall

Recall Quick self-test across the matrix

Which cell has and eigenvalues ? ::: Cell D — PSD, not PD. Which single cell is simultaneously PSD and NSD? ::: Cell F — the zero machine (only zero output). In the family , at what does PD end? ::: (there ). Why is alone NOT enough for PD? ::: PD needs the whole chain ; one minor can be positive while (indefinite) — the Cell H trap. A PD Hessian at a critical point signals what? ::: A local minimum (bowl).