Multivariable Calculus · Undergraduate
Directional Derivatives and the Gradient
Quick answer
The directional derivative gives the rate of change of f in any direction u. By the chain rule it equals ∇f · u, the dot product of the unit vector u with the gradient ∇f = (f_x, f_y). Because of that dot product, the gradient points in the direction of fastest increase, its length is that fastest rate, and it is perpendicular to the level curve through the point. In three variables the gradient is normal to level surfaces, which gives their tangent planes.
What you'll learn
- Compute the gradient of a function
- Find a directional derivative as a dot product
- Find the direction and rate of fastest increase
- Use the gradient as a normal to level curves and surfaces
Rates in every direction
The partial derivatives measure how changes moving east or north. A hiker can walk any compass direction, though. Given a unit vector , the directional derivative is the rate of change of at moving in the direction .
Collect the partial derivatives into one vector, the gradient:
Then every directional derivative is a dot product with it:
Why a dot product, and why the gradient points uphill
Walk from along the line , . The chain rule gives the rate at :
A dot product with a unit vector is , where is the angle between and . It is largest when , zero when , and most negative when . So the gradient points in the direction of fastest increase, its length is that fastest rate, and moving perpendicular to it leaves unchanged. Moving perpendicular to the gradient is walking along a level curve, so the gradient is perpendicular to the level curves.
- f = 8
- f = 16
Worked examples
Common mistakes
Practice problems
-
Find for at .
Answer
Full solution
and at .
-
For the same function and point, find the directional derivative in the direction of .
Answer
Full solution
The unit vector is , and .
-
What are the directional derivatives of that function at in the directions and ?
Answer
and
Full solution
Along the axes, the directional derivatives are the partial derivatives themselves.
-
Find the maximum rate of change of at , and its direction.
Answer
, in the direction
Full solution
at that point.
-
Find for at . What is its length?
Answer
; length
Full solution
and . The distance from the origin grows at rate moving straight away from the origin.
-
Find a vector perpendicular to the level curve at .
Answer
, or any multiple
Full solution
The gradient of is , pointing along the radius.
-
In which direction does fall fastest at ?
Answer
The direction of
Full solution
The fastest decrease is opposite the gradient , away from the center, at rate .
-
Find the tangent plane to the surface at by treating it as a level surface.
Answer
Full solution
Write . Then at the point, and simplifies to the answer.
-
A function has . What are the largest and smallest directional derivatives at ?
Answer
and
Full solution
The largest is , in the gradient’s direction; the smallest is , in the opposite direction.
-
A student finds the rate of change of at a point in the direction as . What went wrong?
Hint
What is the length of ?
Answer
The direction must be a unit vector: use .
Full solution
has length , so the student’s answer is five times the true rate. The directional derivative measures change per unit of distance, which requires .
Frequently asked questions
What is the gradient?
The vector of partial derivatives, ∇f = (f_x, f_y), or (f_x, f_y, f_z) in three variables.
How do you compute a directional derivative?
Take the dot product of the gradient with a unit vector u in the chosen direction: D_u f = ∇f · u. If the direction is given by a vector that is not a unit vector, divide it by its length first.
Which direction gives the fastest increase?
The direction of the gradient itself, where the rate is |∇f|. The fastest decrease is in the opposite direction, at rate −|∇f|.
Why is the gradient perpendicular to level curves?
Along a level curve f does not change, so the directional derivative along the curve is 0. A zero dot product with the tangent direction means the gradient is perpendicular to it.
How does the gradient give a tangent plane to a surface F(x, y, z) = k?
∇F at the point is a normal vector to the level surface, so the tangent plane is ∇F · (x − x₀, y − y₀, z − z₀) = 0.