Understanding Directional Derivatives

Directional derivatives measure the rate of change of a multivariable function as you move away from a point (x_0, y_0) towards a particular direction.

For a function of two variables, the directional derivative in the direction of a unit vector u = ⟨u_1, u_2⟩ is described by the formula:

D_u f(x, y) = ∇f(x, y) • u

Here's how to calculate the directional derivative step by step:

  1. Find the gradient ∇f(x, y) = ⟨∂f/∂x, ∂f/∂y⟩ (where ∂f/∂x and ∂f/∂y are partial derivatives with respect to one variable).

  2. If the direction isn't already a unit vector, normalize it by dividing it by its magnitude.

  3. Compute the dot product (∇f • u = ||∇f|| cos(θ), where θ is the angle between ∇f and u)

This gives:

D_u f(x, y) = ||∇f|| cos(θ)

Example: start with f(x, y) = x²y + y³ and find the directional derivative at (2, 1) in the direction of the vector v = ⟨3, 4⟩.

  1. The partial derivatives give ∂f/∂x = 2xy and ∂f/∂y = x² + 3y²

  2. The gradient is ∇f = ⟨2xy, x² + 3y²⟩ which we evaluate at (2, 1) giving ∇f = ⟨4, 7⟩

  3. Normalize v: ||v|| = √(3² + 4²) = 5, so v = ⟨3/5, 4/5⟩

  4. Finally, the dot product is v/||v|| • ∇f = (3/5)(4) + (4/5)(7) = 12/5 + 28/5 = 40/5 = 8

And so in that direction, the rate of change is 8.

And for the general case where the function f has n variables, x_1 through x_n:

∇f = ⟨∂f/∂x_1, ∂f/∂x_2, ... ∂f/∂x_n⟩

u = ⟨u_1, u_2, u_3, ... u_n⟩

D_u f = Σ[0, n] ∂f/∂x_i u_i

Author: Mathematics875