4.4.10 · D3 · Maths › Multivariable Calculus › Gradient as direction of steepest ascent
Intuition Ye page kya hai
Parent note ne machine banayi: D u f = ∇ f ⋅ u , steepest ascent ∇ f ke along, max rate ∥∇ f ∥ . Yahan hum isko har possible situation mein stress-test karte hain — positive gradients, negative components, ek zero gradient, ek downhill direction, ek real word problem, aur ek exam twist. Agar tum yeh sab kar sako, toh is topic pe koi cheez tumhe surprise nahi kar sakti.
Ye page assume karta hai ki tumne parent note padh liya hai. Hum usme se sirf teen cheezein reuse karte hain, aur kuch nahi:
Is topic ke har problem inka koi ek cell mein aata hai. Neeche har example ko uss cell ke saath tag kiya gaya hai jo wo kill karta hai.
#
Case class
Tricky kyu hai
Example
A
Dono partials positive
"clean" textbook case
Ex 1
B
∇ f mein mixed signs
direction quadrant II/IV mein jaati hai
Ex 2
C
Direction downhill di gayi
dot product negative aata hai
Ex 3
D
Zero gradient (flat point / peak)
steepest direction undefined hai
Ex 4
E
Level curve ke perpendicular
dot product exactly 0 hona chahiye
Ex 5
F
Real-world word problem (units!)
temperature/height ko f mein translate karo
Ex 6
G
Exam twist — "kaunsa raasta f ko constant rakhta hai?"
9 0 ∘ direction dhundhni padegi
Ex 7
H
Limiting / degenerate ridge (partial = 0)
gradient ek axis ke along point karta hai
Ex 8
Worked example Ex 1 (cell A) — steepest ascent, clean case
f ( x , y ) = x 2 + 3 y point P = ( 2 , 1 ) pe. Steepest ascent ki direction aur maximum rate nikalo.
Forecast: compute karne se pehle guess karo — arrow x ki taraf zyada jhukega ya y ki taraf? (At x = 2 the x -slope 2 x = 4 beats the constant y -slope 3 , so x ki taraf jhukna chahiye.)
f x = 2 x , f y = 3 . Yeh step kyun? gradient partial derivatives ka vector hai; f ko x mein differentiate karo y ko fixed rakhke, phir y mein x ko fixed rakhke.
∇ f ( 2 , 1 ) = ( 4 , 3 ) . Kyun? point ko har partial mein plug karo.
∥∇ f ∥ = 4 2 + 3 2 = 25 = 5 . Kyun? increase ki max rate gradient ki length ke barabar hoti hai (parent ke "three big facts").
u ⋆ = 5 ( 4 , 3 ) = ( 0.8 , 0.6 ) . Kyun? steepest ascent gradient ko unit length pe normalise karke milta hai.
Verify: ∥ u ⋆ ∥ = 0. 8 2 + 0. 6 2 = 0.64 + 0.36 = 1 ✓, aur ∇ f ⋅ u ⋆ = 4 ( 0.8 ) + 3 ( 0.6 ) = 3.2 + 1.8 = 5 = ∥∇ f ∥ ✓ — gradient ko apne unit direction se dot karo toh uski length wapas aati hai, exactly jaisa steepest ascent demand karta hai. Arrow x ki taraf jhukta hai (0.8 > 0.6 ), forecast se match karta hai.
Figure mein amber gradient arrow ( 4 , 3 ) P pe dikhaya gaya hai, uska cyan unit version, aur do white component slopes jinse woh bana hai.
Worked example Ex 2 (cell B) — ek gradient jo quadrant IV mein point karta hai
f ( x , y ) = x 2 − y 2 at P = ( 3 , 2 ) . Steepest ascent ki direction?
Forecast: f badhta hai jab x badhta hai lekin badhta hai jab y ghatta hai (− y 2 ki wajah se). Toh uphill arrow right aur neeche point karna chahiye.
f x = 2 x , f y = − 2 y . Kyun? differentiate karo; y 2 pe minus sign carry through hota hai.
∇ f ( 3 , 2 ) = ( 6 , − 4 ) . Kyun? P substitute karo. Negative y -component matlab "chadhne ke liye y mein neeche jao."
∥∇ f ∥ = 6 2 + ( − 4 ) 2 = 36 + 16 = 52 = 2 13 . Kyun? magnitude mein squares use hote hain, toh signs gayab ho jaate hain — length phir bhi well-defined hai.
u ⋆ = 2 13 ( 6 , − 4 ) = 13 ( 3 , − 2 ) . Kyun? normalise karo; 2 ka factor cancel ho jaata hai.
Verify: ∥ u ⋆ ∥ 2 = 13 9 + 4 = 1 ✓. Arrow quadrant IV mein point karta hai (right, neeche), forecast se match karta hai — ek common trap sign ignore karke up-right point karna hai.
Figure mein P = ( 3 , 2 ) dikhaya gaya hai amber gradient ( 6 , − 4 ) ke saath jo quadrant IV mein down-right jhuk raha hai, aur uska cyan unit version.
Worked example Ex 3 (cell C) — negative directional derivative
f ( x , y ) = x 2 + 3 y at P = ( 2 , 1 ) ke saath (Ex 1 jaisa, toh ∇ f = ( 4 , 3 ) ), agar tum towards Q = ( − 2 , − 2 ) chalte ho toh f kitni tezi se change hoga?
Forecast: Q , P ke down-and-left mein hai, roughly uphill arrow ( 4 , 3 ) ke opposite. Ek negative rate expect karo (tum neeche ja rahe ho).
Raw direction v = Q − P = ( − 2 − 2 , − 2 − 1 ) = ( − 4 , − 3 ) . Kyun? tip minus tail travel ki direction deta hai.
∥ v ∥ = 16 + 9 = 5 , toh u = 5 ( − 4 , − 3 ) = ( − 0.8 , − 0.6 ) . Kyun? tumhe normalise karna hi padega , warna rate ∥ v ∥ se scale ho jaata hai aur "per unit distance" nahi rehta (parent ki headline mistake).
D u f = ∇ f ⋅ u = 4 ( − 0.8 ) + 3 ( − 0.6 ) = − 3.2 − 1.8 = − 5 . Kyun? D u f = ∇ f ⋅ u apply karo.
Verify: u = − u ⋆ Ex 1 se, yaani exactly steepest-descent direction, toh hume − ∥∇ f ∥ = − 5 milna chahiye ✓. Ek negative directional derivative ka matlab sirf yeh hai ki "f step karne pe ghatta hai" — sign information hai, error nahi.
Figure mein P pe amber uphill gradient dikhaya gaya hai aur cyan walk-direction Q ki taraf opposite mein point karta hai — unke beech ka 18 0 ∘ hi wajah hai ki rate − 5 hai.
Worked example Ex 4 (cell D) — har direction equally steep hai
f ( x , y ) = x 2 + y 2 origin P = ( 0 , 0 ) pe. Steepest ascent kaunsi taraf hai?
Forecast: origin ek bowl ka bottom hai. Har direction equally uphill jaati hai — toh kya koi unique steepest way hai? (Nahi.)
f x = 2 x , f y = 2 y ⇒ ∇ f ( 0 , 0 ) = ( 0 , 0 ) . Kyun? dono partials bowl ke centre pe vanish ho jaate hain.
∥∇ f ∥ = 0 . Kyun? increase ki max rate first order pe zero hai — surface bilkul bottom pe flat hai.
u ⋆ = 0 ( 0 , 0 ) form nahi ho sakta. Kyun? zero vector ko normalise nahi kar sakte, toh formula koi single preferred direction nahi deta.
Verify: koi bhi unit direction check karo, jaise u = ( 1 , 0 ) : D u f = ∇ f ⋅ u = 0 ( 1 ) + 0 ( 0 ) = 0 . ( 0 , 1 ) , ( 2 1 , 2 1 ) , kuch bhi repeat karo — hamesha 0 milega ✓.
The nuance: "undefined" ek statement hai formula ∇ f /∥∇ f ∥ ke baare mein (division by zero). Geometrically honest reading yeh hai ki "har direction equally steep hai" — first-order rate sab mein 0 hai, toh koi direction jeet nahi sakti aur koi haar nahi sakti. Yeh ek critical point hai; ise report karo: "∇ f = 0 , all directions tie at rate 0 ."
Common mistake "Formula break ho gaya, toh main
( 1 , 0 ) ko steepest pick kar lunga."
Kyun galat hai: formula break nahi hua — usne tumhe bataya ∥∇ f ∥ = 0 , matlab har direction rate 0 pe tie karti hai; first order pe koi doosre se behtar nahi. "Critical point, all directions equal" report karo, winner fabricate mat karo.
Worked example Ex 5 (cell E) —
9 0 ∘ fact, figure se confirm kiya
f ( x , y ) = x y at P = ( 2 , 3 ) ; usme se guzarne wali level curve hai x y = 6 . Dikhao ki ∇ f us curve ke perpendicular hai.
Forecast: parent note claim karta hai ki gradient level curves ke ⊥ hota hai, toh ∇ f aur tangent ka dot product exactly 0 hona chahiye.
∇ f = ( y , x ) = ( 3 , 2 ) at P . Kyun? ∂ x ( x y ) = y , ∂ y ( x y ) = x .
x y = 6 ka tangent: implicitly differentiate karo, y + x y ′ = 0 ⇒ y ′ = − 2 3 . Kyun? ek level curve ke along f constant hota hai, toh uska total change zero hai; y ′ curve ka slope hai. Ek tangent vector apne components ko ( run , rise ) = ( 1 , y ′ ) = ( 1 , − 2 3 ) read karta hai. Fraction clear karne ke liye hum 2 se scale karte hain (ek direction ko positive number se scale karne se direction nahi badalti), jo tidy integer form ( 2 , − 3 ) deta hai.
∇ f ⋅ ( 2 , − 3 ) = 3 ( 2 ) + 2 ( − 3 ) = 6 − 6 = 0 . Kyun? agar dot product 0 hai, toh unke beech ka angle 9 0 ∘ hai.
Verify: cos θ = ∥∇ f ∥ ∥ tangent ∥ ∇ f ⋅ tangent = 13 ⋅ 13 0 = 0 ⇒ θ = 9 0 ∘ ✓. Tangent ke along directional derivative 0 hai (tum x y = 6 pe rehte ho), toh f change nahi hota — exactly isliye uphill arrow curve ko right angle pe chodna chahiye.
Figure mein hyperbola x y = 6 dikhaya gaya hai, P pe uska cyan tangent, aur amber gradient exactly 9 0 ∘ pe us se nikalta hua.
Worked example Ex 6 (cell F) — ek hiker temperature field pe
Ek metal plate pe, temperature hai T ( x , y ) = 20 + 4 x − 3 y degrees Celsius, jahan x , y metres mein hain. Ek bug ( 5 , 5 ) pe baitha hai. (a) Use garam hone ke liye kaunsi taraf crawl karna chahiye? (b) Kis rate pe (°C per metre)? (c) Wo instead east crawl karta hai, direction ( 1 , 0 ) — uska temperature kitni tezi se change hota hai?
Forecast: T x ke saath badhta hai aur y ke saath ghatta hai, toh "sabse garam raasta" east-and-south point karega. Rate per metre 4 2 + 3 2 = 5 ke aas paas honi chahiye.
T x = 4 , T y = − 3 , toh ∇ T = ( 4 , − 3 ) har jagah (linear field). Kyun? differentiate karo; field planar hai, toh gradient constant hai. Units: ∘ C / m .
Sabse garam direction u ⋆ = 16 + 9 ( 4 , − 3 ) = 5 ( 4 , − 3 ) = ( 0.8 , − 0.6 ) . Kyun? gradient normalise karo — T ka steepest ascent.
Max rate = ∥∇ T ∥ = 5 ∘ C/m . Kyun? gradient ka magnitude increase ki fastest possible rate hai.
East crawl karna: D ( 1 , 0 ) T = ∇ T ⋅ ( 1 , 0 ) = 4 ( 1 ) + ( − 3 ) ( 0 ) = 4 ∘ C/m . Kyun? gradient ko di gayi (already unit) direction se dot karo.
Verify: u ⋆ ek unit vector hai (0. 8 2 + 0. 6 2 = 1 ) ✓. East 4 < 5 deta hai ✓ — gradient direction ko koi beat nahi kar sakta, aur units throughout ∘ C per metre rehti hain, confirm karta hai ki humne sahi normalise kiya (ek non-unit direction nonsense units deta).
Figure mein bug ( 5 , 5 ) pe dikhaya gaya hai, amber warmest-way arrow ( 4 , − 3 ) east-south point karta hua, aur cyan "east" arrow jiska slower rate 4 < 5 uski shorter projection se padha ja sakta hai.
Worked example Ex 7 (cell G) — zero change ki direction
f ( x , y ) = 3 x + 4 y at P = ( 1 , 1 ) . Ek unit direction dhundo jiske along f nahi badalti, aur confirm karo ki yeh valid answer hai.
Forecast: "koi change nahi" matlab ∇ f ke perpendicular. Do aisi directions honi chahiye (level line ke along ek doosre ke opposite).
∇ f = ( 3 , 4 ) . Kyun? linear field ke partials uske coefficients hain.
( 3 , 4 ) ke perpendicular vector hai ( 4 , − 3 ) (swap karo aur ek negate karo). Kyun? ( 3 ) ( 4 ) + ( 4 ) ( − 3 ) = 0 , toh yeh 9 0 ∘ angle banata hai — flat direction.
Normalise karo: u = 16 + 9 ( 4 , − 3 ) = 5 ( 4 , − 3 ) = ( 0.8 , − 0.6 ) . Uska opposite ( − 0.8 , 0.6 ) bhi equally kaam karta hai. Kyun? direction unit length honi chahiye; dono signs level curve ke along hain.
Verify: D u f = ∇ f ⋅ u = 3 ( 0.8 ) + 4 ( − 0.6 ) = 2.4 − 2.4 = 0 ✓. Zero rate matlab tum plane ki ek level line ke along chalte ho, toh f genuinely constant hai — twist sirf 9 0 ∘ fact ulta padha gaya hai.
Figure mein amber gradient ( 3 , 4 ) aur do cyan level directions ± ( 0.8 , − 0.6 ) dikhaye gaye hain jo ise 9 0 ∘ pe cross karte hain — kisi bhi taraf chalo aur f constant rehta hai.
Worked example Ex 8 (cell H) — gradient ek axis ke along
f ( x , y ) = x 2 + cos y at P = ( 1 , 0 ) . Steepest ascent direction aur rate?
Forecast: cos y y = 0 pe apne peak pe hai, toh wahan uska slope 0 hai. Uphill arrow purely x ke along point karna chahiye.
f x = 2 x , f y = − sin y . Kyun? d y d cos y = − sin y .
At P = ( 1 , 0 ) : ∇ f = ( 2 , − sin 0 ) = ( 2 , 0 ) . Kyun? sin 0 = 0 , toh y -slope vanish ho jaata hai — y -direction mein chalti ek ridge.
∥∇ f ∥ = 2 2 + 0 2 = 2 . Kyun? zero component ke saath magnitude sirf surviving component hai.
u ⋆ = 2 ( 2 , 0 ) = ( 1 , 0 ) . Kyun? normalise karo; arrow purely + x ke along point karta hai, forecast confirm karta hai.
Verify: D ( 1 , 0 ) f = ∇ f ⋅ ( 1 , 0 ) = 2 = ∥∇ f ∥ ✓, aur perpendicular direction ( 0 , 1 ) deta hai D ( 0 , 1 ) f = 2 ( 0 ) + 0 ( 1 ) = 0 ✓ — ridge ke along chalne se f momentarily flat rehta hai, exactly jaisa ek zero partial predict karta hai.
Figure mein P = ( 1 , 0 ) dikhaya gaya hai amber gradient ( 2 , 0 ) ke saath jo purely + x ke along point karta hai aur cyan ridge direction ( 0 , 1 ) jiske along f flat rehta hai.
Recall Kaun sa cell kaun sa tha?
A positive-clean ::: Ex 1
B mixed signs ::: Ex 2
C downhill (negative D u f ) ::: Ex 3
D zero gradient (all directions tie) ::: Ex 4
E perpendicular to level curve ::: Ex 5
F word problem with units ::: Ex 6
G "stay level" twist ::: Ex 7
H degenerate ridge (a partial = 0 ) ::: Ex 8
Mnemonic Universal recipe
1. Partials → gradient. 2. Length = max rate. 3. Normalise = direction. Phir sign padho: + upar, − neeche, 0 level. Agar ∇ f = 0 , answer hai "critical point, every direction ties at rate 0 ."