29.1 Weak derivatives on open sets
In this section \(V\) is a finite-dimensional real inner product space of dimension \(n\) with Lebesgue measure, and \(\Omega \subseteq V\) is open. \(\mathcal D(\Omega )\) is the space of smooth functions \(\varphi \colon V \to \mathbb {R}\) with compact support in \(\Omega \), and for directions \(v = (v_0, \dots , v_{k-1}) \in V^k\), \(\partial ^v = \partial _{v_0} \cdots \partial _{v_{k-1}}\) is the iterated directional derivative, the identity for \(k = 0\) (Section 13.4). Mathlib identifies a locally integrable function \(f\) on \(\Omega \) with the distribution \(\varphi \mapsto \int \varphi f\) and a function \(f \in L_p(V)\), \(1 \leq p \leq \infty \), with the tempered distribution \(u \mapsto \int u f\); it differentiates a distribution \(T\) by \(\partial _w T(\varphi ) = T(-\partial _w \varphi )\).
Let \(k \in \mathbb {N}\) and \(v \in V^k\). A function \(g\) is the weak derivative \(\partial ^v f\) of a function \(f\) on \(\Omega \) if \(f\) and \(g\) are locally integrable on \(\Omega \) and \(\partial ^v f = g\) as distributions on \(\Omega \). Let \(m \in \mathbb {N}\) and \(1 \leq p \leq \infty \). The Sobolev space \(W^{m}_{p}(\Omega )\) consists of the \(f \in L_p(\Omega )\) such that for every \(k \leq m\) and every \(v \in V^k\) the weak derivative \(\partial ^v f\) exists on \(\Omega \) and lies in \(L_p(\Omega )\). For \(f \in L_p(V)\), \(f \in W^{m}_{p}(V)\) means \(f \in W^{m}_{p}(\Omega )\) with \(\Omega = V\).
The W of Rd.MemSobolevW stands for the Sobolev space \(W^{m}_{p}\) defined by weak derivatives; Mathlib’s TemperedDistribution.MemSobolev is the Bessel potential space \(H^{s,p}\). Every function in \(L_p(\Omega )\) with \(p \geq 1\) is locally integrable on \(\Omega \) (Lemma 29.3), so the weak derivatives in the definition of \(W^{m}_{p}(\Omega )\) need no further hypothesis. The definition quantifies over all directions; a basis of \(V\) enters only in proofs.
Let \(f\) and \(g\) be locally integrable on \(\Omega \), and \(v \in V^k\). Then \(g\) is the weak derivative \(\partial ^v f\) on \(\Omega \) if and only if
Both distributions are determined by their values on test functions, the distribution of a locally integrable function is \(\varphi \mapsto \int \varphi f\) (Mathlib’s Distribution.ofFun_apply), and \(\partial ^v f(\varphi ) = (-1)^k f(\partial ^v \varphi )\) by Lemma 13.26.
Let \(v \in V^k\), let \(f, f', g, g'\) be functions and \(c \in \mathbb {C}\). Then:
if \(g\) and \(g'\) are weak derivatives \(\partial ^v f\) on \(\Omega \), then \(g = g'\) almost everywhere on \(\Omega \); for \(\Omega = V\), every \(0 {\lt} r \leq \infty \) and \(g, g' \in L_r(V)\), \(g = g'\) in \(L_r(V)\);
for \(k = 0\), every locally integrable \(f\) on \(\Omega \) is its own weak derivative;
if \(g = \partial ^v f\) and \(g' = \partial ^v f'\) weakly on \(\Omega \), then \(g + g' = \partial ^v (f + f')\), \(-g = \partial ^v(-f)\), \(g - g' = \partial ^v (f - f')\) and \(c g = \partial ^v (c f)\) weakly on \(\Omega \); for a finite set \(s\) and functions \(F_j\), \(G_j\) with \(G_j = \partial ^v F_j\) weakly on \(\Omega \) for every \(j \in s\), \(\sum _{j \in s} G_j = \partial ^v \sum _{j \in s} F_j\) weakly on \(\Omega \);
if \(g = \partial ^v f\) weakly on \(\Omega \), \(f = f'\) and \(g = g'\) almost everywhere on \(\Omega \), then \(g' = \partial ^v f'\) weakly on \(\Omega \);
if \(g = \partial ^v f\) weakly on \(\Omega \), then \(g = \partial ^v f\) weakly on every open \(\Omega ' \subseteq \Omega \);
\(0 = \partial ^v 0\) weakly on \(\Omega \);
if \(g = \partial ^v f\) weakly on \(\Omega \), \(O \subseteq \Omega \) is open and \(f = 0\) almost everywhere on \(O\), then \(g = 0\) almost everywhere on \(O\);
if \(g = \partial ^v f\) weakly on \(V\), then \(f\) and \(g\) are locally integrable on \(V\);
for every \(w \in V\) and all \(G\), \(H\) with \(G = \partial ^v f\) and \(H = \partial ^{(w, v)} f\) weakly on \(\Omega \), \(H = \partial _w G\) weakly on \(\Omega \);
for every \(1 \leq p \leq \infty \), every \(f \in L_p(\Omega )\) is locally integrable on \(\Omega \), and \(W^{0}_{p}(\Omega ) = L_p(\Omega )\);
for all \(m, l \in \mathbb {N}\) with \(l \leq m\), every \(1 \leq p \leq \infty \) and every open \(\Omega ' \subseteq \Omega \): \(W^{m}_{p}(\Omega ) \subseteq W^{l}_{p}(\Omega )\), every \(f \in W^{m}_{p}(\Omega )\) lies in \(W^{m}_{p}(\Omega ')\), \(W^{m}_{p}(\Omega )\) is a complex vector space, and for every \(f \in W^{m}_{p}(\Omega )\) every \(f'\) with \(f' = f\) almost everywhere on \(\Omega \) lies in \(W^{m}_{p}(\Omega )\);
for \(\Omega = V\), every \(m \in \mathbb {N}\) and every \(1 \leq p \leq \infty \), \(W^{m}_{p}(V)\) is a complex linear subspace of \(L_p(V)\), and \(f \in L_p(V)\) lies in \(W^{m}_{p}(V)\) if and only if for every \(k \leq m\) and every \(v \in V^k\) some \(g \in L_p(V)\) is the weak derivative \(\partial ^v f\) on \(V\); for \(m = 1\) it suffices that for every \(v \in V\) some \(g \in L_p(V)\) is the weak derivative \(\partial _v f\) on \(V\).
(1) A locally integrable function is determined almost everywhere on \(\Omega \) by its distribution (Mathlib’s Distribution.ofFun_injective). (2) \(\partial ^v\) is the identity for \(k = 0\). (3) The distribution of a function and \(\partial ^v\) are additive, and finite sums follow by induction; for complex \(c\) use Lemma 29.2, since \(c\) leaves both integrals. (4) The distribution of a function depends on it only almost everywhere on \(\Omega \). (5) A test function \(\varphi \) on \(\Omega '\) is one on \(\Omega \), with the same derivatives (Lemma 13.25), so the identity of Lemma 29.2 on \(\Omega \) gives it on \(\Omega '\). (6) The distribution of \(0\) is \(0\), and so are its derivatives. (7) By (5) and (4), \(g = \partial ^v 0\) weakly on \(O\), so \(g = 0\) almost everywhere on \(O\) by (6) and (1). (8) is the definition for \(\Omega = V\). (9) For distributions \(\partial ^{(w, v)} = \partial _w \partial ^v\), so \(\partial _w G = \partial _w \partial ^v f = \partial ^{(w,v)} f = H\) as distributions on \(\Omega \). A function in \(L_p(\Omega )\), \(p \geq 1\), is integrable on every compact subset of \(\Omega \), which has finite measure. The statements on \(W^{m}_{p}\) follow, with \(L_p(\Omega ') \supseteq L_p(\Omega )|_{\Omega '}\) and (4); in \(L_p(V)\), the zero class, and the class of a sum or a multiple, agree almost everywhere with \(0\) and with the sum or the multiple of the representatives, and a weak derivative in \(L_p(V)\) may be replaced by its class (4). For \(m = 1\) the order \(k = 0\) is (2).
A function of \(W^{1}_{p}(\Omega )\) together with its weak derivatives along a basis is a single element of a product of \(L_p\) spaces, a jet. Linear operators on \(W^{1}_{p}\), such as the extension operator of Theorem 35.153, act on jets.
Let \((e_i)_{i \in I}\) be the orthonormal basis of the dyadic grid of \(V\), \(\Omega \subseteq V\) open and \(1 \leq p \leq \infty \). The jets of \(W^{1}_{p}(\Omega )\) are the pairs \((f, (g_i)_{i \in I})\) of elements of \(L_p(\Omega )\) such that \(g_i = \partial _{e_i} f\) weakly on \(\Omega \) for every \(i \in I\); for \(\Omega = V\) these are the jets of \(W^{1}_{p}(V)\). Both are complex linear subspaces of \(L_p \times L_p^I\), with the norm \(\| (f, (g_i)_i)\| = \max (\| f\| _p, \max _i \| g_i\| _p)\).
Let \(\Omega \subseteq V\) be open and \(1 \leq p \leq \infty \), and let \((e_i)_{i \in I}\) be the basis of Definition 29.4, with the norm \(\| u\| \) of a jet \(u\) defined there. Then:
for every jet \(u = (f, (g_i)_i)\), \(\| u\| \leq \| f\| _p + \sum _i \| g_i\| _p \leq (n + 1) \| u\| \);
two jets of \(W^{1}_{p}(\Omega )\) with the same value \(f\) are equal, and so are two jets of \(W^{1}_{p}(V)\);
for every \(f \in W^{1}_{p}(\Omega )\) some jet of \(W^{1}_{p}(\Omega )\) has a value equal to \(f\) almost everywhere on \(\Omega \);
for every complex vector space \(M\) and every linear map \(L \colon M \to L_p(V)\) such that for every \(x \in M\) and every \(i\) some \(G \in L_p(V)\) is the weak derivative \(\partial _{e_i} (L x)\) on \(V\), the map \(x \mapsto (L x, (\partial _{e_i} (L x))_i)\) is a linear map into the jets of \(W^{1}_{p}(V)\);
the restriction \((F, (G_i)_i) \mapsto (F|_\Omega , (G_i|_\Omega )_i)\) is a bounded linear operator from the jets of \(W^{1}_{p}(V)\) to the jets of \(W^{1}_{p}(\Omega )\).
(1) Product and finite product norms are maxima. (2) Weak derivatives are unique almost everywhere on \(\Omega \), and in \(L_p(V)\) for \(\Omega = V\) (Lemma 29.3). (3) Take the classes of \(f\) and of its weak derivatives \(\partial _{e_i} f \in L_p(\Omega )\). (4) By (2) the map is additive and homogeneous, since \(L\) is. (5) Restriction is bounded on each component, and weak derivatives restrict to \(\Omega \) (Lemma 29.3).
The converse of (3) holds on every open set: the value of every jet of \(W^{1}_{p}(\Omega )\) lies in \(W^{1}_{p}(\Omega )\) (Lemma 29.18 (3)); on a bounded Lipschitz domain it also follows from the extension operator (Theorem 35.153).
Let \(w \colon V \to \mathbb {C}\) be smooth with compact support in \(\Omega \).
\(w = a + i b\) for real test functions \(a, b \in \mathcal D(\Omega )\).
For every \(v \in V^k\) and all \(f\), \(g\) with \(g = \partial ^v f\) weakly on \(\Omega \),
\[ \int _V w \, g = (-1)^k \int _V (\partial ^v w) \, f . \]
Take \(a = \operatorname {Re} w\) and \(b = \operatorname {Im} w\), whose supports lie in that of \(w\). Then \(\partial ^v w = \partial ^v a + i \, \partial ^v b\) (Lemma 13.25), and Lemma 29.2 for \(a\) and \(b\) gives the identity.
Let \(\varphi \in \mathcal D(\Omega )\) and let \(\chi \colon V \to \mathbb {R}\) be smooth. Then \(\varphi \chi \in \mathcal D(\Omega )\), and \(\partial _w (\varphi \chi ) = (\partial _w \varphi ) \chi + \varphi \, \partial _w \chi \) for every \(w \in V\).
The closed support of \(\varphi \chi \) lies in that of \(\varphi \), and the product rule for derivatives gives \(\partial _w (\varphi \chi )\), since \(\partial _w \psi = D\psi (\cdot ) \, w\) for test functions \(\psi \) (Lemma 13.25).
Let \(O, B \subseteq V\) be open and \(\chi \colon V \to \mathbb {R}\) smooth with closed support in \(B\). Then:
for every \(\varphi \in \mathcal D(O)\), \(\varphi \chi \in \mathcal D(O \cap B)\) and \(\partial _w (\varphi \chi ) = (\partial _w \varphi ) \chi + \varphi \, \partial _w \chi \) for every \(w \in V\);
for every continuous \(c \colon V \to \mathbb {C}\) with closed support in \(B\) and every locally integrable \(u\) on \(O \cap B\), \(c u\) is locally integrable on \(O\);
for every \(w \in V\) and all \(f\), \(g\) with \(g = \partial _w f\) weakly on \(O \cap B\), \(\chi g + (\partial _w \chi ) f = \partial _w (\chi f)\) weakly on \(O\).
(1) The closed support of \(\varphi \chi \) lies in those of \(\varphi \) and of \(\chi \), hence in \(O \cap B\), and as a function \(\varphi \chi \) is the test function of Lemma 29.7 on \(O\), with the same derivative. (2) Near a point of \(B\), \(c u\) is the product of a continuous function with a locally integrable function on the open set \(O \cap B\); near a point of \(O\) outside \(B\), which lies outside the closed support of \(c\), \(c u\) vanishes. (3) The closed support of \(\partial _w \chi \) lies in \(B\) as well, so by (2) the functions \(\chi f\), \(\chi g\) and \((\partial _w \chi ) f\) are locally integrable on \(O\). For \(\varphi \in \mathcal D(O)\),
by Lemma 29.2 on \(O \cap B\) for the test function \(\varphi \chi \in \mathcal D(O \cap B)\) of (1), and by the formula for its derivative in (1).
Let \(w \in V\), let \(g = \partial _w f\) weakly on \(\Omega \), and let \(\chi \colon V \to \mathbb {R}\) be smooth. Then \(\chi g + (\partial _w \chi ) f = \partial _w (\chi f)\) weakly on \(\Omega \).
Lemma 29.8 (3) with \(\Omega \) for \(O\) and \(V\) for \(B\), since \(\Omega \cap V = \Omega \).
Let \(1 \leq p \leq \infty \) and let \(\varphi \in \mathcal D(\Omega )\) have support \(K\), of Lebesgue measure \(|K|\).
For every \(h\) that is almost everywhere strongly measurable on \(\Omega \),
\[ \| \varphi h\| _{L_1(\Omega )} \leq \| \varphi \| _\infty \, |K|^{1 - 1/p} \, \| h\| _{L_p(\Omega )} . \]For every filter, every \(h \in L_p(\Omega )\) and all \(h_i\) with \(\| h_i - h\| _{L_p(\Omega )} \to 0\), eventually \(h_i \in L_p(\Omega )\) and \(\int _V \varphi h_i \to \int _V \varphi h\).
\(\varphi h\) vanishes off the compact set \(K \subseteq \Omega \), so its \(L_1(\Omega )\) norm is that on \(K\), which is at most \(|K|^{1 - 1/p}\) times its \(L_p(K)\) norm (Hölder’s inequality on the set \(K\) of finite measure), and \(\| \varphi h\| _{L_p(K)} \leq \| \varphi \| _\infty \| h\| _{L_p(\Omega )}\). Eventually \(\| h_i - h\| _{L_p(\Omega )} {\lt} 1\), and then \(h_i = (h_i - h) + h \in L_p(\Omega )\). The integrals over \(V\) are integrals over \(\Omega \), and the bound applied to \(h_i - h\) gives the convergence in \(L_1(\Omega )\) of \(\varphi h_i\) to \(\varphi h\).
Let \(1 \leq p, r \leq \infty \), \(v \in V^k\), \(f \in L_p(\Omega )\) and \(g \in L_r(\Omega )\). Let \(f_i\), \(g_i\) be functions, indexed along a nontrivial filter, with \(g_i = \partial ^v f_i\) weakly on \(\Omega \) for every \(i\), \(\| f_i - f\| _{L_p(\Omega )} \to 0\) and \(\| g_i - g\| _{L_r(\Omega )} \to 0\). Then \(g\) is the weak derivative \(\partial ^v f\) on \(\Omega \).
For every \(\varphi \in \mathcal D(\Omega )\), \(\int \varphi g_i = (-1)^k \int (\partial ^v \varphi ) f_i\) by Lemma 29.2; both sides converge by Lemma 29.10, to \(\int \varphi g\) and to \((-1)^k \int (\partial ^v \varphi ) f\), and limits in \(\mathbb {C}\) are unique.
The bridge to tempered distributions rests on Theorem 13.30. For \(1 \leq p \leq \infty \) and \(f \in L_p(V)\) let \(T_f\) be \(f\) as a distribution on \(V\) and \(S_f\) be \(f\) as a tempered distribution.
Lebesgue measure restricted to \(\Omega = V\) is Lebesgue measure, so \(L_p(\Omega ) = L_p(V)\).
Let \(1 \leq p \leq \infty \) and \(f \in L_p(V)\), and let \(T_f\) and \(S_f\) be \(f\) as a distribution on \(V\) and as a tempered distribution. Then \(f\) is locally integrable on \(V\), and for every \(\varphi \in \mathcal D(V)\) and every \(v \in V^k\),
\[ T_f(\varphi ) = S_f(\varphi ), \qquad \partial ^v T_f(\varphi ) = \partial ^v S_f(\varphi ), \]with \(\varphi \) read as a Schwartz function on the right.
Both sides of the first identity are \(\int \varphi f\). For the second, both sides are \((-1)^k \int (\partial ^v \varphi ) f\) by Lemma 13.26, since the Schwartz function \(\partial ^v \varphi \) is the iterated derivative of the Schwartz function \(\varphi \) (Lemma 13.25).
Let \(1 \leq p, r \leq \infty \), \(f \in L_p(V)\), \(g \in L_r(V)\) and \(v \in V^k\). Then \(g\) is the weak derivative \(\partial ^v f\) on \(V\) if and only if \(\partial ^v f = g\) as tempered distributions.
By Lemma 29.12 the distribution \(\partial ^v T_f - T_g\) on \(V\) and the tempered distribution \(\partial ^v S_f - S_g\) agree on test functions. If the tempered distribution is zero, so is the distribution. If the distribution is zero, the tempered distribution vanishes on test functions and is zero by Theorem 13.30.
Let \(1 \leq p \leq \infty \), \(m \in \mathbb {N}\) and \(f \in L_p(V)\). Then \(f \in W^{m}_{p}(V)\) if and only if for every \(k \leq m\) and every \(v \in V^k\) there is \(g \in L_p(V)\) with \(\partial ^v f = g\) as tempered distributions.
Theorem 29.13, with a function in \(L_p(V)\) replaced by its class, which changes it only on a null set (Lemma 29.3).
Let \(\eta \) be a Schwartz function.
For every \(v \in V^k\) and every open \(\Omega \subseteq V\), the classical derivative \(\partial ^v \eta \) is the weak derivative of \(\eta \) on \(\Omega \).
\(\eta \in W^{m}_{p}(V)\) for every \(1 \leq p \leq \infty \) and every \(m \in \mathbb {N}\).
As tempered distributions \(\partial ^v \eta \) is the Schwartz function \(\partial ^v \eta \) (Lemma 13.26); Theorem 29.13 with \(p = r = 2\) gives the weak derivative on \(V\), and Lemma 29.3 (5) on \(\Omega \). The Sobolev statement is Corollary 29.14 with \(g = \partial ^v \eta \).