Skip to content
← All questions

What is the formula for the directional derivative of a scalar function of two variables in the direction of a general vector w=(a,b)w=(a,b)?

The directional derivative in the direction of a general vector w=[a,b]w=[a,b] is the linear combination of the partial derivatives weighted by the components of w. The formula is a*(∂f/∂x) + b*(∂f/yf/y).

Conditions

  • The function f(x,y)f(x,y) is differentiable.
  • The direction vector is w=[a,b]w=[a,b].
  • The partial derivatives ∂f/xf/x and ∂f/yf/y exist.

Reasoning, step by step

  1. Identify the components a and b of the direction vector w.
  2. Calculate the partial derivative of f with respect to x.
  3. Calculate the partial derivative of f with respect to y.
  4. Multiply ∂f/xf/x by a and ∂f/∂y by b.
  5. Sum the results to get the directional derivative.

Example

For w=[a,b]w=[a,b], the directional derivative is a*(∂f/∂x) + b*(∂f/yf/y).

Common misconceptions

  • Forgetting to multiply the partial derivatives by the corresponding vector components.
  • Thinking the formula only works for unit vectors.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.