Directional Derivatives and Differentiability

Directional derivatives measure the instantaneous rate of change of a multivariable function along a chosen direction; differentiability is the stronger condition that the function is well-approximated by a linear map at a point. Key result: differentiability implies all directional derivatives exist and equals the gradient dotted with the direction — but the converse is FALSE. Applies across multivariable calculus, optimization, physics, and machine learning. Crystallized in the 19th century through Cauchy, Weierstrass, and Fréchet.

The directional derivative of a function at a point in the direction of a unit vector is the limit of difference quotients along the line through with direction . Differentiability at means there exists a single linear map (the derivative) such that is approximated to first order in every direction simultaneously — a fundamentally stronger requirement than the existence of directional derivatives one direction at a time. This distinction matters because nearly every theorem of multivariable calculus (chain rule, Taylor's theorem, the implicit function theorem) requires genuine differentiability, not mere existence of partials. The surprising fact that trips up most students: a function can possess every directional derivative at a point and still be discontinuous there. The gradient encapsulates differentiability when it holds, pointing in the direction of steepest ascent.

The Core Insight

Existence of directional derivatives is a one-dimensional condition checked along each line separately. Differentiability is a genuinely multidimensional condition: it demands that ONE linear map approximates uniformly as you approach from all directions at once. The gap between these — sequential 1D limits versus a single 2D/nD limit — is the source of nearly every subtlety on this page.

Formal Statement

Directional Derivative

Let , let , and let be a unit vector (). The directional derivative of at in the direction is

1
⟳Restrict to the line , then by the ordinary single-variable derivative definition.

Here is the base point, the direction, and the scalar step. When (the -th standard basis vector), is the partial derivative .

Some authors do not require to be a unit vector. If is unnormalized, scales linearly with , and the geometric interpretation as "rate per unit distance" is lost. Always check your textbook's convention. This page uses unit vectors.

Differentiability (Fréchet)

is differentiable at if there exists a linear map (equivalently a vector ) such that
2
⟳This says the error of the linear approximation vanishes faster than ; it is the multivariable analogue of .

The linear map is the (total) derivative , and the vector representing it is the gradient , so that .

Gradient Formula for Directional Derivatives

If is differentiable at , then every directional derivative exists and is given by

3
⟳Set in equation [2], divide by , and take ; the term vanishes because .

Continuity from Differentiability

If is differentiable at , then is continuous at .

4
⟳From [2], ; both terms as since is linear hence continuous.

Direction of Steepest Ascent

Among all unit directions , the directional derivative is maximized when points along , with maximum value .

5
⟳By [3] and Cauchy–Schwarz, , maximized at .

Why It Holds / Derivation

Differentiability ⟹ Gradient Formula (Equation 3)

We prove that differentiability at forces for every unit .

Step 1. By definition [2], write the remainder as
with the property as . Step 2. Specialize to with , . Since , we have . Then
Step 3. Divide by :
Step 4. Estimate the remainder term. Since ,
by the defining property of in Step 1. Step 5. Taking in Step 3 yields the limit , which is equation [3].

Sufficient Condition for Differentiability

If all partial derivatives exist in a neighborhood of and are continuous at , then is differentiable at . (Such is called continuously differentiable, or .)

Sketch: Continuous Partials ⟹ Differentiable (n=2)

Step 1. Write the increment as a telescoping sum, changing one coordinate at a time:
Step 2. Apply the single-variable Mean Value Theorem to each bracket. There exist between and , and between and , with
Step 3. Use continuity of the partials: as , the evaluation points approach , so
Step 4. Substitute: the increment equals . The error term satisfies
verifying [2].

Maurice Fréchet | 1878–1973

The French mathematician Maurice Fréchet gave the modern, rigorous definition of differentiability in normed and metric spaces (1911), generalizing the classical multivariable derivative to infinite-dimensional settings. The "Fréchet derivative" of equation [2] is now the standard definition. Fréchet also pioneered abstract metric spaces and functional analysis, providing the language in which "differentiability as approximation by a bounded linear operator" became precise. His framework distinguishes the strong (Fréchet) derivative from the weaker Gâteaux derivative, which is exactly the directional-derivative notion lifted to function spaces — making this very page's central tension a foundational theme of modern analysis.

Building Intuition

Imagine standing on a hillside whose height is . A directional derivative is the slope you feel if you start walking in a fixed compass direction — steepness measured along that one path. There are infinitely many such slopes, one per direction.

Differentiability is a much stronger claim: it says the hillside near your feet looks like a flat tilted plane (the tangent plane). If that's true, then every walking-direction's slope is just the projection of one master arrow — the gradient — onto your direction. The gradient points "straight uphill," and its length is the steepest possible slope.

The crucial subtlety: a surface can have a well-defined slope along every straight-line path through a point and yet still be crinkled, creased, or torn there — so no single tangent plane fits. Directional derivatives only probe along straight lines; differentiability demands good behavior along every approach, including curved and oscillating ones. That's why all directional derivatives existing is not enough.

Gradient and directional derivatives on a level-set map. The gradient is perpendicular to level curves and gives the steepest slope; a directional derivative projects it onto a chosen direction.

<svg viewBox="0 0 460 360" xmlns="http://www.w3.org/2000/svg">
<rect width="460" height="360" fill="#0a0e17"/>
<!-- level curves -->
<ellipse cx="200" cy="180" rx="40" ry="28" fill="none" stroke="#94a3b8" stroke-width="1"/>
<ellipse cx="200" cy="180" rx="80" ry="56" fill="none" stroke="#94a3b8" stroke-width="1"/>
<ellipse cx="200" cy="180" rx="120" ry="84" fill="none" stroke="#94a3b8" stroke-width="1"/>
<ellipse cx="200" cy="180" rx="160" ry="112" fill="none" stroke="#94a3b8" stroke-width="1"/>
<text x="20" y="30" fill="#e2e8f0" font-size="13" font-family="sans-serif">Level curves f = const</text>
<!-- base point -->
<circle cx="200" cy="124" r="4" fill="#d4a853"/>
<text x="208" y="120" fill="#e2e8f0" font-size="12" font-family="sans-serif">a</text>
<!-- gradient arrow (steepest ascent, perpendicular to level curve, pointing inward/up) -->
<line x1="200" y1="124" x2="200" y2="64" stroke="#d4a853" stroke-width="2.5"/>
<polygon points="200,56 195,68 205,68" fill="#d4a853"/>
<text x="208" y="72" fill="#d4a853" font-size="12" font-family="sans-serif">∇f(a)  (steepest)</text>
<!-- direction u -->
<line x1="200" y1="124" x2="262" y2="100" stroke="#e2e8f0" stroke-width="2"/>
<polygon points="268,98 256,98 261,108" fill="#e2e8f0"/>
<text x="270" y="98" fill="#e2e8f0" font-size="12" font-family="sans-serif">u</text>
<!-- angle theta -->
<path d="M 200 104 A 20 20 0 0 1 218 113" fill="none" stroke="#94a3b8" stroke-width="1"/>
<text x="214" y="100" fill="#94a3b8" font-size="11" font-family="sans-serif">θ</text>
<!-- formula -->
<text x="20" y="335" fill="#e2e8f0" font-size="13" font-family="sans-serif">D_u f(a) = ∇f(a)·u = |∇f| cos θ</text>
</svg>

Worked Examples

Example 1 — Computing a Directional Derivative

Given: at the point , in the direction of . Step 1 — Normalize the direction. , so . Step 2 — Compute the gradient.
At : and . So . Step 3 — Apply equation [3].

(Since is a polynomial, it is everywhere, so equation [3] is valid.)

Answer:

Example 2 — Steepest Ascent and a Temperature Field

Given: A metal plate has temperature (°C), with in centimeters. Find the direction of fastest temperature increase at and the maximum rate. Step 1 — Gradient.
Step 2 — Direction of steepest ascent (equation [5]) is along :
Step 3 — Maximum rate is :
Answer:
Heat flows opposite to this, along (down the gradient).

Common Misconceptions

"If all partial derivatives exist, the function is differentiable." FALSE. Partials only probe the coordinate-axis directions. "If all directional derivatives exist (in every direction), the function is differentiable." ALSO FALSE — and even worse, such a function need not be continuous. Differentiability requires the single 2D limit [2] to vanish, which is strictly stronger than the existence of any collection of 1D limits. The correct sufficient condition is continuous partial derivatives (), not mere existence.

Directional Derivatives Exist Everywhere, Yet Not Differentiable / Not Continuous

Define

Directional derivatives all exist at the origin. For a unit direction with :
For (the -axis), , so . Every directional derivative exists. But is not even continuous at the origin. Approach along the parabola :
The limit depends on the path, so is discontinuous — hence (by equation [4]) not differentiable, despite all directional derivatives existing. Moral: the directional derivatives, even if they existed and satisfied , would not guarantee differentiability. Straight-line probing misses the parabolic ridge.

Partials Exist but Function is Discontinuous

A simpler classic:

Both partials exist at the origin (, so ), yet along . So is discontinuous, hence not differentiable, even though both partials exist. Existence of partials says nothing about differentiability.

Connections

Directional derivatives and differentiability sit at the hub of multivariable analysis. The gradient they define is the workhorse of Gradient Descent in optimization and machine learning. Equation [3] is the seed of the Multivariable Chain Rule, which expresses — a directional derivative along a curve. The condition [2] generalizes directly to the Total Derivative (Jacobian) for vector-valued maps , and onward to the Fréchet Derivative in Banach spaces, where the directional version becomes the Gâteaux Derivative. Geometrically, the vanishing of all directional derivatives at an interior extremum gives the first-order condition , linking to Lagrange Multipliers and critical-point theory. The orthogonality of to level sets connects to Tangent Planes and Linear Approximation and the Implicit Function Theorem.

Real-World Applications

  1. Machine learning / neural networks: Backpropagation computes the gradient of a loss function over millions of parameters; gradient descent steps in the direction (steepest descent, equation [5]) to minimize loss.
  2. Image processing: The gradient magnitude of an intensity field detects edges (Sobel and Canny edge detectors); the gradient direction gives edge orientation.
  3. Geophysics & cartography: Slope and aspect of terrain are literally the magnitude and direction of ; used in hydrology to model water flow (steepest descent).
  4. Thermodynamics & heat transfer: Fourier's law states heat flux flows down the temperature gradient — Example 2 made concrete.
  5. Fluid dynamics & electrostatics: Conservative force fields and electric fields are gradients of potentials, ; directional derivatives give work done along paths.
  6. Robotics / path planning: Artificial potential field methods steer robots along toward goals and away from obstacles.
  7. Economics: Marginal rates of substitution and the direction of fastest utility increase are directional derivatives of utility functions along consumption-bundle directions.

Historical Development

  • 1797 — Lagrange: Théorie des fonctions analytiques develops partial derivatives systematically and introduces the notation , treating derivatives as coefficients of Taylor expansions.
  • 1821 — Cauchy: Cours d'analyse puts limits and continuity on rigorous footing, giving the modern definition of the derivative via difference quotients — the basis of equation [1].
  • 1840s–1870s — Weierstrass: The – formulation of limits makes precise what "approximation to first order" means, enabling the rigorous remainder condition [2]; his pathological functions warn against naive intuition.
  • 1873 — Hamilton & the nabla: The operator , introduced by Hamilton and popularized by Tait, gives the gradient its modern symbol and vector-calculus identity.
  • 1881 — Gibbs & Heaviside: Develop vector analysis as we know it, formalizing , dot products, and the directional-derivative formula [3] for physics applications.
  • 1887 — Peano: Provides explicit counterexamples showing existence of partials does not imply differentiability or continuity, sharpening the conceptual distinction.
  • 1911–1925 — Fréchet: Defines the (strong) derivative for general normed spaces via condition [2], establishing the modern abstract notion of differentiability.
  • 1913 — Gâteaux: Introduces the weaker directional-derivative-style derivative in function spaces, posthumously named the Gâteaux derivative, formalizing the directional vs. total distinction at the highest level.
  • 20th century — optimization era: Cauchy's steepest-descent idea (1847) blossoms into modern numerical optimization and, ultimately, deep-learning training.

Subtleties & Limits

Several deep issues hover around this seemingly elementary topic. (1) The gap between Gâteaux and Fréchet differentiability is enormous in infinite dimensions: a functional can be Gâteaux-differentiable everywhere yet Fréchet-differentiable nowhere, and characterizing where Lipschitz functions on Banach spaces are differentiable is the subject of deep results (Preiss's theorem, 1990) and still-open questions in the geometry of Banach spaces. (2) Differentiability of Lipschitz functions: Rademacher's theorem guarantees a Lipschitz is differentiable almost everywhere, but the structure of the (measure-zero) non-differentiability set is subtle — related to open problems on "universal differentiability sets." (3) Weak derivatives and Sobolev spaces replace pointwise directional derivatives with distributional ones, the foundation of modern PDE theory, where "differentiability" is reinterpreted entirely. (4) Even in finite dimensions, finding clean necessary-and-sufficient pointwise conditions for differentiability (beyond the sufficient criterion) remains genuinely delicate; existence of all directional derivatives plus continuity still does not suffice in general.

See Also

Gradient · Jacobian Matrix · Lagrange Multipliers · Implicit Function Theorem · Fréchet Derivative · Gâteaux Derivative · Level Sets and Contours · Directional Derivative in Differential Geometry

Before this

Where this leads