WHY only at critical points? At a smooth local extremum, walk along the x-direction: you're at a 1-D max/min, so fx=0. Same for y. If the slope in any direction were nonzero, you could step downhill (or uphill), so it wasn't an extremum. This is Fermat's theorem generalised.
Taylor-expand near a critical point (a,b). Let h,k be small steps. Since fx=fy=0:
f(a+h,b+k)−f(a,b)≈21(fxxh2+2fxyhk+fyyk2).
This quadratic form decides everything. Write it with the Hessian matrix:
H=(fxxfxyfxyfyy),Q(h,k)=21(hk)H(hk)⊤.
Why complete the square? To see the sign of Q for all directions at once. Assume fxx=0:
fxxh2+2fxyhk+fyyk2=fxx(h+fxxfxyk)2+(fyy−fxxfxy2)k2.
The second bracket equals fxxfxxfyy−fxy2=fxxD, where
Now read the signs:
If D>0andfxx>0: both squared terms have positive coefficients ⇒Q>0 always ⇒local minimum.
If D>0andfxx<0: both coefficients negative ⇒Q<0 always ⇒local maximum.
If D<0: the two square-coefficients have opposite signs ⇒Q is positive some directions, negative others ⇒saddle point.
If D=0: the quadratic degenerates; test is inconclusive — use higher terms or direct inspection.
Recall What are the four outcomes of the second derivative test?
D>0,fxx>0: min. D>0,fxx<0: max. D<0: saddle. D=0: inconclusive.
Recall Why can extrema only occur where
∇f=0 (for smooth f)?
If any directional slope were nonzero you could step downhill or uphill, contradicting being a max/min. Hence all partials must vanish.
Recall Where does
D=fxxfyy−fxy2 come from?
It's detH, the leftover coefficient after completing the square in the second-order Taylor expansion; its sign decides whether the quadratic form is definite or indefinite.
Recall Feynman: explain to a 12-year-old
Picture a bumpy blanket. Flat spots are special: top of a bump, bottom of a dip, or a horse-saddle shape where it goes up one way and down another. To tell which, feel how the blanket curves. Curves up everywhere = bowl (lowest point). Curves down everywhere = hill (highest point). Curves up one way and down the other = saddle. A single number D does this curve-checking for us, and a second number tells bowl from hill.
Definition of a critical point of f(x,y)
A point where ∇f=0 (i.e. fx=fy=0) or where a partial fails to exist.
Formula for the discriminant D
D=fxxfyy−(fxy)2=detH.
D>0 and fxx>0 implies what?
Local minimum.
D>0 and fxx<0 implies what?
Local maximum.
D<0 implies what?
Saddle point (regardless of fxx).
D=0 implies what?
Test is inconclusive; inspect directly or use higher-order terms.
Why does fxy matter for classification?
It measures cross-curvature; large ∣fxy∣ can make D<0 turning an apparent min/max into a saddle.
Classify (0,0) for f=x2−y2
Saddle, since D=(2)(−2)−0=−4<0.
What test step comes BEFORE checking fxx?
Computing D; only if D>0 do you read fxx.
Where does D come from in the derivation?
It is the surviving coefficient after completing the square in the 2nd-order Taylor quadratic form (the Hessian determinant).
Socho tum ek pahaadi zameen pe khade ho jiska height z=f(x,y) hai. Critical point woh jagah hai jahan zameen har direction mein flat lagti hai — yaani gradient zero, fx=0 aur fy=0. Yeh teen tarah ke ho sakte hain: gaddha (minimum), choti (maximum), ya ghode ki kaathi yaani saddle, jahan ek taraf upar jaata hai aur doosri taraf neeche.
Pehla step: dono partial derivatives nikaalo aur unhe zero karke equations solve karo — yeh tumhe critical points de dega. Doosra step: classify karna. Iske liye second derivative test use karte hain. Number nikaalo D=fxxfyy−(fxy)2. Yaad rakho mantra: "D decides, phir fxx describes." Agar D>0 aur fxx>0 to minimum (bowl, smiley), D>0 aur fxx<0 to maximum (cap, frown), D<0 to seedha saddle (yahan fxx dekhne ki zaroorat hi nahi), aur D=0 ho to test fail — direct dekhna padega.
Sabse badi galti jo log karte hain: woh sirf fxx aur fyy ka sign dekh ke min/max bol dete hain, aur mixed term fxy ko bhool jaate hain. Lekin fxy cross-curvature batata hai — agar woh bada hua to D negative ho jaata hai aur cheez actually saddle hoti hai. Isliye hamesha pehle D calculate karo. Yeh D kahaan se aaya? Taylor expansion mein second order terms ka square complete karne pe jo bachta hai woh hi detH hai — isiliye uska sign hi shape decide karta hai. Maths exams aur optimization (machine learning, economics) dono mein yeh test super important hai.