Why must u be a unit vector? Because h in the limit measures actual distance travelled. If ∥u∥=2, then moving by h in "u-steps" covers 2h real distance, and the slope would be doubled artificially. Forcing ∥u∥=1 makes "rate per unit distance" meaningful.
We don't want to compute that limit every time. Let's reduce it to something we already know — partial derivatives.
Step 1 — Restrict f to the line through a in direction u.
Define a single-variable helper
g(h)=f(a+hu).Why this step? Walking in a straight line turns the multivariable problem into a 1-D problem. The directional derivative is exactly g′(0):
Duf(a)=limh→0hg(h)−g(0)=g′(0).
Step 2 — Differentiate g with the chain rule.
Write a+hu=(a1+hu1,…,an+hun). Each coordinate is xi(h)=ai+hui, so dhdxi=ui. By the multivariable chain rule:
g′(h)=∑i=1n∂xi∂f(a+hu)⋅dhdxi=∑i=1n∂xi∂f⋅ui.Why this step? The chain rule sums up "how f changes via each coordinate" × "how fast that coordinate moves."
Step 3 — Evaluate at h=0 (so the point is a).Duf(a)=i=1∑n∂xi∂f(a)ui=∇f(a)⋅u
For f(x,y)=x2+y2 at (3,4), predict Duf along u=(0,1), then check.
Forecast: moving purely in +y, slope should equal fy=2y=8.
Verify:∇f=(2x,2y)=(6,8); Duf=(6,8)⋅(0,1)=8. ✓ (A directional derivative along an axis = that partial derivative.)
Imagine a hilly field and you're standing somewhere. If you face exactly East and take a tiny step, you might go up. If you face North, you might go up faster, or even go down. The "directional derivative" is just a number that says: for the way I'm facing right now, how steeply does the ground rise as I step forward? There's one special direction — straight up the hill — where you climb fastest. That arrow is called the gradient. For any other facing, you climb less, by an amount equal to how much that facing leans toward the gradient.
Dekho, partial derivative sirf ye batata hai ki agar tum exactly x-axis ke direction me chalo to function kitna fast change hota hai. Lekin zindagi me sirf East-West thodi chalna hai — tum kisi bhi direction me ja sakte ho. Directional derivative wahi cheez hai: tum ek point a pe khade ho, ek direction u choose karte ho, aur poochhte ho "is taraf chaloon to height kitni tezi se badhegi?" Ye answer ek number hota hai (slope), vector nahi.
Formula bahut simple hai: Duf=∇f⋅u — yaani gradient ka dot product unit direction ke saath. Yaad rakhne ka trick: GUN — Gradient nikaalo, direction ko Unit banao (length 1 karo), phir Number nikaalo dot product se. Sabse important galti jo log karte hain: direction vector ko normalise karna bhool jaate hain. Agar direction (3,4) di hai to uski length 5 hai, to pehle 5 se divide karke u=(3/5,4/5) banao, warna answer 5 guna galat aayega.
Ek aur khaas baat: ∇f⋅u=∥∇f∥cosθ. Iska matlab — jab tum gradient ke saath-saath chalo (θ=0), slope maximum hota hai aur uski value ∥∇f∥ hoti hai. Yahi reason hai ki gradient ko "steepest ascent direction" kehte hain. Aur agar tum gradient ke perpendicular chalo, slope zero — tum level curve pe ghoom rahe ho, height constant. Ye intuition hill-climbing aur optimization (gradient descent) me directly kaam aati hai, isliye ise rat-ta na maaro, samajh ke yaad rakho.