Enter a function, point, and direction
Use powers, fractions, parentheses, and supported functions such as sin(x), exp(y), and sqrt(z). Coordinates and vector entries accept values like pi/3 and sqrt(2).
Solution
Your input: Find the rate of change of
Step-by-step solution
- 1Find the gradient of the function
Differentiate f with respect to each coordinate, holding the other variables constant.
- 2Evaluate the gradient at the chosen point
Substitute the point coordinates into each partial derivative.
- 3Normalize the direction vector
Divide the entered vector by its Euclidean length, so the result measures change per unit distance.
- 4Take the dot product
The directional derivative is the gradient dotted with the unit direction.
A positive value means the function increases in this direction; a negative value means it decreases. The value is the instantaneous rate per unit distance along the direction.
What is a directional derivative?
A directional derivative measures the instantaneous rate at which a scalar-valued function changes as you move from a selected point in a specified direction. It extends the ordinary derivative to functions of several variables.
First find the gradient, then evaluate it at the point. Normalize the direction vector and take the dot product. Normalization matters: a directional derivative is a rate per unit distance, independent of the length of the vector entered.
The function must be differentiable at the selected point, and the direction vector must be nonzero. This calculator supports real-valued expressions in x, y, and z using the project's supported elementary functions.
How to use the calculator
- Enter the scalar field f(x, y, z). For a two-variable function, leave the z terms out; the z partial derivative will be zero.
- Enter the coordinates of the point where you want to measure the rate. Coordinates may be numeric expressions such as pi/3 or sqrt(2).
- Enter any nonzero direction vector. The calculator divides it by its length to obtain a unit vector.
- Calculate to see the symbolic partial derivatives, gradient at the point, normalized direction, dot product, and final rate of change.
Worked example
Problem: Find the directional derivative of f(x, y, z) = xy + z² at a = (2, 3, 1), in the direction u = (2, 1, 2).
Working: ∇f = (y, x, 2z), so ∇f(2, 3, 1) = (3, 2, 2). The direction has length 3, so its unit vector is (2/3, 1/3, 2/3).
Result: Dᵤf(2, 3, 1) = (3, 2, 2) · (2/3, 1/3, 2/3) = 6/3 + 2/3 + 4/3 = 4.
At this point, the function increases at a rate of 4 units of function value per unit of distance in the direction (2, 1, 2).
Interpret the result
- Positive value: The function increases locally when moving along the specified unit direction.
- Negative value: The function decreases locally along the specified unit direction.
- Zero value: There is no first-order change in that direction at the point; the function may still change at higher order.
- A zero direction vector is invalid because it does not specify a direction and cannot be normalized.
- If the function or a partial derivative is undefined at the selected point, the directional derivative is not returned as a finite value.
- A directional derivative of zero does not, by itself, prove that the point is a maximum or minimum.
Common mistakes
- Using the entered vector directly without dividing by its length. That computes a scaled dot product, not the rate per unit distance.
- Confusing the gradient vector with the directional derivative, which is a scalar dot product.
- Entering the point coordinates as the direction vector, or vice versa.
- Assuming a zero directional derivative means the function is constant nearby.
Directional derivative FAQ
Does the direction vector need to have length 1?
No. Enter any nonzero vector in the desired direction. The calculator normalizes it before taking the dot product.
What is the difference between a gradient and a directional derivative?
The gradient is a vector of partial derivatives. The directional derivative is a scalar rate of change in one chosen direction, calculated by dotting the gradient with a unit direction vector.
Can I calculate a directional derivative for f(x, y)?
Yes. Use the x and y coordinates and components. The z coordinate and direction component can remain zero; the z partial contributes zero for a function that does not contain z.
Why does the calculator reject the zero vector?
The zero vector has no direction and its length is zero, so the normalization formula would divide by zero.
What does a negative result mean?
The function decreases at that point when moving along the chosen direction. The magnitude gives the instantaneous rate per unit distance.
Further reading
- eMathHelp: Directional Derivative Calculator — The standard workflow of evaluating the gradient at a point, normalizing a direction vector, and taking their dot product.
Related calculus tools
Explore the guide to derivative calculators and differentiation tools