A Map of Generalized Derivatives
Directional, Gâteaux, Fréchet, subdifferential, weak derivative, variations and duality
Advanced (graduate level)
1. Introduction — one question and three axes
In essence, differentiation asks for the linear object that best approximates a function locally, or equivalently for a rate of change. This single question changes its appearance along three axes.
- Axis 1: which directions do we look at? — only the coordinate axes (partial derivative), or an arbitrary direction (directional derivative).
- Axis 2: what is the underlying space? — finite-dimensional $\mathbb{R}^n$ (directional derivative), or function spaces and Banach spaces (Gâteaux derivative / Fréchet derivative).
- Axis 3: how strong is the approximation, how smooth is the function? — a weak derivative taken direction by direction (Gâteaux), or a uniform best linear approximation (Fréchet). Giving up smoothness further leads to the set-valued subdifferential for non-differentiable convex functions, and to the weak derivative, which replaces differentiation by an identity between integrals.
Adding the viewpoint of duality (Legendre–Fenchel transform) and the culmination in applications (calculus of variations) completes a single map. This page is that map itself; each concept is treated in detail on its own page.
2. The whole picture (relationship diagram)
The diagram shows how each concept branches off from the central question, "the best linear approximation". The arrows indicate how the concepts are built up (widening the objects and spaces, then strengthening the requirement), and the small text beside each arrow says what has been changed. The logical implications run the other way (§3).
3. Hierarchy of strength (implications)
For real-valued maps on normed spaces, with each term used in the sense above, the following implications hold; the further right, the weaker the condition.
$$\underbrace{\text{Fréchet differentiable}}_{\text{uniform best linear approximation}} \;\Longrightarrow\; \underbrace{\text{Gâteaux differentiable}}_{\text{direction by direction, linear}} \;\Longrightarrow\; \underbrace{\text{all directional derivatives exist}}_{\text{not necessarily linear}} \;\Longrightarrow\; \underbrace{\text{partial derivatives exist}}_{\text{axis directions only}}$$The arrows in the opposite direction hold only under additional assumptions:
- the partial derivatives exist and are continuous ($C^1$) $\Rightarrow$ Fréchet differentiable;
- the Gâteaux derivative exists in a neighbourhood and is continuous (in operator norm) $\Rightarrow$ Fréchet differentiable;
- counterexample 1: all directional derivatives (Gâteaux variations) exist, but the dependence on the direction is not linear, so the function is not Gâteaux differentiable — $f(x,y)=\dfrac{x^2y}{x^4+y^2}$ (directional derivative §7) and $f(x,y)=\dfrac{x^3}{x^2+y^2}$ (Gâteaux derivative §5); in both cases $D_{\mathbf h}f$ at the origin fails to be a linear function of $\mathbf h$;
- counterexample 2: Gâteaux differentiable but not Fréchet differentiable — $f(x,y)=\dfrac{x^3y}{x^6+y^2}$ (with $f(0,0)=0$). For every $\mathbf h=(a,b)$ one has $\lim_{t\to0}\dfrac{f(t\mathbf h)}{t}=0$, so the Gâteaux derivative is the zero map (linear); yet along the curve $y=x^3$ one has $f(x,x^3)=\tfrac12$, so $f$ is not even continuous at the origin, and a function that is not continuous cannot be Fréchet differentiable.
The distinction between directional and Gâteaux derivative is a convention
On this page the term directional derivative refers to the rate of change along each direction in finite-dimensional $\mathbb{R}^n$, and Gâteaux derivative to the case where, in a general normed space, the dependence on the direction is a linear map. Mathematically the directional derivative can also be defined on general linear spaces, and some texts distinguish the Gâteaux variation (no linearity required) from the Gâteaux derivative (linearity required). The essential distinction is not finite versus infinite dimension but three stages: (i) a limit along each direction, (ii) whether that dependence forms a single linear map, and (iii) whether the remainder estimate is uniform in all directions.
The nonsmooth and dual axes are separate
The hierarchy above concerns strengthening smoothness. Orthogonal to it, moving in the direction of giving up smoothness leads to the subdifferential (set-valued) and the weak derivative (differentiation in the sense of integrals), while moving in the direction of swapping variables leads to the Legendre–Fenchel transform (duality). These extensions lie outside the chain of implications.
4. Comparison table
| Concept | Core of the definition | Typical setting | Type of the value | Linearity | Typical use |
|---|---|---|---|---|---|
| Partial derivative | $\dfrac{\partial f}{\partial x_i}$ (limit along an axis) | $\mathbb{R}^n$ | scalar | — | entries of the gradient and Jacobian |
| Directional derivative | $\lim\limits_{t\to0}\dfrac{f(\mathbf a+t\mathbf u)-f(\mathbf a)}{t}$ | $\mathbb{R}^n$ | scalar | not necessarily linear in $\mathbf u$ | steepest descent, geometry of level sets |
| Gâteaux derivative | $\lim\limits_{t\to0}\dfrac{f(x+th)-f(x)}{t}$ (for each $h$) | normed spaces (function spaces) | scalar / vector | a derivative once it is linear | first variation, optimization in function spaces |
| Fréchet derivative | $\dfrac{\lVert f(x+h)-f(x)-Ah\rVert}{\lVert h\rVert}\to0$ | Banach spaces | bounded linear operator | always linear (bounded) | Newton's method, implicit function theorem |
| Subdifferential | $\{g: f(y)\ge f(x)+\langle g,y-x\rangle\}$ | convex functions (possibly nonsmooth) | set (convex set) | all slopes of supporting hyperplanes | nonsmooth optimization, subgradient method |
| Weak derivative | $\displaystyle\int u\,\varphi'\,dx=-\int v\,\varphi\,dx$ ($\forall\varphi\in C_c^\infty$) | locally integrable functions ($L^1_{\mathrm{loc}}$) | function (equivalence class a.e.) | linear (as a distribution) | Sobolev spaces, weak solutions of PDEs, finite elements |
| Legendre–Fenchel transform |
$f^*(p)=\sup_x(\langle p,x\rangle-f(x))$ | convex functions | function (on the dual side) | an involution on closed proper convex functions ($f^{**}=f$) | duality, Hamiltonians, thermodynamics |
| First variation / calculus of variations | $\delta J(y;\eta)=\dfrac{d}{dt}J[y+t\eta]\big|_{0}$ | functionals (function spaces) | scalar | linear in $\eta$ when the Gâteaux derivative exists | Euler–Lagrange equation, least action |
5. The story of the connections
5.1 Partial → directional derivative (from coordinates to arbitrary directions)
A partial derivative is nothing but a directional derivative with the direction fixed to a coordinate axis $\mathbf e_i$. Allowing an arbitrary unit vector $\mathbf u$, a differentiable function satisfies $D_{\mathbf u}f=\nabla f\cdot\mathbf u=\lVert\nabla f\rVert\cos\theta$, which reveals the geometry in which the gradient direction is the direction of steepest ascent. See directional derivative for details.
5.2 Directional → Gâteaux derivative (from finite dimensions to function spaces)
The defining expression uses only addition and scalar multiplication, so it remains meaningful when $\mathbf a$ and $\mathbf u$ are replaced by functions. This is the Gâteaux derivative, which for a functional is exactly the first variation $\delta J(y;\eta)$. The pitfall seen in finite dimensions — derivatives in all directions do not imply differentiability — carries over unchanged.
5.3 Gâteaux → Fréchet derivative (from weak to strong)
The Gâteaux derivative is a weak derivative that takes the limit direction by direction. The Fréchet derivative requires $\lVert h\rVert\to0$ uniformly in all directions and controls the remainder by $o(\lVert h\rVert)$: the "best linear approximation". In return for this strength, the chain rule and the mean value inequality hold cleanly, and in finite dimensions it coincides with the total derivative (the Jacobian matrix).
5.4 Extension to the nonsmooth case: the subdifferential
A convex function with a kink, such as $f(x)=|x|$, is not differentiable at the origin. Yet infinitely many lines support the graph from below (supporting hyperplanes). The set of all their slopes is the subdifferential $\partial f(x)$. At a point of differentiability it collapses to the singleton $\partial f(x)=\{\nabla f(x)\}$, so it contains the ordinary derivative. Being set-valued, it is a generalization of a rather different flavour.
5.5 Extension by moving to integrals: the weak derivative
The other route that gives up smoothness is the weak derivative. Here the pointwise limit is abandoned and the integration-by-parts formula $\int u'\varphi\,dx=-\int u\varphi'\,dx$ is adopted as the definition. The right-hand side does not differentiate $u$, so it is meaningful even when $u$ is not smooth. A function $v$ satisfying this identity for every smooth test function $\varphi$ with compact support is called the weak derivative of $u$. The weak derivative of $|x|$ is $\operatorname{sgn}(x)$, whereas a step function with a jump has no weak derivative representable by an $L^1_{\mathrm{loc}}$ function, and in the world of distributions one writes $H'=\delta$.
While the subdifferential widens the value into a set by using convexity, the weak derivative moves the way of measuring to integrals. This single step produces complete spaces in which differentiation is closed under limits (Sobolev spaces), and it is the theoretical foundation of weak solutions of partial differential equations and of the finite element method.
5.6 The dual viewpoint: the Legendre–Fenchel transform
Describing a function not by its pointwise values but by the slopes and intercepts of its tangent lines is the Legendre–Fenchel transform $f^*(p)=\sup_x(\langle p,x\rangle-f(x))$. If $f$ is proper convex and lower semicontinuous (closed proper convex), the subdifferential yields the elegant duality $p\in\partial f(x)\Leftrightarrow x\in\partial f^*(p)$ even in the nonsmooth case (Fenchel–Moreau). If in addition $f$ is strictly convex and differentiable, then $p=\nabla f(x)$ and $x=\nabla f^*(p)$ are mutually inverse maps on the corresponding domains; differentiability alone does not make $\nabla f$ injective, so the inverse need not exist. The Fenchel–Young inequality $f(x)+f^*(p)\ge\langle x,p\rangle$ ties the two together.
5.7 The culmination in applications: the calculus of variations
Setting the first variation (that is, the Gâteaux derivative) of a functional to zero yields the Euler–Lagrange equation. The brachistochrone, geodesics and the principle of least action — the basic laws of physics and geometry are written in the language of this generalized derivative. See calculus of variations.
6. Which one should you use? (quick guide)
- You only need the rate of change along one direction in finite dimensions → directional derivative.
- You want a stationarity condition in a function space (a variational problem) → Gâteaux derivative = first variation.
- You want to apply "derivative-like" theorems rigorously — chain rule, Newton's method, implicit function theorem → Fréchet derivative.
- Your objective function has kinks (L1 regularization, hinge loss, …) → subdifferential.
- You deal with differential equations whose solutions need not be smooth, or you want to justify the finite element method → weak derivative and Sobolev spaces.
- You want to swap variables (position ↔ momentum, $S$ ↔ $T$) or build a dual problem → Legendre–Fenchel transform.
Do not forget the finite-dimensional faces
This page maps the generalizations of the derivative (to infinite dimensions, nonsmooth functions and duality), but the same derivative also appears within finite dimensions as the gradient, the Jacobian, the Hessian and differential operators; that story is collected in the many faces of the derivative. Reading both gives a three-dimensional picture.
7. FAQ
Q1. How are the directional, Gâteaux and Fréchet derivatives related?
All three use the same defining expression on different stages (finite or infinite dimensional) and with different strength (direction by direction, or uniform). The implications Fréchet ⇒ Gâteaux ⇒ directional ⇒ partial hold, and the converses require extra assumptions such as continuity.
Q2. Where do the subdifferential and the Legendre–Fenchel transform fit on this map?
The subdifferential is the extension that gives up smoothness (set-valued), and the Legendre–Fenchel transform is the dual axis that swaps variables. The two are linked by $p\in\partial f(x)\Leftrightarrow x\in\partial f^*(p)$ and the Fenchel–Young inequality.
Q3. Which derivative are the first variation and the calculus of variations?
They are an application of the Gâteaux derivative of a functional (the first variation). The stationarity condition $\delta J(y;\eta)=0$ yields the Euler–Lagrange equation.
Q4. Both the weak derivative and the subdifferential handle non-differentiable functions, so how do they differ?
They generalize in different directions. The weak derivative moves differentiation onto test functions by integration by parts; it gives up pointwise values but needs no convexity and handles several variables and higher orders (Sobolev spaces, weak solutions of PDEs). The subdifferential uses convexity to return, at each point, the set of slopes of supporting lines, so its value is a set but pointwise information is kept (nonsmooth optimization).
Q5. Why is the Gâteaux derivative sometimes also called a weak derivative?
Because some texts in functional analysis pair the Fréchet derivative (strong derivative) with the Gâteaux derivative and describe the latter as a weaker notion of differentiability, calling it the weak differential. What this page calls the weak derivative is the Sobolev-style notion defined through integration by parts, which is different. If test functions and integration by parts appear it is the Sobolev sense; if a limit along a direction $h$ appears it is the Gâteaux sense.