20  Differentiation in Normed Spaces

The derivative of a function \(f: \mathbb{R} \to \mathbb{R}\) at a point \(a\) is the slope of the best linear approximation to \(f\) near \(a\). In higher dimensions this generalisation requires care: there are many directions to approach \(a\) from, and the derivative must control all of them simultaneously, not just along coordinate axes. The right object is not a number, not a vector, but a bounded linear map — and the operator norm of the previous chapter is precisely what is needed to make “best linear approximation” precise.

20.1 The Fréchet derivative

Definition 20.1 (Fréchet derivative) Let \(V\) and \(W\) be normed spaces, \(U \subset V\) open, and \(f: U \to W\). We say \(f\) is Fréchet differentiable at \(a \in U\) if there exists a bounded linear map \(Df(a) \in \mathcal{B}(V, W)\) such that \[ \lim_{h \to 0} \frac{\|f(a + h) - f(a) - Df(a)h\|_W}{\|h\|_V} = 0. \] The map \(Df(a)\) is called the Fréchet derivative of \(f\) at \(a\). If \(f\) is Fréchet differentiable at every point of \(U\), we say \(f\) is differentiable on \(U\).

The condition says: \(f(a + h) = f(a) + Df(a)h + o(\|h\|)\) as \(h \to 0\). The error \(f(a + h) - f(a) - Df(a)h\) is \(o(\|h\|)\) — it vanishes faster than \(\|h\|\) as \(h \to 0\). The linear map \(Df(a)\) is the unique best linear approximation in this sense.

Proposition 20.1 (The derivative is unique) If \(Df(a)\) exists, it is unique.

Proof. Suppose \(L_1\) and \(L_2\) both satisfy the definition. For any fixed \(h \neq 0\), substitute \(th\) for \(h\) with \(t > 0\) and divide by \(t\|h\|_V\): \[ \frac{\|L_1(th) - L_2(th)\|_W}{t\|h\|_V} \leq \frac{\|f(a+th) - f(a) - L_1(th)\|_W}{t\|h\|_V} + \frac{\|f(a+th) - f(a) - L_2(th)\|_W}{t\|h\|_V}. \] By linearity, the left side equals \(\|(L_1 - L_2)h\|_W / \|h\|_V\), which is independent of \(t\). Both terms on the right tend to \(0\) as \(t \to 0^+\). So \((L_1 - L_2)h = 0\) for every \(h\), meaning \(L_1 = L_2\). \(\square\)

The proof uses linearity to pull \(t\) out of the numerator. The same trick appears throughout: linear maps can be tested on rays \(\{th : t > 0\}\), and the limit \(t \to 0^+\) then reads off what the map does to \(h\).

Proposition 20.2 (Differentiability implies continuity) If \(f\) is Fréchet differentiable at \(a\), then \(f\) is continuous at \(a\).

Proof. \(\|f(a+h) - f(a)\|_W \leq \|Df(a)h\|_W + \|f(a+h) - f(a) - Df(a)h\|_W \leq (\|Df(a)\| + o(1))\|h\|_V \to 0\) as \(h \to 0\). \(\square\)

20.2 The Jacobian

In finite dimensions the Fréchet derivative takes a familiar form.

Proposition 20.3 (The Jacobian matrix) Let \(f: U \subset \mathbb{R}^n \to \mathbb{R}^m\) be Fréchet differentiable at \(a\). Then all partial derivatives \(\partial f_i / \partial x_j\) exist at \(a\), and \(Df(a)\) is represented by the \(m \times n\) Jacobian matrix \[ J_f(a) = \begin{pmatrix} \dfrac{\partial f_1}{\partial x_1}(a) & \cdots & \dfrac{\partial f_1}{\partial x_n}(a) \\[6pt] \vdots & \ddots & \vdots \\[6pt] \dfrac{\partial f_m}{\partial x_1}(a) & \cdots & \dfrac{\partial f_m}{\partial x_n}(a) \end{pmatrix}. \] That is, \(Df(a)h = J_f(a)h\) for all \(h \in \mathbb{R}^n\).

Proof. For the standard basis vector \(e_j\), substitute \(h = te_j\) in the definition: \[ \frac{\|f(a + te_j) - f(a) - Df(a)(te_j)\|}{|t|} \to 0. \] The \(i\)-th component gives \((f_i(a + te_j) - f_i(a))/t \to (Df(a)e_j)_i\), which is exactly \(\partial f_i/\partial x_j(a)\) by definition of partial derivative. So the \(j\)-th column of the matrix representing \(Df(a)\) is \((\partial f_1/\partial x_j, \ldots, \partial f_m/\partial x_j)^T\). \(\square\)

The converse fails: partial derivatives can exist without the Fréchet derivative existing. The existence of partials is a much weaker condition — it only tests \(f\) along coordinate directions.

Example 20.1 (Partial derivatives exist without Fréchet differentiability) Define \(f: \mathbb{R}^2 \to \mathbb{R}\) by \[ f(x, y) = \begin{cases} \dfrac{xy}{x^2 + y^2} & (x,y) \neq 0 \\ 0 & (x,y) = 0. \end{cases} \] Both partial derivatives \(\partial f/\partial x(0,0) = 0\) and \(\partial f/\partial y(0,0) = 0\) exist. But \(f\) is not even continuous at \(0\): along the line \(y = x\), \(f(t, t) = 1/2\) for all \(t \neq 0\), so \(f(t, t) \not\to f(0,0) = 0\). Since differentiability implies continuity, \(f\) is not Fréchet differentiable at \(0\).

A sufficient condition for Fréchet differentiability that is practically checkable:

Theorem 20.1 (Continuous partials imply differentiability) Let \(f: U \subset \mathbb{R}^n \to \mathbb{R}^m\). If all partial derivatives \(\partial f_i/\partial x_j\) exist on \(U\) and are continuous at \(a\), then \(f\) is Fréchet differentiable at \(a\).

Proof. It suffices to treat \(m = 1\); the general case follows componentwise. Write \(h = \sum h_j e_j\) and telescope: \[ f(a + h) - f(a) = \sum_{j=1}^n \bigl[f(a + h_1 e_1 + \cdots + h_j e_j) - f(a + h_1 e_1 + \cdots + h_{j-1} e_{j-1})\bigr]. \] Each summand is a change in the \(j\)-th variable with the others held fixed. By the mean value theorem in one variable, the \(j\)-th summand equals \(h_j \frac{\partial f}{\partial x_j}(a + h_1 e_1 + \cdots + h_{j-1}e_{j-1} + \theta_j h_j e_j)\) for some \(\theta_j \in (0,1)\).

Define \(L = J_f(a)\), so \(Lh = \sum_j h_j \frac{\partial f}{\partial x_j}(a)\). Then \[ \frac{|f(a+h) - f(a) - Lh|}{\|h\|} \leq \sum_{j=1}^n \frac{|h_j|}{\|h\|} \left|\frac{\partial f}{\partial x_j}(c_j) - \frac{\partial f}{\partial x_j}(a)\right| \] where each \(c_j \to a\) as \(h \to 0\). Since \(|h_j|/\|h\| \leq 1\) and each partial is continuous at \(a\), each term vanishes as \(h \to 0\). \(\square\)

Exercise. Show that the function \(f: \mathbb{R}^2 \to \mathbb{R}\) defined by \(f(x, y) = x^2 y + e^{xy}\) is Fréchet differentiable everywhere, and compute \(Df(1, 0)\).

The partial derivatives are \(\partial f/\partial x = 2xy + ye^{xy}\) and \(\partial f/\partial y = x^2 + xe^{xy}\), which are continuous everywhere. By the theorem above, \(f\) is Fréchet differentiable everywhere.

At \((1, 0)\): \(\partial f/\partial x(1,0) = 0\) and \(\partial f/\partial y(1,0) = 1 + 1 = 2\). So \(Df(1, 0)\) is the linear map \(\mathbb{R}^2 \to \mathbb{R}\) represented by the row matrix \(J_f(1,0) = \begin{pmatrix} 0 & 2 \end{pmatrix}\), i.e. \(Df(1,0)(h_1, h_2) = 2h_2\). \(\square\)

20.3 The chain rule

The chain rule for Fréchet derivatives takes exactly the form one expects: the derivative of a composition is the composition of derivatives.

Theorem 20.2 (Chain rule) Let \(V, W, X\) be normed spaces, \(U \subset V\) and \(\tilde{U} \subset W\) open, \(f: U \to W\) with \(f(U) \subset \tilde{U}\), and \(g: \tilde{U} \to X\). If \(f\) is Fréchet differentiable at \(a \in U\) and \(g\) is Fréchet differentiable at \(f(a)\), then \(g \circ f\) is Fréchet differentiable at \(a\) and \[ D(g \circ f)(a) = Dg(f(a)) \circ Df(a). \]

Proof. Write \(b = f(a)\), \(L = Df(a)\), \(M = Dg(b)\). Define the error terms: \[ r(h) = f(a+h) - f(a) - Lh, \qquad s(k) = g(b+k) - g(b) - Mk, \] so \(\|r(h)\| = o(\|h\|)\) and \(\|s(k)\| = o(\|k\|)\).

Set \(k = f(a+h) - f(a) = Lh + r(h)\). Then: \[ g(f(a+h)) - g(f(a)) - MLh = M(k - Lh) + s(k) = Mr(h) + s(k). \]

We bound each term. For \(Mr(h)\): \(\|Mr(h)\| \leq \|M\|\|r(h)\| = o(\|h\|)\).

For \(s(k)\): since \(k = Lh + r(h)\) and both \(\|Lh\| \leq \|L\|\|h\|\) and \(\|r(h)\| = o(\|h\|)\), we have \(\|k\| \leq (\|L\| + o(1))\|h\|\), so \(\|k\| = O(\|h\|)\). For any \(\varepsilon > 0\), when \(\|h\|\) is small enough, \(\|k\| < \delta\) for the \(\delta\) in the definition of \(s\), so \(\|s(k)\| \leq \varepsilon\|k\| = o(\|h\|)\).

Therefore \(\|g(f(a+h)) - g(f(a)) - MLh\| = o(\|h\|)\), and \(ML = Dg(f(a)) \circ Df(a)\) is the Fréchet derivative of \(g \circ f\) at \(a\). \(\square\)

The composition of the derivatives in the chain rule is composition in \(\mathcal{B}(V, X)\) — precisely the operation whose norm is controlled by submultiplicativity. That \(\|D(g \circ f)(a)\| \leq \|Dg(f(a))\| \cdot \|Df(a)\|\) is immediate.

Exercise. Let \(f: \mathbb{R}^n \to \mathbb{R}^m\) and \(g: \mathbb{R}^m \to \mathbb{R}^k\) be differentiable. Show that the Jacobian of \(g \circ f\) at \(a\) is \(J_g(f(a)) J_f(a)\), the product of the two Jacobian matrices.

By the chain rule, \(D(g \circ f)(a) = Dg(f(a)) \circ Df(a)\). In the standard bases of \(\mathbb{R}^n\), \(\mathbb{R}^m\), \(\mathbb{R}^k\), composition of linear maps corresponds to matrix multiplication. The matrix representing \(Df(a)\) is \(J_f(a) \in \mathbb{R}^{m \times n}\) and the matrix representing \(Dg(f(a))\) is \(J_g(f(a)) \in \mathbb{R}^{k \times m}\). Their composition is represented by the product \(J_g(f(a)) J_f(a) \in \mathbb{R}^{k \times n}\).

This recovers the standard multivariable chain rule: \((g \circ f)_{ij}' = \sum_k (\partial g_i/\partial y_k)(f(a)) \cdot (\partial f_k / \partial x_j)(a)\). \(\square\)

20.4 The derivative map and \(C^1\) functions

When \(f: U \to W\) is differentiable on all of \(U\), the assignment \(a \mapsto Df(a)\) defines a map \(Df: U \to \mathcal{B}(V, W)\). Asking for this map to be continuous gives the class of continuously differentiable functions.

Definition 20.2 (\(C^1\) functions) A map \(f: U \to W\) is of class \(C^1\) if it is Fréchet differentiable on \(U\) and the derivative map \(Df: U \to \mathcal{B}(V, W)\) is continuous (where \(\mathcal{B}(V, W)\) carries the operator norm topology).

The theorem above shows that continuous partial derivatives imply \(C^1\) in finite dimensions. In infinite dimensions the definition stands as stated, and \(C^1\) is the natural regularity assumption for the inverse function theorem.

Exercise. Let \(f: U \subset V \to W\) and \(g: U \to W\) be \(C^1\). Show that \(f + g\) and \(\lambda f\) are \(C^1\), and compute their derivatives.

By linearity of the limit defining the Fréchet derivative, \(D(f + g)(a) = Df(a) + Dg(a)\) and \(D(\lambda f)(a) = \lambda Df(a)\). The derivative maps \(a \mapsto Df(a) + Dg(a)\) and \(a \mapsto \lambda Df(a)\) are continuous as sums and scalar multiples of continuous maps \(U \to \mathcal{B}(V,W)\). \(\square\)

20.5 Examples in infinite dimensions

The Fréchet derivative is not confined to finite-dimensional calculus. Two examples that appear throughout analysis.

Example 20.2 (Fréchet derivatives in infinite dimensions) (a) Evaluation functionals. Fix \(t \in [0,1]\) and define \(\mathrm{ev}_t: C([0,1]) \to \mathbb{R}\) by \(\mathrm{ev}_t(f) = f(t)\). This is a bounded linear map, so it is its own derivative: \(D\,\mathrm{ev}_t(f) = \mathrm{ev}_t\) for all \(f\).

(b) The norm. On any normed space \(V\), the norm \(\|\cdot\|: V \to \mathbb{R}\) is not differentiable at \(0\) (the limit \(\|h\|/\|h\| = 1\) does not tend to \(0\)). At any \(v \neq 0\), provided the norm is smooth there, the derivative is the bounded linear functional \[ D\|{\cdot}\|(v) \cdot h = \frac{\langle v, h \rangle}{\|v\|} \] where \(\langle \cdot, \cdot \rangle\) is an inner product when \(V\) is a Hilbert space. For \(V = \mathbb{R}^n\) with the Euclidean norm, \(D\|\cdot\|(v) \cdot h = v^T h / \|v\|_2\).

(c) The integral functional. On \(C([0,1])\), define \(F(f) = \int_0^1 f(t)^2\, dt\). For \(f, h \in C([0,1])\): \[ F(f + h) - F(f) = 2\int_0^1 f(t)h(t)\, dt + \int_0^1 h(t)^2\, dt. \] The first term is linear in \(h\) and defines a bounded linear functional (since \(|\int fh\, dt| \leq \|f\|_2 \|h\|_2 \leq \|f\|_\infty \|h\|_\infty\) on \([0,1]\)). The second term is \(O(\|h\|_\infty^2)\), hence \(o(\|h\|_\infty)\). So \(F\) is Fréchet differentiable at \(f\) with \[ DF(f) \cdot h = 2\int_0^1 f(t)h(t)\, dt. \] This is the prototype of variational calculus: \(DF(f)\) is the first variation of the functional \(F\) at \(f\), and setting \(DF(f) = 0\) gives the Euler–Lagrange equation.

The integral functional example is worth pausing over. The derivative \(DF(f)\) is an element of \(\mathcal{B}(C([0,1]), \mathbb{R})\) — a bounded linear functional on \(C([0,1])\). By the Riesz representation theorem, every such functional is represented by integration (against a measure). For context, here the measure is \(2f(t)\, dt\), which is a so called a Radon measure absolutely continuous with respect to Lebesgue measure.

Exercise. Let \(A \in \mathbb{R}^{n \times n}\) and define \(f: \mathbb{R}^n \to \mathbb{R}\) by \(f(x) = x^T A x\). Compute the Fréchet derivative \(Df(x)\) and identify when \(x = 0\) is a critical point.

\(f(x + h) - f(x) = (x+h)^T A(x+h) - x^T Ax = x^T Ah + h^T Ax + h^T Ah = (Ax + A^T x)^T h + h^T Ah\).

The term \((Ax + A^T x)^T h\) is linear in \(h\). The term \(h^T Ah\) satisfies \(|h^T Ah| \leq \|A\|_2 \|h\|^2 = O(\|h\|^2)\), so it is \(o(\|h\|)\).

Therefore \(Df(x) \cdot h = (Ax + A^T x)^T h = ((A + A^T)x)^T h\), and \(Df(x)\) is represented by the row vector \((A + A^T)x\).

When \(A\) is symmetric, \(A + A^T = 2A\) and \(Df(x) \cdot h = 2x^T Ah = 2(Ax)^T h\). The critical point condition \(Df(x) = 0\) gives \(Ax = 0\), so \(x = 0\) is always a critical point. Whether it is a minimum, maximum, or saddle depends on the eigenvalues of \(A\): \(f\) is positive definite iff \(A\) is positive definite, in which case \(x = 0\) is the unique global minimum. \(\square\)

The map \(x \mapsto Df(x)\) here is \(x \mapsto (A + A^T)x\), a linear map \(\mathbb{R}^n \to \mathbb{R}^n\). The derivative of the derivative — the Hessian — is the constant linear map \(h \mapsto (A + A^T)h\), represented by the matrix \(A + A^T\). This is the second-order theory, taken up next.

20.6 Higher derivatives

The derivative of \(f: U \to W\) is a map \(Df: U \to \mathcal{B}(V, W)\). If this map is itself Fréchet differentiable, its derivative at \(a\) is a bounded linear map from \(V\) into \(\mathcal{B}(V, W)\), which one identifies with a bounded bilinear map \(V \times V \to W\).

Definition 20.3 (Second derivative) If \(Df: U \to \mathcal{B}(V, W)\) is Fréchet differentiable at \(a\), the second derivative \(D^2 f(a)\) is the bounded linear map in \(\mathcal{B}(V, \mathcal{B}(V, W))\), identified via \[ D^2 f(a)(h)(k) = \lim_{t \to 0} \frac{Df(a + tk)h - Df(a)h}{t}. \] The function \(f\) is of class \(C^2\) if \(D^2 f: U \to \mathcal{B}(V, \mathcal{B}(V, W))\) is continuous.

Theorem 20.3 (Symmetry of the second derivative) If \(f: U \subset V \to W\) is \(C^2\), then \(D^2 f(a)\) is a symmetric bilinear map: \[ D^2 f(a)(h)(k) = D^2 f(a)(k)(h) \quad \text{for all } h, k \in V. \]

Proof. Consider the second-order difference quotient. Define \[ \Delta(h, k) = f(a + h + k) - f(a + h) - f(a + k) + f(a). \] By applying the mean value theorem twice — first in the \(h\) direction, then in the \(k\) direction — one obtains \[ \Delta(h, k) = D^2 f(a)(h)(k) \cdot \|h\|\|k\| + o(\|h\|\|k\|). \] Since \(\Delta(h, k) = \Delta(k, h)\) by inspection, taking the limit gives \(D^2 f(a)(h)(k) = D^2 f(a)(k)(h)\). \(\square\)

In finite dimensions \(D^2 f(a)\) is represented by the Hessian matrix \(H_f(a)_{ij} = \partial^2 f / \partial x_i \partial x_j(a)\), and symmetry is Schwarz’s theorem: mixed partials commute when \(f\) is \(C^2\).

Exercise. Let \(f: \mathbb{R}^n \to \mathbb{R}\) be \(C^2\). Show that the second-order Taylor expansion holds: \[ f(a + h) = f(a) + Df(a)h + \tfrac{1}{2} D^2 f(a)(h)(h) + o(\|h\|^2). \]

Apply the fundamental theorem of calculus to \(t \mapsto f(a + th)\): \[ f(a + h) - f(a) = \int_0^1 \frac{d}{dt} f(a + th)\, dt = \int_0^1 Df(a + th)h\, dt. \] Apply the fundamental theorem again to \(Df(a + th)h\) in \(t\): since \(\frac{d}{dt} Df(a + th)h = D^2 f(a + th)(h)(h)\), \[ Df(a + th)h = Df(a)h + \int_0^t D^2 f(a + sh)(h)(h)\, ds. \] Substituting: \[ f(a + h) - f(a) - Df(a)h = \int_0^1 \int_0^t D^2 f(a + sh)(h)(h)\, ds\, dt. \] Changing the order of integration (the integrand is continuous) gives \(\int_0^1 (1-s) D^2 f(a + sh)(h)(h)\, ds\).

Since \(D^2 f\) is continuous at \(a\), for \(\|h\|\) small the integrand is close to \((1-s) D^2 f(a)(h)(h)\). Integrating in \(s\) gives \(\frac{1}{2} D^2 f(a)(h)(h)\), with error \(o(\|h\|^2)\) from the continuity of \(D^2 f\). \(\square\)

In coordinates, \(D^2 f(a)(h)(h) = h^T H_f(a) h\) where \(H_f(a)\) is the Hessian. The expansion \(f(a + h) \approx f(a) + \nabla f(a)^T h + \frac{1}{2} h^T H_f(a) h\) is the foundation of second-order optimisation methods in numerical analysis and mathematical finance: Newton’s method, the method of steepest descent, and the local quadratic approximation of risk in portfolio theory all rest on this formula.

20.7 The mean value inequality

The mean value theorem in one variable says \(f(b) - f(a) = f'(c)(b - a)\) for some \(c\) between \(a\) and \(b\). In higher dimensions no such intermediate point exists — but an inequality persists.

Theorem 20.4 (Mean value inequality) Let \(f: U \subset V \to W\) be Fréchet differentiable on \(U\), and let \([a, a+h] := \{a + th : 0 \leq t \leq 1\} \subset U\). Then \[ \|f(a + h) - f(a)\|_W \leq \|h\|_V \cdot \sup_{0 \leq t \leq 1} \|Df(a + th)\|_{\mathcal{B}(V,W)}. \]

Proof. Apply the one-variable mean value theorem to the real-valued function \(\varphi(t) = \ell(f(a + th))\) where \(\ell \in \mathcal{B}(W, \mathbb{R})\) is any bounded linear functional with \(\|\ell\| \leq 1\). By the chain rule, \(\varphi'(t) = \ell(Df(a + th)h)\). The one-variable theorem gives \[ |\ell(f(a+h)) - \ell(f(a))| = |\varphi'(c)| \leq \|\ell\| \|Df(a+ch)\| \|h\| \leq \|h\| \sup_{0 \leq t \leq 1} \|Df(a+th)\|. \] Taking the supremum over all \(\ell\) with \(\|\ell\| \leq 1\) and applying the Hahn–Banach theorem gives \(\|f(a+h) - f(a)\|_W\) on the left. \(\square\)

The appeal to Hahn–Banach here is the only non-elementary step. In finite dimensions it is replaced by the observation that \(\|w\|_W = \sup_{\|\ell\| \leq 1} |\ell(w)|\), which holds for all normed spaces but whose proof requires Hahn–Banach in general.

Corollary 20.1 (Bounded derivative implies Lipschitz) If \(\|Df(x)\| \leq M\) for all \(x \in U\) and \(U\) is convex, then \(f\) is Lipschitz with constant \(M\): \[ \|f(x) - f(y)\|_W \leq M\|x - y\|_V \quad \text{for all } x, y \in U. \]

This corollary is used constantly. It is how one verifies the Lipschitz hypothesis of the contraction mapping principle from information about derivatives, which is precisely how the inverse function theorem is proved.

Exercise. Let \(f: \mathbb{R}^n \to \mathbb{R}^n\) be \(C^1\) and suppose \(\|Df(x) - I\| \leq 1/2\) for all \(x\), where \(I\) is the identity. Show that \(f\) is injective.

For any \(x \neq y\), apply the mean value inequality to \(g = f - \mathrm{id}\), i.e. \(g(x) = f(x) - x\). Then \(Dg(x) = Df(x) - I\), so \(\|Dg(x)\| \leq 1/2\) for all \(x\). By the Lipschitz corollary, \(\|g(x) - g(y)\| \leq \frac{1}{2}\|x-y\|\).

Therefore: \[ \|f(x) - f(y)\| = \|(x - y) + (g(x) - g(y))\| \geq \|x-y\| - \|g(x) - g(y)\| \geq \|x-y\| - \tfrac{1}{2}\|x-y\| = \tfrac{1}{2}\|x-y\| > 0. \] So \(f(x) \neq f(y)\), and \(f\) is injective. \(\square\)

This argument — writing \(f = \mathrm{id} + (f - \mathrm{id})\) and treating the second term as a small perturbation — is the core of the proof of the inverse function theorem. When \(Df(a) = I\), the condition \(\|Df(x) - I\| \leq 1/2\) holds near \(a\) by continuity of \(Df\), and the mean value inequality promotes this local operator-norm bound into a global Lipschitz estimate on \(f\).