The cleanest derivation uses a curve lying inside the level set.
Step 1 — Parametrize a curve on the level set.
Let r(t) be any smooth curve that stays on the level set, so
f(r(t))=cfor all t.Why this step? The tangent vector r′(t) of such a curve is, by definition, a direction that lies along the level set. If ∇f⊥r′(t) for every such curve, then ∇f is perpendicular to the whole level set.
Step 2 — Differentiate both sides with respect to t.
The left side is a composition, so use the multivariable chain rule:
dtdf(r(t))=∇f(r(t))⋅r′(t).
The right side: dtd(c)=0.
Why this step? The chain rule is exactly the tool that connects how f changes to how the position changes. Setting it up lets the constancy of f do the work.
Step 3 — Read off the conclusion.∇f(r(t))⋅r′(t)=0.
A dot product equal to zero means the two vectors are perpendicular. Since r′(t) is the tangent to the level set, ∇f is normal to the level set. ■
Differentiating f(r(t))=c via chain rule gives ∇f⋅r′(t)=0; the tangent dots to zero with ∇f.
What does ∇f⋅u=0 tell you geometrically?
u is a direction along the level set (no change in f), i.e. tangent to it.
Direction of ∇f relative to a level set?
Normal (perpendicular), pointing toward increasing f (steepest ascent).
Tangent plane to f(x,y,z)=c at x0?
∇f(x0)⋅(x−x0)=0.
For f=x2+y2 at (3,4), what is ∇f and is it perpendicular to the circle?
(6,8); yes, it's radial, perpendicular to tangent (−4,3).
Normal to the GRAPH z=f(x,y) (not the level curve)?
(fx,fy,−1), from g=f(x,y)−z.
Implicit slope of f(x,y)=c in terms of partials?
dy/dx=−fx/fy.
Recall Feynman: explain to a 12-year-old
Imagine a hill drawn as a map with circles showing equal heights (like a contour map). If you walk along one circle, you never go up or down — you stay at the same height. The steepest "straight up the hill" direction always cuts straight across those circles, like a "T". It can't run along a circle, because along a circle the height doesn't change at all! That "straight up" arrow is the gradient, and it's always at a right angle to the contour lines.
Socho ek contour map jaisa — har circle pe height same hai. Yeh circles hi level curves hote hain, jahan function f ki value constant rehti hai. Ab gradient∇f woh arrow hai jo function ke sabse tezi se badhne ki direction batata hai (steepest ascent). Main idea: yeh dono ek doosre ke bilkul perpendicular (90°) hote hain.
Kyun? Agar tum level curve ke along chalo, toh f change hi nahi hota. Iska matlab us direction me change rate zero hai, yaani ∇f⋅u=0. Aur dot product zero ka matlab hai dono vectors perpendicular. Derivation simple hai: curve r(t) ko level curve pe rakho, f(r(t))=c likho, dono taraf t se differentiate karo (chain rule), aur ∇f⋅r′(t)=0 mil jaata hai. Bas ho gaya proof.
Yeh kyun important hai? Kyunki ek baar tumhe pata chal gaya ki ∇f ek normal vector hai, toh tangent plane ki equation turant nikal aati hai: ∇f⋅(x−x0)=0. Sphere, hyperbola, koi bhi surface ho — same trick. Aur yahi concept aage Lagrange multipliers aur gradient descent me kaam aata hai.
Ek common galti: log sochte hain gradient curve ke along hota hai. Galat! Gradient hamesha curve ke across (perpendicular), uphill direction me hota hai. Yaad rakho: "no change ⟂ most change".