4.4.8 · D3 · Maths › Multivariable Calculus › Directional derivative — definition, formula
Ye note parent note ki companion hai. Wahan humne formula banaya tha
D u f ( a ) = ∇ f ( a ) ⋅ u , ∥ u ∥ = 1.
Yahan hum ise drill karenge. Plan yeh hai: pehle ek scenario matrix banao — ek checklist har tarah ke case ki jo is topic mein aa sakti hai — phir aisi examples work karo jo milke har cell ko tick kar den.
Intuition Woh ek adat jo har problem bachati hai
Koi bhi arithmetic shuru karne se pehle, parent note ka recipe dhire se bol lo — "GUN" : G radient, direction ko U nit-ize karo, N umber dot product se nikalo. Agar U skip kiya, toh galat number aayega jo sahi lagega . Neeche har galti ek missing letter hai.
Definition "Unit-ize" ka matlab kya hai aur hum hamesha ye kyun kar sakte hain
Ek nonzero direction vector v ko unit-ize karne ka matlab hai usse length 1 tak shrink ya stretch karna jabki uska heading same rahe: u = ∥ v ∥ v . Parent note mein directional derivative ek rate per unit distance travelled hai, isliye jo arrow hum walk karte hain uski length exactly 1 honi chahiye. Iske liye v = 0 zaroori hai: zero vector ki koi direction hi nahi hoti (aur ∥ v ∥ = 0 se divide by zero ho jaata), isliye "direction 0 mein chalna" ek valid question nahi hai. Neeche har example silently assume karta hai ki ek genuine, nonzero heading hai.
Har row ek "case class" hai — ek aisi situation jiska apna trap hai. Last column us example ka naam deta hai jo use cover karta hai.
#
Case class
Isme tricky kya hai
Covered by
C1
Direction do points ke roop mein di gayi hai
subtract karna padega, phir normalise
Ex 1
C2
Direction ek angle ke roop mein di gayi hai
pehle se unit hai — dobara normalise mat karo
Ex 2
C3
Negative directional derivative (downhill chalna)
answer ka sign meaningful hai
Ex 3
C4
Zero directional derivative (u ⊥ ∇ f )
tum level curve par ho
Ex 4
C5
Teen variables , u mein mixed signs
minus sign ke saath normalising
Ex 5
C6
Maximum / minimum rate, aur special directions
± ∥∇ f ∥
Ex 6
C7
Degenerate: point par ∇ f = 0
har direction se 0 milta hai
Ex 7
C8
Word problem (temperature / hill), units ke saath
words ko vectors mein translate karo
Ex 8
C9
Exam twist: do directions mein D u f diya hai, ∇ f nikalo
dot product ulta karo
Ex 9
Prerequisites jo aap khule rakhna chahein: Gradient vector , Partial derivatives , Dot product and cosine of angle , Level curves and level sets .
Worked example Ex 1 — subtract karo, phir unit-ize karo
a = ( 1 , 2 ) par f ( x , y ) = x 2 + x y , ( 1 , 2 ) se ( 4 , 6 ) ki taraf chalna hai.
Forecast: target upar-aur-daayein hai, aur gradient (hum dekhenge) strongly rightward point karta hai — toh expect karo ek solidly positive number, kuch units ke size mein.
Gradient. f x = 2 x + y , f y = x , isliye ∇ f = ( 2 x + y , x ) . ( 1 , 2 ) par: ∇ f = ( 4 , 1 ) .
Yeh step kyun? Formula ∇ f ⋅ u hai; hume hamesha pehle specific point par gradient chahiye.
Direction vector. ( 4 , 6 ) − ( 1 , 2 ) = ( 3 , 4 ) .
Yeh step kyun? "Ek point ki taraf" ka matlab hai arrow yahan se wahan tak — start ko end se subtract karo.
Unit-ize. ∥ ( 3 , 4 ) ∥ = 9 + 16 = 5 (nonzero, isliye legal hai), toh u = ( 3/5 , 4/5 ) .
Yeh step kyun? Directional derivative change per unit distance measure karta hai, isliye heading ki length 1 honi chahiye; warna slope 5 se scale ho jaayega.
Dot. D u f = ( 4 , 1 ) ⋅ ( 3/5 , 4/5 ) = 5 12 + 4 = 5 16 = 3.2 .
Yeh step kyun? ∇ f ⋅ u matching components ko multiply karke add karta hai — ye "f har axis par kitna change hota hai" ko hamare heading ke liye ek slope mein collapse karta hai.
Verify: ∥ u ∥ = ( 3/5 ) 2 + ( 4/5 ) 2 = 9/25 + 16/25 = 1 ✓. Positive, moderate — forecast se match karta hai.
Worked example Ex 2 — angle pehle se ek unit vector hai
( 1 , 0 ) par f ( x , y ) = sin ( x y ) , direction + x -axis se 3 0 ∘ upar.
Forecast: ( 1 , 0 ) par "x y " sine ke andar 0 hai, toh cheezein apne fastest change ke paas hain — lekin kis taraf? Aage padhne se pehle guess karo.
Angle ko u mein baadlo. u = ( cos 3 0 ∘ , sin 3 0 ∘ ) = ( 2 3 , 2 1 ) .
Yeh step kyun? Unit circle par angle θ par ek point ( cos θ , sin θ ) hota hai — automatically length 1 , isliye kuch normalise nahi karna . Figure 1 mein yeh arrow unit circle ki ek radius hai: uski tip circle par baithti hai, jo "length 1 " ka visual meaning hai.
Gradient. f x = y cos ( x y ) , f y = x cos ( x y ) , isliye ∇ f = ( y cos ( x y ) , x cos ( x y )) . ( 1 , 0 ) par: cos ( 0 ) = 1 , toh ∇ f = ( 0 , 1 ) .
Yeh step kyun? Dot karne se pehle hume diye gaye point par gradient chahiye; chain-rule factor cos ( x y ) dono partials mein aata hai kyunki ye outer sin ko differentiate karne se aata hai.
Dot. D u f = ( 0 , 1 ) ⋅ ( 2 3 , 2 1 ) = 2 1 .
Yeh step kyun? Dotting heading aur gradient ke beech overlap select karta hai. Yahan x -rate 0 hai, isliye sirf walk ka vertical lean (2 1 ) contribute karta hai.
Verify: ∥ u ∥ 2 = 4 3 + 4 1 = 1 ✓. Answer 2 1 = 0.5 , positive aur max ∥∇ f ∥ = 1 se kam — consistent hai.
Figure 1 padhna. Plum circle unit circle hai. Orange arrow 3 0 ∘ par u hai — notice karo uski tip circle par exactly land karti hai, bina re-normalising ke length 1 confirm karta hai. Teal arrow ∇ f = ( 0 , 1 ) hai, seedha upar point karta hai; directional derivative 2 1 precisely hai kitna u us teal arrow ki taraf lean karta hai.
Worked example Ex 3 — sign geometry carry karta hai
( 3 , 4 ) par f ( x , y ) = x 2 + y 2 , direction v = ( − 1 , 0 ) (due west ).
Forecast: yeh bowl origin se door rise karta hai. ( 3 , 4 ) par khade hokar west ki taraf jaana matlab centre ki taraf wapas jaana — toh downhill — expect karo ek negative slope.
Gradient. f x = 2 x , f y = 2 y , isliye ∇ f = ( 2 x , 2 y ) = ( 6 , 8 ) ( 3 , 4 ) par.
Yeh step kyun? Hume local uphill direction aur uski steepness chahiye pehle, taaki hum koi bhi heading uske against measure kar sakein.
v ko Unit-ize karo. ∥ ( − 1 , 0 ) ∥ = 1 (nonzero, aur pehle se length 1 hai), isliye u = ( − 1 , 0 ) .
Yeh step kyun? Hume length check karni chahiye assume karne ki jagah — yahan woh 1 nikli, isliye koi division nahi chahiye.
Dot. D u f = ( 6 , 8 ) ⋅ ( − 1 , 0 ) = − 6 .
Yeh step kyun? Dot product yeh nikalta hai ki heading ∇ f ke saath kitna align karti hai; heading gradient ke + x part ke opposite point karti hai, minus sign produce karta hai.
Verify: Ek axis ke along directional derivative ± partial ke barabar hoti hai: − x direction mein jaana − f x = − 6 deta hai ✓. Minus sign ka literal matlab hai "f west step karne par decrease hoti hai" — tum bowl mein neeche ja rahe ho.
Worked example Ex 4 — gradient ke perpendicular
Wohi f = x 2 + y 2 ( 3 , 4 ) par, lekin v = ( − 4 , 3 ) direction mein chalo.
Forecast: ∇ f = ( 6 , 8 ) origin se seedha bahar point karta hai. Direction ( − 4 , 3 ) — kya ye perpendicular hai? ( 6 ) ( − 4 ) + ( 8 ) ( 3 ) = − 24 + 24 = 0 . Toh expect karo exactly zero : tum constant height ke circle ke around slide kar rahe ho.
Gradient. ∇ f = ( 2 x , 2 y ) = ( 6 , 8 ) ( 3 , 4 ) par.
Yeh step kyun? Zero slope exactly tab hoti hai jab heading ∇ f ke perpendicular ho, isliye perpendicularity test karne ke liye hume ∇ f chahiye.
Unit-ize. ∥ ( − 4 , 3 ) ∥ = 16 + 9 = 5 (nonzero), isliye u = ( − 4/5 , 3/5 ) .
Yeh step kyun? Normalising perpendicularity nahi badalta, lekin rate ko "per unit distance" mean karne ke liye unit heading zaroori hai.
Dot. D u f = ( 6 , 8 ) ⋅ ( − 4/5 , 3/5 ) = 5 − 24 + 24 = 0 .
Yeh step kyun? Zero dot product right angle ka algebraic signature hai — heading aur gradient perpendicular hain.
Verify: ( 3 , 4 ) se guzarne waali x 2 + y 2 ki level curve radius 5 ka circle hai. Us circle par ( 3 , 4 ) par tangent radius ( 3 , 4 ) ke perpendicular hoti hai — aur ( − 4 , 3 ) exactly woh tangent hai. Zero slope = constant height par chalna.
Figure 2 padhna. Plum circles f ki level curves hain (constant height). ( 3 , 4 ) par orange arrow ∇ f radially bahar point karta hai — uphill direction. Teal arrow hamaari heading u = ( − 4/5 , 3/5 ) hai: ye plum circle ke along (tangent) lie karta hai, orange se right angle par. Kyunki ye kabhi ek circle nahi chodta, height nahi badlti — yahi geometric reason hai ki answer 0 hai.
Worked example Ex 5 — unit vector ke andar ek minus sign
( 1 , 1 , 1 ) par f ( x , y , z ) = x 2 y + z 3 , direction v = ( 2 , − 1 , 2 ) .
Forecast: z -slope bada hai (3 z 2 = 3 ) aur x -slope bhi upar hai, lekin u ka − y component + y -slope se lad raha hai. Net positive lekin kam hona chahiye.
Gradient. f x = 2 x y , f y = x 2 , f z = 3 z 2 , isliye ∇ f = ( 2 x y , x 2 , 3 z 2 ) = ( 2 , 1 , 3 ) ( 1 , 1 , 1 ) par.
Yeh step kyun? Har partial yeh jawab deta hai "agar main sirf is ek variable ko nudge karun toh f kitni tez change hoti hai?"; inhe stack karke poora gradient milta hai jise hum dot karte hain.
Unit-ize. ∥ ( 2 , − 1 , 2 ) ∥ = 4 + 1 + 4 = 3 (nonzero), isliye u = ( 3 2 , − 3 1 , 3 2 ) .
Yeh step kyun? Minus apne component ke saath rehta hai; normalising teeno ko same length 3 se divide karta hai, heading preserve karta hai lekin length 1 fix karta hai.
Dot. D u f = ( 2 , 1 , 3 ) ⋅ ( 3 2 , − 3 1 , 3 2 ) = 3 4 − 3 1 + 2 = 1 + 2 = 3 .
Yeh step kyun? Same recipe jaise 2-D mein — matching components multiply karo aur add karo; − 3 1 woh y -slope hai jo hamare against kaam kar rahi hai.
Verify: ∥ u ∥ 2 = 9 4 + 9 1 + 9 4 = 9 9 = 1 ✓. − 3 1 term total ko neeche kheench raha hai; phir bhi solidly positive, jaise forecast mein tha.
Definition Dot-product form mein
θ angle
Dot product and cosine of angle se, koi bhi do vectors satisfy karte hain a ⋅ b = ∥ a ∥ ∥ b ∥ cos θ , jahan θ unke beech ka angle hai (0 se π tak measure kiya). Ise ∇ f aur heading u par apply karte hue, aur ∥ u ∥ = 1 use karte hue:
D u f = ∇ f ⋅ u = ∥∇ f ∥ ∥ u ∥ cos θ = ∥∇ f ∥ cos θ ,
toh yahan θ precisely gradient arrow aur aap jis direction mein chaltein hain uske beech ka angle hai. Gradient ke along face karna matlab θ = 0 ; opposite face karna matlab θ = π ; perpendicular face karna matlab θ = π /2 .
Worked example Ex 6 — do extreme directions
( 1 , 2 ) par f = x 2 + x y ke liye (toh ∇ f = ( 4 , 1 ) ), greatest aur least possible directional derivatives nikalo, aur woh directions jo unhe achieve karte hain.
Forecast: sabse bada slope gradient ki length hai; sabse negative minus woh hai.
Max value. D u f = ∥∇ f ∥ cos θ , θ = 0 par maximize hota hai: value = ∥∇ f ∥ = 4 2 + 1 2 = 17 .
Yeh step kyun? θ ke saath ∇ f aur u ke beech angle hai, ∥∇ f ∥ cos θ ka sirf free part cos θ hai, jo 1 par peak karta hai jab θ = 0 (exactly gradient ke along chalo).
Max ki direction. u = 17 1 ( 4 , 1 ) .
Yeh step kyun? cos θ = 1 matlab u ∇ f ke same direction mein point karta hai; ∇ f ko unit-ize karne se woh heading milti hai.
Min value. θ = π par, cos θ = − 1 : value = − 17 , direction − 17 1 ( 4 , 1 ) .
Yeh step kyun? Sabse negative slope tab achieve hoti hai jab aap exactly gradient ke opposite face karo — steepest descent.
Verify: 17 ≈ 4.123 . Check karo Ex 1 ka answer 3.2 is cap se neeche hai (3.2 < 4.123 ) ✓ — koi direction gradient ki length se zyada beat nahi kar sakti.
Worked example Ex 7 — flat spot, har direction se
0 milta hai
Origin ( 0 , 0 ) par f ( x , y ) = x 2 + y 2 , koi bhi (nonzero) direction u .
Forecast: origin bowl ka bottom hai — first order tak bilkul flat. Chahe tum kisi bhi taraf face karo, instantaneous slope 0 hona chahiye.
Gradient. f x = 2 x , f y = 2 y , isliye ∇ f = ( 2 x , 2 y ) = ( 0 , 0 ) origin par.
Yeh step kyun? Gradient ki length maximum possible slope hai; agar woh length 0 hai, toh koi direction koi first-order rise produce nahi kar sakti.
Dot. D u f = ( 0 , 0 ) ⋅ u = 0 har unit u ke liye.
Yeh step kyun? Zero vector ko kisi bhi cheez se dot karo toh 0 aata hai — heading irrelevant ho jaati hai, jo exactly "flat spot" ka matlab hai.
Verify: Parent note ki limit definition se seedha, f ( h u ) = h 2 ( u 1 2 + u 2 2 ) = h 2 , isliye h f ( h u ) − f ( 0 ) = h h 2 = h → 0 jab h → 0 ✓. Surface har direction mein upar curve karti hai, lekin first-order rate 0 hai — ek genuine flat spot (ek minimum).
D u f = 0 har jagah matlab f constant hai"
Kyun sahi lagta hai: har direction mein zero slope matlab koi change nahi lagta. Kyun galat hai: sirf first-order rate zero hai. f = x 2 + y 2 clearly origin se door grow karta hai — change second-order hai (curvature). Fix: ∇ f = 0 ek critical point mark karta hai, constant function nahi.
Worked example Ex 8 — metal plate par temperature
Ek plate par point ( x , y ) par temperature (∘ C mein) T ( x , y ) = 100 − x 2 − 2 y 2 hai, jahan x , y metres mein hain. Ek cheenti ( 2 , 1 ) par baithti hai aur vector ( 3 , 4 ) ki direction mein march karti hai. Woh temperature change kitna tez feel karti hai, per metre chalne par?
Forecast: ( 3 , 4 ) bahar ki taraf point karta hai, jahan − x 2 − 2 y 2 T ko chota banata hai — expect karo ek negative rate (thanda ho raha hai), kuch ∘ C per metre.
Gradient. T x = − 2 x , T y = − 4 y , isliye ∇ T = ( − 2 x , − 4 y ) = ( − 4 , − 4 ) ( 2 , 1 ) par.
Yeh step kyun? Gradient har axis ke along temperature ki rate collect karta hai (∘ C per metre mein) — kisi bhi heading ke liye raw material.
Unit-ize. ∥ ( 3 , 4 ) ∥ = 9 + 16 = 5 (nonzero), isliye u = ( 3/5 , 4/5 ) .
Yeh step kyun? Question per metre pooch raha hai, isliye heading khud ek metre lambi honi chahiye — matlab length 1 .
Dot. D u T = ( − 4 , − 4 ) ⋅ ( 3/5 , 4/5 ) = 5 − 12 − 16 = 5 − 28 = − 5.6 .
Yeh step kyun? Dotting dono cooling rates combine karta hai, is hisaab se weight deke ki cheenti ka path har axis ke along kitna lean karta hai.
Verify: Units: ∇ T ∘ C / m hai, u dimensionless hai, isliye answer ∘ C / m hai. Result − 5.6 ∘ C / m — negative (cooling), jaise forecast mein tha. Cheenti ( 3 , 4 ) ke along har metre chalne par 5. 6 ∘ thandi hoti hai.
Worked example Ex 9 — dot product ulta karo
Ek differentiable f ( x , y ) satisfy karta hai D u f = 1 direction u 1 = ( 1 , 0 ) mein aur D u f = 2 direction u 2 = ( 0 , 1 ) mein, dono same point a par. ∇ f ( a ) nikalo, phir u 3 = ( 3/5 , 4/5 ) ke along directional derivative.
Forecast: axes ke along directional derivatives wohi partials hain, isliye ∇ f simply ( 1 , 2 ) hona chahiye.
Partials read off karo. D ( 1 , 0 ) f = ∇ f ⋅ ( 1 , 0 ) = f x = 1 aur D ( 0 , 1 ) f = ∇ f ⋅ ( 0 , 1 ) = f y = 2 .
Yeh step kyun? Gradient ko ( 1 , 0 ) se dot karne par uska pehla component select hota hai; ( 0 , 1 ) se dot karne par, doosra — isliye ye do special headings hume directly partials de deti hain.
Assemble karo. ∇ f ( a ) = ( 1 , 2 ) .
Yeh step kyun? Gradient defined hai partials ke vector ke roop mein, isliye hum sirf step 1 ke numbers stack karte hain.
Use karo. D u 3 f = ( 1 , 2 ) ⋅ ( 3/5 , 4/5 ) = 5 3 + 8 = 5 11 = 2.2 .
Yeh step kyun? ∇ f pata hone aur f differentiable hone se, dot-product formula kisi bhi unit heading ke liye kaam karta hai.
Verify: ∥ u 3 ∥ = 9/25 + 16/25 = 1 ✓. Aur 2.2 < ∥∇ f ∥ = 1 2 + 2 2 = 5 ≈ 2.236 ✓ — max se neeche, jaise hona chahiye. Yeh kaam karta hai kyunki f differentiable hai , isliye linear (dot-product) formula har direction mein hold karta hai.
Intuition Poora matrix, ek nazar mein
Humne scenario matrix ki har case class close kar di hai: do-point directions (Ex 1 ), angle directions (Ex 2 ), negative (Ex 3 ) aur zero (Ex 4 ) slopes, teen variables mixed signs ke saath (Ex 5 ), extreme directions ± ∥∇ f ∥ (Ex 6 ), degenerate flat spot ∇ f = 0 (Ex 7 ), units-carrying word problem (Ex 8 ), aur reverse-engineering exam twist (Ex 9 ). Har ek ne same teen-letter recipe use ki — G radient, U nit-ize, N umber — sirf ye differ kiya ki direction kaise aayi aur answer kaise padha gaya.
Recall Kaun sa cell kaun sa hai?
C3 mein bowl mein origin ki taraf chalne par D u f ka sign poochha jaata hai. Kaun sa sign, aur kyun? ::: Negative — origin (minimum) ki taraf jaate waqt height decrease hoti hai.
C4 mein answer exactly 0 kyun hai? ::: Direction ∇ f ke perpendicular hai, yaani level curve ki tangent hai, isliye height momentarily constant hai.
C7 mein gradient 0 hai. General u ke liye D u f kya hai? ::: 0 har direction ke liye — zero vector ko kisi bhi cheez se dot karo toh 0 aata hai.
C9 mein do axis-direction derivatives se ∇ f kaise recover karte hain? ::: Woh wohi partials hain: D ( 1 , 0 ) f = f x , D ( 0 , 1 ) f = f y , isliye ∇ f = ( f x , f y ) .
D u f = ∥∇ f ∥ cos θ mein θ ka kya matlab hai? ::: Gradient ∇ f aur heading u ke beech ka angle.
Hum "direction 0 mein" directional derivative kyun nahi le sakte? ::: Zero vector ki koi heading nahi hoti aur ∥ 0 ∥ = 0 unit-izing ko divide by zero bana deta hai — question undefined hai.
Mnemonic Answer ke liye sign map
Positive = uphill (∇ f ki taraf) · Zero = level curve ke along (⊥ ∇ f ) · Negative = downhill (∇ f se door). Size ∥∇ f ∥ par capped hai.