1.1.18 · HinglishLinear Algebra Essentials

Quadratic forms

1,455 words7 min readRead in English

1.1.18 · AI-ML › Linear Algebra Essentials


Quadratic form KYA hota hai?

Symmetric KYU? ka sirf symmetric part hi ko affect karta hai. split karo jahan symmetric hai aur skew hai. Toh hamesha hota hai (ek scalar apne transpose ke barabar hota hai: , toh yeh 0 hai). Isliye hum hamesha ko symmetric maante hain — kuch bhi lost nahi hota.


Ise KAISE expand karte hain (scratch se derivation)

Double sum se shuru karo aur dekho har piece kahan se aati hai. lo:

Step 1 ka inner multiply karo: Yeh step kyun? Matrix–vector product pehle ek dimension collapse karta hai, ek vector bacha ke.

Step 2 se dot karo: Yeh step kyun? Cross terms do baar aate hain ( aur dono se), jisse factor banta hai. Yahi key reading rule hai.


Definiteness — bowl ki shape

Ise KAISE test karte hain — eigenvalues se (derivation). Kyunki symmetric hai, Spectral Theorem ek orthonormal eigenbasis deta hai jahan . substitute karo (ek rotation, ):

Figure — Quadratic forms

Worked examples


Common mistakes


Recall Ek 12-saal ke bachche ko samjhao (Feynman)

Ek landscape imagine karo. Tum origin par khade ho (flat point) aur ek machine tumhe batati hai ki kisi bhi direction mein ek step door ground kitni "oopar" hai. Quadratic form wahi machine hai: use ek direction arrow do, woh ek height return karta hai. Matrix secretly store karta hai ki ground kitni steeply bend karti hai. Agar yeh har direction mein upar bend kare, toh tum bowl ke bottom par ho (positive definite). Agar ek taraf upar aur doosri taraf neeche bend kare, toh tum horse saddle par ho (indefinite). Eigenvectors special "downhill/uphill" directions hain, aur eigenvalues batate hain ki wahan kitna sharply bend hota hai.


Recall flashcards

Quadratic form kya hota hai?
Scalar , ki degree-2 function.
Hum ko hamesha symmetric kyun le sakte hain?
Skew part zero contribute karta hai: , isliye sirf matter karta hai.
se matrix kaise padhte hain?
— cross term ko half karo.
Positive definite ki definition?
sabhi ke liye.
Definiteness ke liye eigenvalue test?
Eigen-coords mein ; sabhi ⟺ positive definite; mixed signs ⟺ indefinite.
Sylvester's criterion (2×2)?
Positive definite ⟺ aur .
Completing the square se kya pata chalta hai?
Weighted perfect squares ka sum; positive coefficients ⟺ positive definite (yahi hai).
ke eigenvectors ka geometric meaning?
Quadratic surface ke principal axes; eigenvalues unke saath curvatures hain.
ML mein definiteness kyun important hai?
Positive-definite Hessian ⟹ convex bowl ⟹ unique minimum ⟹ well-behaved optimization.

Connections

Concept Map

expands to

assumes

discards

contributes 0

derivation gives

reading rule

classified by

enables

substitute y=QTx

signs give

determines

measures

Quadratic form Q = xT A x

Double sum of degree-2 terms

Symmetric matrix A

Skew part K

Expand: a x1^2 + 2b x1x2 + c x2^2

Off-diagonal coefficient halved

Definiteness = shape of bowl

Spectral Theorem A = Q Lambda QT

Diagonalized sum lambda_i y_i^2

Eigenvalue sign test

Cost / energy in ML