WHY symmetric? Any matrix B gives x⊤Bx, but only the symmetric part matters:
x⊤Bx=x⊤symmetric2B+B⊤x+x⊤antisymmetric2B−B⊤x.
The antisymmetric part contributes 0 (a scalar equals its own transpose, and the antisymmetric piece transposes to its negative). So we always choose A symmetric — it's unique.
Derivation from scratch. Substitute A=QΛQ⊤:
Q(x)=x⊤QΛQ⊤x.
Let y=Q⊤x (rotated coordinates). Since Q is invertible, x=0⟺y=0. Then
Q(x)=y⊤Λy=∑i=1nλiyi2.
This is diagonal — pure squares, no cross terms! Now read off the sign:
WHY it works:yi2≥0 always. If every λi>0, every term is positive (unless all yi=0, i.e. x=0). If one λ is + and one is −, pick y along each eigenvector to get either sign → indefinite.
What matrix does a quadratic form use, and what property must it have?
Q(x)=x⊤Ax with Asymmetric (A⊤=A).
How do you build A from a formula like ax2+bxy+cy2?
Diagonals a,c; off-diagonals each equal b/2.
Why does the antisymmetric part of a matrix not affect x⊤Bx?
A scalar equals its transpose; the antisymmetric part transposes to its negative, forcing it to be 0.
Eigenvalue test for positive definite?
All eigenvalues λi>0.
Eigenvalue test for indefinite?
Eigenvalues have mixed signs (at least one >0 and one <0).
After diagonalizing A=QΛQ⊤, what does Q(x) become?
∑iλiyi2 where y=Q⊤x.
Sylvester's criterion for PD?
All leading principal minors Dk>0.
Sylvester's criterion for ND?
Signs alternate: (−1)kDk>0, i.e. D1<0,D2>0,D3<0,….
What distinguishes PSD from PD?
PSD allows Q(x)=0 for some x=0 (a zero eigenvalue); PD is strictly >0.
Hessian PD at a critical point means what?
Local minimum (bowl shape).
Hessian indefinite means?
Saddle point.
Recall Feynman: explain to a 12-year-old
Imagine a machine where you put in arrows and it gives you a number. A positive-definite machine is like a valley: no matter which direction you step away from the bottom, you go up — the number is always positive. A negative-definite one is a hilltop: every step goes down. An indefinite one is a horse-saddle: step one way and you go up, step the other way and you go down. To know which kind you have, we secretly turn our head (rotate the axes) until the machine becomes super simple — just λ1(first)2+λ2(second)2+…. Then we just look at the signs of those λ numbers: all plus = valley, all minus = hill, mixed = saddle. Easy!
Dekho, quadratic form ka matlab hai ek aisa function Q(x)=x⊤Ax jisme sirf degree-2 terms hote hain — jaise x2, xy, y2. Yahan A hamesha symmetric matrix lete hain (diagonal pe square ke coefficients, off-diagonal pe cross term ka aadha). Symmetric isliye, kyunki antisymmetric part to apne aap zero ho jaata hai.
Ab asli sawaal: ye machine hamesha positive number deti hai, hamesha negative, ya mixed? Agar hamesha positive (except origin) → positive definite (katore jaisa, minimum). Hamesha negative → negative definite (pahaadi ki choti, maximum). Dono signs aaye → indefinite (ghode ki seat, saddle). Decide kaise karein? Eigenvalues dekho! Spectral theorem se A=QΛQ⊤, aur axes ko ghuma ke form ban jaata hai ∑λiyi2. Sab λ>0 → PD, sab <0 → ND, mixed signs → indefinite. Bas signs check karo.
Haath se jaldi karna ho to Sylvester's criterion use karo — leading principal minors Dk. Sab Dk>0 → PD. ND ke liye signs alternate karne chahiye: D1<0,D2>0,D3<0… — yahin students galti karte hain, sochte hain "sab negative = ND", jo galat hai!
Ye cheez kyun important hai? Optimization mein! Critical point pe Hessian matrix ek quadratic form banati hai. PD → minimum, ND → maximum, indefinite → saddle point. Yani second-derivative test ka pura asli jadu yahi linear algebra hai. Machine learning, stability, least-squares — sab jagah PD matrices ka raj hai.