Visual walkthrough — Second derivative test — Hessian determinant
4.4.13 · D2· Maths › Multivariable Calculus › Second derivative test — Hessian determinant
Neeche sab kuch sirf do cheezein assume karta hai: tum jaante ho ki function kya hota hai (har point pe floor ke upar ek height), aur tum jaante ho ki partial derivative kya hoti hai (us height ki slope agar tum sirf ek direction mein chalo, doosre ko freeze karke). Baaki sab hum yahan build karte hain.
Step 1 — Woh flat spot jahan hum khade hain
KYA. Hum floor pe ek point choose karte hain jahan surface har direction mein flat ho. "Flat" ka matlab hai: agar tum east–west chalo toh ground ki slope zero hai, aur agar tum north–south chalo toh ground ki slope zero hai. Symbols mein,
Yahan east–west slope hai aur north–south slope. Jis point pe dono zero hoon use critical point kehte hain (dekho Critical points and gradient).
Yahan se kyun shuru karein. Flat spot hi ek aisi jagah hai jahan max, min, ya saddle chhup sakta hai. Kisi slope pe tum hamesha downhill chal sakte ho, toh tum unme se kisi pe bhi nahi ho. Flatness hi humari permission slip hai ki aage curvature dekhen.
PICTURE. Teen flat spots — ek bowl bottom, ek dome top, ek saddle pass — sab ek hi horizontal tangent plane (amber sheet) share karte hain. Slopes zero hain; sirf bending alag hai.

Step 2 — Zoom in: linear part mar jaati hai, curvature hi bachti hai
KYA. Hum surface ki shape ke paas chahte hain, toh hum ko ek flat part, ek slope part, aur ek bending part ke sum ke roop mein likhte hain. Yeh second order tak ka Taylor expansion hai. Maano aur measure karte hain ki hum flat spot se kitna door gaye:
- — east aur north mein tiny steps.
- — east–west slope khud kitna change hoti hai jab tum east jaate ho ( ke along curvature).
- — ke along curvature.
- — coupling: east–west slope kitna change hoti hai jab tum north chalte ho. Yeh ek diagonal twist measure karta hai.
KYU. Kyunki hum ek critical point pe hain, , isliye slope part poora vanish ho jaata hai. Constant sirf poori surface ko upar ya neeche shift karta hai aur shape kabhi nahi badalta. Toh bowl vs dome vs saddle ka faisla karne wali ek hi cheez bending part hai.
PICTURE. Wahi surface, magnifying glass se blow up ki gayi. Door se curved dikhti hai; zoom in karne pe flat sheet aur parabolic bending hi bachti hai — slope arrows kuch nahi reh jaate.

Step 3 — Bachne wale ko naam do: quadratic form
KYA. Constant aur dead linear terms hata do. Jo bachta hai (times ) woh aur mein ek single expression hai:
Yeh ek quadratic form hai (dekho Quadratic forms and definiteness): mein har term degree two ki hai. Isse left to right padhte hain:
- — pure east–west bending, hamesha jaisi sign.
- — twist; yeh plane ke kuch corners mein positive hai aur kuch mein negative, kyunki axes ke across sign flip karta hai.
- — pure north–south bending.
KYU. Flat spot ke paas height hai . Toh surface jahan hoga wahan upar curve karti hai aur jahan hoga wahan neeche. Hamara poora problem ek sawaal tak chhota ho jaata hai:
Kya hamesha positive hai, hamesha negative, ya dono signs leta hai?
Hamesha positive → valley (minimum). Hamesha negative → peak (maximum). Dono signs → saddle.
PICTURE. floor ki sign se coloured: cyan jahan , amber jahan . Bowl poora cyan hai; saddle plane ko cyan aur amber wedges mein split karta hai.

Step 4 — Obstacle: woh middle term
KYA. Agar twist term na hota, life easy hoti: , do clean squares jinki signs hum bas dekh lete. Problem hai jo aur ko mix karta hai, toh ek nazar mein sign nahi bata sakte.
KYU tool chahiye. Hum completing the square use karte hain — classic move jo ko likhta hai. Yeh tool kyun aur factoring kyun nahi? Kyunki perfect square guaranteed hota hai; ek baar messy cross-term ko ek square ke andar bottle kar diya, toh jo bache woh ek clean, isolated coefficient ban jaata hai jis pe hum sign-test kar sakte hain. Factoring ke liye pehle roots pata hone chahiye; completing the square kabhi yeh nahi maangta.
Hume assume karna hoga ki taaki ise common factor ke roop mein bahar nikal sakein. (Step 8 mein alag se handle kiya gaya hai.)
PICTURE. ki tilted trough: ridge/valley line angle pe chalti hai ki wajah se. Completing the square dono coordinates ko us tilt ke saath line up karne ke liye rotate karna hai.

Step 5 — Algebra karo: square appear hota hai
KYA. wale do terms se bahar nikalo:
Ab bracket ke andar square complete karo. Pattern with deta hai:
Term by term:
- — ek perfect square, kabhi negative nahi. Iska coefficient hai.
- — ek doosra square (kabhi negative nahi) times ek leftover coefficient. Woh subtracted exactly woh price hai jo twist ne charge ki.
KYU. Ab humne ko (positive coefficient?) times (square) + (leftover coefficient) times (square) ke roop mein likha hai. Kyunki dono squares hain, ki sign purely do saamne wale coefficients se decide hoti hai.
PICTURE. Do coefficient "dials". Ek padhta hai; doosra leftover padhta hai. Unki signs green (positive) ya red (negative) light up hoti hain.

Step 6 — Number paida hota hai
KYA. Leftover coefficient ko common denominator pe tidy karo:
Woh numerator exactly Hessian matrix ka determinant hai. (Do off-diagonal entries Clairaut's theorem ki wajah se equal hain.) Toh ban jaata hai:
Ab har symbol earned hai. Do coefficients hain aur .
Subtraction kyun, product kyun nahi. Notice karo hai minus . Woh us twist ki memory hai jo humne absorb ki. Isse ignore karo (parent mein Mistake 1) aur tum poori tilt throw away kar dete ho.
PICTURE. Second derivatives ka two-by-two grid jis pe "diagonal product minus off-diagonal square" arrows draw hain — determinant visible ho gaya.

Step 7 — Teen main cases padhna
KYA. . Dono squares . Toh:
KYU yeh watertight hai. ke liye humne haath nahi hilaaya — humne construct kiya ek direction jahan hai aur ek aur jahan . Yahi saddle ki honest definition hai.
PICTURE. Teen side-by-side height plots coefficient signs ke hisaab se keyed: all-up bowl, all-down dome, aur split saddle jiske do coloured escape directions arrowed hain.

Step 8 — Degenerate edges: aur
KYA. Do loose ends jo tidy algebra ne skip kiye.
Case (factor nahi kar saka). Tab . Agar toh yeh do independent linear factors ka product hai, toh dono lines cross karte waqt sign change karta hai → saddle ( ke consistent). Agar bhi ho, tab — poore -axis ke along flat → degenerate, aur actually .
Case . Step 6 mein ek coefficient vanish ho jaati hai, toh ek single square (ya zero) hai — yeh (ya ) rehta hai lekin ek poori line ke along zero ko touch karta hai, sirf ek point pe nahi. Us valley-floor line ke along quadratic term koi information nahi deta; actual shape third- ya fourth-order terms se decide hoti hai jo humne throw away kiye. Isliye inconclusive. Example: ka origin pe genuine minimum hai phir bhi .
KYU inhe apna step chahiye. Contract: reader ko kabhi ek aisa scenario nahi milna chahiye jo humne nahi dikhaya. factoring break karta hai; strict inequality break karta hai. Dono real inputs hain, toh dono handle hote hain.
PICTURE. Left: , ek flat-bottomed bowl jiska base ek point hai lekin plate jaisa curve karta hai — , phir bhi min. Right: ek "monkey saddle" gutter jahan ek line ke along vanish hota hai. Dono second-order test ko defeat karte hain.

Ek picture mein summary
KYA. Poora logic ek single map pe: flat spot → linear terms drop karo → quadratic form → square complete karo → coefficients aur → sign combinations → verdict.

Recall Feynman retelling — poori walk plain words mein
Tum wahan khade ho jahan ground tumhare pair ke neeche bilkul level hai — jis taraf bhi mudo slope nahi. Yeh jaanne ke liye ki tum valley mein ho, hill pe ho, ya mountain pass pe, tum flatness ignore karte ho (woh kuch nahi batata) aur study karte ho ki ground kaise curve karta hai. Curving ko ek expression ke roop mein likho. Iske do parts hain: ek friendly part (pure east–west aur north–south bending) aur ek annoying twisty part ( term) jo sab kuch tilt karta hai. "Completing the square" trick tumhara view rotate karti hai taaki tilt ek neat squared bracket ke andar chhup jaaye, aur peeche do plain dials bachte hain: ek padhta hai, doosra padhta hai, jahan . Agar dono dials positive point karein, ground har jagah upar curve karta hai — valley (min). Dono negative — peak (max). Ek upar, ek neeche — tum saddle pe ho, kyunki tumne ek direction upar jaata mila aur doosra neeche. Aur agar koi dial exactly zero padhe, ground ek poori line ke along flat hai aur curving akela decide nahi kar sakta — tumhe aur close dekhna padega. Woh single number detector hai; ki sign bas "smile or frown" hai.
Active recall
Yahan Taylor expansion mein linear terms kyun drop hote hain?
Square complete karne ke baad ke do coefficients kya hain?
mein kahan se aata hai?
definitely saddle kyun hai?
ho toh derivation ka kya hota hai?
inconclusive kyun hai?
Connections
- Second derivative test — Hessian determinant — woh parent rule jise yeh page derive karta hai.
- Critical points and gradient — Step 1, jahan .
- Taylor series multivariable — Step 2, expansion.
- Hessian matrix — Step 6, .
- Quadratic forms and definiteness — Steps 3 & 7, ka sign analysis.
- Clairaut's theorem — kyun, jo ko symmetric banata hai.
- Lagrange multipliers — is optimisation ka constrained cousin.