Directional
Derivatives
Learn how to measure the rate of change of a multivariable function in any direction using the gradient and unit vectors.
What Is a Directional Derivative?
The partial derivatives \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\) measure rates of change along the coordinate axes. But what if we want the rate of change in a different direction?
Think of standing on a hillside: partial derivatives tell you the slope north-south or east-west, but the directional derivative tells you the slope in whichever direction you face.
The Gradient Vector
Before computing directional derivatives, we need the gradient vector. For a function \( f(x,y) \):
The gradient packages both partial derivatives into a single vector that points in the direction of steepest ascent.
Visualizing \( \nabla f \) and \( \mathbf{u} \)
The Directional Derivative Formula
This is simply the dot product of the gradient with the unit direction vector. Equivalently:
Why Must \( \mathbf{u} \) Be a Unit Vector?
The directional derivative measures the rate of change per unit distance. If \( \mathbf{u} \) is not a unit vector, the result is scaled incorrectly: a vector twice as long would double the answer.
Partial vs. Directional Derivatives
| Partial Derivative | Directional Derivative | |
|---|---|---|
| Direction | Along a coordinate axis | Along any unit vector \( \mathbf{u} \) |
| Notation | \( \frac{\partial f}{\partial x} \) or \( f_x \) | \( D_{\mathbf{u}} f \) |
| Formula | Differentiate holding other variables constant | \( \nabla f \cdot \mathbf{u} \) |
| Special case | \( D_{\mathbf{i}} f = f_x \), \( D_{\mathbf{j}} f = f_y \) | Generalizes partials to all directions |
Maximum and Minimum Rates of Change
Since \( D_{\mathbf{u}} f = \|\nabla f\| \cos\theta \), the directional derivative depends on the angle \( \theta \) between \( \nabla f \) and \( \mathbf{u} \):
How to Compute \( D_{\mathbf{u}} f \)
Example 1: Basic Computation
Find the directional derivative of \( f(x,y) = x^2 + 3xy \) at \( (1, 2) \) in the direction of \( \mathbf{v} = \langle 3, 4 \rangle \).
Example 2: Using an Angle
Find \( D_{\mathbf{u}} f \) for \( f(x,y) = e^x \sin y \) at \( (0, \frac{\pi}{3}) \) in the direction making angle \( \theta = \frac{\pi}{6} \) with the positive \( x \)-axis.
Example 3: Three Variables
Find \( D_{\mathbf{u}} f \) for \( f(x,y,z) = x^2 y - y z^2 \) at \( (1, -1, 2) \) in the direction of \( \mathbf{v} = \langle 1, 2, -2 \rangle \).
Geometric Interpretation
Gradient as Steepest Ascent
The gradient \( \nabla f \) is always perpendicular to the level curves. This means:
Common Mistakes
Summary of Key Facts
| Property | Result |
|---|---|
| Formula | \( D_{\mathbf{u}} f = \nabla f \cdot \mathbf{u} \) |
| Max rate of change | \( \|\nabla f\| \), in the direction of \( \nabla f \) |
| Min rate of change | \( -\|\nabla f\| \), opposite to \( \nabla f \) |
| Zero rate of change | Along level curves (\( \mathbf{u} \perp \nabla f \)) |
| Requirement on \( \mathbf{u} \) | Must be a unit vector: \( \|\mathbf{u}\| = 1 \) |
| 3D extension | \( D_{\mathbf{u}} f = f_x a + f_y b + f_z c \) |
Question 1 of 5
Let \( f(x,y) = x^2 y \). What is the gradient \( \nabla f \)?
Question 2 of 5
If \( \nabla f(2,1) = \langle 4, -3 \rangle \) and \( \mathbf{u} = \langle \frac{3}{5}, \frac{4}{5} \rangle \), what is \( D_{\mathbf{u}} f(2,1) \)?
Question 3 of 5
For \( f(x,y) = x^2 + y^2 \), what is the maximum rate of change at the point \( (3, 4) \)?
Question 4 of 5
To compute a directional derivative, the direction vector \( \mathbf{v} \) must satisfy which condition?
Question 5 of 5
If \( D_{\mathbf{u}} f = 0 \) at a point, which of the following must be true?