Directional Derivatives
via the Gradient
Learn how the gradient vector unlocks the rate of change of a multivariable function in any direction you choose.
What Is a Directional Derivative?
For a function \( f(x,y) \), the partial derivatives \( f_x \) and \( f_y \) measure rates of change along the \( x \)- and \( y \)-axes. But what if you want the rate of change along a diagonal path, or in any arbitrary direction?
Think of standing on a hillside: the partial derivatives tell you how steep it is going east or north, but a directional derivative tells you how steep it is in whatever direction you face.
The Gradient Vector \( \nabla f \)
Given \( f(x,y) \), the gradient is the vector of all first partial derivatives:
Visualizing Gradient and Direction
The Core Formula
If \( f \) is differentiable at \( (a,b) \) and \( \mathbf{u} = \langle u_1, u_2 \rangle \) is a unit vector, then:
Equivalently, using the angle \( \theta \) between \( \nabla f \) and \( \mathbf{u} \):
Why the Dot Product Works
The formal definition of the directional derivative is a limit:
Using the multivariable chain rule, we parametrize the path as \( \mathbf{r}(t) = (a + tu_1,\; b + tu_2) \) and differentiate:
The chain rule naturally produces the dot product of the gradient with the direction vector.
Partial vs. Directional Derivatives
| Partial Derivative | Directional Derivative | |
|---|---|---|
| Direction | Along a coordinate axis only | Any unit vector \( \mathbf{u} \) |
| Notation | \( f_x \) or \( \frac{\partial f}{\partial x} \) | \( D_{\mathbf{u}} f \) |
| Formula | Limit along one variable | \( \nabla f \cdot \mathbf{u} \) |
| Special case | \( D_{\mathbf{i}} f = f_x \), \( D_{\mathbf{j}} f = f_y \) | Generalises partials |
Max, Min, and Zero Rates
How to Compute \( D_{\mathbf{u}} f \)
Example 1: Basic Computation
Find \( D_{\mathbf{u}} f(1, 2) \) where \( f(x,y) = x^2 y + 3y \) and \( \mathbf{u} \) points in the direction of \( \mathbf{v} = \langle 3, 4 \rangle \).
Example 2: Direction Given by Angle
Find \( D_{\mathbf{u}} f(0, 1) \) where \( f(x,y) = e^x \sin y \) and \( \mathbf{u} \) makes an angle \( \theta = \frac{\pi}{4} \) with the positive \( x \)-axis.
Example 3: Maximum Rate of Change
For \( f(x,y) = x^2 + xy - y^2 \) at the point \( (2, -1) \), find the maximum rate of change and the direction in which it occurs.
Extension to Three Variables
Everything generalises naturally. For \( f(x,y,z) \) with unit vector \( \mathbf{u} = \langle u_1, u_2, u_3 \rangle \):
Common Mistakes to Avoid
Summary at a Glance
| Concept | Formula / Result |
|---|---|
| Gradient | \( \nabla f = \langle f_x, f_y \rangle \) |
| Directional derivative | \( D_{\mathbf{u}} f = \nabla f \cdot \mathbf{u} \) |
| Maximum rate | \( \|\nabla f\| \), in direction of \( \nabla f \) |
| Minimum rate | \( -\|\nabla f\| \), opposite to \( \nabla f \) |
| Zero rate | \( \mathbf{u} \perp \nabla f \) (along level curve) |
| Angle form | \( D_{\mathbf{u}} f = \|\nabla f\|\cos\theta \) |
Question 1 of 5
If \( f(x,y) = 3x^2 - y^2 \), what is \( \nabla f(1, 2) \)?
Question 2 of 5
Given \( \nabla f(a,b) = \langle 3, 4 \rangle \) and \( \mathbf{u} = \langle \tfrac{1}{\sqrt{2}}, \tfrac{1}{\sqrt{2}} \rangle \), what is \( D_{\mathbf{u}} f(a,b) \)?
Question 3 of 5
The maximum rate of change of \( f \) at a point occurs in which direction?
Question 4 of 5
If \( \nabla f(a,b) = \langle 5, -12 \rangle \), what is the maximum rate of change of \( f \) at \( (a,b) \)?
Question 5 of 5
If \( D_{\mathbf{u}} f = 0 \) for a unit vector \( \mathbf{u} \), what can you conclude about the relationship between \( \mathbf{u} \) and \( \nabla f \)?