Are Directional Derivatives Scalars or Vectors?
At a glance
- 1. Check the function
For a scalar-valued function, the directional derivative is a scalar; for a vector-valued function, it is a vector.
- 2. Choose a direction
The direction is an input vector. Use a unit vector when you want the rate of change per unit distance.
- 3. Apply the derivative
For a scalar-valued function, take the gradient's dot product with the direction vector.
- 4. Interpret the result
The output belongs to the function's codomain, not to the space of directions.
A directional derivative describes how a function changes as you move from a point in a specified direction. The direction is represented by a vector, which is why it is easy to confuse the input with the output. The type of the derivative depends on the type of the function: a scalar-valued function has a scalar directional derivative, while a vector-valued function generally has a vector directional derivative.
The standard scalar-valued case
Suppose , so each input is a vector but each function value is a real number. At a point , the directional derivative in the direction of a vector is defined, when the limit exists, by
The numerator is a difference of real numbers, so the limit is a real number. Thus, the directional derivative is a scalar in this common setting. The vector tells you which way to move; it is not the answer.
If is differentiable, its gradient gives a convenient formula:
This is a dot product, and therefore produces a scalar. If is a unit vector, that scalar is the instantaneous rate of change per unit distance in that direction. If the vector is not a unit vector, the formula still applies, but its magnitude scales the result.
A worked example
Let
and find the directional derivative at in the direction of .
First, convert the direction into a unit vector:
Next, calculate the gradient:
At , this is . Take its dot product with the unit direction:
The answer is a scalar. It says that, at the given point, the function increases at an instantaneous rate of per unit distance when you move in the direction .
If you instead use directly in the gradient formula, you get . That is the directional derivative with respect to the parameter in the path ; it is not the rate per unit distance. Normalizing the direction divides that rate by the length .
What changes for a vector-valued function?
Now let . Its values are vectors in , so the difference quotient
is vector-valued. When its limit exists, the directional derivative is therefore a vector in .
For example, take and evaluate at in the direction . Moving in that direction changes while keeping fixed. The derivative is
Here the result is a vector because itself returns a two-component vector. More generally, the derivative of at a point is a linear map, often represented by its Jacobian matrix; applying that map to the direction vector gives the directional derivative vector.
A useful way to keep the terms straight
For a differentiable function , the derivative at is a linear map
The direction is an input to that map, and is its output. For a scalar-valued function, , so that output is a scalar. For a vector-valued function, can be greater than one, so the output is a vector. In multivariable calculus, the term “directional derivative” often refers specifically to the scalar-valued case, but the same derivative-map idea applies to vector-valued functions too.
Common mistakes
- Calling the direction the derivative: The direction is an input vector. The derivative is the resulting rate or change, whose type depends on the function’s codomain.
- Assuming every directional derivative is a scalar: That is true for real-valued functions, but not for vector-valued ones.
- Forgetting to normalize: If a question asks for change per unit distance, use a unit direction vector. If it gives a non-unit vector, check whether the intended derivative is with respect to that parameterized displacement or per unit distance.
- Confusing the gradient with the directional derivative: For a scalar-valued function, the gradient is a vector, while its dot product with a direction gives the scalar directional derivative.
References
- Calculus, Volume 3 — OpenStax
- Calculus: Early Transcendentals — James Stewart
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.