Post · 4 min read· pp. 580–581

What Is a Fréchet Derivative?

Let UU and VV be Banach spaces (complete normed vector spaces). The Fréchet derivative of a function f:U→Vf:U \to V at X∈UX\in U is a linear mapping L:U→VL:U\to V such that

f(X+E)−f(X)−L(X,E)=o(∥E∥)\notag f(X+E) - f(X) - L(X,E) = o(\|E\|)

for all E∈UE\in U. The notation L(X,E)L(X,E) should be read as “the Fréchet derivative of ff at XX in the direction EE”. The Fréchet derivative may not exist, but if it does exist then it is unique. When U=V=RU = V = \mathbb{R}, the Fréchet derivative is just the usual derivative of a scalar function: L(x,e)=f′(x)eL(x,e) = f'(x)e.

As a simple example, consider U=V=Rn×nU = V = \mathbb{R}^{n\times n} and f(X)=X2f(X) = X^2. From the expansion

f(X+E)−f(X)=XE+EX+E2f(X+E) - f(X) = XE + EX + E^2

we deduce that L(X,E)=XE+EXL(X,E) = XE + EX, the first order part of the expansion. If XX commutes with EE then LX(E)=2XE=2EXL_X(E) = 2XE = 2EX.

More generally, it can be shown that if ff has the power series expansion f(x)=∑i=0∞aixif(x) = \sum_{i=0}^\infty a_i x^i with radius of convergence rr then for X,E∈Rn×nX,E\in\mathbb{R}^{n\times n} with ∥X∥<r\|X\| < r, the Fréchet derivative is

L(X,E)=∑i=1∞ai∑j=1iXj−1EXi−j.L(X,E) = \displaystyle\sum_{i=1}^\infty a_i \displaystyle\sum_{j=1}^i X^{j-1} E X^{i-j}.

An explicit formula for the Fréchet derivative of the matrix exponential, f(A)=eAf(A) = \mathrm{e}^A, is

L(A,E)=∫01eA(1−s)EeAs ds.L(A,E) = \displaystyle\int_0^1 \mathrm{e}^{A(1-s)} E \mathrm{e}^{As} \, ds.

Like the scalar derivative, the Fréchet derivative satisfies sum and product rules: if gg and hh are Fréchet differentiable at AA then

f=αg+βh  ⇒  Lf(A,E)=αLg(A,E)+βLh(A,E),f=gh  ⇒  Lf(A,E)=Lg(A,E)h(A)+g(A)Lh(A,E).\notag \begin{alignedat}{2} f &= \alpha g + \beta h &&\;\Rightarrow\; L_f(A,E) = \alpha L_g(A,E) + \beta L_h(A,E),\\ f &= gh &&\;\Rightarrow\; L_f(A,E) = L_g(A,E) h(A) + g(A) L_h(A,E). \end{alignedat}

A key requirement of the definition of Fréchet derivative is that L(X,E)L(X,E) must satisfy the defining equation for all EE. This is what makes the Fréchet derivative different from the Gâteaux derivative (or directional derivative), which is the mapping G:U→VG:U \to V given by

G(X,E)=lim⁡t→0f(X+tE)−f(X)t=ddt∣t=0f(X+tE).\notag G(X,E) = \lim_{t\to0} \displaystyle\frac{f(X+t E)-f(X)}{t} = \frac{\mathrm{d}}{\mathrm{dt}}\Bigm|_{t=0} f(X + tE).

Here, the limit only needs to exist in the particular direction EE. If the Fréchet derivative exists at XX then it is equal to the Gâteaux derivative, but the converse is not true.

A natural definition of condition number of ff is

cond(f,X)=lim⁡ϵ→0sup⁡∥ΔX∥≤ϵ∥X∥∥f(X+ΔX)−f(X)∥ϵ∥f(X)∥,\mathrm{cond}(f,X) = \lim_{\epsilon\to0} \displaystyle\sup_{\|\Delta X\| \le \epsilon \|X\|} \displaystyle\frac{\|f(X+\Delta X) - f(X)\|}{\epsilon\|f(X)\|},

and it can be shown that cond\mathrm{cond} is given in terms of the Fréchet derivative by

cond(f,X)=∥L(X)∥∥X∥∥f(X)∥,\mathrm{cond}(f,X) = \displaystyle\frac{\|L(X)\| \|X\|}{\|f(X)\|},

where

∥L(X)∥=sup⁡Z≠0∥L(X,Z)∥∥Z∥.\|L(X)\| = \sup_{Z\ne0}\displaystyle\frac{\|L(X,Z)\|}{\|Z\|}.

For matrix functions, the Fréchet derivative has a number of interesting properties, one of which is that the eigenvalues of L(X)L(X) are the divided differences

f[λi,λj]={f(λi)−f(λj)λi−λj,λi≠λj,f′(λi),λi=λj,\notag f[\lambda_i,\lambda_j] = \begin{cases} \dfrac{ f(\lambda_i)-f(\lambda_j) }{\lambda_i - \lambda_j}, & \lambda_i\ne\lambda_j, \\ f'(\lambda_i), & \lambda_i=\lambda_j, \end{cases}

for 1≤i,j≤n1\le i,j \le n, where the λi\lambda_i are the eigenvalues of XX. We can check this formula in the case F(X)=X2F(X) = X^2. Let (λ,u)(\lambda,u) be an eigenpair of XX and (μ,v)(\mu,v) an eigenpair of XTX^T, so that Xu=λuXu = \lambda u and XTv=μvX^Tv = \mu v, and let E=uvTE = uv^T. Then

L(X,E)=XE+EX=XuvT+uvTX=(λ+μ)uvT.L(X,E) = XE + EX = Xuv^T + uv^TX = (\lambda + \mu) uv^T.

So uvTuv^T is an eigenvector of L(X)L(X) with eigenvalue λ+μ\lambda + \mu. But f[λ,μ]=(λ2−μ2)/(λ−μ)=λ+μf[\lambda,\mu] = (\lambda^2-\mu^2)/(\lambda - \mu) = \lambda + \mu (whether or not λ\lambda and μ\mu are distinct).

References

This is a minimal set of references, which contain further useful references within.

This article is part of the “What Is” series, available from https://nhigham.com/category/what-is and in PDF form from the GitHub repository https://github.com/higham/what-is.