SECTION 1
Historical Context & Motivation
The study of how functions change has driven mathematics since the invention of calculus in the seventeenth century. For single-variable functions, the derivative captures the rate of change along the one available direction—the real line. However, once mathematicians and physicists began investigating surfaces, temperature fields, and potential functions defined over two or three variables, a richer question emerged: how does a function change when we move in an arbitrary direction through its domain? Answering that question required new tools—partial derivatives, the gradient vector, and ultimately the directional derivative.
1744 • Euler's Partial Derivatives
1813 • Cauchy Introduces the Gradient Concept
1846 • Hamilton's Nabla Operator
1871 • Maxwell & Physical Gradients
1900s • Modern Multivariable Calculus
The central question this lesson addresses is elegant in its simplicity: if you stand on a surface described by z = f(x, y) and begin walking in some direction u, how steep is the terrain beneath your feet? Partial derivatives answer this only along the coordinate axes. The gradient, combined with a unit direction vector, answers it for every possible direction.
SECTION 2
Core Principles & Definitions
Before we can compute directional derivatives via the gradient, we need to establish the foundational concepts that connect them. The directional derivative generalizes the notion of a partial derivative to arbitrary directions, while the gradient packages all partial derivative information into a single vector. The bridge between them is the dot product, which projects the gradient onto the chosen direction.
Partial Derivatives
The Gradient Vector
Unit Direction Vector
Dot Product as Projection
Differentiability Requirement
KEY TAKEAWAY
SECTION 3
Visual Explanation — The Gradient and Directional Derivatives
In the diagram above, observe that the gradient ∇f is always perpendicular to the level curves, pointing toward increasing values of f. The directional derivative in the direction of u is determined entirely by the angle θ between ∇f and u. When θ = 0, the directional derivative reaches its maximum value of ‖∇f‖ because you are walking directly uphill. When θ = π/2, the directional derivative is zero—you are walking along a level curve where f does not change. When θ = π, the directional derivative equals −‖∇f‖, the steepest descent. This cosine dependence, Duf = ‖∇f‖ cos θ, is a direct consequence of the dot product formula ∇f · u.
SECTION 4
Mathematical Framework
We now formalize the relationship between the gradient and the directional derivative. Let f : ℝ² → ℝ be differentiable at a point (a, b), and let u = ⟨u₁, u₂⟩ be a unit vector. The directional derivative of f at (a, b) in the direction of u is defined by a limit, but when f is differentiable the computation reduces to a simple dot product.
LIMIT DEFINITION
Here h is a scalar step size along the direction u = ⟨u₁, u₂⟩. This limit measures the instantaneous rate of change of f as we move from (a, b) along u.
GRADIENT FORMULA (THE KEY RESULT)
∇f(a, b) = ⟨fx(a, b), fy(a, b)⟩ is the gradient vector; u = ⟨u₁, u₂⟩ is a unit vector with ‖u‖ = 1. This formula holds whenever f is differentiable at (a, b).
GEOMETRIC FORM
θ is the angle between ∇f and u. Maximum rate of change = ‖∇f‖ (when θ = 0). Zero change when θ = π/2 (along level curves). Maximum decrease = −‖∇f‖ (when θ = π).
THREE-VARIABLE EXTENSION
For f : ℝ³ → ℝ, the gradient becomes ∇f = ⟨fx, fy, fz⟩ and u = ⟨u₁, u₂, u₃⟩ must satisfy u₁² + u₂² + u₃² = 1.
Common Pitfall
SECTION 5
Geometric Interpretation — The Gradient and Level Curves
The geometric relationship between the gradient and level curves is one of the most illuminating results in multivariable calculus. At every point where ∇f ≠ 0, the gradient is orthogonal to the level curve passing through that point. This orthogonality is not a coincidence—it follows directly from the chain rule applied to a parameterization of the level curve. Along a level curve, f is constant, so its total differential is zero, which forces ∇f to be perpendicular to the tangent vector of the curve.
| Angle θ | Direction relative to ∇f | f | Interpretation |
|---|---|---|---|
| 0 | Same as ∇f | ‖∇f‖ | Maximum rate of increase (steepest ascent) |
| π/4 | 45° from ∇f | ‖∇f‖ × (√2/2) | About 70.7% of maximum rate |
| π/2 | Perpendicular to ∇f | 0 | Along level curve; no change in f |
| π | Opposite to ∇f | −‖∇f‖ | Maximum rate of decrease (steepest descent) |
Directional derivative values at key angles
SECTION 6
Worked Example
Finding the Directional Derivative of f(x, y) = x²y − 3xy + y² at (2, 1) in the Direction of v = ⟨3, 4⟩
- 1
Step 1 — Compute the Partial Derivatives
We need fx and fy. Differentiating f(x, y) = x²y − 3xy + y² with respect to x: fx = 2xy − 3y. Differentiating with respect to y: fy = x² − 3x + 2y.fx = 2xy − 3y, fy = x² − 3x + 2y - 2
Step 2 — Evaluate the Gradient at (2, 1)
Substitute x = 2 and y = 1 into the partial derivatives. fx(2, 1) = 2(2)(1) − 3(1) = 4 − 3 = 1. fy(2, 1) = (2)² − 3(2) + 2(1) = 4 − 6 + 2 = 0.∇f(2, 1) = ⟨1, 0⟩ - 3
Step 3 — Normalize the Direction Vector
The given direction is v = ⟨3, 4⟩, which is not a unit vector. Compute its magnitude: ‖v‖ = √(3² + 4²) = √(9 + 16) = √25 = 5. The unit vector is u = v / ‖v‖ = ⟨3/5, 4/5⟩.u = ⟨3/5, 4/5⟩ = ⟨0.6, 0.8⟩ - 4
Step 4 — Compute the Directional Derivative via the Dot Product
Apply the gradient formula: Duf(2, 1) = ∇f(2, 1) · u = ⟨1, 0⟩ · ⟨3/5, 4/5⟩ = (1)(3/5) + (0)(4/5) = 3/5.f(2, 1) = 3/5 = 0.6 - 5
Step 5 — Interpret the Result
The directional derivative is 3/5, meaning that at the point (2, 1), the function f increases at a rate of 0.6 units per unit step in the direction of ⟨3, 4⟩. Since the gradient at this point is ⟨1, 0⟩ (pointing purely in the x-direction), and our direction has a positive x-component, the positive result makes geometric sense. The maximum possible rate of change at (2, 1) is ‖∇f‖ = 1, achieved by moving in the direction ⟨1, 0⟩.
SECTION 7
Comparisons — Partial vs. Directional Derivatives
It is instructive to compare the directional derivative with its simpler cousins—partial derivatives—and to note both the strengths and limitations of the gradient-based formula. Understanding when the formula applies (and when it does not) is essential for correct usage in applications.
| Feature | Partial Derivative | Directional Derivative via Gradient |
|---|---|---|
| Direction | Only along coordinate axes (x or y) | Any unit vector u in the domain |
| Formula | or (single derivative) | ∇f · u (dot product) |
| Output | Scalar (rate of change along axis) | Scalar (rate of change along u) |
| Requirement | Partial derivative exists at the point | f must be differentiable at the point |
| Special case | = D_{⟨1,0⟩} f, = D_{⟨0,1⟩} f | Reduces to partial derivatives when u is a standard basis vector |
| Limitation | Cannot capture off-axis behavior | Requires differentiability, not just existence of partials |
Partial derivatives vs. directional derivatives
KEY TAKEAWAY
SECTION 8
Connection to Advanced Theory
The directional derivative and the gradient are not endpoints of multivariable calculus—they are gateways to deeper structures. In higher dimensions, the gradient generalizes to the total derivative (or Jacobian), and directional derivatives become essential in functional analysis and differential geometry. Here we briefly survey the most important connections that a student of Calculus 3 will encounter next.
| Concept in This Lesson | Advanced Extension | Where You'll See It |
|---|---|---|
| ∇f (gradient of scalar) | Jacobian matrix J for vector-valued functions F : ℝⁿ → ℝᵐ | Linear algebra, differential equations, robotics |
| f = ∇f · u | Fréchet derivative Df(a)(h) for functions on Banach spaces | Functional analysis, PDE theory |
| ‖∇f‖ = max rate of change | Gradient descent / ascent algorithms | Machine learning, optimization, neural networks |
| ∇f ⊥ level curves | Normal vectors to surfaces, tangent planes, implicit function theorem | Differential geometry, constrained optimization (Lagrange multipliers) |
| Directional derivative along curves | Lie derivatives, covariant derivatives on manifolds | General relativity, advanced differential geometry |
From directional derivatives to advanced mathematics
Perhaps the most immediate application students encounter after this lesson is Lagrange multipliers. When optimizing f subject to a constraint g(x, y) = c, the key insight is that at an optimum, the gradient ∇f must be parallel to ∇g—any directional derivative of f along the constraint curve must vanish, which happens precisely when ∇f is perpendicular to the constraint curve. This perpendicularity condition is nothing more than requiring Duf = 0 for every tangent direction u of the constraint.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
The directional derivative Duf measures the instantaneous rate of change of a scalar function f in the direction of a unit vector u. When f is differentiable, this derivative can be computed elegantly via the gradient formula: Duf = ∇f · u = fx u₁ + fy u₂. The gradient vector ∇f encodes all directional information: it points in the direction of steepest ascent, its magnitude ‖∇f‖ gives the maximum rate of change, and it is always perpendicular to the level curves of f.
The geometric form Duf = ‖∇f‖ cos θ reveals that the directional derivative is maximized when u aligns with ∇f (θ = 0), vanishes when u is tangent to a level curve (θ = π/2), and is most negative when u opposes ∇f (θ = π). Always remember to normalize your direction vector before computing the dot product. These ideas extend naturally to three and higher dimensions and form the foundation for gradient-based optimization, Lagrange multipliers, and the analysis of vector fields throughout applied mathematics and the sciences.