4.4.9 · D3 · Maths › Multivariable Calculus › Gradient vector ∇f — definition, properties
Intuition Yeh page kya karti hai (WHY)
Parent note ne gradient ∇ f aur uski teen properties build ki thi. Yahan hum unhe stress-test karenge. Hum gradient ke har possible situation ko hit karenge: positive aur negative components, ek gradient jo zero ho jaata hai, ek direction jo downhill point karta hai, ek level set jo nice circle nahi hai, ek real-world word problem, aur ek exam twist jahan tumhe backwards kaam karna padega. Agar tum yeh sab kar sako, toh is topic ka koi bhi problem tumhe surprise nahi kar sakta.
Shuru karne se pehle, teen chhoti reminders taaki har symbol earned lage:
Definition Teen objects jo hum baar baar use karenge
∇ f = ( f x , f y ) — ek vector jiske do numbers x -axis aur y -axis ke saath slopes hain. f x ka matlab hai "y ko freeze karo, dekho f kitni tezi se chadhti hai jab x badhta hai".
u ^ = ( u 1 , u 2 ) — ek unit direction arrow (length exactly 1 ): u 1 2 + u 2 2 = 1 .
D u ^ f = ∇ f ⋅ u ^ = f x u 1 + f y u 2 — ek akela number: f kitni tezi se chadhti hai agar tum direction u ^ mein step karo. Dot "⋅ " ka matlab hai "matching pieces multiply karo aur add karo".
Har gradient problem in cells mein se ek mein hoti hai. Neeche har example us cell ke saath tagged hai jo woh cover karta hai.
Cell
Scenario class
Isme kya tricky hai
Example
A
Sab positive components, plain compute
kuch nahi — yeh warm-up hai
Ex 1
B
Mixed signs ( + , − ) , direction downhill point karta hai
negative D u ^ f ; cos θ ka sign
Ex 2
C
Degenerate: ∇ f = 0 (ek flat/critical point)
har direction rate 0 deta hai; steepest direction undefined
Ex 3
D
Non-circular level curve ke saath perpendicularity
tangent obvious nahi; ∇ f ⋅ ( tangent ) = 0 use karna padega
Ex 4
E
Non-unit vector diya gaya hai (yeh trap hai)
pehle normalise karna zaroori
Ex 5
F
Real-world word problem (temperature/hill)
words ko ∇ f mein translate karo, units
Ex 6
G
Limiting/extreme direction: fastest descent aur zero-change direction
teeno key angles ke signs 0 , π , π /2
Ex 7
H
Exam twist: backwards kaam karo — ek directional derivative diya, unknown dhundho
ek component ke liye solve karo
Ex 8
Har f x , f y compute karne ke liye Partial derivatives dekho, aur dot-product rule ke liye Directional derivative dekho.
Worked example Ex 1 — Cell A: all-positive warm-up
f ( x , y ) = 3 x 2 + y 3 . ( 1 , 2 ) par ∇ f aur steepest-ascent rate nikalo.
Forecast: andaaza lagao — kya steepest rate 10 se badi hogi ya chhoti?
f x = 6 x , f y = 3 y 2 . Yeh step kyun? Partial derivative doosre variable ko freeze karti hai, isliye 3 x 2 ek single-variable function ki tarah differentiate hoti hai aur y 3 constant treat hoti hai (uski x -derivative 0 hai).
( 1 , 2 ) par: ∇ f = ( 6 ⋅ 1 , 3 ⋅ 2 2 ) = ( 6 , 12 ) . Kyun? Bas point ko har slope mein plug karo.
Steepest rate = ∣∇ f ∣ = 6 2 + 1 2 2 = 180 = 6 5 ≈ 13.42 . Kyun? Property 2: max rate gradient ki length ke barabar hoti hai, aur length = sum of squares .
Verify: dono components positive hain, isliye arrow up-and-right first quadrant mein point karta hai, aur 180 > 10 jaisa expect tha. Climb ki direction = ( 6 , 12 ) / 180 , ek unit vector: ( 6 2 + 1 2 2 ) /180 = 1 . ✓
Worked example Ex 2 — Cell B: mixed signs, downhill step karna
f ( x , y ) = x 2 − y 2 at ( 2 , 1 ) . Direction u ^ = ( 0 , 1 ) mein step karo (y mein seedha upar). D u ^ f nikalo aur batao uphill ho ya downhill.
Forecast: y 2 mein minus sign hai. + y mein move karne par height milegi ya khoegi?
∇ f = ( 2 x , − 2 y ) , toh ( 2 , 1 ) par: ∇ f = ( 4 , − 2 ) . Minus kyun? − y 2 differentiate hoke − 2 y deta hai; sign carry through hota hai.
u ^ = ( 0 , 1 ) ki length 0 2 + 1 2 = 1 hai — pehle se unit hai. Check kyun karo? D u ^ f tabhi sahi "per-step" rate hai jab unit vector ho.
D u ^ f = ( 4 , − 2 ) ⋅ ( 0 , 1 ) = 4 ⋅ 0 + ( − 2 ) ⋅ 1 = − 2 . Kyun? Dot product matching pieces multiply karke add karta hai; yahan sirf y -piece bachta hai.
Verify: result negative hai, matlab + y mein move karna tumhe downhill le jaata hai — yeh samajh aata hai kyunki − y 2 decrease hoti hai jab ∣ y ∣ badhta hai. Aur ∣ D u ^ f ∣ = 2 ≤ ∣∇ f ∣ = 20 ≈ 4.47 , yeh "koi direction gradient ki length se nahi jeet sakti" rule maanti hai. ✓
Worked example Ex 3 — Cell C: degenerate, gradient zero hai
f ( x , y ) = x 2 + y 2 at origin ( 0 , 0 ) . ∇ f aur steepest-ascent direction nikalo.
Forecast: bowl ka bottom origin par hai. Ekdum bottom se "uphill" kaun si taraf hogi?
∇ f = ( 2 x , 2 y ) , toh ( 0 , 0 ) par: ∇ f = ( 0 , 0 ) = 0 . Kyun? Dono slopes zero ho jaate hain — surface low point par momentarily flat hai.
Steepest rate = ∣ 0 ∣ = 0 . Kyun? Zero vector ki length 0 hoti hai.
Steepest direction undefined hai. Yeh step kyun matter karta hai? Har direction D u ^ f = 0 ⋅ u ^ = 0 deti hai; koi "most uphill" raasta nahi hai kyunki yahan har taraf equally flat hai. Yeh exactly ek critical point hai — Gradient descent aur Lagrange multipliers dono isi ko dhundhte hain.
Verify: koi bhi u ^ = ( u 1 , u 2 ) try karo: D u ^ f = 0 ⋅ u 1 + 0 ⋅ u 2 = 0 sabke liye. Consistent — koi preferred uphill nahi. ✓
Worked example Ex 4 — Cell D: non-circular level curve ke perpendicular
f ( x , y ) = x 2 + 4 y 2 . ( 2 , 1 ) par (jo f = 8 , ek ellipse par lie karta hai), dikhao ki ∇ f level curve ke perpendicular hai.
Forecast: level curve ek squashed circle hai. Kya ∇ f phir bhi exactly iske across point karega?
∇ f = ( 2 x , 8 y ) , toh ( 2 , 1 ) par: ∇ f = ( 4 , 8 ) . 8 kyun? 4 y 2 differentiate hoke 8 y deta hai.
Ellipse par ( 2 , 1 ) par ek tangent dhundho. x 2 + 4 y 2 = 8 ko implicitly differentiate karo: 2 x + 8 y y ′ = 0 ⇒ y ′ = − 8 y 2 x = − 8 ⋅ 1 2 ⋅ 2 = − 2 1 . Toh ek tangent direction hai ( 1 , − 2 1 ) , ya fraction clear karke t = ( 2 , − 1 ) . Implicit differentiation kyun? Curve koi function y ( x ) nahi hai jise hum solve kar sakein, isliye equation ko as-is differentiate karte hain slope paane ke liye.
Gradient ko tangent se dot karo: ∇ f ⋅ t = ( 4 , 8 ) ⋅ ( 2 , − 1 ) = 8 − 8 = 0 . Kyun? Property 3 kehti hai ∇ f ⊥ level set; zero dot product exactly perpendicularity hai.
Verify: dot 0 hai, isliye red arrow (gradient) ellipse se right angle par milta hai chahe curve stretched ho. Level curves and surfaces dekho. ✓
Worked example Ex 5 — Cell E: non-unit trap
f ( x , y ) = x y at ( 3 , 2 ) . Point ( 6 , 6 ) ki taraf rate of change nikalo.
Forecast: ( 6 , 6 ) tak step vector ( 3 , 4 ) hai, length 5 . Agar normalise skip karo, toh tumhara answer 5 se scale ho jaayega — galti pakdo.
∇ f = ( y , x ) , toh ( 3 , 2 ) par: ∇ f = ( 2 , 3 ) . ( y , x ) kyun? ∂ ( x y ) / ∂ x = y (y constant treat karo), ∂ ( x y ) / ∂ y = x .
Step vector v = ( 6 , 6 ) − ( 3 , 2 ) = ( 3 , 4 ) , aur ∣ v ∣ = 3 2 + 4 2 = 5 . Kyun? Direction = destination minus start.
Normalise karo: u ^ = ( 3 , 4 ) /5 = ( 0.6 , 0.8 ) . Yeh step kyun? D u ^ f tabhi genuine per-unit-length rate hai jab length-1 arrow ho (parent note ki mistake (a)).
D u ^ f = ( 2 , 3 ) ⋅ ( 0.6 , 0.8 ) = 1.2 + 2.4 = 3.6 . Kyun? Matching pieces multiply karo, add karo.
Verify: galat (unnormalised) answer hoga ( 2 , 3 ) ⋅ ( 3 , 4 ) = 6 + 12 = 18 = 5 × 3.6 — exactly 5 × zyada, jo confirm karta hai ki scale factor ∣ v ∣ = 5 hai. ✓
Worked example Ex 6 — Cell F: real-world word problem
Ek metal plate ka temperature T ( x , y ) = 100 − x 2 − 3 y 2 degrees hai, jahan x , y metres mein hain. Ek cheenti ( 1 , 2 ) par baithi hai. (a) Ushe sabse tezi se garam hone ke liye kaun si taraf chalna chahiye, aur kitni tezi se (°C per metre)? (b) Same temperature rakhne ke liye kaun si taraf?
Forecast: plate sabse garam centre ( 0 , 0 ) par hai; cheenti off-centre hai. Kya "warmest way" centre ki taraf point karega ya door?
∇ T = ( − 2 x , − 6 y ) , ( 1 , 2 ) par: ∇ T = ( − 2 , − 12 ) . Negatives kyun? Temperature badhne par girti hai, isliye slopes negative hain.
Fastest warming = ∇ T = ( − 2 , − 12 ) ki direction; rate = ∣∇ T ∣ = ( − 2 ) 2 + ( − 12 ) 2 = 148 = 2 37 ≈ 12.17 °C/m. Kyun? Property 2 phir — steepest ascent gradient ke saath hai, rate uski length hai. Units: (°C)/(m) kyunki T °C mein hai aur steps metres mein hain.
Constant-temperature direction: ∇ T ke perpendicular. Components swap karo aur ek negate karo: ( − 12 , 2 ) (ya ( 12 , − 2 ) ). Kyun? θ = π /2 wali property D u ^ T = 0 deti hai; ( a , b ) ke perpendicular vector ( − b , a ) hota hai.
Verify: warming direction ( − 2 , − 12 ) hot centre ki taraf point karta hai — sensible hai. Perpendicular check: ( − 2 , − 12 ) ⋅ ( − 12 , 2 ) = 24 − 24 = 0 . ✓
Worked example Ex 7 — Cell G: teeno limiting angles ek saath
f ( x , y ) = 2 x + y (ek tilted plane) kisi bhi point par. Fastest-ascent, fastest-descent, aur zero-change directions rates ke saath do.
Forecast: ek plane ke liye gradient har jagah same hota hai. Teeno special rates kya hain?
∇ f = ( 2 , 1 ) , constant hai. Constant kyun? 2 x + y ki partial derivatives constants 2 aur 1 hain.
∣∇ f ∣ = 2 2 + 1 2 = 5 ≈ 2.236 . Fastest ascent : direction ( 2 , 1 ) / 5 , rate + 5 (θ = 0 , cos θ = 1 ). Kyun? D u ^ f = ∣∇ f ∣ cos θ tab max hota hai jab step ∇ f ke saath align ho.
Fastest descent : direction − ( 2 , 1 ) / 5 , rate − 5 (θ = π , cos θ = − 1 ). Kyun? Opposite direction sign flip karta hai; yahi arrow hai jise Gradient descent follow karta hai.
Zero change: koi bhi u ^ ⊥ ( 2 , 1 ) , jaise ( 1 , − 2 ) / 5 , rate 0 (θ = π /2 , cos θ = 0 ). Kyun? Gradient ke perpendicular rehna tumhe level line par rakhta hai.
Verify: zero direction check karo: ( 2 , 1 ) ⋅ ( 1 , − 2 ) / 5 = ( 2 − 2 ) / 5 = 0 . Aur ascent rate: ( 2 , 1 ) ⋅ ( 2 , 1 ) / 5 = 5/ 5 = 5 . ✓
Worked example Ex 8 — Cell H: exam twist, backwards kaam karo
Ek point P par, f x = 3 aur f y = a unknown hai. Tumhe bataya gaya hai ki direction u ^ = ( 5 3 , 5 4 ) mein directional derivative 5 29 hai. a nikalo, phir P par steepest-ascent rate nikalo.
Forecast: tum dot product ka output jaante ho aur missing input recover karna hai. Ek linear equation, ek unknown — solvable hai.
Rule likho: D u ^ f = ∇ f ⋅ u ^ = 3 ⋅ 5 3 + a ⋅ 5 4 = 5 9 + 5 4 a . Kyun? Same dot-product formula, bas a symbolic hai.
Diye gaye value ke barabar karo: 5 9 + 5 4 a = 5 29 ⇒ 5 4 a = 5 20 = 4 ⇒ a = 5 . Kyun? a ke liye single linear equation solve karo.
Ab ∇ f = ( 3 , 5 ) , toh steepest rate = ∣∇ f ∣ = 3 2 + 5 2 = 34 ≈ 5.83 . Kyun? Ek baar gradient pata chal jaaye, uski length max rate hai.
Verify: a = 5 wapas rakh kar check karo: ( 3 , 5 ) ⋅ ( 5 3 , 5 4 ) = 5 9 + 5 20 = 5 9 + 5 20 = 5 29 . ✓ Diye gaye data se match karta hai.
Common mistake Cross-example pitfalls
Ex 3 trap: zero gradient par, yeh MAT kaho ki "steepest direction ( 0 , 0 ) hai" — zero vector ki koi direction nahi hoti; honest answer undefined hai.
Ex 5 trap: kabhi bhi non-unit step vector se dot karke use rate mat kaho. Pehle normalise karo.
Ex 4 trap: non-circular level curve ke liye tum tangent eyeball nahi kar sakte — implicit differentiation se nikalo, phir ∇ f ⋅ t = 0 confirm karo.
Recall Quick self-test (andaaza lagaane ke baad reveal karo)
"Temperature map par coldest-approach direction dhundho" kaun se cell mein aayega? ::: Cell F/G — fastest descent, direction − ∇ T .
Agar P par ∇ f = ( 0 , 0 ) ho, toh har u ^ ke liye D u ^ f kya hoga? ::: Hamesha 0 ; point critical hai.
Kisi target point ki taraf ek direction diya ho, toh sabse PEHLE kya karna chahiye? ::: Step vector ko length 1 tak normalise karo.
Mnemonic Scenario check-list
"SNAP-Z" — S igns of components check karo, direction ko N ormalise karo, ascent/descent/level ke liye A ngle (0/ π / π /2 ), level sets ke liye P erpendicularity, Z ero-gradient matlab undefined direction.