29.6 The Leibniz rule
In this section \(V\) is a finite-dimensional real inner product space of dimension \(n\) with Lebesgue measure, \((e_i)_{i \in I}\) is the orthonormal basis of Definition 23.59, and for \(v \in V^k\), \(g = \partial ^v f\) weakly on an open set \(\Omega \) means that \(f\) and \(g\) are locally integrable on \(\Omega \) and \(\int \varphi g = (-1)^k \int (\partial ^v \varphi ) f\) for every smooth \(\varphi \colon V \to \mathbb {R}\) with compact support in \(\Omega \) (Definition 29.1, Lemma 29.2). A word of length \(k\) is a tuple \(w = (w_0, \dots , w_{k-1}) \in I^k\); it stands for the derivative \(\partial ^{e_w} = \partial _{e_{w_0}} \cdots \partial _{e_{w_{k-1}}}\). For directions \(u = (u_0, \dots , u_{k-1}) \in V^k\) and \(v \in V\), \((u, v) \in V^{k+1}\) is the tuple \(u\) followed by \(v\), so that \(\partial ^{(u, v)} = \partial ^u \partial _v\). For a smooth function \(\chi \), \(D^j \chi (x)\) is its \(j\)-th derivative at \(x\), and \(W^{m}_{p}(V)\) is the space of the \(f \in L_p(V)\) with weak derivatives \(\partial ^v f \in L_p(V)\) on \(V\) for all \(v \in V^k\) and \(k \leq m\) (Definition 29.1).
This section proves the Leibniz rule for \(\chi f\) with a smooth compactly supported \(\chi \), with an explicit constant, by induction on the order: \(\partial _{e_j} (\chi f) = \chi \, \partial _{e_j} f + (\partial _{e_j} \chi ) f\) (Lemma 29.8). The Leibniz rule is the tool for pasting local extensions in \(W^{m}_{p}(V)\), as Lemma 29.94 is for \(m = 1\).
Words and directions.
Let \(\Omega \subseteq V\) be open, \(k \in \mathbb {N}\), \(u \in V^k\) and \(v \in V\), and let \(h = \partial _v f\) weakly on \(\Omega \). Then for every \(g\), \(g = \partial ^u h\) weakly on \(\Omega \) if and only if \(g = \partial ^{(u, v)} f\) weakly on \(\Omega \).
For distributions, \(\partial ^{(u, v)} T = \partial ^u (\partial _v T)\) (Mathlib’s LineDeriv.iteratedLineDerivOp_succ_right), and \(\partial _v f = h\) as distributions on \(\Omega \).
For every real vector space \(E\) with derivatives \(\partial _v \colon E \to E\) (\(v \in V\)) that are additive and real homogeneous both in \(v\) and in their argument, every finite set \(J\), all \(b_j \in V\) (\(j \in J\)), every \(k \in \mathbb {N}\), all \(c_{l,j} \in \mathbb {R}\) (\(l {\lt} k\), \(j \in J\)) and every \(T \in E\),
\[ \partial ^v T = \sum _{i \in J^k} \Bigl(\prod _{l {\lt} k} c_{l, i_l}\Bigr) \partial _{b_{i_0}} \cdots \partial _{b_{i_{k-1}}} T \qquad \text{for } v_l = \sum _{j \in J} c_{l,j} b_j . \]For every open \(\Omega \subseteq V\), every finite set \(J\), all \(c_j \in \mathbb {R}\) and all locally integrable \(g_j\) on \(\Omega \) (\(j \in J\)), the distribution of \(\sum _j c_j g_j\) on \(\Omega \) is \(\sum _j c_j\) times the distribution of \(g_j\).
For every open \(\Omega \subseteq V\), every \(k \in \mathbb {N}\), every locally integrable \(f\) on \(\Omega \), all \(g_w\) with \(g_w = \partial ^{e_w} f\) weakly on \(\Omega \) for every word \(w \in I^k\) and every \(v \in V^k\),
\[ \sum _{w \in I^k} \Bigl(\prod _{l {\lt} k} \langle v_l, e_{w_l} \rangle \Bigr) g_w = \partial ^v f \quad \text{weakly on } \Omega . \]For every \(1 \leq p \leq \infty \), every \(m \in \mathbb {N}\) and every \(F \in L_p(V)\) with a weak derivative \(\partial ^{e_w} F \in L_p(V)\) on \(V\) for every \(k \leq m\) and every word \(w \in I^k\), \(F \in W^{m}_{p}(V)\).
(1) Induction on \(k\): \(\partial ^v T = \partial _{v_0} \partial ^{(v_1, \dots , v_{k-1})} T\), the induction hypothesis for the tail, linearity of \(\partial _{v_0}\) in \(v_0\) and in its argument, and the splitting of the words \(i \in J^{k+1}\) into their first letter and the rest. (2) Induction on \(J\). (3) (1) for distributions on \(\Omega \) with \(v_l = \sum _{j \in I} \langle v_l, e_j \rangle e_j\), and (2). (4) By (3) the derivative along \(v \in V^k\) is a finite combination of the \(\partial ^{e_w} F\), hence lies in \(L_p(V)\).
The Leibniz constant.
Let \(\chi \colon V \to \mathbb {R}\) be smooth and \(k \in \mathbb {N}\). The Leibniz constant of \(\chi \) of order \(k\) is
where \(D^j \chi (x)\) is the \(j\)-th derivative of \(\chi \) at \(x\).
Let \(\chi \colon V \to \mathbb {R}\) be smooth. Then:
if \(\chi \) has compact support, then \(C_k(\chi ) {\lt} \infty \) for every \(k \in \mathbb {N}\);
\(|\chi (x)| \leq C_0(\chi )\) for every \(x \in V\);
for every \(v \in V\) with \(\| v\| \leq 1\), every \(j \in \mathbb {N}\) and every \(x \in V\), \(\| D^j (\partial _v \chi )(x)\| \leq \| D^{j+1} \chi (x)\| \), and \(C_k(\chi ) + C_k(\partial _v \chi ) \leq C_{k+1}(\chi )\) for every \(k \in \mathbb {N}\).
(1) Each \(D^j \chi \) is continuous with compact support, hence bounded. (2) \(D^0 \chi = \chi \). (3) \(D^j (\partial _v \chi )(x)\) is \(D^{j+1} \chi (x)\) with \(v\) inserted as one argument (Mathlib’s norm_iteratedFDeriv_clm_apply_const and norm_iteratedFDeriv_fderiv). Hence both \(\sum _{j \leq k} \| D^j \chi (x)\| \) and \(\sum _{j \leq k} \| D^j (\partial _v \chi )(x)\| \) are at most \(\sum _{j \leq k+1} \| D^j \chi (x)\| \), and \(2^k + 2^k = 2^{k+1}\).
The Leibniz rule.
Let \(J\) be a finite set, \(j \in J\) and \(k \in \mathbb {N}\). Then:
for every \(a \colon J^{k+1} \to [0, \infty ]\), \(\sum _{w \in J^k} a(w, j) \leq \sum _{w \in J^{k+1}} a(w)\);
for all \(a_{k'} \colon J^{k'} \to [0, \infty ]\) (\(k' \in \mathbb {N}\)), \(\sum _{k' \leq k} \sum _{w \in J^{k'}} a_{k'+1}(w, j) \leq \sum _{k' \leq k+1} \sum _{w \in J^{k'}} a_{k'}(w)\);
for \(J = I\) and every \(u \in I^k\), the directions of the word \((u, j)\) are \((e_{u_0}, \dots , e_{u_{k-1}}, e_j)\).
(1) The map \(w \mapsto (w, j)\) is injective. (2) (1) for every \(k'\), and the term \(k' = 0\) on the right is nonnegative. (3) By definition.
Let \(J\) be a finite set and \(m \in \mathbb {N}\). Then:
for all \(a_{k,w} \in [0, \infty ]\) (\(k \in \mathbb {N}\), \(w \in J^k\)), \(a_{k,w} \leq \sum _{k' \leq m} \sum _{w' \in J^{k'}} a_{k',w'}\) for every \(k \leq m\) and every \(w \in J^k\);
for all \(a_{k,w} \in [0, \infty ]\) (\(k \in \mathbb {N}\), \(w \in J^k\)), \(\sum _{k' \leq k} \sum _{w' \in J^{k'}} a_{k',w'} \leq \sum _{k' \leq m} \sum _{w' \in J^{k'}} a_{k',w'}\) for every \(k \leq m\);
for every finite set \(\kappa \) and all \(\lambda _{l,k}, c_l \in [0, \infty ]\) (\(l \in \kappa \), \(k \in \mathbb {N}\)), \(\sum _{k \leq m} \sum _{w \in J^k} \sum _{l \in \kappa } \lambda _{l,k} c_l = \sum _{l \in \kappa } \bigl(\sum _{k \leq m} \sum _{w \in J^k} \lambda _{l,k}\bigr) c_l\);
for every nonempty set \(A\) and every property \(P(k, w, a)\) of \(k \in \mathbb {N}\), \(w \in J^k\) and \(a \in A\): if for every \(k \leq m\) and every \(w \in J^k\) some \(a \in A\) satisfies \(P(k, w, a)\), then there is a family \((a_{k,w})_{k \in \mathbb {N}, w \in J^k}\) in \(A\) with \(P(k, w, a_{k,w})\) for every \(k \leq m\) and every \(w \in J^k\).
(1) and (2) The terms are nonnegative. (3) Exchange the sums. (4) Choose \(a_{k,w}\) for \(k \leq m\) and any element of \(A\) for \(k {\gt} m\).
Let \(O, B \subseteq V\) be open, \(1 \leq p \leq \infty \) and \(m \in \mathbb {N}\). Let \(f\) be a function with weak derivatives \(g_{k,w} = \partial ^{e_w} f\) on \(O \cap B\) for all \(k \leq m\) and all words \(w \in I^k\), and let \(\chi \colon V \to \mathbb {R}\) be smooth with compact closed support in \(B\). Then for every \(k \leq m\) and every \(w \in I^k\) there is \(G\) with \(G = \partial ^{e_w} (\chi f)\) weakly on \(O\) and
with the Leibniz constant \(C_k(\chi )\) of Definition 29.88.
Induction on \(k\), for all \(m\), \(f\), \(g\) and \(\chi \) at once. For \(k = 0\), \(G = \chi f\), and \(\| \chi f\| _{L_p(O)} \leq C_0(\chi ) \| f\| _{L_p(O \cap B)}\) (Lemma 29.20 (2), Lemma 29.89 (2)) with \(f = g_{0,()}\) almost everywhere on \(O \cap B\). For a word \((u, j)\) of length \(k + 1\), let \(f' = g_{1,(j)} = \partial _{e_j} f\). Then \(g_{k'+1,(w', j)} = \partial ^{e_{w'}} f'\) on \(O \cap B\) (Lemma 29.86), and the induction hypothesis for \(\chi f'\) and for \((\partial _{e_j} \chi ) f\) along \(u\) gives \(G_1\) and \(G_2\). Since \(\partial _{e_j} (\chi f) = \chi f' + (\partial _{e_j} \chi ) f\) on \(O\) (Lemma 29.8 (3)), \(G = G_1 + G_2\) is the derivative along \((u, j)\) (Lemma 29.86). Both bounds are at most the sum over the words of length at most \(k + 1\) (Lemma 29.90), and \(C_k(\chi ) + C_k(\partial _{e_j} \chi ) \leq C_{k+1}(\chi )\) (Lemma 29.89 (3)).
In the next corollary, \(\chi F\) is the product in \(L_p(V)\) of Lemma 23.55, formed with the continuity of \(\chi \) and a bound \(|\chi | \leq C\); both follow from smoothness and compact support.
Let \(1 \leq p \leq \infty \), \(m \in \mathbb {N}\) and \(F \in W^{m}_{p}(V)\), and let \(\chi \colon V \to \mathbb {R}\) be smooth with compact support. Then:
for every \(k \leq m\) and every \(w \in I^k\), \(\chi F\) has a weak derivative \(\partial ^{e_w} (\chi F) \in L_p(V)\) on \(V\);
\(\chi F \in W^{m}_{p}(V)\).
(1) Theorem 29.92 with \(O = B = V\); the bound is finite since \(C_k(\chi ) {\lt} \infty \) (Lemma 29.89 (1)) and the derivatives of \(F\) lie in \(L_p(V)\). (2) (1) and Lemma 29.87 (4).
Let \(1 \leq p \leq \infty \).
Let \(w \in V\), \(F, G \in L_p(V)\) with \(G = \partial _w F\) weakly on \(V\), and \(\chi \colon V \to \mathbb {R}\) smooth with \(\chi \) and \(\partial _w \chi \) bounded. Then \(\chi G + (\partial _w \chi ) F = \partial _w (\chi F)\) weakly on \(V\), with the products in \(L_p(V)\).
If \(F \in W^{1}_{p}(V)\) and \(\chi \colon V \to \mathbb {R}\) is smooth with compact support, then \(\chi F \in W^{1}_{p}(V)\).
Lemma 29.9 for the representatives, and Lemma 29.3. The second statement is the case \(m = 1\) of Corollary 29.93.